import { Duplex, Readable, Writable } from 'stream' import { expectAssignable } from 'tsd' import { Dispatcher, request, stream, pipeline, connect, upgrade } from '../..' // request expectAssignable>(request('')) expectAssignable>(request('', { })) expectAssignable>(request('', { method: 'GET', reset: false })) // stream expectAssignable>(stream('', { method: 'GET' }, data => { expectAssignable(data) return new Writable() })) // pipeline expectAssignable(pipeline('', { method: 'GET' }, data => { expectAssignable(data) return new Readable() })) // connect expectAssignable>(connect('')) expectAssignable>(connect('', {})) // upgrade expectAssignable>(upgrade('')) expectAssignable>(upgrade('', {}))