diff --git a/lib/bom.js b/lib/bom.js index ddca88541b7..51e7164b7d4 100644 --- a/lib/bom.js +++ b/lib/bom.js @@ -160,6 +160,10 @@ type USBPermissionDescriptor = {| exclusionFilters: Array; |} +type FileSystemHandlePermissionDescriptor = {| + mode: "read" | "readwrite"; +|} + declare class PermissionStatus extends EventTarget { onchange: ?((event: any) => mixed); +state: PermissionState; @@ -2441,3 +2445,124 @@ type SetUpOptions = { index: number; ... } + +declare type FileSystemHandleKind = "file" | "directory"; + +// https://wicg.github.io/file-system-access/#api-filesystemhandle +declare class FileSystemHandle { + +kind: FileSystemHandleKind; + +name: string; + + isSameEntry: (other: FileSystemHandle) => Promise; + queryPermission?: ( + descriptor: FileSystemHandlePermissionDescriptor + ) => Promise; + requestPermission?: ( + descriptor: FileSystemHandlePermissionDescriptor + ) => Promise; +} + +// https://fs.spec.whatwg.org/#api-filesystemfilehandle +declare class FileSystemFileHandle extends FileSystemHandle { + +kind: "file"; + + constructor(name: string): void; + + getFile(): Promise; + createSyncAccessHandle(): Promise; + createWritable(options?: {| + keepExistingData?: boolean, + |}): Promise; +} + +// https://fs.spec.whatwg.org/#api-filesystemdirectoryhandle +declare class FileSystemDirectoryHandle extends FileSystemHandle { + +kind: "directory"; + + constructor(name: string): void; + + getDirectoryHandle( + name: string, + options?: {| create?: boolean |} + ): Promise; + getFileHandle( + name: string, + options?: {| create?: boolean |} + ): Promise; + removeEntry(name: string, options?: {| recursive?: boolean |}): Promise; + resolve(possibleDescendant: FileSystemHandle): Promise | null>; + + // Async iterator functions + @@asyncIterator(): AsyncIterator<[string, FileSystemHandle]>; + entries(): AsyncIterator<[string, FileSystemHandle]>; + keys(): AsyncIterator; + values(): AsyncIterator; +} + +// https://fs.spec.whatwg.org/#api-filesystemsyncaccesshandle +declare class FileSystemSyncAccessHandle { + close(): void; + flush(): void; + getSize(): number; + read(buffer: ArrayBuffer, options?: {| at: number |}): number; + truncate(newSize: number): void; + write(buffer: ArrayBuffer, options?: {| at: number |}): number; +} + +// https://streams.spec.whatwg.org/#default-writer-class +declare class WritableStreamDefaultWriter { + +closed: Promise; + +desiredSize: number; + +ready: Promise; + + constructor(): void; + + abort(reason?: string): Promise; + close(): Promise; + releaseLock(): void; + write(chunk: any): Promise; +} + +// https://streams.spec.whatwg.org/#ws-class +declare class WriteableStream { + +locked: boolean; + + constructor(): void; + + abort(reason: string): Promise; + close(): Promise; + getWriter(): WritableStreamDefaultWriter; +} + +// https://fs.spec.whatwg.org/#dictdef-writeparams +declare type FileSystemWriteableFileStreamDataTypes = + | ArrayBuffer + | $TypedArray + | DataView + | Blob + | string; + +// https://fs.spec.whatwg.org/#dictdef-writeparams +declare type FileSystemWriteableFileStreamData = + | FileSystemWriteableFileStreamDataTypes + | {| + type: "write", + position?: number, + data: FileSystemWriteableFileStreamDataTypes, + |} + | {| + type: "seek", + position: number, + data: FileSystemWriteableFileStreamDataTypes, + |} + | {| + type: "size", + size: number, + |}; + +// https://fs.spec.whatwg.org/#api-filesystemwritablefilestream +declare class FileSystemWritableFileStream extends WriteableStream { + write(data: FileSystemWriteableFileStreamData): Promise; + truncate(size: number): Promise; + seek(position: number): Promise; +} diff --git a/tests/bom/bom.exp b/tests/bom/bom.exp index adc826fb211..399a4f139ff 100644 --- a/tests/bom/bom.exp +++ b/tests/bom/bom.exp @@ -8,8 +8,8 @@ Cannot call `FormData` with empty string bound to `form` because string [1] is i ^^ [1] References: - /bom.js:623:24 - 623| constructor(form?: HTMLFormElement): void; + /bom.js:627:24 + 627| constructor(form?: HTMLFormElement): void; ^^^^^^^^^^^^^^^ [2] @@ -26,8 +26,8 @@ References: /dom.js:1167:70 1167| createElement(tagName: 'input', options?: ElementCreationOptions): HTMLInputElement; ^^^^^^^^^^^^^^^^ [1] - /bom.js:623:24 - 623| constructor(form?: HTMLFormElement): void; + /bom.js:627:24 + 627| constructor(form?: HTMLFormElement): void; ^^^^^^^^^^^^^^^ [2] @@ -40,8 +40,8 @@ Cannot assign `a.get(...)` to `d` because null or undefined [1] is incompatible ^^^^^^^^^^^^ References: - /bom.js:626:24 - 626| get(name: string): ?FormDataEntryValue; + /bom.js:630:24 + 630| get(name: string): ?FormDataEntryValue; ^^^^^^^^^^^^^^^^^^^ [1] FormData.js:14:10 14| const d: string = a.get('foo'); // incorrect @@ -57,8 +57,8 @@ Cannot assign `a.get(...)` to `d` because `File` [1] is incompatible with string ^^^^^^^^^^^^ References: - /bom.js:626:25 - 626| get(name: string): ?FormDataEntryValue; + /bom.js:630:25 + 630| get(name: string): ?FormDataEntryValue; ^^^^^^^^^^^^^^^^^^ [1] FormData.js:14:10 14| const d: string = a.get('foo'); // incorrect @@ -74,8 +74,8 @@ Cannot assign `a.get(...)` to `e` because null or undefined [1] is incompatible ^^^^^^^^^^^^ References: - /bom.js:626:24 - 626| get(name: string): ?FormDataEntryValue; + /bom.js:630:24 + 630| get(name: string): ?FormDataEntryValue; ^^^^^^^^^^^^^^^^^^^ [1] FormData.js:15:10 15| const e: Blob = a.get('foo'); // incorrect @@ -91,8 +91,8 @@ Cannot assign `a.get(...)` to `e` because string [1] is incompatible with `Blob` ^^^^^^^^^^^^ References: - /bom.js:626:25 - 626| get(name: string): ?FormDataEntryValue; + /bom.js:630:25 + 630| get(name: string): ?FormDataEntryValue; ^^^^^^^^^^^^^^^^^^ [1] FormData.js:15:10 15| const e: Blob = a.get('foo'); // incorrect @@ -108,8 +108,8 @@ Cannot call `a.get` with `2` bound to `name` because number [1] is incompatible ^ [1] References: - /bom.js:626:15 - 626| get(name: string): ?FormDataEntryValue; + /bom.js:630:15 + 630| get(name: string): ?FormDataEntryValue; ^^^^^^ [2] @@ -130,11 +130,11 @@ References: FormData.js:21:33 21| const a2: Array = a.getAll('foo'); // incorrect ^^^^^^ [1] - /bom.js:620:27 - 620| type FormDataEntryValue = string | File + /bom.js:624:27 + 624| type FormDataEntryValue = string | File ^^^^^^ [2] - /bom.js:620:36 - 620| type FormDataEntryValue = string | File + /bom.js:624:36 + 624| type FormDataEntryValue = string | File ^^^^ [3] @@ -155,11 +155,11 @@ References: FormData.js:22:26 22| const a3: Array = a.getAll('foo'); // incorrect ^^^^ [1] - /bom.js:620:36 - 620| type FormDataEntryValue = string | File + /bom.js:624:36 + 624| type FormDataEntryValue = string | File ^^^^ [2] - /bom.js:620:27 - 620| type FormDataEntryValue = string | File + /bom.js:624:27 + 624| type FormDataEntryValue = string | File ^^^^^^ [3] @@ -172,8 +172,8 @@ Cannot call `a.getAll` with `23` bound to `name` because number [1] is incompati ^^ [1] References: - /bom.js:627:18 - 627| getAll(name: string): Array; + /bom.js:631:18 + 631| getAll(name: string): Array; ^^^^^^ [2] @@ -191,11 +191,11 @@ References: FormData.js:27:14 27| a.set('foo', {}); // incorrect ^^ [1] - /bom.js:630:30 - 630| set(name: string, value: Blob, filename?: string): void; + /bom.js:634:30 + 634| set(name: string, value: Blob, filename?: string): void; ^^^^ [2] - /bom.js:631:30 - 631| set(name: string, value: File, filename?: string): void; + /bom.js:635:30 + 635| set(name: string, value: File, filename?: string): void; ^^^^ [3] @@ -214,14 +214,14 @@ References: FormData.js:28:7 28| a.set(2, 'bar'); // incorrect ^ [1] - /bom.js:629:15 - 629| set(name: string, value: string): void; + /bom.js:633:15 + 633| set(name: string, value: string): void; ^^^^^^ [2] - /bom.js:630:15 - 630| set(name: string, value: Blob, filename?: string): void; + /bom.js:634:15 + 634| set(name: string, value: Blob, filename?: string): void; ^^^^^^ [3] - /bom.js:631:15 - 631| set(name: string, value: File, filename?: string): void; + /bom.js:635:15 + 635| set(name: string, value: File, filename?: string): void; ^^^^^^ [4] @@ -239,11 +239,11 @@ References: FormData.js:29:14 29| a.set('foo', 'bar', 'baz'); // incorrect ^^^^^ [1] - /bom.js:630:30 - 630| set(name: string, value: Blob, filename?: string): void; + /bom.js:634:30 + 634| set(name: string, value: Blob, filename?: string): void; ^^^^ [2] - /bom.js:631:30 - 631| set(name: string, value: File, filename?: string): void; + /bom.js:635:30 + 635| set(name: string, value: File, filename?: string): void; ^^^^ [3] @@ -261,11 +261,11 @@ References: FormData.js:32:33 32| a.set('bar', new File([], 'q'), 2) // incorrect ^ [1] - /bom.js:630:47 - 630| set(name: string, value: Blob, filename?: string): void; + /bom.js:634:47 + 634| set(name: string, value: Blob, filename?: string): void; ^^^^^^ [2] - /bom.js:631:47 - 631| set(name: string, value: File, filename?: string): void; + /bom.js:635:47 + 635| set(name: string, value: File, filename?: string): void; ^^^^^^ [3] @@ -283,14 +283,14 @@ References: FormData.js:35:24 35| a.set('bar', new Blob, 2) // incorrect ^ [1] - /bom.js:630:47 - 630| set(name: string, value: Blob, filename?: string): void; + /bom.js:634:47 + 634| set(name: string, value: Blob, filename?: string): void; ^^^^^^ [2] FormData.js:35:14 35| a.set('bar', new Blob, 2) // incorrect ^^^^^^^^ [3] - /bom.js:631:30 - 631| set(name: string, value: File, filename?: string): void; + /bom.js:635:30 + 635| set(name: string, value: File, filename?: string): void; ^^^^ [4] @@ -308,11 +308,11 @@ References: FormData.js:39:17 39| a.append('foo', {}); // incorrect ^^ [1] - /bom.js:634:33 - 634| append(name: string, value: Blob, filename?: string): void; + /bom.js:638:33 + 638| append(name: string, value: Blob, filename?: string): void; ^^^^ [2] - /bom.js:635:33 - 635| append(name: string, value: File, filename?: string): void; + /bom.js:639:33 + 639| append(name: string, value: File, filename?: string): void; ^^^^ [3] @@ -331,14 +331,14 @@ References: FormData.js:40:10 40| a.append(2, 'bar'); // incorrect ^ [1] - /bom.js:633:18 - 633| append(name: string, value: string): void; + /bom.js:637:18 + 637| append(name: string, value: string): void; ^^^^^^ [2] - /bom.js:634:18 - 634| append(name: string, value: Blob, filename?: string): void; + /bom.js:638:18 + 638| append(name: string, value: Blob, filename?: string): void; ^^^^^^ [3] - /bom.js:635:18 - 635| append(name: string, value: File, filename?: string): void; + /bom.js:639:18 + 639| append(name: string, value: File, filename?: string): void; ^^^^^^ [4] @@ -356,11 +356,11 @@ References: FormData.js:41:17 41| a.append('foo', 'bar', 'baz'); // incorrect ^^^^^ [1] - /bom.js:634:33 - 634| append(name: string, value: Blob, filename?: string): void; + /bom.js:638:33 + 638| append(name: string, value: Blob, filename?: string): void; ^^^^ [2] - /bom.js:635:33 - 635| append(name: string, value: File, filename?: string): void; + /bom.js:639:33 + 639| append(name: string, value: File, filename?: string): void; ^^^^ [3] @@ -378,11 +378,11 @@ References: FormData.js:45:36 45| a.append('bar', new File([], 'q'), 2) // incorrect ^ [1] - /bom.js:634:50 - 634| append(name: string, value: Blob, filename?: string): void; + /bom.js:638:50 + 638| append(name: string, value: Blob, filename?: string): void; ^^^^^^ [2] - /bom.js:635:50 - 635| append(name: string, value: File, filename?: string): void; + /bom.js:639:50 + 639| append(name: string, value: File, filename?: string): void; ^^^^^^ [3] @@ -400,14 +400,14 @@ References: FormData.js:48:27 48| a.append('bar', new Blob, 2) // incorrect ^ [1] - /bom.js:634:50 - 634| append(name: string, value: Blob, filename?: string): void; + /bom.js:638:50 + 638| append(name: string, value: Blob, filename?: string): void; ^^^^^^ [2] FormData.js:48:17 48| a.append('bar', new Blob, 2) // incorrect ^^^^^^^^ [3] - /bom.js:635:33 - 635| append(name: string, value: File, filename?: string): void; + /bom.js:639:33 + 639| append(name: string, value: File, filename?: string): void; ^^^^ [4] @@ -420,8 +420,8 @@ Cannot call `a.delete` with `3` bound to `name` because number [1] is incompatib ^ [1] References: - /bom.js:637:18 - 637| delete(name: string): void; + /bom.js:641:18 + 641| delete(name: string): void; ^^^^^^ [2] @@ -434,8 +434,8 @@ Cannot assign `x` to `x` because string [1] is incompatible with number [2]. [in ^^^^^^^^ References: - /bom.js:639:22 - 639| keys(): Iterator; + /bom.js:643:22 + 643| keys(): Iterator; ^^^^^^ [1] FormData.js:56:13 56| for (let x: number of a.keys()) {} // incorrect @@ -456,11 +456,11 @@ References: FormData.js:64:43 64| for (let [x, y]: [string, string | File | Blob] of a.entries()) {} // incorrect ^^^^ [1] - /bom.js:620:36 - 620| type FormDataEntryValue = string | File + /bom.js:624:36 + 624| type FormDataEntryValue = string | File ^^^^ [2] - /bom.js:620:27 - 620| type FormDataEntryValue = string | File + /bom.js:624:27 + 624| type FormDataEntryValue = string | File ^^^^^^ [3] @@ -474,8 +474,8 @@ Cannot assign for-of element to destructuring because string [1] is incompatible ^^^^^^^^^^^ References: - /bom.js:641:26 - 641| entries(): Iterator<[string, FormDataEntryValue]>; + /bom.js:645:26 + 645| entries(): Iterator<[string, FormDataEntryValue]>; ^^^^^^ [1] FormData.js:65:19 65| for (let [x, y]: [number, string] of a.entries()) {} // incorrect @@ -492,8 +492,8 @@ Cannot assign for-of element to destructuring because `File` [1] is incompatible ^^^^^^^^^^^ References: - /bom.js:641:34 - 641| entries(): Iterator<[string, FormDataEntryValue]>; + /bom.js:645:34 + 645| entries(): Iterator<[string, FormDataEntryValue]>; ^^^^^^^^^^^^^^^^^^ [1] FormData.js:65:27 65| for (let [x, y]: [number, string] of a.entries()) {} // incorrect @@ -510,8 +510,8 @@ Cannot assign for-of element to destructuring because `File` [1] is incompatible ^^^^^^^^^^^ References: - /bom.js:641:34 - 641| entries(): Iterator<[string, FormDataEntryValue]>; + /bom.js:645:34 + 645| entries(): Iterator<[string, FormDataEntryValue]>; ^^^^^^^^^^^^^^^^^^ [1] FormData.js:66:27 66| for (let [x, y]: [string, number] of a.entries()) {} // incorrect @@ -528,8 +528,8 @@ Cannot assign for-of element to destructuring because string [1] is incompatible ^^^^^^^^^^^ References: - /bom.js:641:34 - 641| entries(): Iterator<[string, FormDataEntryValue]>; + /bom.js:645:34 + 645| entries(): Iterator<[string, FormDataEntryValue]>; ^^^^^^^^^^^^^^^^^^ [1] FormData.js:66:27 66| for (let [x, y]: [string, number] of a.entries()) {} // incorrect @@ -550,11 +550,11 @@ References: FormData.js:66:27 66| for (let [x, y]: [string, number] of a.entries()) {} // incorrect ^^^^^^ [1] - /bom.js:620:27 - 620| type FormDataEntryValue = string | File + /bom.js:624:27 + 624| type FormDataEntryValue = string | File ^^^^^^ [2] - /bom.js:620:36 - 620| type FormDataEntryValue = string | File + /bom.js:624:36 + 624| type FormDataEntryValue = string | File ^^^^ [3] @@ -568,8 +568,8 @@ Cannot assign for-of element to destructuring because string [1] is incompatible ^^^^^^^^^^^ References: - /bom.js:641:26 - 641| entries(): Iterator<[string, FormDataEntryValue]>; + /bom.js:645:26 + 645| entries(): Iterator<[string, FormDataEntryValue]>; ^^^^^^ [1] FormData.js:67:19 67| for (let [x, y]: [number, number] of a.entries()) {} // incorrect @@ -586,8 +586,8 @@ Cannot assign for-of element to destructuring because `File` [1] is incompatible ^^^^^^^^^^^ References: - /bom.js:641:34 - 641| entries(): Iterator<[string, FormDataEntryValue]>; + /bom.js:645:34 + 645| entries(): Iterator<[string, FormDataEntryValue]>; ^^^^^^^^^^^^^^^^^^ [1] FormData.js:67:27 67| for (let [x, y]: [number, number] of a.entries()) {} // incorrect @@ -604,8 +604,8 @@ Cannot assign for-of element to destructuring because string [1] is incompatible ^^^^^^^^^^^ References: - /bom.js:641:34 - 641| entries(): Iterator<[string, FormDataEntryValue]>; + /bom.js:645:34 + 645| entries(): Iterator<[string, FormDataEntryValue]>; ^^^^^^^^^^^^^^^^^^ [1] FormData.js:67:27 67| for (let [x, y]: [number, number] of a.entries()) {} // incorrect @@ -626,11 +626,11 @@ References: FormData.js:67:27 67| for (let [x, y]: [number, number] of a.entries()) {} // incorrect ^^^^^^ [1] - /bom.js:620:27 - 620| type FormDataEntryValue = string | File + /bom.js:624:27 + 624| type FormDataEntryValue = string | File ^^^^^^ [2] - /bom.js:620:36 - 620| type FormDataEntryValue = string | File + /bom.js:624:36 + 624| type FormDataEntryValue = string | File ^^^^ [3] @@ -643,8 +643,8 @@ Cannot assign `headers.get(...)` to `b` because null [1] is incompatible with st ^^^^^^^^^^^^^^^^^^ References: - /bom.js:1571:24 - 1571| get(name: string): null | string; + /bom.js:1575:24 + 1575| get(name: string): null | string; ^^^^ [1] Headers.js:8:10 8| const b: string = headers.get('foo'); // incorrect @@ -661,8 +661,8 @@ Cannot call `navigator.mediaDevices.getUserMedia` because property `getUserMedia ^^^^^^^^^^^^ References: - /bom.js:320:20 - 320| mediaDevices?: MediaDevices; + /bom.js:324:20 + 324| mediaDevices?: MediaDevices; ^^^^^^^^^^^^ [1] @@ -675,8 +675,8 @@ Cannot call `MutationObserver` because function [1] requires another argument. [ ^^^^^^^^^^^^^^^^ References: - /bom.js:670:5 - 670| constructor(callback: (arr: Array, observer: MutationObserver) => mixed): void; + /bom.js:674:5 + 674| constructor(callback: (arr: Array, observer: MutationObserver) => mixed): void; ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [1] @@ -690,8 +690,8 @@ Cannot call `MutationObserver` with `42` bound to `callback` because number [1] ^^ [1] References: - /bom.js:670:27 - 670| constructor(callback: (arr: Array, observer: MutationObserver) => mixed): void; + /bom.js:674:27 + 674| constructor(callback: (arr: Array, observer: MutationObserver) => mixed): void; ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [2] @@ -705,8 +705,8 @@ in the first parameter. [incompatible-call] ^^^^^^ [1] References: - /bom.js:670:33 - 670| constructor(callback: (arr: Array, observer: MutationObserver) => mixed): void; + /bom.js:674:33 + 674| constructor(callback: (arr: Array, observer: MutationObserver) => mixed): void; ^^^^^^^^^^^^^^^^^^^^^ [2] @@ -719,8 +719,8 @@ Cannot call `o.observe` because function [1] requires another argument. [incompa ^^^^^^^ References: - /bom.js:671:5 - 671| observe(target: Node, options: MutationObserverInit): void; + /bom.js:675:5 + 675| observe(target: Node, options: MutationObserverInit): void; ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [1] @@ -739,14 +739,14 @@ References: MutationObserver.js:18:1 18| o.observe(); // incorrect ^^^^^^^^^^^ [1] - /bom.js:657:7 - 657| | { childList: true, ... } + /bom.js:661:7 + 661| | { childList: true, ... } ^^^^^^^^^^^^^^^^^^^^^^^^ [2] - /bom.js:658:7 - 658| | { attributes: true, ... } + /bom.js:662:7 + 662| | { attributes: true, ... } ^^^^^^^^^^^^^^^^^^^^^^^^^ [3] - /bom.js:659:7 - 659| | { characterData: true, ... } + /bom.js:663:7 + 663| | { characterData: true, ... } ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [4] @@ -759,8 +759,8 @@ Cannot call `o.observe` because function [1] requires another argument. [incompa ^^^^^^^ References: - /bom.js:671:5 - 671| observe(target: Node, options: MutationObserverInit): void; + /bom.js:675:5 + 675| observe(target: Node, options: MutationObserverInit): void; ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [1] @@ -779,14 +779,14 @@ References: MutationObserver.js:19:1 19| o.observe('invalid'); // incorrect ^^^^^^^^^^^^^^^^^^^^ [1] - /bom.js:657:7 - 657| | { childList: true, ... } + /bom.js:661:7 + 661| | { childList: true, ... } ^^^^^^^^^^^^^^^^^^^^^^^^ [2] - /bom.js:658:7 - 658| | { attributes: true, ... } + /bom.js:662:7 + 662| | { attributes: true, ... } ^^^^^^^^^^^^^^^^^^^^^^^^^ [3] - /bom.js:659:7 - 659| | { characterData: true, ... } + /bom.js:663:7 + 663| | { characterData: true, ... } ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [4] @@ -800,8 +800,8 @@ Cannot call `o.observe` with `'invalid'` bound to `target` because string [1] is ^^^^^^^^^ [1] References: - /bom.js:671:21 - 671| observe(target: Node, options: MutationObserverInit): void; + /bom.js:675:21 + 675| observe(target: Node, options: MutationObserverInit): void; ^^^^ [2] @@ -814,8 +814,8 @@ Cannot call `o.observe` because function [1] requires another argument. [incompa ^^^^^^^ References: - /bom.js:671:5 - 671| observe(target: Node, options: MutationObserverInit): void; + /bom.js:675:5 + 675| observe(target: Node, options: MutationObserverInit): void; ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [1] @@ -834,14 +834,14 @@ References: MutationObserver.js:20:1 20| o.observe(div); // incorrect ^^^^^^^^^^^^^^ [1] - /bom.js:657:7 - 657| | { childList: true, ... } + /bom.js:661:7 + 661| | { childList: true, ... } ^^^^^^^^^^^^^^^^^^^^^^^^ [2] - /bom.js:658:7 - 658| | { attributes: true, ... } + /bom.js:662:7 + 662| | { attributes: true, ... } ^^^^^^^^^^^^^^^^^^^^^^^^^ [3] - /bom.js:659:7 - 659| | { characterData: true, ... } + /bom.js:663:7 + 663| | { characterData: true, ... } ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [4] @@ -857,14 +857,14 @@ Cannot call `o.observe` with object literal bound to `options` because: [incompa ^^ [1] References: - /bom.js:657:7 - 657| | { childList: true, ... } + /bom.js:661:7 + 661| | { childList: true, ... } ^^^^^^^^^^^^^^^^^^^^^^^^ [2] - /bom.js:658:7 - 658| | { attributes: true, ... } + /bom.js:662:7 + 662| | { attributes: true, ... } ^^^^^^^^^^^^^^^^^^^^^^^^^ [3] - /bom.js:659:7 - 659| | { characterData: true, ... } + /bom.js:663:7 + 663| | { characterData: true, ... } ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [4] @@ -880,14 +880,14 @@ Cannot call `o.observe` with object literal bound to `options` because: [incompa ^^^^^^^^^^^^^^^^^ [1] References: - /bom.js:657:7 - 657| | { childList: true, ... } + /bom.js:661:7 + 661| | { childList: true, ... } ^^^^^^^^^^^^^^^^^^^^^^^^ [2] - /bom.js:658:7 - 658| | { attributes: true, ... } + /bom.js:662:7 + 662| | { attributes: true, ... } ^^^^^^^^^^^^^^^^^^^^^^^^^ [3] - /bom.js:659:7 - 659| | { characterData: true, ... } + /bom.js:663:7 + 663| | { characterData: true, ... } ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [4] @@ -901,8 +901,8 @@ in property `attributeFilter`. [incompatible-call] ^^^^ [1] References: - /bom.js:665:21 - 665| attributeFilter?: Array, + /bom.js:669:21 + 669| attributeFilter?: Array, ^^^^^^^^^^^^^ [2] @@ -915,8 +915,8 @@ Cannot call `navigator.storage.persisted` because property `persisted` is missin ^^^^^^^^^ References: - /bom.js:280:13 - 280| storage?: StorageManager + /bom.js:284:13 + 284| storage?: StorageManager ^^^^^^^^^^^^^^ [1] @@ -929,8 +929,8 @@ Cannot get `navigator.storage.estimate` because property `estimate` is missing i ^^^^^^^^ References: - /bom.js:280:13 - 280| storage?: StorageManager + /bom.js:284:13 + 284| storage?: StorageManager ^^^^^^^^^^^^^^ [1] @@ -944,8 +944,8 @@ Cannot assign `estimate.usageDetails` to `usageDetails` because undefined [1] is ^^^^^^^^^^^^^^^^^^^^^ References: - /bom.js:299:19 - 299| +usageDetails?: StorageManagerUsageDetails; + /bom.js:303:19 + 303| +usageDetails?: StorageManagerUsageDetails; ^^^^^^^^^^^^^^^^^^^^^^^^^^ [1] StorageManager.js:11:27 11| const usageDetails: { [StorageManagerRegisteredEndpoint]: number } = // incorrect @@ -961,8 +961,8 @@ Cannot assign `params.get(...)` to `b` because null [1] is incompatible with str ^^^^^^^^^^^^^^^^^ References: - /bom.js:1588:24 - 1588| get(name: string): null | string; + /bom.js:1592:24 + 1592| get(name: string): null | string; ^^^^ [1] URLSearchParams.js:8:10 8| const b: string = params.get('foo'); // incorrect diff --git a/tests/fetch/fetch.exp b/tests/fetch/fetch.exp index 263d083557b..9a5476068ce 100644 --- a/tests/fetch/fetch.exp +++ b/tests/fetch/fetch.exp @@ -8,8 +8,8 @@ Cannot assign `fetch(...)` to `b` because `Response` [1] is incompatible with st ^^^^^^^^^^^^^^^^ References: - /bom.js:1705:76 - 1705| declare function fetch(input: RequestInfo, init?: RequestOptions): Promise; + /bom.js:1709:76 + 1709| declare function fetch(input: RequestInfo, init?: RequestOptions): Promise; ^^^^^^^^ [1] fetch.js:12:18 12| const b: Promise = fetch(myRequest); // incorrect @@ -32,8 +32,8 @@ References: fetch.js:25:18 25| const d: Promise = fetch('image.png'); // incorrect ^^^^ [1] - /bom.js:1705:76 - 1705| declare function fetch(input: RequestInfo, init?: RequestOptions): Promise; + /bom.js:1709:76 + 1709| declare function fetch(input: RequestInfo, init?: RequestOptions): Promise; ^^^^^^^^ [2] /core.js:1935:24 1935| declare class Promise<+R = mixed> { @@ -52,14 +52,14 @@ Cannot call `Headers` with `''Content-T...'` bound to `init` because: [incompati ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [1] References: - /bom.js:1559:20 - 1559| type HeadersInit = Headers | Array<[string, string]> | { [key: string]: string, ... }; + /bom.js:1563:20 + 1563| type HeadersInit = Headers | Array<[string, string]> | { [key: string]: string, ... }; ^^^^^^^ [2] - /bom.js:1559:30 - 1559| type HeadersInit = Headers | Array<[string, string]> | { [key: string]: string, ... }; + /bom.js:1563:30 + 1563| type HeadersInit = Headers | Array<[string, string]> | { [key: string]: string, ... }; ^^^^^^^^^^^^^^^^^^^^^^^ [3] - /bom.js:1559:56 - 1559| type HeadersInit = Headers | Array<[string, string]> | { [key: string]: string, ... }; + /bom.js:1563:56 + 1563| type HeadersInit = Headers | Array<[string, string]> | { [key: string]: string, ... }; ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [4] @@ -77,11 +77,11 @@ References: headers.js:4:24 4| const b = new Headers(['Content-Type', 'image/jpeg']); // not correct ^^^^^^^^^^^^^^ [1] - /bom.js:1559:36 - 1559| type HeadersInit = Headers | Array<[string, string]> | { [key: string]: string, ... }; + /bom.js:1563:36 + 1563| type HeadersInit = Headers | Array<[string, string]> | { [key: string]: string, ... }; ^^^^^^^^^^^^^^^^ [2] - /bom.js:1559:56 - 1559| type HeadersInit = Headers | Array<[string, string]> | { [key: string]: string, ... }; + /bom.js:1563:56 + 1563| type HeadersInit = Headers | Array<[string, string]> | { [key: string]: string, ... }; ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [4] @@ -94,8 +94,8 @@ Cannot call `e.append` because function [1] requires another argument. [incompat ^^^^^^ References: - /bom.js:1567:5 - 1567| append(name: string, value: string): void; + /bom.js:1571:5 + 1571| append(name: string, value: string): void; ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [1] @@ -108,8 +108,8 @@ Cannot call `e.append` because function [1] requires another argument. [incompat ^^^^^^ References: - /bom.js:1567:5 - 1567| append(name: string, value: string): void; + /bom.js:1571:5 + 1571| append(name: string, value: string): void; ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [1] @@ -123,8 +123,8 @@ Cannot call `e.append` with object literal bound to `name` because object litera ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [1] References: - /bom.js:1567:18 - 1567| append(name: string, value: string): void; + /bom.js:1571:18 + 1571| append(name: string, value: string): void; ^^^^^^ [2] @@ -137,8 +137,8 @@ Cannot call `e.set` because function [1] requires another argument. [incompatibl ^^^ References: - /bom.js:1574:5 - 1574| set(name: string, value: string): void; + /bom.js:1578:5 + 1578| set(name: string, value: string): void; ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [1] @@ -151,8 +151,8 @@ Cannot call `e.set` because function [1] requires another argument. [incompatibl ^^^ References: - /bom.js:1574:5 - 1574| set(name: string, value: string): void; + /bom.js:1578:5 + 1578| set(name: string, value: string): void; ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [1] @@ -166,8 +166,8 @@ Cannot call `e.set` with object literal bound to `name` because object literal [ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [1] References: - /bom.js:1574:15 - 1574| set(name: string, value: string): void; + /bom.js:1578:15 + 1578| set(name: string, value: string): void; ^^^^^^ [2] @@ -180,8 +180,8 @@ Cannot assign `e.append(...)` to `f` because undefined [1] is incompatible with ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ References: - /bom.js:1567:42 - 1567| append(name: string, value: string): void; + /bom.js:1571:42 + 1571| append(name: string, value: string): void; ^^^^ [1] headers.js:15:10 15| const f: Headers = e.append('Content-Type', 'image/jpeg'); // not correct @@ -197,8 +197,8 @@ Cannot assign `e.get(...)` to `g` because null [1] is incompatible with string [ ^^^^^^^^^^^^^^^^^^^^^ References: - /bom.js:1571:24 - 1571| get(name: string): null | string; + /bom.js:1575:24 + 1575| get(name: string): null | string; ^^^^ [1] headers.js:17:10 17| const g: string = e.get('Content-Type'); // correct @@ -214,8 +214,8 @@ Cannot assign `e.get(...)` to `h` because null [1] is incompatible with number [ ^^^^^^^^^^^^^^^^^^^^^ References: - /bom.js:1571:24 - 1571| get(name: string): null | string; + /bom.js:1575:24 + 1575| get(name: string): null | string; ^^^^ [1] headers.js:18:10 18| const h: number = e.get('Content-Type'); // not correct @@ -231,8 +231,8 @@ Cannot assign `e.get(...)` to `h` because string [1] is incompatible with number ^^^^^^^^^^^^^^^^^^^^^ References: - /bom.js:1571:31 - 1571| get(name: string): null | string; + /bom.js:1575:31 + 1575| get(name: string): null | string; ^^^^^^ [1] headers.js:18:10 18| const h: number = e.get('Content-Type'); // not correct @@ -268,14 +268,14 @@ References: request.js:2:20 2| const a: Request = new Request(); // incorrect ^^^^^^^^^^^^^ [1] - /bom.js:1611:20 - 1611| type RequestInfo = Request | URL | string; + /bom.js:1615:20 + 1615| type RequestInfo = Request | URL | string; ^^^^^^^ [2] - /bom.js:1611:30 - 1611| type RequestInfo = Request | URL | string; + /bom.js:1615:30 + 1615| type RequestInfo = Request | URL | string; ^^^ [3] - /bom.js:1611:36 - 1611| type RequestInfo = Request | URL | string; + /bom.js:1615:36 + 1615| type RequestInfo = Request | URL | string; ^^^^^^ [4] @@ -293,8 +293,8 @@ References: request.js:4:10 4| const c: Request = new Request(b); // correct ^^^^^^^ [1] - /bom.js:1664:44 - 1664| constructor(input: RequestInfo, init?: RequestOptions): void; + /bom.js:1668:44 + 1668| constructor(input: RequestInfo, init?: RequestOptions): void; ^^^^^^^^^^^^^^ [2] @@ -311,8 +311,8 @@ References: request.js:4:10 4| const c: Request = new Request(b); // correct ^^^^^^^ [1] - /bom.js:1664:44 - 1664| constructor(input: RequestInfo, init?: RequestOptions): void; + /bom.js:1668:44 + 1668| constructor(input: RequestInfo, init?: RequestOptions): void; ^^^^^^^^^^^^^^ [2] @@ -327,11 +327,11 @@ https://flow.org/en/docs/faq/#why-cant-i-pass-a-string-to-a-function-that-takes- ^ References: - /bom.js:1615:11 - 1615| cache?: CacheType, + /bom.js:1619:11 + 1619| cache?: CacheType, ^^^^^^^^^ [1] - /bom.js:1669:12 - 1669| cache: CacheType; + /bom.js:1673:12 + 1673| cache: CacheType; ^^^^^^^^^ [2] @@ -346,11 +346,11 @@ https://flow.org/en/docs/faq/#why-cant-i-pass-a-string-to-a-function-that-takes- ^ References: - /bom.js:1616:17 - 1616| credentials?: CredentialsType, + /bom.js:1620:17 + 1620| credentials?: CredentialsType, ^^^^^^^^^^^^^^^ [1] - /bom.js:1670:18 - 1670| credentials: CredentialsType; + /bom.js:1674:18 + 1674| credentials: CredentialsType; ^^^^^^^^^^^^^^^ [2] @@ -365,11 +365,11 @@ https://flow.org/en/docs/faq/#why-cant-i-pass-a-string-to-a-function-that-takes- ^ References: - /bom.js:1617:13 - 1617| headers?: HeadersInit, + /bom.js:1621:13 + 1621| headers?: HeadersInit, ^^^^^^^^^^^ [1] - /bom.js:1671:14 - 1671| headers: Headers; + /bom.js:1675:14 + 1675| headers: Headers; ^^^^^^^ [2] @@ -384,11 +384,11 @@ https://flow.org/en/docs/faq/#why-cant-i-pass-a-string-to-a-function-that-takes- ^ References: - /bom.js:1617:13 - 1617| headers?: HeadersInit, + /bom.js:1621:13 + 1621| headers?: HeadersInit, ^^^^^^^^^^^ [1] - /bom.js:1671:14 - 1671| headers: Headers; + /bom.js:1675:14 + 1675| headers: Headers; ^^^^^^^ [2] @@ -403,11 +403,11 @@ https://flow.org/en/docs/faq/#why-cant-i-pass-a-string-to-a-function-that-takes- ^ References: - /bom.js:1617:13 - 1617| headers?: HeadersInit, + /bom.js:1621:13 + 1621| headers?: HeadersInit, ^^^^^^^^^^^ [1] - /bom.js:1671:14 - 1671| headers: Headers; + /bom.js:1675:14 + 1675| headers: Headers; ^^^^^^^ [2] @@ -422,11 +422,11 @@ https://flow.org/en/docs/faq/#why-cant-i-pass-a-string-to-a-function-that-takes- ^ References: - /bom.js:1618:15 - 1618| integrity?: string, + /bom.js:1622:15 + 1622| integrity?: string, ^^^^^^ [1] - /bom.js:1672:16 - 1672| integrity: string; + /bom.js:1676:16 + 1676| integrity: string; ^^^^^^ [2] @@ -441,11 +441,11 @@ https://flow.org/en/docs/faq/#why-cant-i-pass-a-string-to-a-function-that-takes- ^ References: - /bom.js:1620:12 - 1620| method?: string, + /bom.js:1624:12 + 1624| method?: string, ^^^^^^ [1] - /bom.js:1673:13 - 1673| method: string; + /bom.js:1677:13 + 1677| method: string; ^^^^^^ [2] @@ -460,11 +460,11 @@ https://flow.org/en/docs/faq/#why-cant-i-pass-a-string-to-a-function-that-takes- ^ References: - /bom.js:1621:10 - 1621| mode?: ModeType, + /bom.js:1625:10 + 1625| mode?: ModeType, ^^^^^^^^ [1] - /bom.js:1674:11 - 1674| mode: ModeType; + /bom.js:1678:11 + 1678| mode: ModeType; ^^^^^^^^ [2] @@ -479,11 +479,11 @@ https://flow.org/en/docs/faq/#why-cant-i-pass-a-string-to-a-function-that-takes- ^ References: - /bom.js:1622:14 - 1622| redirect?: RedirectType, + /bom.js:1626:14 + 1626| redirect?: RedirectType, ^^^^^^^^^^^^ [1] - /bom.js:1675:15 - 1675| redirect: RedirectType; + /bom.js:1679:15 + 1679| redirect: RedirectType; ^^^^^^^^^^^^ [2] @@ -498,11 +498,11 @@ https://flow.org/en/docs/faq/#why-cant-i-pass-a-string-to-a-function-that-takes- ^ References: - /bom.js:1623:14 - 1623| referrer?: string, + /bom.js:1627:14 + 1627| referrer?: string, ^^^^^^ [1] - /bom.js:1676:15 - 1676| referrer: string; + /bom.js:1680:15 + 1680| referrer: string; ^^^^^^ [2] @@ -517,11 +517,11 @@ https://flow.org/en/docs/faq/#why-cant-i-pass-a-string-to-a-function-that-takes- ^ References: - /bom.js:1624:20 - 1624| referrerPolicy?: ReferrerPolicyType, + /bom.js:1628:20 + 1628| referrerPolicy?: ReferrerPolicyType, ^^^^^^^^^^^^^^^^^^ [1] - /bom.js:1677:21 - 1677| referrerPolicy: ReferrerPolicyType; + /bom.js:1681:21 + 1681| referrerPolicy: ReferrerPolicyType; ^^^^^^^^^^^^^^^^^^ [2] @@ -536,11 +536,11 @@ Cannot call `Request` with object literal bound to `input` because: [incompatibl ^^ [1] References: - /bom.js:1611:20 - 1611| type RequestInfo = Request | URL | string; + /bom.js:1615:20 + 1615| type RequestInfo = Request | URL | string; ^^^^^^^ [2] - /bom.js:1611:30 - 1611| type RequestInfo = Request | URL | string; + /bom.js:1615:30 + 1615| type RequestInfo = Request | URL | string; ^^^ [3] @@ -558,8 +558,8 @@ References: request.js:24:19 24| h.text().then((t: Buffer) => t); // incorrect ^^^^^^ [1] - /bom.js:1687:21 - 1687| text(): Promise; + /bom.js:1691:21 + 1691| text(): Promise; ^^^^^^ [2] request.js:24:15 24| h.text().then((t: Buffer) => t); // incorrect @@ -580,8 +580,8 @@ Cannot call `h.arrayBuffer().then` because: [incompatible-call] ^^^^ References: - /bom.js:1683:28 - 1683| arrayBuffer(): Promise; + /bom.js:1687:28 + 1687| arrayBuffer(): Promise; ^^^^^^^^^^^ [1] request.js:26:27 26| h.arrayBuffer().then((ab: Buffer) => ab); // incorrect @@ -606,14 +606,14 @@ Cannot call `Request` with object literal bound to `init` because in property `h ^^^^^^^^^^^^^^^^^^^^^^^^^^ [1] References: - /bom.js:1559:20 - 1559| type HeadersInit = Headers | Array<[string, string]> | { [key: string]: string, ... }; + /bom.js:1563:20 + 1563| type HeadersInit = Headers | Array<[string, string]> | { [key: string]: string, ... }; ^^^^^^^ [2] - /bom.js:1559:30 - 1559| type HeadersInit = Headers | Array<[string, string]> | { [key: string]: string, ... }; + /bom.js:1563:30 + 1563| type HeadersInit = Headers | Array<[string, string]> | { [key: string]: string, ... }; ^^^^^^^^^^^^^^^^^^^^^^^ [3] - /bom.js:1559:56 - 1559| type HeadersInit = Headers | Array<[string, string]> | { [key: string]: string, ... }; + /bom.js:1563:56 + 1563| type HeadersInit = Headers | Array<[string, string]> | { [key: string]: string, ... }; ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [4] @@ -627,8 +627,8 @@ Cannot call `Request` with object literal bound to `init` because null [1] is in ^^^^ [1] References: - /bom.js:1620:12 - 1620| method?: string, + /bom.js:1624:12 + 1624| method?: string, ^^^^^^ [2] @@ -642,8 +642,8 @@ property `status`. [incompatible-call] ^^^^^ [1] References: - /bom.js:1631:12 - 1631| status?: number, + /bom.js:1635:12 + 1635| status?: number, ^^^^^^ [2] @@ -657,8 +657,8 @@ Cannot call `Response` with object literal bound to `init` because null [1] is i ^^^^ [1] References: - /bom.js:1631:12 - 1631| status?: number, + /bom.js:1635:12 + 1635| status?: number, ^^^^^^ [2] @@ -674,14 +674,14 @@ Cannot call `Response` with object literal bound to `init` because in property ` ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [1] References: - /bom.js:1559:20 - 1559| type HeadersInit = Headers | Array<[string, string]> | { [key: string]: string, ... }; + /bom.js:1563:20 + 1563| type HeadersInit = Headers | Array<[string, string]> | { [key: string]: string, ... }; ^^^^^^^ [2] - /bom.js:1559:30 - 1559| type HeadersInit = Headers | Array<[string, string]> | { [key: string]: string, ... }; + /bom.js:1563:30 + 1563| type HeadersInit = Headers | Array<[string, string]> | { [key: string]: string, ... }; ^^^^^^^^^^^^^^^^^^^^^^^ [3] - /bom.js:1559:56 - 1559| type HeadersInit = Headers | Array<[string, string]> | { [key: string]: string, ... }; + /bom.js:1563:56 + 1563| type HeadersInit = Headers | Array<[string, string]> | { [key: string]: string, ... }; ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [4] @@ -709,17 +709,17 @@ Cannot call `Response` with object literal bound to `input` because: [incompatib ^ [1] References: - /bom.js:1609:26 - 1609| type BodyInit = string | URLSearchParams | FormData | Blob | ArrayBuffer | $ArrayBufferView | ReadableStream; + /bom.js:1613:26 + 1613| type BodyInit = string | URLSearchParams | FormData | Blob | ArrayBuffer | $ArrayBufferView | ReadableStream; ^^^^^^^^^^^^^^^ [2] - /bom.js:1609:44 - 1609| type BodyInit = string | URLSearchParams | FormData | Blob | ArrayBuffer | $ArrayBufferView | ReadableStream; + /bom.js:1613:44 + 1613| type BodyInit = string | URLSearchParams | FormData | Blob | ArrayBuffer | $ArrayBufferView | ReadableStream; ^^^^^^^^ [3] - /bom.js:1609:55 - 1609| type BodyInit = string | URLSearchParams | FormData | Blob | ArrayBuffer | $ArrayBufferView | ReadableStream; + /bom.js:1613:55 + 1613| type BodyInit = string | URLSearchParams | FormData | Blob | ArrayBuffer | $ArrayBufferView | ReadableStream; ^^^^ [4] - /bom.js:1609:62 - 1609| type BodyInit = string | URLSearchParams | FormData | Blob | ArrayBuffer | $ArrayBufferView | ReadableStream; + /bom.js:1613:62 + 1613| type BodyInit = string | URLSearchParams | FormData | Blob | ArrayBuffer | $ArrayBufferView | ReadableStream; ^^^^^^^^^^^ [5] /core.js:2063:20 2063| type $TypedArray = $TypedArrayNumber | BigInt64Array | BigUint64Array; @@ -733,8 +733,8 @@ References: /core.js:2059:39 2059| type $ArrayBufferView = $TypedArray | DataView; ^^^^^^^^ [9] - /bom.js:1609:95 - 1609| type BodyInit = string | URLSearchParams | FormData | Blob | ArrayBuffer | $ArrayBufferView | ReadableStream; + /bom.js:1613:95 + 1613| type BodyInit = string | URLSearchParams | FormData | Blob | ArrayBuffer | $ArrayBufferView | ReadableStream; ^^^^^^^^^^^^^^ [10] @@ -752,8 +752,8 @@ References: response.js:42:19 42| h.text().then((t: Buffer) => t); // incorrect ^^^^^^ [1] - /bom.js:1660:21 - 1660| text(): Promise; + /bom.js:1664:21 + 1664| text(): Promise; ^^^^^^ [2] response.js:42:15 42| h.text().then((t: Buffer) => t); // incorrect @@ -774,8 +774,8 @@ Cannot call `h.arrayBuffer().then` because: [incompatible-call] ^^^^ References: - /bom.js:1656:28 - 1656| arrayBuffer(): Promise; + /bom.js:1660:28 + 1660| arrayBuffer(): Promise; ^^^^^^^^^^^ [1] response.js:44:27 44| h.arrayBuffer().then((ab: Buffer) => ab); // incorrect @@ -802,11 +802,11 @@ References: urlsearchparams.js:4:32 4| const b = new URLSearchParams(['key1', 'value1']); // not correct ^^^^^^ [1] - /bom.js:1583:57 - 1583| constructor(init?: string | URLSearchParams | Array<[string, string]> | { [string]: string, ... } ): void; + /bom.js:1587:57 + 1587| constructor(init?: string | URLSearchParams | Array<[string, string]> | { [string]: string, ... } ): void; ^^^^^^^^^^^^^^^^ [2] - /bom.js:1583:77 - 1583| constructor(init?: string | URLSearchParams | Array<[string, string]> | { [string]: string, ... } ): void; + /bom.js:1587:77 + 1587| constructor(init?: string | URLSearchParams | Array<[string, string]> | { [string]: string, ... } ): void; ^^^^^^^^^^^^^^^^^^^^^^^^^ [4] @@ -819,8 +819,8 @@ Cannot call `e.append` because function [1] requires another argument. [incompat ^^^^^^ References: - /bom.js:1584:5 - 1584| append(name: string, value: string): void; + /bom.js:1588:5 + 1588| append(name: string, value: string): void; ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [1] @@ -833,8 +833,8 @@ Cannot call `e.append` because function [1] requires another argument. [incompat ^^^^^^ References: - /bom.js:1584:5 - 1584| append(name: string, value: string): void; + /bom.js:1588:5 + 1588| append(name: string, value: string): void; ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [1] @@ -848,8 +848,8 @@ Cannot call `e.append` with object literal bound to `name` because object litera ^^^^^^^^^^^^^^^^^^ [1] References: - /bom.js:1584:18 - 1584| append(name: string, value: string): void; + /bom.js:1588:18 + 1588| append(name: string, value: string): void; ^^^^^^ [2] @@ -862,8 +862,8 @@ Cannot call `e.set` because function [1] requires another argument. [incompatibl ^^^ References: - /bom.js:1592:5 - 1592| set(name: string, value: string): void; + /bom.js:1596:5 + 1596| set(name: string, value: string): void; ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [1] @@ -876,8 +876,8 @@ Cannot call `e.set` because function [1] requires another argument. [incompatibl ^^^ References: - /bom.js:1592:5 - 1592| set(name: string, value: string): void; + /bom.js:1596:5 + 1596| set(name: string, value: string): void; ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [1] @@ -891,8 +891,8 @@ Cannot call `e.set` with object literal bound to `name` because object literal [ ^^^^^^^^^^^^^^^^^^ [1] References: - /bom.js:1592:15 - 1592| set(name: string, value: string): void; + /bom.js:1596:15 + 1596| set(name: string, value: string): void; ^^^^^^ [2] @@ -906,8 +906,8 @@ Cannot assign `e.append(...)` to `f` because undefined [1] is incompatible with ^^^^^^^^^^^^^^^^^^^^^^^^^^ References: - /bom.js:1584:42 - 1584| append(name: string, value: string): void; + /bom.js:1588:42 + 1588| append(name: string, value: string): void; ^^^^ [1] urlsearchparams.js:15:10 15| const f: URLSearchParams = e.append('key1', 'value1'); // not correct @@ -923,8 +923,8 @@ Cannot assign `e.get(...)` to `g` because null [1] is incompatible with string [ ^^^^^^^^^^^^^ References: - /bom.js:1588:24 - 1588| get(name: string): null | string; + /bom.js:1592:24 + 1592| get(name: string): null | string; ^^^^ [1] urlsearchparams.js:17:10 17| const g: string = e.get('key1'); // correct @@ -940,8 +940,8 @@ Cannot assign `e.get(...)` to `h` because null [1] is incompatible with number [ ^^^^^^^^^^^^^ References: - /bom.js:1588:24 - 1588| get(name: string): null | string; + /bom.js:1592:24 + 1592| get(name: string): null | string; ^^^^ [1] urlsearchparams.js:18:10 18| const h: number = e.get('key1'); // not correct @@ -957,8 +957,8 @@ Cannot assign `e.get(...)` to `h` because string [1] is incompatible with number ^^^^^^^^^^^^^ References: - /bom.js:1588:31 - 1588| get(name: string): null | string; + /bom.js:1592:31 + 1592| get(name: string): null | string; ^^^^^^ [1] urlsearchparams.js:18:10 18| const h: number = e.get('key1'); // not correct