From 527b218ec0f74bd128ec07f99b39ceafe585c22b Mon Sep 17 00:00:00 2001 From: Benjamin Aster Date: Mon, 22 Jul 2024 22:38:31 +0200 Subject: [PATCH] 0.4.7 --- index.d.ts | 2 +- package.json | 2 +- tsconfig.json | 2 +- whatwg/file-system.d.ts | 7 ------- whatwg/streams.d.ts | 8 -------- 5 files changed, 3 insertions(+), 18 deletions(-) delete mode 100644 whatwg/streams.d.ts diff --git a/index.d.ts b/index.d.ts index cb16ee5..73e2321 100644 --- a/index.d.ts +++ b/index.d.ts @@ -2,6 +2,7 @@ /// /// /// +/// /// @@ -51,7 +52,6 @@ /// /// /// -/// /// /// diff --git a/package.json b/package.json index d08f12f..494a5b2 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "new-javascript", - "version": "0.4.6", + "version": "0.4.7", "description": "TypeScript type definitions for new JavaScript stuff that isn't yet in TypeScript's standard type definitions", "main": "./index.d.ts", "repository": { diff --git a/tsconfig.json b/tsconfig.json index d51ab24..459d820 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -4,7 +4,7 @@ "target": "ESNext", "noEmit": true, "strict": false, - "lib": ["ESNext", "DOM", "DOM.Iterable"], + "lib": ["ESNext", "DOM", "DOM.Iterable", "DOM.AsyncIterable"], "types": [], }, } \ No newline at end of file diff --git a/whatwg/file-system.d.ts b/whatwg/file-system.d.ts index 3b9c1de..fe78855 100644 --- a/whatwg/file-system.d.ts +++ b/whatwg/file-system.d.ts @@ -14,10 +14,3 @@ interface FileSystemFileHandle extends FileSystemHandle { move(destinationDirectory: FileSystemDirectoryHandle): Promise; move(destinationDirectory: FileSystemDirectoryHandle, newEntryName: string): Promise; } - -interface FileSystemDirectoryHandle extends FileSystemHandle { - [Symbol.asyncIterator](): AsyncIterableIterator<[string, FileSystemHandle]>; - entries(): AsyncIterableIterator<[string, FileSystemHandle]>; - keys(): AsyncIterableIterator; - values(): AsyncIterableIterator; -} diff --git a/whatwg/streams.d.ts b/whatwg/streams.d.ts deleted file mode 100644 index 6b76779..0000000 --- a/whatwg/streams.d.ts +++ /dev/null @@ -1,8 +0,0 @@ - -// Streams -// Specification: https://streams.spec.whatwg.org/ -// Repository: https://github.com/whatwg/streams - -interface ReadableStream { - [Symbol.asyncIterator](): AsyncIterableIterator; -}