Initial commit
This commit is contained in:
commit
78f8d225ee
21173 changed files with 2907774 additions and 0 deletions
11
node_modules/next/dist/experimental/testmode/context.d.ts
generated
vendored
Normal file
11
node_modules/next/dist/experimental/testmode/context.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
export interface TestReqInfo {
|
||||
url: string;
|
||||
proxyPort: number;
|
||||
testData: string;
|
||||
}
|
||||
export interface TestRequestReader<R> {
|
||||
url(req: R): string;
|
||||
header(req: R, name: string): string | null;
|
||||
}
|
||||
export declare function withRequest<R, T>(req: R, reader: TestRequestReader<R>, fn: () => T): T;
|
||||
export declare function getTestReqInfo<R>(req?: R, reader?: TestRequestReader<R>): TestReqInfo | undefined;
|
||||
Loading…
Add table
Add a link
Reference in a new issue