Files
npmcdn/ts/interfaces.ts
2022-01-06 01:20:03 +01:00

13 lines
301 B
TypeScript

import * as url from 'url';
export interface ISimpleRequest {
headers: {};
parsedUrl: url.URL;
}
export interface ISimpleResponse {
headers: { [key: string]: string };
status: number;
body: string | Buffer;
}
export type IRenderFunction = (req: ISimpleRequest) => Promise<ISimpleResponse>;