mocks.d.ts 518 B

1234567891011121314
  1. export declare const getEvent: (request: Request) => any;
  2. export declare const mockKV: (store: any) => {
  3. get: (path: string) => any;
  4. };
  5. export declare const mockManifest: () => string;
  6. export declare const mockCaches: () => {
  7. default: {
  8. match(key: any): Promise<any>;
  9. put(key: any, val: Response): Promise<void>;
  10. };
  11. };
  12. export declare function mockRequestScope(): void;
  13. export declare function mockGlobalScope(): void;
  14. export declare const sleep: (milliseconds: number) => Promise<unknown>;