UNPKG

next

Version:

The React Framework

5 lines (4 loc) 263 B
/// <reference types="node" /> import { IncomingMessage, ServerResponse } from 'http'; import { ServerlessHandlerCtx } from './utils'; export declare function getApiHandler(ctx: ServerlessHandlerCtx): (req: IncomingMessage, res: ServerResponse) => Promise<void>;