@@ -70,8 +70,8 @@ interface CloseEventInit extends EventInit {
70
70
}
71
71
72
72
interface CryptoKeyPair {
73
- privateKey ? : CryptoKey ;
74
- publicKey ? : CryptoKey ;
73
+ privateKey : CryptoKey ;
74
+ publicKey : CryptoKey ;
75
75
}
76
76
77
77
interface CustomEventInit < T = any > extends EventInit {
@@ -190,6 +190,18 @@ interface FilePropertyBag extends BlobPropertyBag {
190
190
lastModified ?: number ;
191
191
}
192
192
193
+ interface FileSystemGetDirectoryOptions {
194
+ create ?: boolean ;
195
+ }
196
+
197
+ interface FileSystemGetFileOptions {
198
+ create ?: boolean ;
199
+ }
200
+
201
+ interface FileSystemRemoveOptions {
202
+ recursive ?: boolean ;
203
+ }
204
+
193
205
interface FontFaceDescriptors {
194
206
display ?: string ;
195
207
featureSettings ?: string ;
@@ -353,7 +365,7 @@ interface NotificationOptions {
353
365
requireInteraction ?: boolean ;
354
366
silent ?: boolean ;
355
367
tag ?: string ;
356
- timestamp ?: DOMTimeStamp ;
368
+ timestamp ?: EpochTimeStamp ;
357
369
vibrate ?: VibratePattern ;
358
370
}
359
371
@@ -402,7 +414,7 @@ interface PushEventInit extends ExtendableEventInit {
402
414
403
415
interface PushSubscriptionJSON {
404
416
endpoint ?: string ;
405
- expirationTime ?: DOMTimeStamp | null ;
417
+ expirationTime ?: EpochTimeStamp | null ;
406
418
keys ?: Record < string , string > ;
407
419
}
408
420
@@ -558,7 +570,7 @@ interface StreamPipeOptions {
558
570
}
559
571
560
572
interface StructuredSerializeOptions {
561
- transfer ?: any [ ] ;
573
+ transfer ?: Transferable [ ] ;
562
574
}
563
575
564
576
interface TextDecodeOptions {
@@ -645,7 +657,7 @@ interface AbortController {
645
657
/** Returns the AbortSignal object associated with this object. */
646
658
readonly signal : AbortSignal ;
647
659
/** Invoking this method will set this object's AbortSignal's aborted flag and signal to any observers that the associated activity is to be aborted. */
648
- abort ( ) : void ;
660
+ abort ( reason ?: any ) : void ;
649
661
}
650
662
651
663
declare var AbortController : {
@@ -671,7 +683,7 @@ interface AbortSignal extends EventTarget {
671
683
declare var AbortSignal : {
672
684
prototype : AbortSignal ;
673
685
new ( ) : AbortSignal ;
674
- // abort(): AbortSignal; - To be re-added in the future
686
+ abort ( reason ?: any ) : AbortSignal ;
675
687
} ;
676
688
677
689
interface AbstractWorkerEventMap {
@@ -885,6 +897,8 @@ interface Crypto {
885
897
/** Available only in secure contexts. */
886
898
readonly subtle : SubtleCrypto ;
887
899
getRandomValues < T extends ArrayBufferView | null > ( array : T ) : T ;
900
+ /** Available only in secure contexts. */
901
+ randomUUID ( ) : string ;
888
902
}
889
903
890
904
declare var Crypto : {
@@ -1338,8 +1352,10 @@ interface EventSource extends EventTarget {
1338
1352
readonly CONNECTING : number ;
1339
1353
readonly OPEN : number ;
1340
1354
addEventListener < K extends keyof EventSourceEventMap > ( type : K , listener : ( this : EventSource , ev : EventSourceEventMap [ K ] ) => any , options ?: boolean | AddEventListenerOptions ) : void ;
1355
+ addEventListener ( type : string , listener : ( this : EventSource , event : MessageEvent ) => any , options ?: boolean | AddEventListenerOptions ) : void ;
1341
1356
addEventListener ( type : string , listener : EventListenerOrEventListenerObject , options ?: boolean | AddEventListenerOptions ) : void ;
1342
1357
removeEventListener < K extends keyof EventSourceEventMap > ( type : K , listener : ( this : EventSource , ev : EventSourceEventMap [ K ] ) => any , options ?: boolean | EventListenerOptions ) : void ;
1358
+ removeEventListener ( type : string , listener : ( this : EventSource , event : MessageEvent ) => any , options ?: boolean | EventListenerOptions ) : void ;
1343
1359
removeEventListener ( type : string , listener : EventListenerOrEventListenerObject , options ?: boolean | EventListenerOptions ) : void ;
1344
1360
}
1345
1361
@@ -1498,6 +1514,41 @@ declare var FileReaderSync: {
1498
1514
new ( ) : FileReaderSync ;
1499
1515
} ;
1500
1516
1517
+ /** Available only in secure contexts. */
1518
+ interface FileSystemDirectoryHandle extends FileSystemHandle {
1519
+ getDirectoryHandle ( name : string , options ?: FileSystemGetDirectoryOptions ) : Promise < FileSystemDirectoryHandle > ;
1520
+ getFileHandle ( name : string , options ?: FileSystemGetFileOptions ) : Promise < FileSystemFileHandle > ;
1521
+ removeEntry ( name : string , options ?: FileSystemRemoveOptions ) : Promise < void > ;
1522
+ resolve ( possibleDescendant : FileSystemHandle ) : Promise < string [ ] | null > ;
1523
+ }
1524
+
1525
+ declare var FileSystemDirectoryHandle : {
1526
+ prototype : FileSystemDirectoryHandle ;
1527
+ new ( ) : FileSystemDirectoryHandle ;
1528
+ } ;
1529
+
1530
+ /** Available only in secure contexts. */
1531
+ interface FileSystemFileHandle extends FileSystemHandle {
1532
+ getFile ( ) : Promise < File > ;
1533
+ }
1534
+
1535
+ declare var FileSystemFileHandle : {
1536
+ prototype : FileSystemFileHandle ;
1537
+ new ( ) : FileSystemFileHandle ;
1538
+ } ;
1539
+
1540
+ /** Available only in secure contexts. */
1541
+ interface FileSystemHandle {
1542
+ readonly kind : FileSystemHandleKind ;
1543
+ readonly name : string ;
1544
+ isSameEntry ( other : FileSystemHandle ) : Promise < boolean > ;
1545
+ }
1546
+
1547
+ declare var FileSystemHandle : {
1548
+ prototype : FileSystemHandle ;
1549
+ new ( ) : FileSystemHandle ;
1550
+ } ;
1551
+
1501
1552
interface FontFace {
1502
1553
ascentOverride : string ;
1503
1554
descentOverride : string ;
@@ -1961,6 +2012,7 @@ interface IDBTransactionEventMap {
1961
2012
interface IDBTransaction extends EventTarget {
1962
2013
/** Returns the transaction's connection. */
1963
2014
readonly db : IDBDatabase ;
2015
+ readonly durability : IDBTransactionDurability ;
1964
2016
/** If the transaction was aborted, returns the error (a DOMException) providing the reason. */
1965
2017
readonly error : DOMException | null ;
1966
2018
/** Returns the mode the transaction was created with ("readonly" or "readwrite"), or "versionchange" for an upgrade transaction. */
@@ -2461,7 +2513,7 @@ declare var PushEvent: {
2461
2513
*/
2462
2514
interface PushManager {
2463
2515
getSubscription ( ) : Promise < PushSubscription | null > ;
2464
- permissionState ( options ?: PushSubscriptionOptionsInit ) : Promise < PushPermissionState > ;
2516
+ permissionState ( options ?: PushSubscriptionOptionsInit ) : Promise < PermissionState > ;
2465
2517
subscribe ( options ?: PushSubscriptionOptionsInit ) : Promise < PushSubscription > ;
2466
2518
}
2467
2519
@@ -2778,6 +2830,7 @@ declare var SharedWorkerGlobalScope: {
2778
2830
/** Available only in secure contexts. */
2779
2831
interface StorageManager {
2780
2832
estimate ( ) : Promise < StorageEstimate > ;
2833
+ getDirectory ( ) : Promise < FileSystemDirectoryHandle > ;
2781
2834
persisted ( ) : Promise < boolean > ;
2782
2835
}
2783
2836
@@ -3114,6 +3167,13 @@ interface WEBGL_lose_context {
3114
3167
restoreContext ( ) : void ;
3115
3168
}
3116
3169
3170
+ interface WEBGL_multi_draw {
3171
+ multiDrawArraysInstancedWEBGL ( mode : GLenum , firstsList : Int32Array | GLint [ ] , firstsOffset : GLuint , countsList : Int32Array | GLsizei [ ] , countsOffset : GLuint , instanceCountsList : Int32Array | GLsizei [ ] , instanceCountsOffset : GLuint , drawcount : GLsizei ) : void ;
3172
+ multiDrawArraysWEBGL ( mode : GLenum , firstsList : Int32Array | GLint [ ] , firstsOffset : GLuint , countsList : Int32Array | GLsizei [ ] , countsOffset : GLuint , drawcount : GLsizei ) : void ;
3173
+ multiDrawElementsInstancedWEBGL ( mode : GLenum , countsList : Int32Array | GLint [ ] , countsOffset : GLuint , type : GLenum , offsetsList : Int32Array | GLsizei [ ] , offsetsOffset : GLuint , instanceCountsList : Int32Array | GLsizei [ ] , instanceCountsOffset : GLuint , drawcount : GLsizei ) : void ;
3174
+ multiDrawElementsWEBGL ( mode : GLenum , countsList : Int32Array | GLint [ ] , countsOffset : GLuint , type : GLenum , offsetsList : Int32Array | GLsizei [ ] , offsetsOffset : GLuint , drawcount : GLsizei ) : void ;
3175
+ }
3176
+
3117
3177
interface WebGL2RenderingContext extends WebGL2RenderingContextBase , WebGL2RenderingContextOverloads , WebGLRenderingContextBase {
3118
3178
}
3119
3179
@@ -5055,7 +5115,7 @@ declare var WebSocket: {
5055
5115
/** This ServiceWorker API interface represents the scope of a service worker client that is a document in a browser context, controlled by an active worker. The service worker client independently selects and uses a service worker for its own loading and sub-resources. */
5056
5116
interface WindowClient extends Client {
5057
5117
readonly focused : boolean ;
5058
- readonly visibilityState : VisibilityState ;
5118
+ readonly visibilityState : DocumentVisibilityState ;
5059
5119
focus ( ) : Promise < WindowClient > ;
5060
5120
navigate ( url : string | URL ) : Promise < WindowClient | null > ;
5061
5121
}
@@ -5076,12 +5136,13 @@ interface WindowOrWorkerGlobalScope {
5076
5136
readonly performance : Performance ;
5077
5137
atob ( data : string ) : string ;
5078
5138
btoa ( data : string ) : string ;
5079
- clearInterval ( handle ?: number ) : void ;
5080
- clearTimeout ( handle ?: number ) : void ;
5139
+ clearInterval ( id ?: number ) : void ;
5140
+ clearTimeout ( id ?: number ) : void ;
5081
5141
createImageBitmap ( image : ImageBitmapSource , options ?: ImageBitmapOptions ) : Promise < ImageBitmap > ;
5082
5142
createImageBitmap ( image : ImageBitmapSource , sx : number , sy : number , sw : number , sh : number , options ?: ImageBitmapOptions ) : Promise < ImageBitmap > ;
5083
5143
fetch ( input : RequestInfo , init ?: RequestInit ) : Promise < Response > ;
5084
5144
queueMicrotask ( callback : VoidFunction ) : void ;
5145
+ reportError ( e : any ) : void ;
5085
5146
setInterval ( handler : TimerHandler , timeout ?: number , ...arguments : any [ ] ) : number ;
5086
5147
setTimeout ( handler : TimerHandler , timeout ?: number , ...arguments : any [ ] ) : number ;
5087
5148
}
@@ -5498,7 +5559,7 @@ declare namespace WebAssembly {
5498
5559
5499
5560
type ImportExportKind = "function" | "global" | "memory" | "table" ;
5500
5561
type TableKind = "anyfunc" | "externref" ;
5501
- type ValueType = "anyfunc" | "externref" | "f32" | "f64" | "i32" | "i64" ;
5562
+ type ValueType = "anyfunc" | "externref" | "f32" | "f64" | "i32" | "i64" | "v128" ;
5502
5563
type ExportValue = Function | Global | Memory | Table ;
5503
5564
type Exports = Record < string , ExportValue > ;
5504
5565
type ImportValue = ExportValue | number ;
@@ -5610,12 +5671,13 @@ declare var origin: string;
5610
5671
declare var performance : Performance ;
5611
5672
declare function atob ( data : string ) : string ;
5612
5673
declare function btoa ( data : string ) : string ;
5613
- declare function clearInterval ( handle ?: number ) : void ;
5614
- declare function clearTimeout ( handle ?: number ) : void ;
5674
+ declare function clearInterval ( id ?: number ) : void ;
5675
+ declare function clearTimeout ( id ?: number ) : void ;
5615
5676
declare function createImageBitmap ( image : ImageBitmapSource , options ?: ImageBitmapOptions ) : Promise < ImageBitmap > ;
5616
5677
declare function createImageBitmap ( image : ImageBitmapSource , sx : number , sy : number , sw : number , sh : number , options ?: ImageBitmapOptions ) : Promise < ImageBitmap > ;
5617
5678
declare function fetch ( input : RequestInfo , init ?: RequestInit ) : Promise < Response > ;
5618
5679
declare function queueMicrotask ( callback : VoidFunction ) : void ;
5680
+ declare function reportError ( e : any ) : void ;
5619
5681
declare function setInterval ( handler : TimerHandler , timeout ?: number , ...arguments : any [ ] ) : number ;
5620
5682
declare function setTimeout ( handler : TimerHandler , timeout ?: number , ...arguments : any [ ] ) : number ;
5621
5683
declare function cancelAnimationFrame ( handle : number ) : void ;
@@ -5632,7 +5694,7 @@ type BodyInit = ReadableStream | XMLHttpRequestBodyInit;
5632
5694
type BufferSource = ArrayBufferView | ArrayBuffer ;
5633
5695
type CanvasImageSource = ImageBitmap | OffscreenCanvas ;
5634
5696
type DOMHighResTimeStamp = number ;
5635
- type DOMTimeStamp = number ;
5697
+ type EpochTimeStamp = number ;
5636
5698
type EventListenerOrEventListenerObject = EventListener | EventListenerObject ;
5637
5699
type Float32List = Float32Array | GLfloat [ ] ;
5638
5700
type FormDataEntryValue = File | string ;
@@ -5673,13 +5735,16 @@ type ClientTypes = "all" | "sharedworker" | "window" | "worker";
5673
5735
type ColorGamut = "p3" | "rec2020" | "srgb" ;
5674
5736
type ColorSpaceConversion = "default" | "none" ;
5675
5737
type ConnectionType = "bluetooth" | "cellular" | "ethernet" | "mixed" | "none" | "other" | "unknown" | "wifi" ;
5738
+ type DocumentVisibilityState = "hidden" | "visible" ;
5676
5739
type EndingType = "native" | "transparent" ;
5740
+ type FileSystemHandleKind = "directory" | "file" ;
5677
5741
type FontFaceLoadStatus = "error" | "loaded" | "loading" | "unloaded" ;
5678
5742
type FontFaceSetLoadStatus = "loaded" | "loading" ;
5679
5743
type FrameType = "auxiliary" | "nested" | "none" | "top-level" ;
5680
5744
type HdrMetadataType = "smpteSt2086" | "smpteSt2094-10" | "smpteSt2094-40" ;
5681
5745
type IDBCursorDirection = "next" | "nextunique" | "prev" | "prevunique" ;
5682
5746
type IDBRequestReadyState = "done" | "pending" ;
5747
+ type IDBTransactionDurability = "default" | "relaxed" | "strict" ;
5683
5748
type IDBTransactionMode = "readonly" | "readwrite" | "versionchange" ;
5684
5749
type ImageOrientation = "flipY" | "none" ;
5685
5750
type KeyFormat = "jwk" | "pkcs8" | "raw" | "spki" ;
@@ -5694,7 +5759,6 @@ type PermissionState = "denied" | "granted" | "prompt";
5694
5759
type PredefinedColorSpace = "display-p3" | "srgb" ;
5695
5760
type PremultiplyAlpha = "default" | "none" | "premultiply" ;
5696
5761
type PushEncryptionKeyName = "auth" | "p256dh" ;
5697
- type PushPermissionState = "denied" | "granted" | "prompt" ;
5698
5762
type ReferrerPolicy = "" | "no-referrer" | "no-referrer-when-downgrade" | "origin" | "origin-when-cross-origin" | "same-origin" | "strict-origin" | "strict-origin-when-cross-origin" | "unsafe-url" ;
5699
5763
type RequestCache = "default" | "force-cache" | "no-cache" | "no-store" | "only-if-cached" | "reload" ;
5700
5764
type RequestCredentials = "include" | "omit" | "same-origin" ;
@@ -5707,7 +5771,6 @@ type SecurityPolicyViolationEventDisposition = "enforce" | "report";
5707
5771
type ServiceWorkerState = "activated" | "activating" | "installed" | "installing" | "parsed" | "redundant" ;
5708
5772
type ServiceWorkerUpdateViaCache = "all" | "imports" | "none" ;
5709
5773
type TransferFunction = "hlg" | "pq" | "srgb" ;
5710
- type VisibilityState = "hidden" | "visible" ;
5711
5774
type WebGLPowerPreference = "default" | "high-performance" | "low-power" ;
5712
5775
type WorkerType = "classic" | "module" ;
5713
5776
type XMLHttpRequestResponseType = "" | "arraybuffer" | "blob" | "document" | "json" | "text" ;
0 commit comments