@cloudflare/workers-types 4.20250913.0 → 4.20250917.0
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/2021-11-03/index.d.ts +12 -13
- package/2021-11-03/index.ts +12 -13
- package/2022-01-31/index.d.ts +12 -13
- package/2022-01-31/index.ts +12 -13
- package/2022-03-21/index.d.ts +12 -13
- package/2022-03-21/index.ts +12 -13
- package/2022-08-04/index.d.ts +12 -13
- package/2022-08-04/index.ts +12 -13
- package/2022-10-31/index.d.ts +12 -13
- package/2022-10-31/index.ts +12 -13
- package/2022-11-30/index.d.ts +12 -13
- package/2022-11-30/index.ts +12 -13
- package/2023-03-01/index.d.ts +12 -13
- package/2023-03-01/index.ts +12 -13
- package/2023-07-01/index.d.ts +12 -13
- package/2023-07-01/index.ts +12 -13
- package/experimental/index.d.ts +12 -175
- package/experimental/index.ts +12 -175
- package/index.d.ts +12 -13
- package/index.ts +12 -13
- package/latest/index.d.ts +12 -172
- package/latest/index.ts +12 -172
- package/oldest/index.d.ts +12 -13
- package/oldest/index.ts +12 -13
- package/package.json +1 -1
package/2021-11-03/index.d.ts
CHANGED
|
@@ -287,7 +287,6 @@ interface ServiceWorkerGlobalScope extends WorkerGlobalScope {
|
|
|
287
287
|
FixedLengthStream: typeof FixedLengthStream;
|
|
288
288
|
IdentityTransformStream: typeof IdentityTransformStream;
|
|
289
289
|
HTMLRewriter: typeof HTMLRewriter;
|
|
290
|
-
Performance: typeof Performance;
|
|
291
290
|
}
|
|
292
291
|
declare function addEventListener<Type extends keyof WorkerGlobalScopeEventMap>(
|
|
293
292
|
type: Type,
|
|
@@ -444,6 +443,18 @@ declare abstract class PromiseRejectionEvent extends Event {
|
|
|
444
443
|
/* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PromiseRejectionEvent/reason) */
|
|
445
444
|
readonly reason: any;
|
|
446
445
|
}
|
|
446
|
+
/**
|
|
447
|
+
* The Workers runtime supports a subset of the Performance API, used to measure timing and performance,
|
|
448
|
+
* as well as timing of subrequests and other operations.
|
|
449
|
+
*
|
|
450
|
+
* [Cloudflare Docs Reference](https://developers.cloudflare.com/workers/runtime-apis/performance/)
|
|
451
|
+
*/
|
|
452
|
+
interface Performance {
|
|
453
|
+
/* [Cloudflare Docs Reference](https://developers.cloudflare.com/workers/runtime-apis/performance/#performancetimeorigin) */
|
|
454
|
+
readonly timeOrigin: number;
|
|
455
|
+
/* [Cloudflare Docs Reference](https://developers.cloudflare.com/workers/runtime-apis/performance/#performancenow) */
|
|
456
|
+
now(): number;
|
|
457
|
+
}
|
|
447
458
|
interface AlarmInvocationInfo {
|
|
448
459
|
readonly isRetry: boolean;
|
|
449
460
|
readonly retryCount: number;
|
|
@@ -3099,18 +3110,6 @@ interface WorkerLoaderWorkerCode {
|
|
|
3099
3110
|
tails?: Fetcher[];
|
|
3100
3111
|
streamingTails?: Fetcher[];
|
|
3101
3112
|
}
|
|
3102
|
-
/**
|
|
3103
|
-
* The Workers runtime supports a subset of the Performance API, used to measure timing and performance,
|
|
3104
|
-
* as well as timing of subrequests and other operations.
|
|
3105
|
-
*
|
|
3106
|
-
* [Cloudflare Docs Reference](https://developers.cloudflare.com/workers/runtime-apis/performance/)
|
|
3107
|
-
*/
|
|
3108
|
-
declare abstract class Performance {
|
|
3109
|
-
/* [Cloudflare Docs Reference](https://developers.cloudflare.com/workers/runtime-apis/performance/#performancetimeorigin) */
|
|
3110
|
-
get timeOrigin(): number;
|
|
3111
|
-
/* [Cloudflare Docs Reference](https://developers.cloudflare.com/workers/runtime-apis/performance/#performancenow) */
|
|
3112
|
-
now(): number;
|
|
3113
|
-
}
|
|
3114
3113
|
type AiImageClassificationInput = {
|
|
3115
3114
|
image: number[];
|
|
3116
3115
|
};
|
package/2021-11-03/index.ts
CHANGED
|
@@ -287,7 +287,6 @@ export interface ServiceWorkerGlobalScope extends WorkerGlobalScope {
|
|
|
287
287
|
FixedLengthStream: typeof FixedLengthStream;
|
|
288
288
|
IdentityTransformStream: typeof IdentityTransformStream;
|
|
289
289
|
HTMLRewriter: typeof HTMLRewriter;
|
|
290
|
-
Performance: typeof Performance;
|
|
291
290
|
}
|
|
292
291
|
export declare function addEventListener<
|
|
293
292
|
Type extends keyof WorkerGlobalScopeEventMap,
|
|
@@ -449,6 +448,18 @@ export declare abstract class PromiseRejectionEvent extends Event {
|
|
|
449
448
|
/* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PromiseRejectionEvent/reason) */
|
|
450
449
|
readonly reason: any;
|
|
451
450
|
}
|
|
451
|
+
/**
|
|
452
|
+
* The Workers runtime supports a subset of the Performance API, used to measure timing and performance,
|
|
453
|
+
* as well as timing of subrequests and other operations.
|
|
454
|
+
*
|
|
455
|
+
* [Cloudflare Docs Reference](https://developers.cloudflare.com/workers/runtime-apis/performance/)
|
|
456
|
+
*/
|
|
457
|
+
export interface Performance {
|
|
458
|
+
/* [Cloudflare Docs Reference](https://developers.cloudflare.com/workers/runtime-apis/performance/#performancetimeorigin) */
|
|
459
|
+
readonly timeOrigin: number;
|
|
460
|
+
/* [Cloudflare Docs Reference](https://developers.cloudflare.com/workers/runtime-apis/performance/#performancenow) */
|
|
461
|
+
now(): number;
|
|
462
|
+
}
|
|
452
463
|
export interface AlarmInvocationInfo {
|
|
453
464
|
readonly isRetry: boolean;
|
|
454
465
|
readonly retryCount: number;
|
|
@@ -3110,18 +3121,6 @@ export interface WorkerLoaderWorkerCode {
|
|
|
3110
3121
|
tails?: Fetcher[];
|
|
3111
3122
|
streamingTails?: Fetcher[];
|
|
3112
3123
|
}
|
|
3113
|
-
/**
|
|
3114
|
-
* The Workers runtime supports a subset of the Performance API, used to measure timing and performance,
|
|
3115
|
-
* as well as timing of subrequests and other operations.
|
|
3116
|
-
*
|
|
3117
|
-
* [Cloudflare Docs Reference](https://developers.cloudflare.com/workers/runtime-apis/performance/)
|
|
3118
|
-
*/
|
|
3119
|
-
export declare abstract class Performance {
|
|
3120
|
-
/* [Cloudflare Docs Reference](https://developers.cloudflare.com/workers/runtime-apis/performance/#performancetimeorigin) */
|
|
3121
|
-
get timeOrigin(): number;
|
|
3122
|
-
/* [Cloudflare Docs Reference](https://developers.cloudflare.com/workers/runtime-apis/performance/#performancenow) */
|
|
3123
|
-
now(): number;
|
|
3124
|
-
}
|
|
3125
3124
|
export type AiImageClassificationInput = {
|
|
3126
3125
|
image: number[];
|
|
3127
3126
|
};
|
package/2022-01-31/index.d.ts
CHANGED
|
@@ -287,7 +287,6 @@ interface ServiceWorkerGlobalScope extends WorkerGlobalScope {
|
|
|
287
287
|
FixedLengthStream: typeof FixedLengthStream;
|
|
288
288
|
IdentityTransformStream: typeof IdentityTransformStream;
|
|
289
289
|
HTMLRewriter: typeof HTMLRewriter;
|
|
290
|
-
Performance: typeof Performance;
|
|
291
290
|
}
|
|
292
291
|
declare function addEventListener<Type extends keyof WorkerGlobalScopeEventMap>(
|
|
293
292
|
type: Type,
|
|
@@ -444,6 +443,18 @@ declare abstract class PromiseRejectionEvent extends Event {
|
|
|
444
443
|
/* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PromiseRejectionEvent/reason) */
|
|
445
444
|
readonly reason: any;
|
|
446
445
|
}
|
|
446
|
+
/**
|
|
447
|
+
* The Workers runtime supports a subset of the Performance API, used to measure timing and performance,
|
|
448
|
+
* as well as timing of subrequests and other operations.
|
|
449
|
+
*
|
|
450
|
+
* [Cloudflare Docs Reference](https://developers.cloudflare.com/workers/runtime-apis/performance/)
|
|
451
|
+
*/
|
|
452
|
+
interface Performance {
|
|
453
|
+
/* [Cloudflare Docs Reference](https://developers.cloudflare.com/workers/runtime-apis/performance/#performancetimeorigin) */
|
|
454
|
+
readonly timeOrigin: number;
|
|
455
|
+
/* [Cloudflare Docs Reference](https://developers.cloudflare.com/workers/runtime-apis/performance/#performancenow) */
|
|
456
|
+
now(): number;
|
|
457
|
+
}
|
|
447
458
|
interface AlarmInvocationInfo {
|
|
448
459
|
readonly isRetry: boolean;
|
|
449
460
|
readonly retryCount: number;
|
|
@@ -3125,18 +3136,6 @@ interface WorkerLoaderWorkerCode {
|
|
|
3125
3136
|
tails?: Fetcher[];
|
|
3126
3137
|
streamingTails?: Fetcher[];
|
|
3127
3138
|
}
|
|
3128
|
-
/**
|
|
3129
|
-
* The Workers runtime supports a subset of the Performance API, used to measure timing and performance,
|
|
3130
|
-
* as well as timing of subrequests and other operations.
|
|
3131
|
-
*
|
|
3132
|
-
* [Cloudflare Docs Reference](https://developers.cloudflare.com/workers/runtime-apis/performance/)
|
|
3133
|
-
*/
|
|
3134
|
-
declare abstract class Performance {
|
|
3135
|
-
/* [Cloudflare Docs Reference](https://developers.cloudflare.com/workers/runtime-apis/performance/#performancetimeorigin) */
|
|
3136
|
-
get timeOrigin(): number;
|
|
3137
|
-
/* [Cloudflare Docs Reference](https://developers.cloudflare.com/workers/runtime-apis/performance/#performancenow) */
|
|
3138
|
-
now(): number;
|
|
3139
|
-
}
|
|
3140
3139
|
type AiImageClassificationInput = {
|
|
3141
3140
|
image: number[];
|
|
3142
3141
|
};
|
package/2022-01-31/index.ts
CHANGED
|
@@ -287,7 +287,6 @@ export interface ServiceWorkerGlobalScope extends WorkerGlobalScope {
|
|
|
287
287
|
FixedLengthStream: typeof FixedLengthStream;
|
|
288
288
|
IdentityTransformStream: typeof IdentityTransformStream;
|
|
289
289
|
HTMLRewriter: typeof HTMLRewriter;
|
|
290
|
-
Performance: typeof Performance;
|
|
291
290
|
}
|
|
292
291
|
export declare function addEventListener<
|
|
293
292
|
Type extends keyof WorkerGlobalScopeEventMap,
|
|
@@ -449,6 +448,18 @@ export declare abstract class PromiseRejectionEvent extends Event {
|
|
|
449
448
|
/* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PromiseRejectionEvent/reason) */
|
|
450
449
|
readonly reason: any;
|
|
451
450
|
}
|
|
451
|
+
/**
|
|
452
|
+
* The Workers runtime supports a subset of the Performance API, used to measure timing and performance,
|
|
453
|
+
* as well as timing of subrequests and other operations.
|
|
454
|
+
*
|
|
455
|
+
* [Cloudflare Docs Reference](https://developers.cloudflare.com/workers/runtime-apis/performance/)
|
|
456
|
+
*/
|
|
457
|
+
export interface Performance {
|
|
458
|
+
/* [Cloudflare Docs Reference](https://developers.cloudflare.com/workers/runtime-apis/performance/#performancetimeorigin) */
|
|
459
|
+
readonly timeOrigin: number;
|
|
460
|
+
/* [Cloudflare Docs Reference](https://developers.cloudflare.com/workers/runtime-apis/performance/#performancenow) */
|
|
461
|
+
now(): number;
|
|
462
|
+
}
|
|
452
463
|
export interface AlarmInvocationInfo {
|
|
453
464
|
readonly isRetry: boolean;
|
|
454
465
|
readonly retryCount: number;
|
|
@@ -3136,18 +3147,6 @@ export interface WorkerLoaderWorkerCode {
|
|
|
3136
3147
|
tails?: Fetcher[];
|
|
3137
3148
|
streamingTails?: Fetcher[];
|
|
3138
3149
|
}
|
|
3139
|
-
/**
|
|
3140
|
-
* The Workers runtime supports a subset of the Performance API, used to measure timing and performance,
|
|
3141
|
-
* as well as timing of subrequests and other operations.
|
|
3142
|
-
*
|
|
3143
|
-
* [Cloudflare Docs Reference](https://developers.cloudflare.com/workers/runtime-apis/performance/)
|
|
3144
|
-
*/
|
|
3145
|
-
export declare abstract class Performance {
|
|
3146
|
-
/* [Cloudflare Docs Reference](https://developers.cloudflare.com/workers/runtime-apis/performance/#performancetimeorigin) */
|
|
3147
|
-
get timeOrigin(): number;
|
|
3148
|
-
/* [Cloudflare Docs Reference](https://developers.cloudflare.com/workers/runtime-apis/performance/#performancenow) */
|
|
3149
|
-
now(): number;
|
|
3150
|
-
}
|
|
3151
3150
|
export type AiImageClassificationInput = {
|
|
3152
3151
|
image: number[];
|
|
3153
3152
|
};
|
package/2022-03-21/index.d.ts
CHANGED
|
@@ -289,7 +289,6 @@ interface ServiceWorkerGlobalScope extends WorkerGlobalScope {
|
|
|
289
289
|
FixedLengthStream: typeof FixedLengthStream;
|
|
290
290
|
IdentityTransformStream: typeof IdentityTransformStream;
|
|
291
291
|
HTMLRewriter: typeof HTMLRewriter;
|
|
292
|
-
Performance: typeof Performance;
|
|
293
292
|
}
|
|
294
293
|
declare function addEventListener<Type extends keyof WorkerGlobalScopeEventMap>(
|
|
295
294
|
type: Type,
|
|
@@ -462,6 +461,18 @@ declare abstract class Navigator {
|
|
|
462
461
|
readonly userAgent: string;
|
|
463
462
|
readonly hardwareConcurrency: number;
|
|
464
463
|
}
|
|
464
|
+
/**
|
|
465
|
+
* The Workers runtime supports a subset of the Performance API, used to measure timing and performance,
|
|
466
|
+
* as well as timing of subrequests and other operations.
|
|
467
|
+
*
|
|
468
|
+
* [Cloudflare Docs Reference](https://developers.cloudflare.com/workers/runtime-apis/performance/)
|
|
469
|
+
*/
|
|
470
|
+
interface Performance {
|
|
471
|
+
/* [Cloudflare Docs Reference](https://developers.cloudflare.com/workers/runtime-apis/performance/#performancetimeorigin) */
|
|
472
|
+
readonly timeOrigin: number;
|
|
473
|
+
/* [Cloudflare Docs Reference](https://developers.cloudflare.com/workers/runtime-apis/performance/#performancenow) */
|
|
474
|
+
now(): number;
|
|
475
|
+
}
|
|
465
476
|
interface AlarmInvocationInfo {
|
|
466
477
|
readonly isRetry: boolean;
|
|
467
478
|
readonly retryCount: number;
|
|
@@ -3143,18 +3154,6 @@ interface WorkerLoaderWorkerCode {
|
|
|
3143
3154
|
tails?: Fetcher[];
|
|
3144
3155
|
streamingTails?: Fetcher[];
|
|
3145
3156
|
}
|
|
3146
|
-
/**
|
|
3147
|
-
* The Workers runtime supports a subset of the Performance API, used to measure timing and performance,
|
|
3148
|
-
* as well as timing of subrequests and other operations.
|
|
3149
|
-
*
|
|
3150
|
-
* [Cloudflare Docs Reference](https://developers.cloudflare.com/workers/runtime-apis/performance/)
|
|
3151
|
-
*/
|
|
3152
|
-
declare abstract class Performance {
|
|
3153
|
-
/* [Cloudflare Docs Reference](https://developers.cloudflare.com/workers/runtime-apis/performance/#performancetimeorigin) */
|
|
3154
|
-
get timeOrigin(): number;
|
|
3155
|
-
/* [Cloudflare Docs Reference](https://developers.cloudflare.com/workers/runtime-apis/performance/#performancenow) */
|
|
3156
|
-
now(): number;
|
|
3157
|
-
}
|
|
3158
3157
|
type AiImageClassificationInput = {
|
|
3159
3158
|
image: number[];
|
|
3160
3159
|
};
|
package/2022-03-21/index.ts
CHANGED
|
@@ -289,7 +289,6 @@ export interface ServiceWorkerGlobalScope extends WorkerGlobalScope {
|
|
|
289
289
|
FixedLengthStream: typeof FixedLengthStream;
|
|
290
290
|
IdentityTransformStream: typeof IdentityTransformStream;
|
|
291
291
|
HTMLRewriter: typeof HTMLRewriter;
|
|
292
|
-
Performance: typeof Performance;
|
|
293
292
|
}
|
|
294
293
|
export declare function addEventListener<
|
|
295
294
|
Type extends keyof WorkerGlobalScopeEventMap,
|
|
@@ -467,6 +466,18 @@ export declare abstract class Navigator {
|
|
|
467
466
|
readonly userAgent: string;
|
|
468
467
|
readonly hardwareConcurrency: number;
|
|
469
468
|
}
|
|
469
|
+
/**
|
|
470
|
+
* The Workers runtime supports a subset of the Performance API, used to measure timing and performance,
|
|
471
|
+
* as well as timing of subrequests and other operations.
|
|
472
|
+
*
|
|
473
|
+
* [Cloudflare Docs Reference](https://developers.cloudflare.com/workers/runtime-apis/performance/)
|
|
474
|
+
*/
|
|
475
|
+
export interface Performance {
|
|
476
|
+
/* [Cloudflare Docs Reference](https://developers.cloudflare.com/workers/runtime-apis/performance/#performancetimeorigin) */
|
|
477
|
+
readonly timeOrigin: number;
|
|
478
|
+
/* [Cloudflare Docs Reference](https://developers.cloudflare.com/workers/runtime-apis/performance/#performancenow) */
|
|
479
|
+
now(): number;
|
|
480
|
+
}
|
|
470
481
|
export interface AlarmInvocationInfo {
|
|
471
482
|
readonly isRetry: boolean;
|
|
472
483
|
readonly retryCount: number;
|
|
@@ -3154,18 +3165,6 @@ export interface WorkerLoaderWorkerCode {
|
|
|
3154
3165
|
tails?: Fetcher[];
|
|
3155
3166
|
streamingTails?: Fetcher[];
|
|
3156
3167
|
}
|
|
3157
|
-
/**
|
|
3158
|
-
* The Workers runtime supports a subset of the Performance API, used to measure timing and performance,
|
|
3159
|
-
* as well as timing of subrequests and other operations.
|
|
3160
|
-
*
|
|
3161
|
-
* [Cloudflare Docs Reference](https://developers.cloudflare.com/workers/runtime-apis/performance/)
|
|
3162
|
-
*/
|
|
3163
|
-
export declare abstract class Performance {
|
|
3164
|
-
/* [Cloudflare Docs Reference](https://developers.cloudflare.com/workers/runtime-apis/performance/#performancetimeorigin) */
|
|
3165
|
-
get timeOrigin(): number;
|
|
3166
|
-
/* [Cloudflare Docs Reference](https://developers.cloudflare.com/workers/runtime-apis/performance/#performancenow) */
|
|
3167
|
-
now(): number;
|
|
3168
|
-
}
|
|
3169
3168
|
export type AiImageClassificationInput = {
|
|
3170
3169
|
image: number[];
|
|
3171
3170
|
};
|
package/2022-08-04/index.d.ts
CHANGED
|
@@ -289,7 +289,6 @@ interface ServiceWorkerGlobalScope extends WorkerGlobalScope {
|
|
|
289
289
|
FixedLengthStream: typeof FixedLengthStream;
|
|
290
290
|
IdentityTransformStream: typeof IdentityTransformStream;
|
|
291
291
|
HTMLRewriter: typeof HTMLRewriter;
|
|
292
|
-
Performance: typeof Performance;
|
|
293
292
|
}
|
|
294
293
|
declare function addEventListener<Type extends keyof WorkerGlobalScopeEventMap>(
|
|
295
294
|
type: Type,
|
|
@@ -462,6 +461,18 @@ declare abstract class Navigator {
|
|
|
462
461
|
readonly userAgent: string;
|
|
463
462
|
readonly hardwareConcurrency: number;
|
|
464
463
|
}
|
|
464
|
+
/**
|
|
465
|
+
* The Workers runtime supports a subset of the Performance API, used to measure timing and performance,
|
|
466
|
+
* as well as timing of subrequests and other operations.
|
|
467
|
+
*
|
|
468
|
+
* [Cloudflare Docs Reference](https://developers.cloudflare.com/workers/runtime-apis/performance/)
|
|
469
|
+
*/
|
|
470
|
+
interface Performance {
|
|
471
|
+
/* [Cloudflare Docs Reference](https://developers.cloudflare.com/workers/runtime-apis/performance/#performancetimeorigin) */
|
|
472
|
+
readonly timeOrigin: number;
|
|
473
|
+
/* [Cloudflare Docs Reference](https://developers.cloudflare.com/workers/runtime-apis/performance/#performancenow) */
|
|
474
|
+
now(): number;
|
|
475
|
+
}
|
|
465
476
|
interface AlarmInvocationInfo {
|
|
466
477
|
readonly isRetry: boolean;
|
|
467
478
|
readonly retryCount: number;
|
|
@@ -3144,18 +3155,6 @@ interface WorkerLoaderWorkerCode {
|
|
|
3144
3155
|
tails?: Fetcher[];
|
|
3145
3156
|
streamingTails?: Fetcher[];
|
|
3146
3157
|
}
|
|
3147
|
-
/**
|
|
3148
|
-
* The Workers runtime supports a subset of the Performance API, used to measure timing and performance,
|
|
3149
|
-
* as well as timing of subrequests and other operations.
|
|
3150
|
-
*
|
|
3151
|
-
* [Cloudflare Docs Reference](https://developers.cloudflare.com/workers/runtime-apis/performance/)
|
|
3152
|
-
*/
|
|
3153
|
-
declare abstract class Performance {
|
|
3154
|
-
/* [Cloudflare Docs Reference](https://developers.cloudflare.com/workers/runtime-apis/performance/#performancetimeorigin) */
|
|
3155
|
-
get timeOrigin(): number;
|
|
3156
|
-
/* [Cloudflare Docs Reference](https://developers.cloudflare.com/workers/runtime-apis/performance/#performancenow) */
|
|
3157
|
-
now(): number;
|
|
3158
|
-
}
|
|
3159
3158
|
type AiImageClassificationInput = {
|
|
3160
3159
|
image: number[];
|
|
3161
3160
|
};
|
package/2022-08-04/index.ts
CHANGED
|
@@ -289,7 +289,6 @@ export interface ServiceWorkerGlobalScope extends WorkerGlobalScope {
|
|
|
289
289
|
FixedLengthStream: typeof FixedLengthStream;
|
|
290
290
|
IdentityTransformStream: typeof IdentityTransformStream;
|
|
291
291
|
HTMLRewriter: typeof HTMLRewriter;
|
|
292
|
-
Performance: typeof Performance;
|
|
293
292
|
}
|
|
294
293
|
export declare function addEventListener<
|
|
295
294
|
Type extends keyof WorkerGlobalScopeEventMap,
|
|
@@ -467,6 +466,18 @@ export declare abstract class Navigator {
|
|
|
467
466
|
readonly userAgent: string;
|
|
468
467
|
readonly hardwareConcurrency: number;
|
|
469
468
|
}
|
|
469
|
+
/**
|
|
470
|
+
* The Workers runtime supports a subset of the Performance API, used to measure timing and performance,
|
|
471
|
+
* as well as timing of subrequests and other operations.
|
|
472
|
+
*
|
|
473
|
+
* [Cloudflare Docs Reference](https://developers.cloudflare.com/workers/runtime-apis/performance/)
|
|
474
|
+
*/
|
|
475
|
+
export interface Performance {
|
|
476
|
+
/* [Cloudflare Docs Reference](https://developers.cloudflare.com/workers/runtime-apis/performance/#performancetimeorigin) */
|
|
477
|
+
readonly timeOrigin: number;
|
|
478
|
+
/* [Cloudflare Docs Reference](https://developers.cloudflare.com/workers/runtime-apis/performance/#performancenow) */
|
|
479
|
+
now(): number;
|
|
480
|
+
}
|
|
470
481
|
export interface AlarmInvocationInfo {
|
|
471
482
|
readonly isRetry: boolean;
|
|
472
483
|
readonly retryCount: number;
|
|
@@ -3155,18 +3166,6 @@ export interface WorkerLoaderWorkerCode {
|
|
|
3155
3166
|
tails?: Fetcher[];
|
|
3156
3167
|
streamingTails?: Fetcher[];
|
|
3157
3168
|
}
|
|
3158
|
-
/**
|
|
3159
|
-
* The Workers runtime supports a subset of the Performance API, used to measure timing and performance,
|
|
3160
|
-
* as well as timing of subrequests and other operations.
|
|
3161
|
-
*
|
|
3162
|
-
* [Cloudflare Docs Reference](https://developers.cloudflare.com/workers/runtime-apis/performance/)
|
|
3163
|
-
*/
|
|
3164
|
-
export declare abstract class Performance {
|
|
3165
|
-
/* [Cloudflare Docs Reference](https://developers.cloudflare.com/workers/runtime-apis/performance/#performancetimeorigin) */
|
|
3166
|
-
get timeOrigin(): number;
|
|
3167
|
-
/* [Cloudflare Docs Reference](https://developers.cloudflare.com/workers/runtime-apis/performance/#performancenow) */
|
|
3168
|
-
now(): number;
|
|
3169
|
-
}
|
|
3170
3169
|
export type AiImageClassificationInput = {
|
|
3171
3170
|
image: number[];
|
|
3172
3171
|
};
|
package/2022-10-31/index.d.ts
CHANGED
|
@@ -289,7 +289,6 @@ interface ServiceWorkerGlobalScope extends WorkerGlobalScope {
|
|
|
289
289
|
FixedLengthStream: typeof FixedLengthStream;
|
|
290
290
|
IdentityTransformStream: typeof IdentityTransformStream;
|
|
291
291
|
HTMLRewriter: typeof HTMLRewriter;
|
|
292
|
-
Performance: typeof Performance;
|
|
293
292
|
}
|
|
294
293
|
declare function addEventListener<Type extends keyof WorkerGlobalScopeEventMap>(
|
|
295
294
|
type: Type,
|
|
@@ -462,6 +461,18 @@ declare abstract class Navigator {
|
|
|
462
461
|
readonly userAgent: string;
|
|
463
462
|
readonly hardwareConcurrency: number;
|
|
464
463
|
}
|
|
464
|
+
/**
|
|
465
|
+
* The Workers runtime supports a subset of the Performance API, used to measure timing and performance,
|
|
466
|
+
* as well as timing of subrequests and other operations.
|
|
467
|
+
*
|
|
468
|
+
* [Cloudflare Docs Reference](https://developers.cloudflare.com/workers/runtime-apis/performance/)
|
|
469
|
+
*/
|
|
470
|
+
interface Performance {
|
|
471
|
+
/* [Cloudflare Docs Reference](https://developers.cloudflare.com/workers/runtime-apis/performance/#performancetimeorigin) */
|
|
472
|
+
readonly timeOrigin: number;
|
|
473
|
+
/* [Cloudflare Docs Reference](https://developers.cloudflare.com/workers/runtime-apis/performance/#performancenow) */
|
|
474
|
+
now(): number;
|
|
475
|
+
}
|
|
465
476
|
interface AlarmInvocationInfo {
|
|
466
477
|
readonly isRetry: boolean;
|
|
467
478
|
readonly retryCount: number;
|
|
@@ -3148,18 +3159,6 @@ interface WorkerLoaderWorkerCode {
|
|
|
3148
3159
|
tails?: Fetcher[];
|
|
3149
3160
|
streamingTails?: Fetcher[];
|
|
3150
3161
|
}
|
|
3151
|
-
/**
|
|
3152
|
-
* The Workers runtime supports a subset of the Performance API, used to measure timing and performance,
|
|
3153
|
-
* as well as timing of subrequests and other operations.
|
|
3154
|
-
*
|
|
3155
|
-
* [Cloudflare Docs Reference](https://developers.cloudflare.com/workers/runtime-apis/performance/)
|
|
3156
|
-
*/
|
|
3157
|
-
declare abstract class Performance {
|
|
3158
|
-
/* [Cloudflare Docs Reference](https://developers.cloudflare.com/workers/runtime-apis/performance/#performancetimeorigin) */
|
|
3159
|
-
get timeOrigin(): number;
|
|
3160
|
-
/* [Cloudflare Docs Reference](https://developers.cloudflare.com/workers/runtime-apis/performance/#performancenow) */
|
|
3161
|
-
now(): number;
|
|
3162
|
-
}
|
|
3163
3162
|
type AiImageClassificationInput = {
|
|
3164
3163
|
image: number[];
|
|
3165
3164
|
};
|
package/2022-10-31/index.ts
CHANGED
|
@@ -289,7 +289,6 @@ export interface ServiceWorkerGlobalScope extends WorkerGlobalScope {
|
|
|
289
289
|
FixedLengthStream: typeof FixedLengthStream;
|
|
290
290
|
IdentityTransformStream: typeof IdentityTransformStream;
|
|
291
291
|
HTMLRewriter: typeof HTMLRewriter;
|
|
292
|
-
Performance: typeof Performance;
|
|
293
292
|
}
|
|
294
293
|
export declare function addEventListener<
|
|
295
294
|
Type extends keyof WorkerGlobalScopeEventMap,
|
|
@@ -467,6 +466,18 @@ export declare abstract class Navigator {
|
|
|
467
466
|
readonly userAgent: string;
|
|
468
467
|
readonly hardwareConcurrency: number;
|
|
469
468
|
}
|
|
469
|
+
/**
|
|
470
|
+
* The Workers runtime supports a subset of the Performance API, used to measure timing and performance,
|
|
471
|
+
* as well as timing of subrequests and other operations.
|
|
472
|
+
*
|
|
473
|
+
* [Cloudflare Docs Reference](https://developers.cloudflare.com/workers/runtime-apis/performance/)
|
|
474
|
+
*/
|
|
475
|
+
export interface Performance {
|
|
476
|
+
/* [Cloudflare Docs Reference](https://developers.cloudflare.com/workers/runtime-apis/performance/#performancetimeorigin) */
|
|
477
|
+
readonly timeOrigin: number;
|
|
478
|
+
/* [Cloudflare Docs Reference](https://developers.cloudflare.com/workers/runtime-apis/performance/#performancenow) */
|
|
479
|
+
now(): number;
|
|
480
|
+
}
|
|
470
481
|
export interface AlarmInvocationInfo {
|
|
471
482
|
readonly isRetry: boolean;
|
|
472
483
|
readonly retryCount: number;
|
|
@@ -3159,18 +3170,6 @@ export interface WorkerLoaderWorkerCode {
|
|
|
3159
3170
|
tails?: Fetcher[];
|
|
3160
3171
|
streamingTails?: Fetcher[];
|
|
3161
3172
|
}
|
|
3162
|
-
/**
|
|
3163
|
-
* The Workers runtime supports a subset of the Performance API, used to measure timing and performance,
|
|
3164
|
-
* as well as timing of subrequests and other operations.
|
|
3165
|
-
*
|
|
3166
|
-
* [Cloudflare Docs Reference](https://developers.cloudflare.com/workers/runtime-apis/performance/)
|
|
3167
|
-
*/
|
|
3168
|
-
export declare abstract class Performance {
|
|
3169
|
-
/* [Cloudflare Docs Reference](https://developers.cloudflare.com/workers/runtime-apis/performance/#performancetimeorigin) */
|
|
3170
|
-
get timeOrigin(): number;
|
|
3171
|
-
/* [Cloudflare Docs Reference](https://developers.cloudflare.com/workers/runtime-apis/performance/#performancenow) */
|
|
3172
|
-
now(): number;
|
|
3173
|
-
}
|
|
3174
3173
|
export type AiImageClassificationInput = {
|
|
3175
3174
|
image: number[];
|
|
3176
3175
|
};
|
package/2022-11-30/index.d.ts
CHANGED
|
@@ -294,7 +294,6 @@ interface ServiceWorkerGlobalScope extends WorkerGlobalScope {
|
|
|
294
294
|
FixedLengthStream: typeof FixedLengthStream;
|
|
295
295
|
IdentityTransformStream: typeof IdentityTransformStream;
|
|
296
296
|
HTMLRewriter: typeof HTMLRewriter;
|
|
297
|
-
Performance: typeof Performance;
|
|
298
297
|
}
|
|
299
298
|
declare function addEventListener<Type extends keyof WorkerGlobalScopeEventMap>(
|
|
300
299
|
type: Type,
|
|
@@ -467,6 +466,18 @@ declare abstract class Navigator {
|
|
|
467
466
|
readonly userAgent: string;
|
|
468
467
|
readonly hardwareConcurrency: number;
|
|
469
468
|
}
|
|
469
|
+
/**
|
|
470
|
+
* The Workers runtime supports a subset of the Performance API, used to measure timing and performance,
|
|
471
|
+
* as well as timing of subrequests and other operations.
|
|
472
|
+
*
|
|
473
|
+
* [Cloudflare Docs Reference](https://developers.cloudflare.com/workers/runtime-apis/performance/)
|
|
474
|
+
*/
|
|
475
|
+
interface Performance {
|
|
476
|
+
/* [Cloudflare Docs Reference](https://developers.cloudflare.com/workers/runtime-apis/performance/#performancetimeorigin) */
|
|
477
|
+
readonly timeOrigin: number;
|
|
478
|
+
/* [Cloudflare Docs Reference](https://developers.cloudflare.com/workers/runtime-apis/performance/#performancenow) */
|
|
479
|
+
now(): number;
|
|
480
|
+
}
|
|
470
481
|
interface AlarmInvocationInfo {
|
|
471
482
|
readonly isRetry: boolean;
|
|
472
483
|
readonly retryCount: number;
|
|
@@ -3153,18 +3164,6 @@ interface WorkerLoaderWorkerCode {
|
|
|
3153
3164
|
tails?: Fetcher[];
|
|
3154
3165
|
streamingTails?: Fetcher[];
|
|
3155
3166
|
}
|
|
3156
|
-
/**
|
|
3157
|
-
* The Workers runtime supports a subset of the Performance API, used to measure timing and performance,
|
|
3158
|
-
* as well as timing of subrequests and other operations.
|
|
3159
|
-
*
|
|
3160
|
-
* [Cloudflare Docs Reference](https://developers.cloudflare.com/workers/runtime-apis/performance/)
|
|
3161
|
-
*/
|
|
3162
|
-
declare abstract class Performance {
|
|
3163
|
-
/* [Cloudflare Docs Reference](https://developers.cloudflare.com/workers/runtime-apis/performance/#performancetimeorigin) */
|
|
3164
|
-
get timeOrigin(): number;
|
|
3165
|
-
/* [Cloudflare Docs Reference](https://developers.cloudflare.com/workers/runtime-apis/performance/#performancenow) */
|
|
3166
|
-
now(): number;
|
|
3167
|
-
}
|
|
3168
3167
|
type AiImageClassificationInput = {
|
|
3169
3168
|
image: number[];
|
|
3170
3169
|
};
|
package/2022-11-30/index.ts
CHANGED
|
@@ -294,7 +294,6 @@ export interface ServiceWorkerGlobalScope extends WorkerGlobalScope {
|
|
|
294
294
|
FixedLengthStream: typeof FixedLengthStream;
|
|
295
295
|
IdentityTransformStream: typeof IdentityTransformStream;
|
|
296
296
|
HTMLRewriter: typeof HTMLRewriter;
|
|
297
|
-
Performance: typeof Performance;
|
|
298
297
|
}
|
|
299
298
|
export declare function addEventListener<
|
|
300
299
|
Type extends keyof WorkerGlobalScopeEventMap,
|
|
@@ -472,6 +471,18 @@ export declare abstract class Navigator {
|
|
|
472
471
|
readonly userAgent: string;
|
|
473
472
|
readonly hardwareConcurrency: number;
|
|
474
473
|
}
|
|
474
|
+
/**
|
|
475
|
+
* The Workers runtime supports a subset of the Performance API, used to measure timing and performance,
|
|
476
|
+
* as well as timing of subrequests and other operations.
|
|
477
|
+
*
|
|
478
|
+
* [Cloudflare Docs Reference](https://developers.cloudflare.com/workers/runtime-apis/performance/)
|
|
479
|
+
*/
|
|
480
|
+
export interface Performance {
|
|
481
|
+
/* [Cloudflare Docs Reference](https://developers.cloudflare.com/workers/runtime-apis/performance/#performancetimeorigin) */
|
|
482
|
+
readonly timeOrigin: number;
|
|
483
|
+
/* [Cloudflare Docs Reference](https://developers.cloudflare.com/workers/runtime-apis/performance/#performancenow) */
|
|
484
|
+
now(): number;
|
|
485
|
+
}
|
|
475
486
|
export interface AlarmInvocationInfo {
|
|
476
487
|
readonly isRetry: boolean;
|
|
477
488
|
readonly retryCount: number;
|
|
@@ -3164,18 +3175,6 @@ export interface WorkerLoaderWorkerCode {
|
|
|
3164
3175
|
tails?: Fetcher[];
|
|
3165
3176
|
streamingTails?: Fetcher[];
|
|
3166
3177
|
}
|
|
3167
|
-
/**
|
|
3168
|
-
* The Workers runtime supports a subset of the Performance API, used to measure timing and performance,
|
|
3169
|
-
* as well as timing of subrequests and other operations.
|
|
3170
|
-
*
|
|
3171
|
-
* [Cloudflare Docs Reference](https://developers.cloudflare.com/workers/runtime-apis/performance/)
|
|
3172
|
-
*/
|
|
3173
|
-
export declare abstract class Performance {
|
|
3174
|
-
/* [Cloudflare Docs Reference](https://developers.cloudflare.com/workers/runtime-apis/performance/#performancetimeorigin) */
|
|
3175
|
-
get timeOrigin(): number;
|
|
3176
|
-
/* [Cloudflare Docs Reference](https://developers.cloudflare.com/workers/runtime-apis/performance/#performancenow) */
|
|
3177
|
-
now(): number;
|
|
3178
|
-
}
|
|
3179
3178
|
export type AiImageClassificationInput = {
|
|
3180
3179
|
image: number[];
|
|
3181
3180
|
};
|
package/2023-03-01/index.d.ts
CHANGED
|
@@ -294,7 +294,6 @@ interface ServiceWorkerGlobalScope extends WorkerGlobalScope {
|
|
|
294
294
|
FixedLengthStream: typeof FixedLengthStream;
|
|
295
295
|
IdentityTransformStream: typeof IdentityTransformStream;
|
|
296
296
|
HTMLRewriter: typeof HTMLRewriter;
|
|
297
|
-
Performance: typeof Performance;
|
|
298
297
|
}
|
|
299
298
|
declare function addEventListener<Type extends keyof WorkerGlobalScopeEventMap>(
|
|
300
299
|
type: Type,
|
|
@@ -467,6 +466,18 @@ declare abstract class Navigator {
|
|
|
467
466
|
readonly userAgent: string;
|
|
468
467
|
readonly hardwareConcurrency: number;
|
|
469
468
|
}
|
|
469
|
+
/**
|
|
470
|
+
* The Workers runtime supports a subset of the Performance API, used to measure timing and performance,
|
|
471
|
+
* as well as timing of subrequests and other operations.
|
|
472
|
+
*
|
|
473
|
+
* [Cloudflare Docs Reference](https://developers.cloudflare.com/workers/runtime-apis/performance/)
|
|
474
|
+
*/
|
|
475
|
+
interface Performance {
|
|
476
|
+
/* [Cloudflare Docs Reference](https://developers.cloudflare.com/workers/runtime-apis/performance/#performancetimeorigin) */
|
|
477
|
+
readonly timeOrigin: number;
|
|
478
|
+
/* [Cloudflare Docs Reference](https://developers.cloudflare.com/workers/runtime-apis/performance/#performancenow) */
|
|
479
|
+
now(): number;
|
|
480
|
+
}
|
|
470
481
|
interface AlarmInvocationInfo {
|
|
471
482
|
readonly isRetry: boolean;
|
|
472
483
|
readonly retryCount: number;
|
|
@@ -3155,18 +3166,6 @@ interface WorkerLoaderWorkerCode {
|
|
|
3155
3166
|
tails?: Fetcher[];
|
|
3156
3167
|
streamingTails?: Fetcher[];
|
|
3157
3168
|
}
|
|
3158
|
-
/**
|
|
3159
|
-
* The Workers runtime supports a subset of the Performance API, used to measure timing and performance,
|
|
3160
|
-
* as well as timing of subrequests and other operations.
|
|
3161
|
-
*
|
|
3162
|
-
* [Cloudflare Docs Reference](https://developers.cloudflare.com/workers/runtime-apis/performance/)
|
|
3163
|
-
*/
|
|
3164
|
-
declare abstract class Performance {
|
|
3165
|
-
/* [Cloudflare Docs Reference](https://developers.cloudflare.com/workers/runtime-apis/performance/#performancetimeorigin) */
|
|
3166
|
-
get timeOrigin(): number;
|
|
3167
|
-
/* [Cloudflare Docs Reference](https://developers.cloudflare.com/workers/runtime-apis/performance/#performancenow) */
|
|
3168
|
-
now(): number;
|
|
3169
|
-
}
|
|
3170
3169
|
type AiImageClassificationInput = {
|
|
3171
3170
|
image: number[];
|
|
3172
3171
|
};
|
package/2023-03-01/index.ts
CHANGED
|
@@ -294,7 +294,6 @@ export interface ServiceWorkerGlobalScope extends WorkerGlobalScope {
|
|
|
294
294
|
FixedLengthStream: typeof FixedLengthStream;
|
|
295
295
|
IdentityTransformStream: typeof IdentityTransformStream;
|
|
296
296
|
HTMLRewriter: typeof HTMLRewriter;
|
|
297
|
-
Performance: typeof Performance;
|
|
298
297
|
}
|
|
299
298
|
export declare function addEventListener<
|
|
300
299
|
Type extends keyof WorkerGlobalScopeEventMap,
|
|
@@ -472,6 +471,18 @@ export declare abstract class Navigator {
|
|
|
472
471
|
readonly userAgent: string;
|
|
473
472
|
readonly hardwareConcurrency: number;
|
|
474
473
|
}
|
|
474
|
+
/**
|
|
475
|
+
* The Workers runtime supports a subset of the Performance API, used to measure timing and performance,
|
|
476
|
+
* as well as timing of subrequests and other operations.
|
|
477
|
+
*
|
|
478
|
+
* [Cloudflare Docs Reference](https://developers.cloudflare.com/workers/runtime-apis/performance/)
|
|
479
|
+
*/
|
|
480
|
+
export interface Performance {
|
|
481
|
+
/* [Cloudflare Docs Reference](https://developers.cloudflare.com/workers/runtime-apis/performance/#performancetimeorigin) */
|
|
482
|
+
readonly timeOrigin: number;
|
|
483
|
+
/* [Cloudflare Docs Reference](https://developers.cloudflare.com/workers/runtime-apis/performance/#performancenow) */
|
|
484
|
+
now(): number;
|
|
485
|
+
}
|
|
475
486
|
export interface AlarmInvocationInfo {
|
|
476
487
|
readonly isRetry: boolean;
|
|
477
488
|
readonly retryCount: number;
|
|
@@ -3166,18 +3177,6 @@ export interface WorkerLoaderWorkerCode {
|
|
|
3166
3177
|
tails?: Fetcher[];
|
|
3167
3178
|
streamingTails?: Fetcher[];
|
|
3168
3179
|
}
|
|
3169
|
-
/**
|
|
3170
|
-
* The Workers runtime supports a subset of the Performance API, used to measure timing and performance,
|
|
3171
|
-
* as well as timing of subrequests and other operations.
|
|
3172
|
-
*
|
|
3173
|
-
* [Cloudflare Docs Reference](https://developers.cloudflare.com/workers/runtime-apis/performance/)
|
|
3174
|
-
*/
|
|
3175
|
-
export declare abstract class Performance {
|
|
3176
|
-
/* [Cloudflare Docs Reference](https://developers.cloudflare.com/workers/runtime-apis/performance/#performancetimeorigin) */
|
|
3177
|
-
get timeOrigin(): number;
|
|
3178
|
-
/* [Cloudflare Docs Reference](https://developers.cloudflare.com/workers/runtime-apis/performance/#performancenow) */
|
|
3179
|
-
now(): number;
|
|
3180
|
-
}
|
|
3181
3180
|
export type AiImageClassificationInput = {
|
|
3182
3181
|
image: number[];
|
|
3183
3182
|
};
|