@workers-community/workers-types 4.20250918.0 → 4.20250919.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/index.d.ts +12 -13
- package/index.ts +12 -13
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -466,18 +466,6 @@ declare abstract class Navigator {
|
|
|
466
466
|
readonly userAgent: string;
|
|
467
467
|
readonly hardwareConcurrency: number;
|
|
468
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
|
-
}
|
|
481
469
|
interface AlarmInvocationInfo {
|
|
482
470
|
readonly isRetry: boolean;
|
|
483
471
|
readonly retryCount: number;
|
|
@@ -3166,6 +3154,18 @@ interface WorkerLoaderWorkerCode {
|
|
|
3166
3154
|
tails?: Fetcher[];
|
|
3167
3155
|
streamingTails?: Fetcher[];
|
|
3168
3156
|
}
|
|
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
|
+
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
3169
|
type AiImageClassificationInput = {
|
|
3170
3170
|
image: number[];
|
|
3171
3171
|
};
|
|
@@ -9004,7 +9004,6 @@ declare namespace TailStream {
|
|
|
9004
9004
|
}
|
|
9005
9005
|
interface JsRpcEventInfo {
|
|
9006
9006
|
readonly type: "jsrpc";
|
|
9007
|
-
readonly methodName: string;
|
|
9008
9007
|
}
|
|
9009
9008
|
interface ScheduledEventInfo {
|
|
9010
9009
|
readonly type: "scheduled";
|
package/index.ts
CHANGED
|
@@ -471,18 +471,6 @@ export declare abstract class Navigator {
|
|
|
471
471
|
readonly userAgent: string;
|
|
472
472
|
readonly hardwareConcurrency: number;
|
|
473
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
|
-
}
|
|
486
474
|
export interface AlarmInvocationInfo {
|
|
487
475
|
readonly isRetry: boolean;
|
|
488
476
|
readonly retryCount: number;
|
|
@@ -3177,6 +3165,18 @@ export interface WorkerLoaderWorkerCode {
|
|
|
3177
3165
|
tails?: Fetcher[];
|
|
3178
3166
|
streamingTails?: Fetcher[];
|
|
3179
3167
|
}
|
|
3168
|
+
/**
|
|
3169
|
+
* The Workers runtime supports a subset of the Performance API, used to measure timing and performance,
|
|
3170
|
+
* as well as timing of subrequests and other operations.
|
|
3171
|
+
*
|
|
3172
|
+
* [Cloudflare Docs Reference](https://developers.cloudflare.com/workers/runtime-apis/performance/)
|
|
3173
|
+
*/
|
|
3174
|
+
export declare abstract class Performance {
|
|
3175
|
+
/* [Cloudflare Docs Reference](https://developers.cloudflare.com/workers/runtime-apis/performance/#performancetimeorigin) */
|
|
3176
|
+
get timeOrigin(): number;
|
|
3177
|
+
/* [Cloudflare Docs Reference](https://developers.cloudflare.com/workers/runtime-apis/performance/#performancenow) */
|
|
3178
|
+
now(): number;
|
|
3179
|
+
}
|
|
3180
3180
|
export type AiImageClassificationInput = {
|
|
3181
3181
|
image: number[];
|
|
3182
3182
|
};
|
|
@@ -8964,7 +8964,6 @@ export declare namespace TailStream {
|
|
|
8964
8964
|
}
|
|
8965
8965
|
interface JsRpcEventInfo {
|
|
8966
8966
|
readonly type: "jsrpc";
|
|
8967
|
-
readonly methodName: string;
|
|
8968
8967
|
}
|
|
8969
8968
|
interface ScheduledEventInfo {
|
|
8970
8969
|
readonly type: "scheduled";
|