fix(core): update

This commit is contained in:
2022-01-06 01:20:03 +01:00
parent b83c492ee2
commit 6e1db0c713
24 changed files with 31990 additions and 93 deletions

12
ts/interfaces.ts Normal file
View File

@@ -0,0 +1,12 @@
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>;