routup
Version:
Routup is a minimalistic http based routing framework.
7 lines (6 loc) • 482 B
TypeScript
import type { ReadableStream as WebReadableStream } from 'stream/web';
import type { Readable as NodeReadable } from 'node:stream';
import type { Readable } from 'readable-stream';
export declare function isNodeStream(input: unknown): input is NodeReadable | Readable;
export declare function isWebStream(input: unknown): input is ReadableStream | WebReadableStream;
export declare function isStream(data: any): data is NodeReadable | Readable | ReadableStream | WebReadableStream;