UNPKG

routup

Version:

Routup is a minimalistic http based routing framework.

10 lines (9 loc) 467 B
import type { Readable as NodeReadable } from 'node:stream'; import type { Readable } from 'readable-stream'; import type { ReadableStream } from 'stream/web'; export type NodeReadableStream = NodeReadable | Readable; export type WebReadableStream = globalThis.ReadableStream | ReadableStream; export type WebResponse = globalThis.Response; export type WebRequest = globalThis.Request; export type WebBlob = globalThis.Blob; export type Next = (err?: Error) => void;