-
Notifications
You must be signed in to change notification settings - Fork 105
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added missing Headers interface augmentation from lib.dom.iterable.d.…
…ts (#97) declaration files were generated and tested with the following command: npm i --no-save [email protected] \ && cat <<EOF > .ts-graftrc.yaml \ && npx [email protected] \ && rm .ts-graftrc.yaml \ && npx tsc --lib ES2016 --target ES2016 --noEmit index.d.ts \ && npm un typescript grafts: - source: typescript/lib/lib.dom.d.ts output: lib.fetch.d.ts include: - BodyInit - HeadersInit - RequestInfo - RequestInit - Response - ResponseInit - source: typescript/lib/lib.dom.iterable.d.ts output: lib.fetch.dom.iterable.d.ts include: - Headers EOF
- Loading branch information
Showing
3 changed files
with
22 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
// Generated by resolving typescript/lib/lib.dom.iterable.d.ts from [email protected] | ||
export interface Headers { | ||
[Symbol.iterator](): IterableIterator<[string, string]>; | ||
/** | ||
* Returns an iterator allowing to go through all key/value pairs contained in this object. | ||
*/ | ||
entries(): IterableIterator<[string, string]>; | ||
/** | ||
* Returns an iterator allowing to go through all keys of the key/value pairs contained in this object. | ||
*/ | ||
keys(): IterableIterator<string>; | ||
/** | ||
* Returns an iterator allowing to go through all values of the key/value pairs contained in this object. | ||
*/ | ||
values(): IterableIterator<string>; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters