Skip to content
This repository has been archived by the owner on Feb 7, 2023. It is now read-only.

Commit

Permalink
Updated types for 2022-06-20
Browse files Browse the repository at this point in the history
  • Loading branch information
autodecl-bot[bot] authored and vlovich committed Jun 24, 2022
1 parent ee6e4bb commit f45703c
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 124 deletions.
5 changes: 5 additions & 0 deletions .changeset/2022-06-20.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@cloudflare/workers-types": minor
---

Updated auto-generated types @ 2022-06-20
14 changes: 1 addition & 13 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,6 @@ declare class AbortSignal extends EventTarget {
throwIfAborted(): void;
}

interface AnalyticsEngine {
writeEvent(event?: AnalyticsEngineEvent): void;
logEvent(event?: AnalyticsEngineEvent): void;
}

interface AnalyticsEngineEvent {
accountId?: any;
indexId?: any;
version?: any;
doubles?: number[];
blobs?: (ArrayBuffer | string | null)[];
}

interface BasicImageTransformations {
/**
* Maximum width in image pixels. The value must be an integer.
Expand Down Expand Up @@ -1118,6 +1105,7 @@ declare abstract class R2Object {
readonly uploaded: Date;
readonly httpMetadata: R2HTTPMetadata;
readonly customMetadata: Record<string, string>;
readonly range?: R2Range;
writeHttpMetadata(headers: Headers): void;
}

Expand Down
119 changes: 8 additions & 111 deletions src/workers.json
Original file line number Diff line number Diff line change
Expand Up @@ -111,117 +111,6 @@
],
"kind": "class"
},
"AnalyticsEngine": {
"name": "AnalyticsEngine",
"members": [
{
"name": "writeEvent",
"type": {
"params": [
{
"name": "event",
"type": {
"name": "AnalyticsEngineEvent",
"optional": true
}
}
],
"returns": {
"name": "void"
}
}
},
{
"name": "logEvent",
"type": {
"params": [
{
"name": "event",
"type": {
"name": "AnalyticsEngineEvent",
"optional": true
}
}
],
"returns": {
"name": "void"
}
}
}
],
"kind": "class"
},
"AnalyticsEngineEvent": {
"name": "AnalyticsEngineEvent",
"members": [
{
"name": "accountId",
"type": {
"name": "any",
"optional": true
}
},
{
"name": "indexId",
"type": {
"name": "any",
"optional": true
}
},
{
"name": "version",
"type": {
"name": "any",
"optional": true
}
},
{
"name": "doubles",
"type": {
"name": "[]",
"args": [
{
"name": "double"
}
],
"optional": true
}
},
{
"name": "blobs",
"type": {
"name": "[]",
"args": [
{
"name": "|",
"args": [
{
"name": "|",
"args": [
{
"name": "ArrayBuffer"
},
{
"name": "string"
}
]
},
{
"name": "null"
}
]
}
],
"optional": true
}
}
],
"comment": {
"text": "",
"renamed": true
},
"kind": "struct"
},
"BasicImageTransformations": {
"name": "BasicImageTransformations",
"members": [
Expand Down Expand Up @@ -7907,6 +7796,14 @@
},
"readonly": true
},
{
"name": "range",
"type": {
"name": "R2Range",
"optional": true
},
"readonly": true
},
{
"name": "writeHttpMetadata",
"type": {
Expand Down

0 comments on commit f45703c

Please sign in to comment.