@@ -70,8 +70,8 @@ interface CloseEventInit extends EventInit {
7070}
7171
7272interface CryptoKeyPair {
73- privateKey ? : CryptoKey ;
74- publicKey ? : CryptoKey ;
73+ privateKey : CryptoKey ;
74+ publicKey : CryptoKey ;
7575}
7676
7777interface CustomEventInit < T = any > extends EventInit {
@@ -190,6 +190,18 @@ interface FilePropertyBag extends BlobPropertyBag {
190190 lastModified ?: number ;
191191}
192192
193+ interface FileSystemGetDirectoryOptions {
194+ create ?: boolean ;
195+ }
196+
197+ interface FileSystemGetFileOptions {
198+ create ?: boolean ;
199+ }
200+
201+ interface FileSystemRemoveOptions {
202+ recursive ?: boolean ;
203+ }
204+
193205interface FontFaceDescriptors {
194206 display ?: string ;
195207 featureSettings ?: string ;
@@ -353,7 +365,7 @@ interface NotificationOptions {
353365 requireInteraction ?: boolean ;
354366 silent ?: boolean ;
355367 tag ?: string ;
356- timestamp ?: DOMTimeStamp ;
368+ timestamp ?: EpochTimeStamp ;
357369 vibrate ?: VibratePattern ;
358370}
359371
@@ -402,7 +414,7 @@ interface PushEventInit extends ExtendableEventInit {
402414
403415interface PushSubscriptionJSON {
404416 endpoint ?: string ;
405- expirationTime ?: DOMTimeStamp | null ;
417+ expirationTime ?: EpochTimeStamp | null ;
406418 keys ?: Record < string , string > ;
407419}
408420
@@ -558,7 +570,7 @@ interface StreamPipeOptions {
558570}
559571
560572interface StructuredSerializeOptions {
561- transfer ?: any [ ] ;
573+ transfer ?: Transferable [ ] ;
562574}
563575
564576interface TextDecodeOptions {
@@ -645,7 +657,7 @@ interface AbortController {
645657 /** Returns the AbortSignal object associated with this object. */
646658 readonly signal : AbortSignal ;
647659 /** 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 ;
649661}
650662
651663declare var AbortController : {
@@ -671,7 +683,7 @@ interface AbortSignal extends EventTarget {
671683declare var AbortSignal : {
672684 prototype : AbortSignal ;
673685 new ( ) : AbortSignal ;
674- // abort(): AbortSignal; - To be re-added in the future
686+ abort ( reason ?: any ) : AbortSignal ;
675687} ;
676688
677689interface AbstractWorkerEventMap {
@@ -885,6 +897,8 @@ interface Crypto {
885897 /** Available only in secure contexts. */
886898 readonly subtle : SubtleCrypto ;
887899 getRandomValues < T extends ArrayBufferView | null > ( array : T ) : T ;
900+ /** Available only in secure contexts. */
901+ randomUUID ( ) : string ;
888902}
889903
890904declare var Crypto : {
@@ -1338,8 +1352,10 @@ interface EventSource extends EventTarget {
13381352 readonly CONNECTING : number ;
13391353 readonly OPEN : number ;
13401354 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 ;
13411356 addEventListener ( type : string , listener : EventListenerOrEventListenerObject , options ?: boolean | AddEventListenerOptions ) : void ;
13421357 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 ;
13431359 removeEventListener ( type : string , listener : EventListenerOrEventListenerObject , options ?: boolean | EventListenerOptions ) : void ;
13441360}
13451361
@@ -1498,6 +1514,41 @@ declare var FileReaderSync: {
14981514 new ( ) : FileReaderSync ;
14991515} ;
15001516
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+
15011552interface FontFace {
15021553 ascentOverride : string ;
15031554 descentOverride : string ;
@@ -1961,6 +2012,7 @@ interface IDBTransactionEventMap {
19612012interface IDBTransaction extends EventTarget {
19622013 /** Returns the transaction's connection. */
19632014 readonly db : IDBDatabase ;
2015+ readonly durability : IDBTransactionDurability ;
19642016 /** If the transaction was aborted, returns the error (a DOMException) providing the reason. */
19652017 readonly error : DOMException | null ;
19662018 /** Returns the mode the transaction was created with ("readonly" or "readwrite"), or "versionchange" for an upgrade transaction. */
@@ -2461,7 +2513,7 @@ declare var PushEvent: {
24612513 */
24622514interface PushManager {
24632515 getSubscription ( ) : Promise < PushSubscription | null > ;
2464- permissionState ( options ?: PushSubscriptionOptionsInit ) : Promise < PushPermissionState > ;
2516+ permissionState ( options ?: PushSubscriptionOptionsInit ) : Promise < PermissionState > ;
24652517 subscribe ( options ?: PushSubscriptionOptionsInit ) : Promise < PushSubscription > ;
24662518}
24672519
@@ -2778,6 +2830,7 @@ declare var SharedWorkerGlobalScope: {
27782830/** Available only in secure contexts. */
27792831interface StorageManager {
27802832 estimate ( ) : Promise < StorageEstimate > ;
2833+ getDirectory ( ) : Promise < FileSystemDirectoryHandle > ;
27812834 persisted ( ) : Promise < boolean > ;
27822835}
27832836
@@ -3114,6 +3167,13 @@ interface WEBGL_lose_context {
31143167 restoreContext ( ) : void ;
31153168}
31163169
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+
31173177interface WebGL2RenderingContext extends WebGL2RenderingContextBase , WebGL2RenderingContextOverloads , WebGLRenderingContextBase {
31183178}
31193179
@@ -5055,7 +5115,7 @@ declare var WebSocket: {
50555115/** 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. */
50565116interface WindowClient extends Client {
50575117 readonly focused : boolean ;
5058- readonly visibilityState : VisibilityState ;
5118+ readonly visibilityState : DocumentVisibilityState ;
50595119 focus ( ) : Promise < WindowClient > ;
50605120 navigate ( url : string | URL ) : Promise < WindowClient | null > ;
50615121}
@@ -5076,12 +5136,13 @@ interface WindowOrWorkerGlobalScope {
50765136 readonly performance : Performance ;
50775137 atob ( data : string ) : string ;
50785138 btoa ( data : string ) : string ;
5079- clearInterval ( handle ?: number ) : void ;
5080- clearTimeout ( handle ?: number ) : void ;
5139+ clearInterval ( id ?: number ) : void ;
5140+ clearTimeout ( id ?: number ) : void ;
50815141 createImageBitmap ( image : ImageBitmapSource , options ?: ImageBitmapOptions ) : Promise < ImageBitmap > ;
50825142 createImageBitmap ( image : ImageBitmapSource , sx : number , sy : number , sw : number , sh : number , options ?: ImageBitmapOptions ) : Promise < ImageBitmap > ;
50835143 fetch ( input : RequestInfo , init ?: RequestInit ) : Promise < Response > ;
50845144 queueMicrotask ( callback : VoidFunction ) : void ;
5145+ reportError ( e : any ) : void ;
50855146 setInterval ( handler : TimerHandler , timeout ?: number , ...arguments : any [ ] ) : number ;
50865147 setTimeout ( handler : TimerHandler , timeout ?: number , ...arguments : any [ ] ) : number ;
50875148}
@@ -5498,7 +5559,7 @@ declare namespace WebAssembly {
54985559
54995560 type ImportExportKind = "function" | "global" | "memory" | "table" ;
55005561 type TableKind = "anyfunc" | "externref" ;
5501- type ValueType = "anyfunc" | "externref" | "f32" | "f64" | "i32" | "i64" ;
5562+ type ValueType = "anyfunc" | "externref" | "f32" | "f64" | "i32" | "i64" | "v128" ;
55025563 type ExportValue = Function | Global | Memory | Table ;
55035564 type Exports = Record < string , ExportValue > ;
55045565 type ImportValue = ExportValue | number ;
@@ -5610,12 +5671,13 @@ declare var origin: string;
56105671declare var performance : Performance ;
56115672declare function atob ( data : string ) : string ;
56125673declare 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 ;
56155676declare function createImageBitmap ( image : ImageBitmapSource , options ?: ImageBitmapOptions ) : Promise < ImageBitmap > ;
56165677declare function createImageBitmap ( image : ImageBitmapSource , sx : number , sy : number , sw : number , sh : number , options ?: ImageBitmapOptions ) : Promise < ImageBitmap > ;
56175678declare function fetch ( input : RequestInfo , init ?: RequestInit ) : Promise < Response > ;
56185679declare function queueMicrotask ( callback : VoidFunction ) : void ;
5680+ declare function reportError ( e : any ) : void ;
56195681declare function setInterval ( handler : TimerHandler , timeout ?: number , ...arguments : any [ ] ) : number ;
56205682declare function setTimeout ( handler : TimerHandler , timeout ?: number , ...arguments : any [ ] ) : number ;
56215683declare function cancelAnimationFrame ( handle : number ) : void ;
@@ -5632,7 +5694,7 @@ type BodyInit = ReadableStream | XMLHttpRequestBodyInit;
56325694type BufferSource = ArrayBufferView | ArrayBuffer ;
56335695type CanvasImageSource = ImageBitmap | OffscreenCanvas ;
56345696type DOMHighResTimeStamp = number ;
5635- type DOMTimeStamp = number ;
5697+ type EpochTimeStamp = number ;
56365698type EventListenerOrEventListenerObject = EventListener | EventListenerObject ;
56375699type Float32List = Float32Array | GLfloat [ ] ;
56385700type FormDataEntryValue = File | string ;
@@ -5673,13 +5735,16 @@ type ClientTypes = "all" | "sharedworker" | "window" | "worker";
56735735type ColorGamut = "p3" | "rec2020" | "srgb" ;
56745736type ColorSpaceConversion = "default" | "none" ;
56755737type ConnectionType = "bluetooth" | "cellular" | "ethernet" | "mixed" | "none" | "other" | "unknown" | "wifi" ;
5738+ type DocumentVisibilityState = "hidden" | "visible" ;
56765739type EndingType = "native" | "transparent" ;
5740+ type FileSystemHandleKind = "directory" | "file" ;
56775741type FontFaceLoadStatus = "error" | "loaded" | "loading" | "unloaded" ;
56785742type FontFaceSetLoadStatus = "loaded" | "loading" ;
56795743type FrameType = "auxiliary" | "nested" | "none" | "top-level" ;
56805744type HdrMetadataType = "smpteSt2086" | "smpteSt2094-10" | "smpteSt2094-40" ;
56815745type IDBCursorDirection = "next" | "nextunique" | "prev" | "prevunique" ;
56825746type IDBRequestReadyState = "done" | "pending" ;
5747+ type IDBTransactionDurability = "default" | "relaxed" | "strict" ;
56835748type IDBTransactionMode = "readonly" | "readwrite" | "versionchange" ;
56845749type ImageOrientation = "flipY" | "none" ;
56855750type KeyFormat = "jwk" | "pkcs8" | "raw" | "spki" ;
@@ -5694,7 +5759,6 @@ type PermissionState = "denied" | "granted" | "prompt";
56945759type PredefinedColorSpace = "display-p3" | "srgb" ;
56955760type PremultiplyAlpha = "default" | "none" | "premultiply" ;
56965761type PushEncryptionKeyName = "auth" | "p256dh" ;
5697- type PushPermissionState = "denied" | "granted" | "prompt" ;
56985762type ReferrerPolicy = "" | "no-referrer" | "no-referrer-when-downgrade" | "origin" | "origin-when-cross-origin" | "same-origin" | "strict-origin" | "strict-origin-when-cross-origin" | "unsafe-url" ;
56995763type RequestCache = "default" | "force-cache" | "no-cache" | "no-store" | "only-if-cached" | "reload" ;
57005764type RequestCredentials = "include" | "omit" | "same-origin" ;
@@ -5707,7 +5771,6 @@ type SecurityPolicyViolationEventDisposition = "enforce" | "report";
57075771type ServiceWorkerState = "activated" | "activating" | "installed" | "installing" | "parsed" | "redundant" ;
57085772type ServiceWorkerUpdateViaCache = "all" | "imports" | "none" ;
57095773type TransferFunction = "hlg" | "pq" | "srgb" ;
5710- type VisibilityState = "hidden" | "visible" ;
57115774type WebGLPowerPreference = "default" | "high-performance" | "low-power" ;
57125775type WorkerType = "classic" | "module" ;
57135776type XMLHttpRequestResponseType = "" | "arraybuffer" | "blob" | "document" | "json" | "text" ;
0 commit comments