diff --git a/TS.fsx b/TS.fsx index acd5ee7cd..6a6d5b718 100644 --- a/TS.fsx +++ b/TS.fsx @@ -175,7 +175,7 @@ module InputJson = let getItemByName (allItems: InputJsonType.Root []) (itemName: string) (kind: ItemKind) otherFilter = let filter (item: InputJsonType.Root) = - OptionCheckValue itemName item.Name && + (OptionCheckValue itemName item.Name || OptionCheckValue (sprintf "%s?" itemName) item.Name) && item.Kind.ToLower() = kind.ToString() && otherFilter item allItems |> Array.tryFind filter @@ -1066,7 +1066,7 @@ module Emit = | _ -> () let EmitEventHandlers (flavor: Flavor) (prefix: string) (i:Browser.Interface) = - let getOptionsType (addOrRemove: string) = + let getOptionsType (addOrRemove: string) = if addOrRemove = "add" then "AddEventListenerOptions" else "EventListenerOptions" let fPrefix = @@ -1393,7 +1393,11 @@ module Emit = | _ -> Pt.Printl "interface %s extends %s {" dict.Name dict.Extends let emitJsonProperty (p: InputJsonType.Root) = - Pt.Printl "%s: %s;" p.Name.Value p.Type.Value + let readOnlyModifier = + match p.Readonly with + | Some(true) -> "readonly " + | _ -> "" + Pt.Printl "%s%s: %s;" readOnlyModifier p.Name.Value p.Type.Value let removedPropNames = getRemovedItems ItemKind.Property flavor diff --git a/baselines/dom.generated.d.ts b/baselines/dom.generated.d.ts index 4a5dd4b46..ac3fd61fe 100644 --- a/baselines/dom.generated.d.ts +++ b/baselines/dom.generated.d.ts @@ -203,7 +203,7 @@ interface IDBIndexParameters { interface IDBObjectStoreParameters { autoIncrement?: boolean; - keyPath?: IDBKeyPath | null; + keyPath?: string | string[]; } interface IntersectionObserverEntryInit { @@ -773,7 +773,7 @@ interface RequestInit { body?: any; cache?: RequestCache; credentials?: RequestCredentials; - headers?: Headers | string[][]; + headers?: HeadersInit; integrity?: string; keepalive?: boolean; method?: string; @@ -785,7 +785,7 @@ interface RequestInit { } interface ResponseInit { - headers?: Headers | string[][]; + headers?: HeadersInit; status?: number; statusText?: string; } @@ -3901,7 +3901,7 @@ interface Headers { declare var Headers: { prototype: Headers; - new(init?: Headers | string[][] | object): Headers; + new(init?: HeadersInit): Headers; }; interface History { @@ -15115,7 +15115,6 @@ type GLsizeiptr = number; type GLubyte = number; type GLuint = number; type GLushort = number; -type HeadersInit = Headers | string[][]; type IDBKeyPath = string; type KeyFormat = string; type KeyType = string; @@ -15136,6 +15135,7 @@ type MouseWheelEvent = WheelEvent; type ScrollRestoration = "auto" | "manual"; type FormDataEntryValue = string | File; type InsertPosition = "beforebegin" | "afterbegin" | "beforeend" | "afterend"; +type HeadersInit = string[][] | { [key: string]: string }; type AppendMode = "segments" | "sequence"; type AudioContextState = "suspended" | "running" | "closed"; type BiquadFilterType = "lowpass" | "highpass" | "bandpass" | "lowshelf" | "highshelf" | "peaking" | "notch" | "allpass"; diff --git a/baselines/webworker.generated.d.ts b/baselines/webworker.generated.d.ts index d0bcdcf75..5a3c48e58 100644 --- a/baselines/webworker.generated.d.ts +++ b/baselines/webworker.generated.d.ts @@ -37,7 +37,7 @@ interface IDBIndexParameters { interface IDBObjectStoreParameters { autoIncrement?: boolean; - keyPath?: IDBKeyPath | null; + keyPath?: string | string[]; } interface KeyAlgorithm { @@ -74,7 +74,7 @@ interface RequestInit { body?: any; cache?: RequestCache; credentials?: RequestCredentials; - headers?: Headers | string[][]; + headers?: HeadersInit; integrity?: string; keepalive?: boolean; method?: string; @@ -86,7 +86,7 @@ interface RequestInit { } interface ResponseInit { - headers?: Headers | string[][]; + headers?: HeadersInit; status?: number; statusText?: string; } @@ -472,7 +472,7 @@ interface Headers { declare var Headers: { prototype: Headers; - new(init?: Headers | string[][] | object): Headers; + new(init?: HeadersInit): Headers; }; interface IDBCursor { @@ -1890,6 +1890,7 @@ type USVString = string; type IDBValidKey = number | string | Date | IDBArrayKey; type BufferSource = ArrayBuffer | ArrayBufferView; type FormDataEntryValue = string | File; +type HeadersInit = string[][] | { [key: string]: string }; type IDBCursorDirection = "next" | "nextunique" | "prev" | "prevunique"; type IDBRequestReadyState = "pending" | "done"; type IDBTransactionMode = "readonly" | "readwrite" | "versionchange"; diff --git a/inputfiles/addedTypes.json b/inputfiles/addedTypes.json index dec238972..34073991b 100644 --- a/inputfiles/addedTypes.json +++ b/inputfiles/addedTypes.json @@ -3,7 +3,9 @@ "kind": "interface", "name": "BroadcastChannel", "extends": "EventTarget", - "constructorSignatures": ["new(name: string): BroadcastChannel"], + "constructorSignatures": [ + "new(name: string): BroadcastChannel" + ], "properties": [ { "readonly": true, @@ -22,18 +24,22 @@ "methods": [ { "name": "close", - "signatures": ["close(): void"] + "signatures": [ + "close(): void" + ] }, { "name": "postMessage", - "signatures": ["postMessage(message: any): void"] + "signatures": [ + "postMessage(message: any): void" + ] }, { "name": "addEventListener", "signatures": [ "addEventListener(type: K, listener: (this: BroadcastChannel, ev: BroadcastChannelEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void", "addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void" - ] + ] }, { "name": "removeEventListener", @@ -99,7 +105,7 @@ { "kind": "interface", "name": "StorageEventInit", - "flavor": "Web", + "flavor": "Web", "extends": "EventInit", "properties": [ { @@ -197,7 +203,9 @@ "methods": [ { "name": "close", - "signatures": ["close(): void"] + "signatures": [ + "close(): void" + ] } ] }, @@ -206,8 +214,8 @@ "interface": "Window", "name": "createImageBitmap", "signatures": [ - "createImageBitmap(image: HTMLImageElement | SVGImageElement | HTMLVideoElement | HTMLCanvasElement | ImageBitmap | ImageData | Blob, options?: ImageBitmapOptions): Promise", - "createImageBitmap(image: HTMLImageElement | SVGImageElement | HTMLVideoElement | HTMLCanvasElement | ImageBitmap | ImageData | Blob, sx: number, sy: number, sw: number, sh: number, options?: ImageBitmapOptions): Promise" + "createImageBitmap(image: HTMLImageElement | SVGImageElement | HTMLVideoElement | HTMLCanvasElement | ImageBitmap | ImageData | Blob, options?: ImageBitmapOptions): Promise", + "createImageBitmap(image: HTMLImageElement | SVGImageElement | HTMLVideoElement | HTMLCanvasElement | ImageBitmap | ImageData | Blob, sx: number, sy: number, sw: number, sh: number, options?: ImageBitmapOptions): Promise" ] }, { @@ -215,8 +223,8 @@ "interface": "WorkerGlobalScope", "name": "createImageBitmap", "signatures": [ - "createImageBitmap(image: ImageBitmap | ImageData | Blob, options?: ImageBitmapOptions): Promise", - "createImageBitmap(image: ImageBitmap | ImageData | Blob, sx: number, sy: number, sw: number, sh: number, options?: ImageBitmapOptions): Promise" + "createImageBitmap(image: ImageBitmap | ImageData | Blob, options?: ImageBitmapOptions): Promise", + "createImageBitmap(image: ImageBitmap | ImageData | Blob, sx: number, sy: number, sw: number, sh: number, options?: ImageBitmapOptions): Promise" ] }, { @@ -246,27 +254,39 @@ "methods": [ { "name": "append", - "signatures": ["append(name: string, value: string): void"] + "signatures": [ + "append(name: string, value: string): void" + ] }, { "name": "delete", - "signatures": ["delete(name: string): void"] + "signatures": [ + "delete(name: string): void" + ] }, { "name": "get", - "signatures": ["get(name: string): string | null"] + "signatures": [ + "get(name: string): string | null" + ] }, { "name": "getAll", - "signatures": ["getAll(name: string): string[]"] + "signatures": [ + "getAll(name: string): string[]" + ] }, { "name": "has", - "signatures": ["has(name: string): boolean"] + "signatures": [ + "has(name: string): boolean" + ] }, { "name": "set", - "signatures": ["set(name: string, value: string): void"] + "signatures": [ + "set(name: string, value: string): void" + ] } ] }, @@ -312,12 +332,16 @@ "methods": [ { "name": "item", - "signatures": ["item(index: number): TNode"] + "signatures": [ + "item(index: number): TNode" + ] } ], "indexer": [ { - "signatures": ["[index: number]: TNode"] + "signatures": [ + "[index: number]: TNode" + ] } ] }, @@ -329,16 +353,22 @@ "methods": [ { "name": "item", - "signatures": ["item(index: number): T"] + "signatures": [ + "item(index: number): T" + ] }, { "name": "namedItem", - "signatures": ["namedItem(name: string): T"] + "signatures": [ + "namedItem(name: string): T" + ] } ], "indexer": [ { - "signatures": ["[index: number]: T"] + "signatures": [ + "[index: number]: T" + ] } ] }, @@ -373,7 +403,9 @@ "methods": [ { "name": "handleEvent", - "signatures": ["handleEvent(evt: Event): void"] + "signatures": [ + "handleEvent(evt: Event): void" + ] } ] }, @@ -411,17 +443,23 @@ { "kind": "method", "interface": "Element", - "signatures": ["getElementsByClassName(classNames: string): NodeListOf"] + "signatures": [ + "getElementsByClassName(classNames: string): NodeListOf" + ] }, { "kind": "method", "interface": "Element", - "signatures": ["matches(selector: string): boolean"] + "signatures": [ + "matches(selector: string): boolean" + ] }, { "kind": "method", "interface": "Element", - "signatures": [ "closest(selector: string): Element | null" ] + "signatures": [ + "closest(selector: string): Element | null" + ] }, { "kind": "typedef", @@ -459,17 +497,23 @@ { "kind": "method", "interface": "Window", - "signatures": [ "scroll(options?: ScrollToOptions): void" ] + "signatures": [ + "scroll(options?: ScrollToOptions): void" + ] }, { "kind": "method", "interface": "Window", - "signatures": [ "scrollTo(options?: ScrollToOptions): void" ] + "signatures": [ + "scrollTo(options?: ScrollToOptions): void" + ] }, { "kind": "method", "interface": "Window", - "signatures": [ "scrollBy(options?: ScrollToOptions): void" ] + "signatures": [ + "scrollBy(options?: ScrollToOptions): void" + ] }, { "kind": "typedef", @@ -496,7 +540,9 @@ { "kind": "method", "interface": "Element", - "signatures": [ "scrollIntoView(arg?: boolean | ScrollIntoViewOptions): void" ] + "signatures": [ + "scrollIntoView(arg?: boolean | ScrollIntoViewOptions): void" + ] }, { "kind": "method", @@ -637,7 +683,9 @@ "kind": "method", "interface": "HTMLCanvasElement", "name": "toBlob", - "signatures": ["toBlob(callback: (result: Blob | null) => void, type?: string, ...arguments: any[]): void"] + "signatures": [ + "toBlob(callback: (result: Blob | null) => void, type?: string, ...arguments: any[]): void" + ] }, { "kind": "property", @@ -717,13 +765,17 @@ "kind": "method", "interface": "IDBDatabase", "name": "addEventListener", - "signatures": ["addEventListener(type: \"versionchange\", listener: (this: IDBDatabase, ev: IDBVersionChangeEvent) => any, options?: boolean | AddEventListenerOptions): void"] + "signatures": [ + "addEventListener(type: \"versionchange\", listener: (this: IDBDatabase, ev: IDBVersionChangeEvent) => any, options?: boolean | AddEventListenerOptions): void" + ] }, { - "kind": "method", - "interface": "IDBDatabase", - "name": "removeEventListener", - "signatures": ["removeEventListener(type: \"versionchange\", listener: (this: IDBDatabase, ev: IDBVersionChangeEvent) => any, options?: boolean | EventListenerOptions): void"] + "kind": "method", + "interface": "IDBDatabase", + "name": "removeEventListener", + "signatures": [ + "removeEventListener(type: \"versionchange\", listener: (this: IDBDatabase, ev: IDBVersionChangeEvent) => any, options?: boolean | EventListenerOptions): void" + ] }, { "kind": "property", @@ -1290,25 +1342,33 @@ "kind": "method", "interface": "DataTransfer", "name": "setDragImage", - "signatures": ["setDragImage(image: Element, x: number, y: number): void"] + "signatures": [ + "setDragImage(image: Element, x: number, y: number): void" + ] }, { "kind": "method", "interface": "Element", "name": "insertAdjacentElement", - "signatures": ["insertAdjacentElement(position: InsertPosition, insertedElement: Element): Element | null"] + "signatures": [ + "insertAdjacentElement(position: InsertPosition, insertedElement: Element): Element | null" + ] }, { "kind": "method", "interface": "Element", "name": "insertAdjacentHTML", - "signatures": ["insertAdjacentHTML(where: InsertPosition, html: string): void"] + "signatures": [ + "insertAdjacentHTML(where: InsertPosition, html: string): void" + ] }, { "kind": "method", "interface": "Element", "name": "insertAdjacentText", - "signatures": ["insertAdjacentText(where: InsertPosition, text: string): void"] + "signatures": [ + "insertAdjacentText(where: InsertPosition, text: string): void" + ] }, { "kind": "property", @@ -1400,7 +1460,9 @@ "kind": "method", "interface": "CanvasPattern", "name": "setTransform", - "signatures": ["setTransform(matrix: SVGMatrix): void"] + "signatures": [ + "setTransform(matrix: SVGMatrix): void" + ] }, { "kind": "interface", @@ -1409,15 +1471,21 @@ "methods": [ { "name": "getSelection", - "signatures": ["getSelection(): Selection | null"] + "signatures": [ + "getSelection(): Selection | null" + ] }, { "name": "elementFromPoint", - "signatures": ["elementFromPoint(x: number, y: number): Element | null"] + "signatures": [ + "elementFromPoint(x: number, y: number): Element | null" + ] }, { "name": "elementsFromPoint", - "signatures": ["elementsFromPoint(x: number, y: number): Element[]"] + "signatures": [ + "elementsFromPoint(x: number, y: number): Element[]" + ] } ], "properties": [ @@ -1454,7 +1522,9 @@ "kind": "method", "interface": "Element", "name": "attachShadow", - "signatures": ["attachShadow(shadowRootInitDict: ShadowRootInit): ShadowRoot"] + "signatures": [ + "attachShadow(shadowRootInitDict: ShadowRootInit): ShadowRoot" + ] }, { "kind": "property", @@ -1512,7 +1582,9 @@ "methods": [ { "name": "assignedNodes", - "signatures": ["assignedNodes(options?: AssignedNodesOptions): Node[]"] + "signatures": [ + "assignedNodes(options?: AssignedNodesOptions): Node[]" + ] } ] }, @@ -1544,31 +1616,45 @@ "kind": "method", "interface": "Event", "name": "deepPath", - "signatures": ["deepPath(): EventTarget[]"] + "signatures": [ + "deepPath(): EventTarget[]" + ] }, { "kind": "interface", "name": "ElementDefinitionOptions", "flavor": "DOM", - "properties": [{ - "name": "extends", - "type": "string" - }] + "properties": [ + { + "name": "extends", + "type": "string" + } + ] }, { "kind": "interface", "name": "CustomElementRegistry", "flavor": "DOM", - "methods": [{ - "name": "define", - "signatures": ["define(name: string, constructor: Function, options?: ElementDefinitionOptions): void"] - }, { - "name": "get", - "signatures": ["get(name: string): any"] - }, { - "name": "whenDefined", - "signatures": ["whenDefined(name: string): PromiseLike"] - }] + "methods": [ + { + "name": "define", + "signatures": [ + "define(name: string, constructor: Function, options?: ElementDefinitionOptions): void" + ] + }, + { + "name": "get", + "signatures": [ + "get(name: string): any" + ] + }, + { + "name": "whenDefined", + "signatures": [ + "whenDefined(name: string): PromiseLike" + ] + } + ] }, { "kind": "property", @@ -1581,42 +1667,52 @@ "name": "PromiseRejectionEvent", "extends": "Event", "flavor": "Web", - "properties": [{ - "name": "promise", - "type": "PromiseLike", - "readonly": true - }, { - "name": "reason", - "type": "any", - "readonly": true - }] + "properties": [ + { + "name": "promise", + "type": "PromiseLike", + "readonly": true + }, + { + "name": "reason", + "type": "any", + "readonly": true + } + ] }, { "kind": "interface", "name": "PromiseRejectionEventInit", "extends": "EventInit", "flavor": "Web", - "properties": [{ - "name": "promise", - "type": "PromiseLike" - }, { - "name": "reason?", - "type": "any" - }] + "properties": [ + { + "name": "promise", + "type": "PromiseLike" + }, + { + "name": "reason?", + "type": "any" + } + ] }, { "kind": "method", "interface": "Body", "name": "formData", "flavor": "Web", - "signatures": ["formData(): Promise"] + "signatures": [ + "formData(): Promise" + ] }, { "kind": "method", "interface": "DocumentFragment", "name": "getElementById", "flavor": "DOM", - "signatures": ["getElementById(elementId: string): HTMLElement | null"] + "signatures": [ + "getElementById(elementId: string): HTMLElement | null" + ] }, { "kind": "typedef", @@ -1628,71 +1724,90 @@ "interface": "FormData", "name": "delete", "flavor": "Web", - "signatures": ["delete(name: string): void"] + "signatures": [ + "delete(name: string): void" + ] }, { "kind": "method", "interface": "FormData", "name": "get", "flavor": "Web", - "signatures": ["get(name: string): FormDataEntryValue | null"] + "signatures": [ + "get(name: string): FormDataEntryValue | null" + ] }, { "kind": "method", "interface": "FormData", "name": "getAll", "flavor": "Web", - "signatures": ["getAll(name: string): FormDataEntryValue[]"] + "signatures": [ + "getAll(name: string): FormDataEntryValue[]" + ] }, { "kind": "method", "interface": "FormData", "name": "has", "flavor": "Web", - "signatures": ["has(name: string): boolean"] + "signatures": [ + "has(name: string): boolean" + ] }, { "kind": "method", "interface": "FormData", "name": "set", "flavor": "Web", - "signatures": ["set(name: string, value: string | Blob, fileName?: string): void"] + "signatures": [ + "set(name: string, value: string | Blob, fileName?: string): void" + ] }, { "kind": "interface", "name": "EventListenerOptions", - "properties": [{ - "name": "capture?", - "type": "boolean" - }] + "properties": [ + { + "name": "capture?", + "type": "boolean" + } + ] }, { "kind": "interface", "name": "AddEventListenerOptions", "extends": "EventListenerOptions", - "properties": [{ - "name": "passive?", - "type": "boolean" - }, { - "name": "once?", - "type": "boolean" - }] + "properties": [ + { + "name": "passive?", + "type": "boolean" + }, + { + "name": "once?", + "type": "boolean" + } + ] }, { "kind": "interface", "name": "TouchEventInit", - "flavor": "Web", + "flavor": "Web", "extends": "EventModifierInit", - "properties": [{ - "name": "touches?", - "type": "Touch[]" - }, { - "name": "targetTouches?", - "type": "Touch[]" - }, { - "name": "changedTouches?", - "type": "Touch[]" - }] + "properties": [ + { + "name": "touches?", + "type": "Touch[]" + }, + { + "name": "targetTouches?", + "type": "Touch[]" + }, + { + "name": "changedTouches?", + "type": "Touch[]" + } + ] }, { "kind": "typedef", @@ -1724,7 +1839,9 @@ { "kind": "interface", "name": "HTMLDialogElement", - "constructorSignatures": ["new(): HTMLDialogElement"], + "constructorSignatures": [ + "new(): HTMLDialogElement" + ], "extends": "HTMLElement", "flavor": "DOM", "properties": [ @@ -1740,15 +1857,21 @@ "methods": [ { "name": "close", - "signatures": ["close(returnValue?: string): void"] + "signatures": [ + "close(returnValue?: string): void" + ] }, { "name": "show", - "signatures": ["show(): void"] + "signatures": [ + "show(): void" + ] }, { "name": "showModal", - "signatures": ["showModal(): void"] + "signatures": [ + "showModal(): void" + ] } ] }, @@ -1762,14 +1885,18 @@ { "kind": "interface", "name": "HTMLMainElement", - "constructorSignatures": ["new(): HTMLMainElement"], + "constructorSignatures": [ + "new(): HTMLMainElement" + ], "extends": "HTMLElement", "flavor": "DOM" }, { "kind": "interface", "name": "HTMLDetailsElement", - "constructorSignatures": ["new(): HTMLDetailsElement"], + "constructorSignatures": [ + "new(): HTMLDetailsElement" + ], "extends": "HTMLElement", "flavor": "DOM", "properties": [ @@ -1782,7 +1909,9 @@ { "kind": "interface", "name": "HTMLSummaryElement", - "constructorSignatures": ["new(): HTMLSummaryElement"], + "constructorSignatures": [ + "new(): HTMLSummaryElement" + ], "extends": "HTMLElement", "flavor": "DOM" }, @@ -1794,5 +1923,10 @@ "signatures": [ "reportValidity(): boolean" ] + }, + { + "kind": "typedef", + "name": "HeadersInit", + "type": "string[][] | { [key: string]: string }" } -] +] \ No newline at end of file diff --git a/inputfiles/knownWorkerInterfaces.json b/inputfiles/knownWorkerInterfaces.json index 853c0e862..c8e8d36dc 100644 --- a/inputfiles/knownWorkerInterfaces.json +++ b/inputfiles/knownWorkerInterfaces.json @@ -102,4 +102,4 @@ "XMLHttpRequest", "XMLHttpRequestEventTarget", "XMLHttpRequestUpload" -] +] \ No newline at end of file diff --git a/inputfiles/overridingTypes.json b/inputfiles/overridingTypes.json index c1236aa4f..226cce132 100644 --- a/inputfiles/overridingTypes.json +++ b/inputfiles/overridingTypes.json @@ -1,4 +1,4 @@ - [ +[ { "kind": "constructor", "interface": "Response", @@ -11,7 +11,9 @@ { "kind": "constructor", "interface": "ErrorEvent", - "signatures": ["new(type: string, errorEventInitDict?: ErrorEventInit): ErrorEvent"] + "signatures": [ + "new(type: string, errorEventInitDict?: ErrorEventInit): ErrorEvent" + ] }, { "kind": "property", @@ -23,7 +25,9 @@ "kind": "method", "interface": "Document", "name": "adoptNode", - "signatures": ["adoptNode(source: T): T"] + "signatures": [ + "adoptNode(source: T): T" + ] }, { "kind": "property", @@ -36,55 +40,71 @@ "kind": "method", "interface": "Document", "name": "importNode", - "signatures": ["importNode(importedNode: T, deep: boolean): T"] + "signatures": [ + "importNode(importedNode: T, deep: boolean): T" + ] }, { "kind": "method", "interface": "Node", "name": "appendChild", - "signatures": ["appendChild(newChild: T): T"] + "signatures": [ + "appendChild(newChild: T): T" + ] }, { "kind": "method", "interface": "Node", "name": "insertBefore", - "signatures": ["insertBefore(newChild: T, refChild: Node | null): T"] + "signatures": [ + "insertBefore(newChild: T, refChild: Node | null): T" + ] }, { "kind": "method", "interface": "Node", "name": "removeChild", - "signatures": ["removeChild(oldChild: T): T"] + "signatures": [ + "removeChild(oldChild: T): T" + ] }, { "kind": "method", "interface": "Node", "name": "replaceChild", - "signatures": ["replaceChild(newChild: Node, oldChild: T): T"] + "signatures": [ + "replaceChild(newChild: Node, oldChild: T): T" + ] }, { "kind": "method", "interface": "HTMLCollection", "name": "item", - "signatures": ["item(index: number): Element"] + "signatures": [ + "item(index: number): Element" + ] }, { "kind": "method", "interface": "IDBObjectStore", "name": "createIndex", - "signatures": ["createIndex(name: string, keyPath: string | string[], optionalParameters?: IDBIndexParameters): IDBIndex"] + "signatures": [ + "createIndex(name: string, keyPath: string | string[], optionalParameters?: IDBIndexParameters): IDBIndex" + ] }, { - "kind": "property", - "interface": "IDBIndex", - "name": "keyPath", - "type": "string | string[]" + "kind": "property", + "interface": "IDBIndex", + "name": "keyPath", + "type": "string | string[]" }, { "kind": "method", "interface": "IDBDatabase", "name": "createObjectStore", - "signatures": ["createObjectStore(name: string, optionalParameters?: IDBObjectStoreParameters): IDBObjectStore"] + "signatures": [ + "createObjectStore(name: string, optionalParameters?: IDBObjectStoreParameters): IDBObjectStore" + ] }, { "kind": "method", @@ -118,7 +138,9 @@ "kind": "method", "interface": "WebGLRenderingContext", "name": "pixelStorei", - "signatures": ["pixelStorei(pname: number, param: number | boolean): void"] + "signatures": [ + "pixelStorei(pname: number, param: number | boolean): void" + ] }, { "kind": "property", @@ -193,31 +215,41 @@ { "kind": "method", "name": "alert", - "signatures": ["alert(message?: any): void"] + "signatures": [ + "alert(message?: any): void" + ] }, { "kind": "method", "interface": "Document", "name": "open", - "signatures": ["open(url?: string, name?: string, features?: string, replace?: boolean): Document"] + "signatures": [ + "open(url?: string, name?: string, features?: string, replace?: boolean): Document" + ] }, { "kind": "method", "interface": "Document", "name": "getElementById", - "signatures": ["getElementById(elementId: string): HTMLElement | null"] + "signatures": [ + "getElementById(elementId: string): HTMLElement | null" + ] }, { "kind": "method", "interface": "Document", "name": "msElementsFromRect", - "signatures": ["msElementsFromRect(left: number, top: number, width: number, height: number): NodeListOf"] + "signatures": [ + "msElementsFromRect(left: number, top: number, width: number, height: number): NodeListOf" + ] }, { "kind": "method", "interface": "Document", "name": "msElementsFromPoint", - "signatures": ["msElementsFromPoint(x: number, y: number): NodeListOf"] + "signatures": [ + "msElementsFromPoint(x: number, y: number): NodeListOf" + ] }, { "kind": "method", @@ -231,7 +263,9 @@ { "kind": "method", "name": "getElementsByClassName", - "signatures": ["getElementsByClassName(classNames: string): HTMLCollectionOf"] + "signatures": [ + "getElementsByClassName(classNames: string): HTMLCollectionOf" + ] }, { "kind": "method", @@ -333,13 +367,17 @@ "kind": "method", "interface": "SVGSVGElement", "name": "getEnclosureList", - "signatures": ["getEnclosureList(rect: SVGRect, referenceElement: SVGElement): NodeListOf"] + "signatures": [ + "getEnclosureList(rect: SVGRect, referenceElement: SVGElement): NodeListOf" + ] }, { "kind": "method", "interface": "SVGSVGElement", "name": "getIntersectionList", - "signatures": ["getIntersectionList(rect: SVGRect, referenceElement: SVGElement): NodeListOf"] + "signatures": [ + "getIntersectionList(rect: SVGRect, referenceElement: SVGElement): NodeListOf" + ] }, { "kind": "property", @@ -351,86 +389,116 @@ "kind": "method", "interface": "Console", "name": "debug", - "signatures": ["debug(message?: any, ...optionalParams: any[]): void"] + "signatures": [ + "debug(message?: any, ...optionalParams: any[]): void" + ] }, { "kind": "method", "interface": "Console", "name": "dir", - "signatures": ["dir(value?: any, ...optionalParams: any[]): void"] + "signatures": [ + "dir(value?: any, ...optionalParams: any[]): void" + ] }, { "kind": "method", "interface": "Console", "name": "dirxml", - "signatures": ["dirxml(value: any): void"] + "signatures": [ + "dirxml(value: any): void" + ] }, { "kind": "method", "interface": "Console", "name": "error", - "signatures": ["error(message?: any, ...optionalParams: any[]): void"] + "signatures": [ + "error(message?: any, ...optionalParams: any[]): void" + ] }, { "kind": "method", "interface": "Console", "name": "info", - "signatures": ["info(message?: any, ...optionalParams: any[]): void"] + "signatures": [ + "info(message?: any, ...optionalParams: any[]): void" + ] }, { "kind": "method", "interface": "Console", "name": "log", - "signatures": ["log(message?: any, ...optionalParams: any[]): void"] + "signatures": [ + "log(message?: any, ...optionalParams: any[]): void" + ] }, { "kind": "method", "interface": "Console", "name": "warn", - "signatures": ["warn(message?: any, ...optionalParams: any[]): void"] + "signatures": [ + "warn(message?: any, ...optionalParams: any[]): void" + ] }, - { + { "kind": "method", "interface": "Console", "name": "group", - "signatures": ["group(groupTitle?: string, ...optionalParams: any[]): void"] + "signatures": [ + "group(groupTitle?: string, ...optionalParams: any[]): void" + ] }, - { + { "kind": "method", "interface": "Console", "name": "groupCollapsed", - "signatures": ["groupCollapsed(groupTitle?: string, ...optionalParams: any[]): void"] + "signatures": [ + "groupCollapsed(groupTitle?: string, ...optionalParams: any[]): void" + ] }, { "kind": "callback", "name": "ErrorEventHandler", - "signatures": ["(message: string, filename?: string, lineno?: number, colno?: number, error?: Error): void"] + "signatures": [ + "(message: string, filename?: string, lineno?: number, colno?: number, error?: Error): void" + ] }, { "kind": "constructor", "interface": "Blob", - "signatures": ["new (blobParts?: any[], options?: BlobPropertyBag): Blob"] + "signatures": [ + "new (blobParts?: any[], options?: BlobPropertyBag): Blob" + ] }, { "kind": "constructor", "interface": "FormData", "flavor": "Web", - "signatures": ["new (form?: HTMLFormElement): FormData"] + "signatures": [ + "new (form?: HTMLFormElement): FormData" + ] }, { "kind": "constructor", "interface": "MessageEvent", - "signatures": ["new(type: string, eventInitDict?: MessageEventInit): MessageEvent"] + "signatures": [ + "new(type: string, eventInitDict?: MessageEventInit): MessageEvent" + ] }, { "kind": "constructor", "interface": "ProgressEvent", - "signatures": ["new(type: string, eventInitDict?: ProgressEventInit): ProgressEvent"] + "signatures": [ + "new(type: string, eventInitDict?: ProgressEventInit): ProgressEvent" + ] }, { "kind": "constructor", "interface": "File", - "signatures": ["new (parts: (ArrayBuffer | ArrayBufferView | Blob | string)[], filename: string, properties?: FilePropertyBag): File"] + "signatures": [ + "new (parts: (ArrayBuffer | ArrayBufferView | Blob | string)[], filename: string, properties?: FilePropertyBag): File" + ] }, { "kind": "constructor", @@ -469,31 +537,41 @@ "kind": "method", "interface": "HTMLTableElement", "name": "insertRow", - "signatures": ["insertRow(index?: number): HTMLTableRowElement"] + "signatures": [ + "insertRow(index?: number): HTMLTableRowElement" + ] }, { "kind": "method", "interface": "HTMLTableElement", "name": "createTHead", - "signatures": ["createTHead(): HTMLTableSectionElement"] + "signatures": [ + "createTHead(): HTMLTableSectionElement" + ] }, { "kind": "method", "interface": "HTMLTableElement", "name": "createTBody", - "signatures": ["createTBody(): HTMLTableSectionElement"] + "signatures": [ + "createTBody(): HTMLTableSectionElement" + ] }, { "kind": "method", "interface": "HTMLTableElement", "name": "createTFoot", - "signatures": ["createTFoot(): HTMLTableSectionElement"] + "signatures": [ + "createTFoot(): HTMLTableSectionElement" + ] }, { "kind": "method", "interface": "HTMLTableElement", "name": "createCaption", - "signatures": ["createCaption(): HTMLTableCaptionElement"] + "signatures": [ + "createCaption(): HTMLTableCaptionElement" + ] }, { "kind": "property", @@ -511,7 +589,9 @@ "kind": "method", "interface": "HTMLTableSectionElement", "name": "insertRow", - "signatures": ["insertRow(index?: number): HTMLTableRowElement"] + "signatures": [ + "insertRow(index?: number): HTMLTableRowElement" + ] }, { "kind": "property", @@ -523,7 +603,9 @@ "kind": "method", "interface": "HTMLTableRowElement", "name": "insertCell", - "signatures": ["insertCell(index?: number): HTMLTableDataCellElement"] + "signatures": [ + "insertCell(index?: number): HTMLTableDataCellElement" + ] }, { "kind": "property", @@ -535,7 +617,9 @@ "kind": "method", "interface": "Element", "name": "setAttribute", - "signatures": ["setAttribute(name: string, value: string): void"] + "signatures": [ + "setAttribute(name: string, value: string): void" + ] }, { "kind": "property", @@ -553,18 +637,24 @@ "kind": "method", "interface": "Console", "name": "trace", - "signatures": ["trace(message?: any, ...optionalParams: any[]): void"] + "signatures": [ + "trace(message?: any, ...optionalParams: any[]): void" + ] }, { "kind": "method", "interface": "DataTransferItemList", "name": "item", - "signatures": ["item(index: number): DataTransferItem"] + "signatures": [ + "item(index: number): DataTransferItem" + ] }, { "kind": "indexer", "interface": "DataTransferItemList", - "signatures": ["[index: number]: DataTransferItem"] + "signatures": [ + "[index: number]: DataTransferItem" + ] }, { "kind": "constructor", @@ -583,7 +673,9 @@ "kind": "method", "interface": "IDBDatabase", "name": "transaction", - "signatures": ["transaction(storeNames: string | string[], mode?: IDBTransactionMode): IDBTransaction"] + "signatures": [ + "transaction(storeNames: string | string[], mode?: IDBTransactionMode): IDBTransaction" + ] }, { "kind": "property", @@ -615,7 +707,9 @@ "kind": "method", "interface": "Window", "name": "open", - "signatures": ["open(url?: string, target?: string, features?: string, replace?: boolean): Window | null"] + "signatures": [ + "open(url?: string, target?: string, features?: string, replace?: boolean): Window | null" + ] }, { "kind": "method", @@ -631,15 +725,17 @@ "interface": "AudioNode", "name": "disconnect", "signatures": [ - "disconnect(output?: number): void", - "disconnect(destination: AudioNode, output?: number, input?: number): void", - "disconnect(destination: AudioParam, output?: number): void" + "disconnect(output?: number): void", + "disconnect(destination: AudioNode, output?: number, input?: number): void", + "disconnect(destination: AudioParam, output?: number): void" ] }, { "kind": "callback", "name": "DecodeErrorCallback", - "signatures": ["(error: DOMException): void"] + "signatures": [ + "(error: DOMException): void" + ] }, { "kind": "property", @@ -678,43 +774,57 @@ "kind": "method", "interface": "IDBIndex", "name": "openCursor", - "signatures": ["openCursor(range?: IDBKeyRange | IDBValidKey, direction?: IDBCursorDirection): IDBRequest"] + "signatures": [ + "openCursor(range?: IDBKeyRange | IDBValidKey, direction?: IDBCursorDirection): IDBRequest" + ] }, { "kind": "method", "interface": "IDBIndex", "name": "openKeyCursor", - "signatures": ["openKeyCursor(range?: IDBKeyRange | IDBValidKey, direction?: IDBCursorDirection): IDBRequest"] + "signatures": [ + "openKeyCursor(range?: IDBKeyRange | IDBValidKey, direction?: IDBCursorDirection): IDBRequest" + ] }, { "kind": "method", "interface": "IDBObjectStore", "name": "openCursor", - "signatures": ["openCursor(range?: IDBKeyRange | IDBValidKey, direction?: IDBCursorDirection): IDBRequest"] + "signatures": [ + "openCursor(range?: IDBKeyRange | IDBValidKey, direction?: IDBCursorDirection): IDBRequest" + ] }, { "kind": "method", "interface": "IDBObjectStore", "name": "add", - "signatures": ["add(value: any, key?: IDBKeyRange | IDBValidKey): IDBRequest"] + "signatures": [ + "add(value: any, key?: IDBKeyRange | IDBValidKey): IDBRequest" + ] }, { "kind": "method", "interface": "IDBObjectStore", "name": "count", - "signatures": ["count(key?: IDBKeyRange | IDBValidKey): IDBRequest"] + "signatures": [ + "count(key?: IDBKeyRange | IDBValidKey): IDBRequest" + ] }, { "kind": "method", "interface": "IDBObjectStore", "name": "delete", - "signatures": ["delete(key: IDBKeyRange | IDBValidKey): IDBRequest"] + "signatures": [ + "delete(key: IDBKeyRange | IDBValidKey): IDBRequest" + ] }, { "kind": "method", "interface": "IDBObjectStore", "name": "put", - "signatures": ["put(value: any, key?: IDBKeyRange | IDBValidKey): IDBRequest"] + "signatures": [ + "put(value: any, key?: IDBKeyRange | IDBValidKey): IDBRequest" + ] }, { "kind": "property", @@ -726,295 +836,367 @@ "kind": "method", "interface": "IDBCursor", "name": "continue", - "signatures": ["continue(key?: IDBKeyRange | IDBValidKey): void"] + "signatures": [ + "continue(key?: IDBKeyRange | IDBValidKey): void" + ] }, { "kind": "method", "interface": "IDBIndex", "name": "count", - "signatures": ["count(key?: IDBKeyRange | IDBValidKey): IDBRequest"] + "signatures": [ + "count(key?: IDBKeyRange | IDBValidKey): IDBRequest" + ] }, { "kind": "method", "interface": "IDBIndex", "name": "get", - "signatures": ["get(key: IDBKeyRange | IDBValidKey): IDBRequest"] + "signatures": [ + "get(key: IDBKeyRange | IDBValidKey): IDBRequest" + ] }, { "kind": "method", "interface": "IDBIndex", "name": "getKey", - "signatures": ["getKey(key: IDBKeyRange | IDBValidKey): IDBRequest"] + "signatures": [ + "getKey(key: IDBKeyRange | IDBValidKey): IDBRequest" + ] }, { "kind": "method", "interface": "Storage", "name": "getItem", - "signatures": ["getItem(key: string): string | null"] + "signatures": [ + "getItem(key: string): string | null" + ] }, { "kind": "method", "interface": "Storage", "name": "key", - "signatures": ["key(index: number): string | null"] + "signatures": [ + "key(index: number): string | null" + ] }, { "kind": "method", "interface": "WebGLRenderingContext", "name": "uniform1fv", - "signatures": ["uniform1fv(location: WebGLUniformLocation, v: Float32Array | number[]): void"] + "signatures": [ + "uniform1fv(location: WebGLUniformLocation, v: Float32Array | number[]): void" + ] }, { "kind": "method", "interface": "WebGLRenderingContext", "name": "uniform2fv", - "signatures": ["uniform2fv(location: WebGLUniformLocation, v: Float32Array | number[]): void"] + "signatures": [ + "uniform2fv(location: WebGLUniformLocation, v: Float32Array | number[]): void" + ] }, { "kind": "method", "interface": "WebGLRenderingContext", "name": "uniform3fv", - "signatures": ["uniform3fv(location: WebGLUniformLocation, v: Float32Array | number[]): void"] + "signatures": [ + "uniform3fv(location: WebGLUniformLocation, v: Float32Array | number[]): void" + ] }, { "kind": "method", "interface": "WebGLRenderingContext", "name": "uniform4fv", - "signatures": ["uniform4fv(location: WebGLUniformLocation, v: Float32Array | number[]): void"] + "signatures": [ + "uniform4fv(location: WebGLUniformLocation, v: Float32Array | number[]): void" + ] }, { "kind": "method", "interface": "WebGLRenderingContext", "name": "uniform1iv", - "signatures": ["uniform1iv(location: WebGLUniformLocation, v: Int32Array | number[]): void"] + "signatures": [ + "uniform1iv(location: WebGLUniformLocation, v: Int32Array | number[]): void" + ] }, { "kind": "method", "interface": "WebGLRenderingContext", "name": "uniform2iv", - "signatures": ["uniform2iv(location: WebGLUniformLocation, v: Int32Array | number[]): void"] + "signatures": [ + "uniform2iv(location: WebGLUniformLocation, v: Int32Array | number[]): void" + ] }, { "kind": "method", "interface": "WebGLRenderingContext", "name": "uniform3iv", - "signatures": ["uniform3iv(location: WebGLUniformLocation, v: Int32Array | number[]): void"] + "signatures": [ + "uniform3iv(location: WebGLUniformLocation, v: Int32Array | number[]): void" + ] }, { "kind": "method", "interface": "WebGLRenderingContext", "name": "uniform4iv", - "signatures": ["uniform4iv(location: WebGLUniformLocation, v: Int32Array | number[]): void"] + "signatures": [ + "uniform4iv(location: WebGLUniformLocation, v: Int32Array | number[]): void" + ] }, { "kind": "method", "interface": "WebGLRenderingContext", "name": "uniformMatrix2fv", - "signatures": ["uniformMatrix2fv(location: WebGLUniformLocation, transpose: boolean, value: Float32Array | number[]): void"] + "signatures": [ + "uniformMatrix2fv(location: WebGLUniformLocation, transpose: boolean, value: Float32Array | number[]): void" + ] }, { "kind": "method", "interface": "WebGLRenderingContext", "name": "uniformMatrix3fv", - "signatures": ["uniformMatrix3fv(location: WebGLUniformLocation, transpose: boolean, value: Float32Array | number[]): void"] + "signatures": [ + "uniformMatrix3fv(location: WebGLUniformLocation, transpose: boolean, value: Float32Array | number[]): void" + ] }, { "kind": "method", "interface": "WebGLRenderingContext", "name": "uniformMatrix4fv", - "signatures": ["uniformMatrix4fv(location: WebGLUniformLocation, transpose: boolean, value: Float32Array | number[]): void"] + "signatures": [ + "uniformMatrix4fv(location: WebGLUniformLocation, transpose: boolean, value: Float32Array | number[]): void" + ] }, { "kind": "method", "interface": "WebGLRenderingContext", "name": "vertexAttrib1fv", - "signatures": ["vertexAttrib1fv(indx: number, values: Float32Array | number[]): void"] + "signatures": [ + "vertexAttrib1fv(indx: number, values: Float32Array | number[]): void" + ] }, { "kind": "method", "interface": "WebGLRenderingContext", "name": "vertexAttrib2fv", - "signatures": ["vertexAttrib2fv(indx: number, values: Float32Array | number[]): void"] + "signatures": [ + "vertexAttrib2fv(indx: number, values: Float32Array | number[]): void" + ] }, { "kind": "method", "interface": "WebGLRenderingContext", "name": "vertexAttrib3fv", - "signatures": ["vertexAttrib3fv(indx: number, values: Float32Array | number[]): void"] + "signatures": [ + "vertexAttrib3fv(indx: number, values: Float32Array | number[]): void" + ] }, { "kind": "method", "interface": "WebGLRenderingContext", "name": "vertexAttrib4fv", - "signatures": ["vertexAttrib4fv(indx: number, values: Float32Array | number[]): void"] + "signatures": [ + "vertexAttrib4fv(indx: number, values: Float32Array | number[]): void" + ] }, { "kind": "method", "interface": "Element", "name": "getAttribute", - "signatures": ["getAttribute(name: string): string | null"] + "signatures": [ + "getAttribute(name: string): string | null" + ] }, { "kind": "extends", "baseInterface": "HTMLCollectionOf", "interface": "HTMLOptionsCollection" }, - { - "kind": "property", - "interface": "Algorithm", - "name": "name", - "type": "string" - }, - { - "kind": "method", - "interface": "SubtleCrypto", - "name": "decrypt", - "signatures": ["decrypt(algorithm: string | RsaOaepParams | AesCtrParams | AesCbcParams | AesCmacParams | AesGcmParams | AesCfbParams, key: CryptoKey, data: BufferSource): PromiseLike"] - }, - { - "kind": "method", - "interface": "SubtleCrypto", - "name": "deriveBits", - "signatures": ["deriveBits(algorithm: string | EcdhKeyDeriveParams | DhKeyDeriveParams | ConcatParams | HkdfCtrParams | Pbkdf2Params, baseKey: CryptoKey, length: number): PromiseLike"] - }, - { - "kind": "method", - "interface": "SubtleCrypto", - "name": "deriveKey", - "signatures": ["deriveKey(algorithm: string | EcdhKeyDeriveParams | DhKeyDeriveParams | ConcatParams | HkdfCtrParams | Pbkdf2Params, baseKey: CryptoKey, derivedKeyType: string | AesDerivedKeyParams | HmacImportParams | ConcatParams | HkdfCtrParams | Pbkdf2Params, extractable: boolean, keyUsages: string[]): PromiseLike"] - }, - { - "kind": "method", - "interface": "SubtleCrypto", - "name": "digest", - "signatures": ["digest(algorithm: AlgorithmIdentifier, data: BufferSource): PromiseLike"] - }, - { - "kind": "method", - "interface": "SubtleCrypto", - "name": "encrypt", - "signatures": ["encrypt(algorithm: string | RsaOaepParams | AesCtrParams | AesCbcParams | AesCmacParams | AesGcmParams | AesCfbParams, key: CryptoKey, data: BufferSource): PromiseLike"] - }, - { - "kind": "method", - "interface": "SubtleCrypto", - "name": "exportKey", - "signatures": [ - "exportKey(format: \"jwk\", key: CryptoKey): PromiseLike", - "exportKey(format: \"raw\" | \"pkcs8\" | \"spki\", key: CryptoKey): PromiseLike", - "exportKey(format: string, key: CryptoKey): PromiseLike" - ] - }, - { - "kind": "method", - "interface": "SubtleCrypto", - "name": "generateKey", - "signatures": [ - "generateKey(algorithm: string, extractable: boolean, keyUsages: string[]): PromiseLike", - "generateKey(algorithm: RsaHashedKeyGenParams | EcKeyGenParams | DhKeyGenParams, extractable: boolean, keyUsages: string[]): PromiseLike", - "generateKey(algorithm: AesKeyGenParams | HmacKeyGenParams | Pbkdf2Params, extractable: boolean, keyUsages: string[]): PromiseLike" - ] - }, - { - "kind": "method", - "interface": "SubtleCrypto", - "name": "importKey", - "signatures": [ - "importKey(format: \"jwk\", keyData: JsonWebKey, algorithm: string | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | DhImportKeyParams, extractable: boolean, keyUsages: string[]): PromiseLike", - "importKey(format: \"raw\" | \"pkcs8\" | \"spki\", keyData: BufferSource, algorithm: string | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | DhImportKeyParams, extractable: boolean, keyUsages: string[]): PromiseLike", - "importKey(format: string, keyData: JsonWebKey | BufferSource, algorithm: string | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | DhImportKeyParams, extractable: boolean, keyUsages: string[]): PromiseLike" - ] - }, - { - "kind": "method", - "interface": "SubtleCrypto", - "name": "sign", - "signatures": ["sign(algorithm: string | RsaPssParams | EcdsaParams | AesCmacParams, key: CryptoKey, data: BufferSource): PromiseLike"] - }, - { - "kind": "method", - "interface": "SubtleCrypto", - "name": "unwrapKey", - "signatures": ["unwrapKey(format: string, wrappedKey: BufferSource, unwrappingKey: CryptoKey, unwrapAlgorithm: AlgorithmIdentifier, unwrappedKeyAlgorithm: AlgorithmIdentifier, extractable: boolean, keyUsages: string[]): PromiseLike"] - }, - { - "kind": "method", - "interface": "SubtleCrypto", - "name": "verify", - "signatures": ["verify(algorithm: string | RsaPssParams | EcdsaParams | AesCmacParams, key: CryptoKey, signature: BufferSource, data: BufferSource): PromiseLike"] - }, - { - "kind": "method", - "interface": "SubtleCrypto", - "name": "wrapKey", - "signatures": ["wrapKey(format: string, key: CryptoKey, wrappingKey: CryptoKey, wrapAlgorithm: AlgorithmIdentifier): PromiseLike"] - }, - { + { + "kind": "property", + "interface": "Algorithm", + "name": "name", + "type": "string" + }, + { + "kind": "method", + "interface": "SubtleCrypto", + "name": "decrypt", + "signatures": [ + "decrypt(algorithm: string | RsaOaepParams | AesCtrParams | AesCbcParams | AesCmacParams | AesGcmParams | AesCfbParams, key: CryptoKey, data: BufferSource): PromiseLike" + ] + }, + { + "kind": "method", + "interface": "SubtleCrypto", + "name": "deriveBits", + "signatures": [ + "deriveBits(algorithm: string | EcdhKeyDeriveParams | DhKeyDeriveParams | ConcatParams | HkdfCtrParams | Pbkdf2Params, baseKey: CryptoKey, length: number): PromiseLike" + ] + }, + { + "kind": "method", + "interface": "SubtleCrypto", + "name": "deriveKey", + "signatures": [ + "deriveKey(algorithm: string | EcdhKeyDeriveParams | DhKeyDeriveParams | ConcatParams | HkdfCtrParams | Pbkdf2Params, baseKey: CryptoKey, derivedKeyType: string | AesDerivedKeyParams | HmacImportParams | ConcatParams | HkdfCtrParams | Pbkdf2Params, extractable: boolean, keyUsages: string[]): PromiseLike" + ] + }, + { + "kind": "method", + "interface": "SubtleCrypto", + "name": "digest", + "signatures": [ + "digest(algorithm: AlgorithmIdentifier, data: BufferSource): PromiseLike" + ] + }, + { + "kind": "method", + "interface": "SubtleCrypto", + "name": "encrypt", + "signatures": [ + "encrypt(algorithm: string | RsaOaepParams | AesCtrParams | AesCbcParams | AesCmacParams | AesGcmParams | AesCfbParams, key: CryptoKey, data: BufferSource): PromiseLike" + ] + }, + { + "kind": "method", + "interface": "SubtleCrypto", + "name": "exportKey", + "signatures": [ + "exportKey(format: \"jwk\", key: CryptoKey): PromiseLike", + "exportKey(format: \"raw\" | \"pkcs8\" | \"spki\", key: CryptoKey): PromiseLike", + "exportKey(format: string, key: CryptoKey): PromiseLike" + ] + }, + { + "kind": "method", + "interface": "SubtleCrypto", + "name": "generateKey", + "signatures": [ + "generateKey(algorithm: string, extractable: boolean, keyUsages: string[]): PromiseLike", + "generateKey(algorithm: RsaHashedKeyGenParams | EcKeyGenParams | DhKeyGenParams, extractable: boolean, keyUsages: string[]): PromiseLike", + "generateKey(algorithm: AesKeyGenParams | HmacKeyGenParams | Pbkdf2Params, extractable: boolean, keyUsages: string[]): PromiseLike" + ] + }, + { + "kind": "method", + "interface": "SubtleCrypto", + "name": "importKey", + "signatures": [ + "importKey(format: \"jwk\", keyData: JsonWebKey, algorithm: string | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | DhImportKeyParams, extractable: boolean, keyUsages: string[]): PromiseLike", + "importKey(format: \"raw\" | \"pkcs8\" | \"spki\", keyData: BufferSource, algorithm: string | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | DhImportKeyParams, extractable: boolean, keyUsages: string[]): PromiseLike", + "importKey(format: string, keyData: JsonWebKey | BufferSource, algorithm: string | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | DhImportKeyParams, extractable: boolean, keyUsages: string[]): PromiseLike" + ] + }, + { + "kind": "method", + "interface": "SubtleCrypto", + "name": "sign", + "signatures": [ + "sign(algorithm: string | RsaPssParams | EcdsaParams | AesCmacParams, key: CryptoKey, data: BufferSource): PromiseLike" + ] + }, + { + "kind": "method", + "interface": "SubtleCrypto", + "name": "unwrapKey", + "signatures": [ + "unwrapKey(format: string, wrappedKey: BufferSource, unwrappingKey: CryptoKey, unwrapAlgorithm: AlgorithmIdentifier, unwrappedKeyAlgorithm: AlgorithmIdentifier, extractable: boolean, keyUsages: string[]): PromiseLike" + ] + }, + { + "kind": "method", + "interface": "SubtleCrypto", + "name": "verify", + "signatures": [ + "verify(algorithm: string | RsaPssParams | EcdsaParams | AesCmacParams, key: CryptoKey, signature: BufferSource, data: BufferSource): PromiseLike" + ] + }, + { + "kind": "method", + "interface": "SubtleCrypto", + "name": "wrapKey", + "signatures": [ + "wrapKey(format: string, key: CryptoKey, wrappingKey: CryptoKey, wrapAlgorithm: AlgorithmIdentifier): PromiseLike" + ] + }, + { "kind": "method", "name": "setTimeout", "signatures": [ "setTimeout(handler: (...args: any[]) => void, timeout: number): number", "setTimeout(handler: any, timeout?: any, ...args: any[]): number" ] - }, - { + }, + { "kind": "method", "name": "setImmediate", "signatures": [ "setImmediate(handler: (...args: any[]) => void): number", "setImmediate(handler: any, ...args: any[]): number" ] - }, - { + }, + { "kind": "method", "name": "setInterval", "signatures": [ "setInterval(handler: (...args: any[]) => void, timeout: number): number", "setInterval(handler: any, timeout?: any, ...args: any[]): number" ] - }, - { - "kind": "property", - "interface": "HTMLInputElement", - "readonly": true, - "name": "files", - "type": "FileList | null" - }, - { - "kind": "property", - "interface": "Window", - "name": "opener", - "type": "any" + }, + { + "kind": "property", + "interface": "HTMLInputElement", + "readonly": true, + "name": "files", + "type": "FileList | null" + }, + { + "kind": "property", + "interface": "Window", + "name": "opener", + "type": "any" }, { "kind": "method", "interface": "History", "name": "back", - "signatures": ["back(): void"] + "signatures": [ + "back(): void" + ] }, { "kind": "method", "interface": "History", "name": "forward", - "signatures": ["forward(): void"] + "signatures": [ + "forward(): void" + ] }, { "kind": "method", "interface": "History", "name": "go", - "signatures": ["go(delta?: number): void"] + "signatures": [ + "go(delta?: number): void" + ] }, { "kind": "method", "interface": "History", "name": "pushState", - "signatures": ["pushState(data: any, title: string, url?: string | null): void"] + "signatures": [ + "pushState(data: any, title: string, url?: string | null): void" + ] }, { "kind": "method", "interface": "History", "name": "replaceState", - "signatures": ["replaceState(data: any, title: string, url?: string | null): void"] + "signatures": [ + "replaceState(data: any, title: string, url?: string | null): void" + ] }, { "kind": "property", @@ -1062,7 +1244,9 @@ "kind": "method", "interface": "MouseEvent", "name": "initMouseEvent", - "signatures": ["initMouseEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, viewArg: Window, detailArg: number, screenXArg: number, screenYArg: number, clientXArg: number, clientYArg: number, ctrlKeyArg: boolean, altKeyArg: boolean, shiftKeyArg: boolean, metaKeyArg: boolean, buttonArg: number, relatedTargetArg: EventTarget | null): void"] + "signatures": [ + "initMouseEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, viewArg: Window, detailArg: number, screenXArg: number, screenYArg: number, clientXArg: number, clientYArg: number, ctrlKeyArg: boolean, altKeyArg: boolean, shiftKeyArg: boolean, metaKeyArg: boolean, buttonArg: number, relatedTargetArg: EventTarget | null): void" + ] }, { "kind": "property", @@ -1075,19 +1259,25 @@ "kind": "method", "interface": "XPathEvaluator", "name": "evaluate", - "signatures": ["evaluate(expression: string, contextNode: Node, resolver: XPathNSResolver | null, type: number, result: XPathResult | null): XPathResult"] + "signatures": [ + "evaluate(expression: string, contextNode: Node, resolver: XPathNSResolver | null, type: number, result: XPathResult | null): XPathResult" + ] }, { "kind": "method", "interface": "Document", "name": "evaluate", - "signatures": ["evaluate(expression: string, contextNode: Node, resolver: XPathNSResolver | null, type: number, result: XPathResult | null): XPathResult"] + "signatures": [ + "evaluate(expression: string, contextNode: Node, resolver: XPathNSResolver | null, type: number, result: XPathResult | null): XPathResult" + ] }, { "kind": "method", "interface": "XPathExpression", "name": "evaluate", - "signatures": ["evaluate(contextNode: Node, type: number, result: XPathResult | null): XPathResult"] + "signatures": [ + "evaluate(contextNode: Node, type: number, result: XPathResult | null): XPathResult" + ] }, { "kind": "extends", @@ -1125,38 +1315,50 @@ { "kind": "indexer", "interface": "DOMStringMap", - "signatures": ["[name: string]: string | undefined"] + "signatures": [ + "[name: string]: string | undefined" + ] }, { "kind": "method", "interface": "DOMImplementation", "name": "hasFeature", - "signatures": ["hasFeature(feature: string | null, version: string | null): boolean"] + "signatures": [ + "hasFeature(feature: string | null, version: string | null): boolean" + ] }, { "kind": "method", "interface": "DOMImplementation", "name": "createDocument", - "signatures": ["createDocument(namespaceURI: string | null, qualifiedName: string | null, doctype: DocumentType | null): Document"] + "signatures": [ + "createDocument(namespaceURI: string | null, qualifiedName: string | null, doctype: DocumentType | null): Document" + ] }, { "kind": "method", "interface": "FormData", "name": "append", "flavor": "Web", - "signatures": ["append(name: string, value: string | Blob, fileName?: string): void"] + "signatures": [ + "append(name: string, value: string | Blob, fileName?: string): void" + ] }, { "kind": "method", "interface": "EventTarget", "name": "addEventListener", - "signatures": ["addEventListener(type: string, listener?: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void"] + "signatures": [ + "addEventListener(type: string, listener?: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void" + ] }, { "kind": "method", "interface": "EventTarget", "name": "removeEventListener", - "signatures": ["removeEventListener(type: string, listener?: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void"] + "signatures": [ + "removeEventListener(type: string, listener?: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void" + ] }, { "kind": "constructor", @@ -1381,13 +1583,27 @@ "kind": "constructor", "interface": "Headers", "signatures": [ - "new(init?: Headers | string[][] | object): Headers" + "new(init?: HeadersInit): Headers" ] }, { "kind": "method", "interface": "ServiceWorkerContainer", "name": "getRegistration", - "signatures": ["getRegistration(): Promise"] + "signatures": [ + "getRegistration(): Promise" + ] + }, + { + "kind": "property", + "interface": "RequestInit", + "name": "headers?", + "type": "HeadersInit" + }, + { + "kind": "property", + "interface": "ResponseInit", + "name": "headers?", + "type": "HeadersInit" } - ] +] \ No newline at end of file diff --git a/inputfiles/removedTypes.json b/inputfiles/removedTypes.json index 9168ace44..3fe4fe43f 100644 --- a/inputfiles/removedTypes.json +++ b/inputfiles/removedTypes.json @@ -72,10 +72,16 @@ { "kind": "indexer", "interface": "Window", - "signatures": [ "[index: number]: Window" ] + "signatures": [ + "[index: number]: Window" + ] }, { "kind": "typedef", "name": "JSON" + }, + { + "kind": "typedef", + "name": "HeadersInit" } -] +] \ No newline at end of file