@eggjs/tegg-types 3.78.3 → 3.78.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eggjs/tegg-types",
3
- "version": "3.78.3",
3
+ "version": "3.78.7",
4
4
  "description": "tegg types",
5
5
  "keywords": [
6
6
  "egg",
@@ -45,5 +45,5 @@
45
45
  "ts-node": "^10.9.1",
46
46
  "typescript": "^5.0.4"
47
47
  },
48
- "gitHead": "dad5ee61b9676cff8522f4ef15436e36d5c321c4"
48
+ "gitHead": "edd12e992c78fde061a4cd6c18d7173fa50061dc"
49
49
  }
@@ -0,0 +1,12 @@
1
+ import { FetchEvent } from './fetch';
2
+ export interface ServiceWorkerContextInit<T> {
3
+ event: T;
4
+ }
5
+ export interface ServiceWorkerContext<Event, Response> {
6
+ event: Event;
7
+ get response(): Response | undefined;
8
+ set response(response: Response);
9
+ get body(): any | undefined;
10
+ set body(body: any);
11
+ }
12
+ export type ServiceWorkerFetchContext = ServiceWorkerContext<FetchEvent, Response>;
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiU2VydmljZVdvcmtlckNvbnRleHQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJTZXJ2aWNlV29ya2VyQ29udGV4dC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIn0=
@@ -0,0 +1,5 @@
1
+ export interface FetchEvent extends Event {
2
+ request: Request;
3
+ waitUntil(f: Promise<any>): void;
4
+ respondWith(r: Response | PromiseLike<Response>): void;
5
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZmV0Y2guanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJmZXRjaC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIn0=
@@ -0,0 +1,2 @@
1
+ export * from './fetch';
2
+ export * from './ServiceWorkerContext';
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./fetch"), exports);
18
+ __exportStar(require("./ServiceWorkerContext"), exports);
19
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7O0FBQUEsMENBQXdCO0FBQ3hCLHlEQUF1QyJ9