@better-typescript-lib/dom
Advanced tools
Comparing version 2.8.0 to 2.9.0
@@ -6,14 +6,28 @@ /// <reference no-default-lib="true"/> | ||
interface FileSystemDirectoryHandleAsyncIterator<T> | ||
extends AsyncIteratorObject<T, BuiltinIteratorReturn, unknown> { | ||
[Symbol.asyncIterator](): FileSystemDirectoryHandleAsyncIterator<T>; | ||
} | ||
interface FileSystemDirectoryHandle { | ||
[Symbol.asyncIterator](): AsyncIterableIterator<[string, FileSystemHandle]>; | ||
entries(): AsyncIterableIterator<[string, FileSystemHandle]>; | ||
keys(): AsyncIterableIterator<string>; | ||
values(): AsyncIterableIterator<FileSystemHandle>; | ||
[Symbol.asyncIterator](): FileSystemDirectoryHandleAsyncIterator< | ||
[string, FileSystemHandle] | ||
>; | ||
entries(): FileSystemDirectoryHandleAsyncIterator<[string, FileSystemHandle]>; | ||
keys(): FileSystemDirectoryHandleAsyncIterator<string>; | ||
values(): FileSystemDirectoryHandleAsyncIterator<FileSystemHandle>; | ||
} | ||
interface ReadableStreamAsyncIterator<T> | ||
extends AsyncIteratorObject<T, BuiltinIteratorReturn, unknown> { | ||
[Symbol.asyncIterator](): ReadableStreamAsyncIterator<T>; | ||
} | ||
interface ReadableStream<R = any> { | ||
[Symbol.asyncIterator]( | ||
options?: ReadableStreamIteratorOptions, | ||
): AsyncIterableIterator<R>; | ||
values(options?: ReadableStreamIteratorOptions): AsyncIterableIterator<R>; | ||
): ReadableStreamAsyncIterator<R>; | ||
values( | ||
options?: ReadableStreamIteratorOptions, | ||
): ReadableStreamAsyncIterator<R>; | ||
} |
@@ -37,32 +37,32 @@ /// <reference no-default-lib="true"/> | ||
interface CSSKeyframesRule { | ||
[Symbol.iterator](): IterableIterator<CSSKeyframeRule>; | ||
[Symbol.iterator](): ArrayIterator<CSSKeyframeRule>; | ||
} | ||
interface CSSNumericArray { | ||
[Symbol.iterator](): IterableIterator<CSSNumericValue>; | ||
entries(): IterableIterator<[number, CSSNumericValue]>; | ||
keys(): IterableIterator<number>; | ||
values(): IterableIterator<CSSNumericValue>; | ||
[Symbol.iterator](): ArrayIterator<CSSNumericValue>; | ||
entries(): ArrayIterator<[number, CSSNumericValue]>; | ||
keys(): ArrayIterator<number>; | ||
values(): ArrayIterator<CSSNumericValue>; | ||
} | ||
interface CSSRuleList { | ||
[Symbol.iterator](): IterableIterator<CSSRule>; | ||
[Symbol.iterator](): ArrayIterator<CSSRule>; | ||
} | ||
interface CSSStyleDeclaration { | ||
[Symbol.iterator](): IterableIterator<string>; | ||
[Symbol.iterator](): ArrayIterator<string>; | ||
} | ||
interface CSSTransformValue { | ||
[Symbol.iterator](): IterableIterator<CSSTransformComponent>; | ||
entries(): IterableIterator<[number, CSSTransformComponent]>; | ||
keys(): IterableIterator<number>; | ||
values(): IterableIterator<CSSTransformComponent>; | ||
[Symbol.iterator](): ArrayIterator<CSSTransformComponent>; | ||
entries(): ArrayIterator<[number, CSSTransformComponent]>; | ||
keys(): ArrayIterator<number>; | ||
values(): ArrayIterator<CSSTransformComponent>; | ||
} | ||
interface CSSUnparsedValue { | ||
[Symbol.iterator](): IterableIterator<CSSUnparsedSegment>; | ||
entries(): IterableIterator<[number, CSSUnparsedSegment]>; | ||
keys(): IterableIterator<number>; | ||
values(): IterableIterator<CSSUnparsedSegment>; | ||
[Symbol.iterator](): ArrayIterator<CSSUnparsedSegment>; | ||
entries(): ArrayIterator<[number, CSSUnparsedSegment]>; | ||
keys(): ArrayIterator<number>; | ||
values(): ArrayIterator<CSSUnparsedSegment>; | ||
} | ||
@@ -94,18 +94,18 @@ | ||
interface DOMRectList { | ||
[Symbol.iterator](): IterableIterator<DOMRect>; | ||
[Symbol.iterator](): ArrayIterator<DOMRect>; | ||
} | ||
interface DOMStringList { | ||
[Symbol.iterator](): IterableIterator<string>; | ||
[Symbol.iterator](): ArrayIterator<string>; | ||
} | ||
interface DOMTokenList { | ||
[Symbol.iterator](): IterableIterator<string>; | ||
entries(): IterableIterator<[number, string]>; | ||
keys(): IterableIterator<number>; | ||
values(): IterableIterator<string>; | ||
[Symbol.iterator](): ArrayIterator<string>; | ||
entries(): ArrayIterator<[number, string]>; | ||
keys(): ArrayIterator<number>; | ||
values(): ArrayIterator<string>; | ||
} | ||
interface DataTransferItemList { | ||
[Symbol.iterator](): IterableIterator<DataTransferItem>; | ||
[Symbol.iterator](): ArrayIterator<DataTransferItem>; | ||
} | ||
@@ -116,3 +116,3 @@ | ||
interface FileList { | ||
[Symbol.iterator](): IterableIterator<File>; | ||
[Symbol.iterator](): ArrayIterator<File>; | ||
} | ||
@@ -122,40 +122,50 @@ | ||
interface FormDataIterator<T> | ||
extends IteratorObject<T, BuiltinIteratorReturn, unknown> { | ||
[Symbol.iterator](): FormDataIterator<T>; | ||
} | ||
interface FormData { | ||
[Symbol.iterator](): IterableIterator<[string, FormDataEntryValue]>; | ||
[Symbol.iterator](): FormDataIterator<[string, FormDataEntryValue]>; | ||
/** Returns an array of key, value pairs for every entry in the list. */ | ||
entries(): IterableIterator<[string, FormDataEntryValue]>; | ||
entries(): FormDataIterator<[string, FormDataEntryValue]>; | ||
/** Returns a list of keys in the list. */ | ||
keys(): IterableIterator<string>; | ||
keys(): FormDataIterator<string>; | ||
/** Returns a list of values in the list. */ | ||
values(): IterableIterator<FormDataEntryValue>; | ||
values(): FormDataIterator<FormDataEntryValue>; | ||
} | ||
interface HTMLAllCollection { | ||
[Symbol.iterator](): IterableIterator<Element>; | ||
[Symbol.iterator](): ArrayIterator<Element>; | ||
} | ||
interface HTMLCollectionBase { | ||
[Symbol.iterator](): IterableIterator<Element>; | ||
[Symbol.iterator](): ArrayIterator<Element>; | ||
} | ||
interface HTMLCollectionOf<T extends Element> { | ||
[Symbol.iterator](): IterableIterator<T>; | ||
[Symbol.iterator](): ArrayIterator<T>; | ||
} | ||
interface HTMLFormElement { | ||
[Symbol.iterator](): IterableIterator<Element>; | ||
[Symbol.iterator](): ArrayIterator<Element>; | ||
} | ||
interface HTMLSelectElement { | ||
[Symbol.iterator](): IterableIterator<HTMLOptionElement>; | ||
[Symbol.iterator](): ArrayIterator<HTMLOptionElement>; | ||
} | ||
interface HeadersIterator<T> | ||
extends IteratorObject<T, BuiltinIteratorReturn, unknown> { | ||
[Symbol.iterator](): HeadersIterator<T>; | ||
} | ||
interface Headers { | ||
[Symbol.iterator](): IterableIterator<[string, string]>; | ||
[Symbol.iterator](): HeadersIterator<[string, string]>; | ||
/** Returns an iterator allowing to go through all key/value pairs contained in this object. */ | ||
entries(): IterableIterator<[string, string]>; | ||
entries(): HeadersIterator<[string, string]>; | ||
/** Returns an iterator allowing to go through all keys of the key/value pairs contained in this object. */ | ||
keys(): IterableIterator<string>; | ||
keys(): HeadersIterator<string>; | ||
/** Returns an iterator allowing to go through all values of the key/value pairs contained in this object. */ | ||
values(): IterableIterator<string>; | ||
values(): HeadersIterator<string>; | ||
} | ||
@@ -204,19 +214,22 @@ | ||
interface MediaKeyStatusMapIterator<T> | ||
extends IteratorObject<T, BuiltinIteratorReturn, unknown> { | ||
[Symbol.iterator](): MediaKeyStatusMapIterator<T>; | ||
} | ||
interface MediaKeyStatusMap { | ||
[Symbol.iterator](): IterableIterator<[BufferSource, MediaKeyStatus]>; | ||
entries(): IterableIterator<[BufferSource, MediaKeyStatus]>; | ||
keys(): IterableIterator<BufferSource>; | ||
values(): IterableIterator<MediaKeyStatus>; | ||
[Symbol.iterator](): MediaKeyStatusMapIterator< | ||
[BufferSource, MediaKeyStatus] | ||
>; | ||
entries(): MediaKeyStatusMapIterator<[BufferSource, MediaKeyStatus]>; | ||
keys(): MediaKeyStatusMapIterator<BufferSource>; | ||
values(): MediaKeyStatusMapIterator<MediaKeyStatus>; | ||
} | ||
interface MediaList { | ||
[Symbol.iterator](): IterableIterator<string>; | ||
[Symbol.iterator](): ArrayIterator<string>; | ||
} | ||
interface MessageEvent<T = any> { | ||
/** | ||
* @deprecated | ||
* | ||
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent/initMessageEvent) | ||
*/ | ||
/** @deprecated */ | ||
initMessageEvent( | ||
@@ -235,7 +248,7 @@ type: string, | ||
interface MimeTypeArray { | ||
[Symbol.iterator](): IterableIterator<MimeType>; | ||
[Symbol.iterator](): ArrayIterator<MimeType>; | ||
} | ||
interface NamedNodeMap { | ||
[Symbol.iterator](): IterableIterator<Attr>; | ||
[Symbol.iterator](): ArrayIterator<Attr>; | ||
} | ||
@@ -258,27 +271,27 @@ | ||
interface NodeList { | ||
[Symbol.iterator](): IterableIterator<Node>; | ||
[Symbol.iterator](): ArrayIterator<Node>; | ||
/** Returns an array of key, value pairs for every entry in the list. */ | ||
entries(): IterableIterator<[number, Node]>; | ||
entries(): ArrayIterator<[number, Node]>; | ||
/** Returns an list of keys in the list. */ | ||
keys(): IterableIterator<number>; | ||
keys(): ArrayIterator<number>; | ||
/** Returns an list of values in the list. */ | ||
values(): IterableIterator<Node>; | ||
values(): ArrayIterator<Node>; | ||
} | ||
interface NodeListOf<TNode extends Node> { | ||
[Symbol.iterator](): IterableIterator<TNode>; | ||
[Symbol.iterator](): ArrayIterator<TNode>; | ||
/** Returns an array of key, value pairs for every entry in the list. */ | ||
entries(): IterableIterator<[number, TNode]>; | ||
entries(): ArrayIterator<[number, TNode]>; | ||
/** Returns an list of keys in the list. */ | ||
keys(): IterableIterator<number>; | ||
keys(): ArrayIterator<number>; | ||
/** Returns an list of values in the list. */ | ||
values(): IterableIterator<TNode>; | ||
values(): ArrayIterator<TNode>; | ||
} | ||
interface Plugin { | ||
[Symbol.iterator](): IterableIterator<MimeType>; | ||
[Symbol.iterator](): ArrayIterator<MimeType>; | ||
} | ||
interface PluginArray { | ||
[Symbol.iterator](): IterableIterator<Plugin>; | ||
[Symbol.iterator](): ArrayIterator<Plugin>; | ||
} | ||
@@ -288,3 +301,3 @@ | ||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpTransceiver/setCodecPreferences) */ | ||
setCodecPreferences(codecs: Iterable<RTCRtpCodecCapability>): void; | ||
setCodecPreferences(codecs: Iterable<RTCRtpCodec>): void; | ||
} | ||
@@ -295,42 +308,51 @@ | ||
interface SVGLengthList { | ||
[Symbol.iterator](): IterableIterator<SVGLength>; | ||
[Symbol.iterator](): ArrayIterator<SVGLength>; | ||
} | ||
interface SVGNumberList { | ||
[Symbol.iterator](): IterableIterator<SVGNumber>; | ||
[Symbol.iterator](): ArrayIterator<SVGNumber>; | ||
} | ||
interface SVGPointList { | ||
[Symbol.iterator](): IterableIterator<DOMPoint>; | ||
[Symbol.iterator](): ArrayIterator<DOMPoint>; | ||
} | ||
interface SVGStringList { | ||
[Symbol.iterator](): IterableIterator<string>; | ||
[Symbol.iterator](): ArrayIterator<string>; | ||
} | ||
interface SVGTransformList { | ||
[Symbol.iterator](): IterableIterator<SVGTransform>; | ||
[Symbol.iterator](): ArrayIterator<SVGTransform>; | ||
} | ||
interface SourceBufferList { | ||
[Symbol.iterator](): IterableIterator<SourceBuffer>; | ||
[Symbol.iterator](): ArrayIterator<SourceBuffer>; | ||
} | ||
interface SpeechRecognitionResult { | ||
[Symbol.iterator](): IterableIterator<SpeechRecognitionAlternative>; | ||
[Symbol.iterator](): ArrayIterator<SpeechRecognitionAlternative>; | ||
} | ||
interface SpeechRecognitionResultList { | ||
[Symbol.iterator](): IterableIterator<SpeechRecognitionResult>; | ||
[Symbol.iterator](): ArrayIterator<SpeechRecognitionResult>; | ||
} | ||
interface StylePropertyMapReadOnlyIterator<T> | ||
extends IteratorObject<T, BuiltinIteratorReturn, unknown> { | ||
[Symbol.iterator](): StylePropertyMapReadOnlyIterator<T>; | ||
} | ||
interface StylePropertyMapReadOnly { | ||
[Symbol.iterator](): IterableIterator<[string, Iterable<CSSStyleValue>]>; | ||
entries(): IterableIterator<[string, Iterable<CSSStyleValue>]>; | ||
keys(): IterableIterator<string>; | ||
values(): IterableIterator<Iterable<CSSStyleValue>>; | ||
[Symbol.iterator](): StylePropertyMapReadOnlyIterator< | ||
[string, Iterable<CSSStyleValue>] | ||
>; | ||
entries(): StylePropertyMapReadOnlyIterator< | ||
[string, Iterable<CSSStyleValue>] | ||
>; | ||
keys(): StylePropertyMapReadOnlyIterator<string>; | ||
values(): StylePropertyMapReadOnlyIterator<Iterable<CSSStyleValue>>; | ||
} | ||
interface StyleSheetList { | ||
[Symbol.iterator](): IterableIterator<CSSStyleSheet>; | ||
[Symbol.iterator](): ArrayIterator<CSSStyleSheet>; | ||
} | ||
@@ -425,21 +447,26 @@ | ||
interface TextTrackCueList { | ||
[Symbol.iterator](): IterableIterator<TextTrackCue>; | ||
[Symbol.iterator](): ArrayIterator<TextTrackCue>; | ||
} | ||
interface TextTrackList { | ||
[Symbol.iterator](): IterableIterator<TextTrack>; | ||
[Symbol.iterator](): ArrayIterator<TextTrack>; | ||
} | ||
interface TouchList { | ||
[Symbol.iterator](): IterableIterator<Touch>; | ||
[Symbol.iterator](): ArrayIterator<Touch>; | ||
} | ||
interface URLSearchParamsIterator<T> | ||
extends IteratorObject<T, BuiltinIteratorReturn, unknown> { | ||
[Symbol.iterator](): URLSearchParamsIterator<T>; | ||
} | ||
interface URLSearchParams { | ||
[Symbol.iterator](): IterableIterator<[string, string]>; | ||
[Symbol.iterator](): URLSearchParamsIterator<[string, string]>; | ||
/** Returns an array of key, value pairs for every entry in the search params. */ | ||
entries(): IterableIterator<[string, string]>; | ||
entries(): URLSearchParamsIterator<[string, string]>; | ||
/** Returns a list of keys in the search params. */ | ||
keys(): IterableIterator<string>; | ||
keys(): URLSearchParamsIterator<string>; | ||
/** Returns a list of values in the search params. */ | ||
values(): IterableIterator<string>; | ||
values(): URLSearchParamsIterator<string>; | ||
} | ||
@@ -446,0 +473,0 @@ |
{ | ||
"name": "@better-typescript-lib/dom", | ||
"version": "2.8.0", | ||
"version": "2.9.0", | ||
"description": "Better TypeScript standard library", | ||
@@ -5,0 +5,0 @@ "types": "./index.d.ts", |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1338621
33727