UNPKG

next

Version:

The React Framework

8 lines (7 loc) • 384 B
/// <reference types="node" /> /// <reference types="node" /> /// <reference types="node" /> import type { IncomingMessage, ServerResponse } from 'http'; import type { Duplex } from 'stream'; export type WorkerRequestHandler = (req: IncomingMessage, res: ServerResponse) => Promise<any>; export type WorkerUpgradeHandler = (req: IncomingMessage, socket: Duplex, head: Buffer) => any;