fix(core): update
This commit is contained in:
12
ts/interfaces.ts
Normal file
12
ts/interfaces.ts
Normal 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>;
|
||||
Reference in New Issue
Block a user