Skip to content

Commit

Permalink
Update LKG
Browse files Browse the repository at this point in the history
  • Loading branch information
typescript-bot committed Aug 19, 2024
1 parent 2a30c2a commit 34121c4
Show file tree
Hide file tree
Showing 32 changed files with 5,838 additions and 2,286 deletions.
371 changes: 286 additions & 85 deletions lib/cs/diagnosticMessages.generated.json

Large diffs are not rendered by default.

371 changes: 286 additions & 85 deletions lib/de/diagnosticMessages.generated.json

Large diffs are not rendered by default.

367 changes: 284 additions & 83 deletions lib/es/diagnosticMessages.generated.json

Large diffs are not rendered by default.

371 changes: 286 additions & 85 deletions lib/fr/diagnosticMessages.generated.json

Large diffs are not rendered by default.

369 changes: 285 additions & 84 deletions lib/it/diagnosticMessages.generated.json

Large diffs are not rendered by default.

369 changes: 285 additions & 84 deletions lib/ja/diagnosticMessages.generated.json

Large diffs are not rendered by default.

369 changes: 285 additions & 84 deletions lib/ko/diagnosticMessages.generated.json

Large diffs are not rendered by default.

20 changes: 14 additions & 6 deletions lib/lib.dom.asynciterable.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,22 @@ and limitations under the License.
/// Window Async Iterable APIs
/////////////////////////////

interface FileSystemDirectoryHandleAsyncIterator<T> extends AsyncIteratorObject<T, BuiltinIteratorReturn, unknown> {
[Symbol.asyncIterator](): FileSystemDirectoryHandleAsyncIterator<T>;
}

interface FileSystemDirectoryHandle {
[Symbol.asyncIterator](): BuiltinAsyncIterator<[string, FileSystemHandle], BuiltinIteratorReturn>;
entries(): BuiltinAsyncIterator<[string, FileSystemHandle], BuiltinIteratorReturn>;
keys(): BuiltinAsyncIterator<string, BuiltinIteratorReturn>;
values(): BuiltinAsyncIterator<FileSystemHandle, BuiltinIteratorReturn>;
[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): BuiltinAsyncIterator<R, BuiltinIteratorReturn>;
values(options?: ReadableStreamIteratorOptions): BuiltinAsyncIterator<R, BuiltinIteratorReturn>;
[Symbol.asyncIterator](options?: ReadableStreamIteratorOptions): ReadableStreamAsyncIterator<R>;
values(options?: ReadableStreamIteratorOptions): ReadableStreamAsyncIterator<R>;
}
166 changes: 93 additions & 73 deletions lib/lib.dom.iterable.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,36 +41,36 @@ interface BaseAudioContext {
}

interface CSSKeyframesRule {
[Symbol.iterator](): BuiltinIterator<CSSKeyframeRule, BuiltinIteratorReturn>;
[Symbol.iterator](): ArrayIterator<CSSKeyframeRule>;
}

interface CSSNumericArray {
[Symbol.iterator](): BuiltinIterator<CSSNumericValue, BuiltinIteratorReturn>;
entries(): BuiltinIterator<[number, CSSNumericValue], BuiltinIteratorReturn>;
keys(): BuiltinIterator<number, BuiltinIteratorReturn>;
values(): BuiltinIterator<CSSNumericValue, BuiltinIteratorReturn>;
[Symbol.iterator](): ArrayIterator<CSSNumericValue>;
entries(): ArrayIterator<[number, CSSNumericValue]>;
keys(): ArrayIterator<number>;
values(): ArrayIterator<CSSNumericValue>;
}

interface CSSRuleList {
[Symbol.iterator](): BuiltinIterator<CSSRule, BuiltinIteratorReturn>;
[Symbol.iterator](): ArrayIterator<CSSRule>;
}

interface CSSStyleDeclaration {
[Symbol.iterator](): BuiltinIterator<string, BuiltinIteratorReturn>;
[Symbol.iterator](): ArrayIterator<string>;
}

interface CSSTransformValue {
[Symbol.iterator](): BuiltinIterator<CSSTransformComponent, BuiltinIteratorReturn>;
entries(): BuiltinIterator<[number, CSSTransformComponent], BuiltinIteratorReturn>;
keys(): BuiltinIterator<number, BuiltinIteratorReturn>;
values(): BuiltinIterator<CSSTransformComponent, BuiltinIteratorReturn>;
[Symbol.iterator](): ArrayIterator<CSSTransformComponent>;
entries(): ArrayIterator<[number, CSSTransformComponent]>;
keys(): ArrayIterator<number>;
values(): ArrayIterator<CSSTransformComponent>;
}

interface CSSUnparsedValue {
[Symbol.iterator](): BuiltinIterator<CSSUnparsedSegment, BuiltinIteratorReturn>;
entries(): BuiltinIterator<[number, CSSUnparsedSegment], BuiltinIteratorReturn>;
keys(): BuiltinIterator<number, BuiltinIteratorReturn>;
values(): BuiltinIterator<CSSUnparsedSegment, BuiltinIteratorReturn>;
[Symbol.iterator](): ArrayIterator<CSSUnparsedSegment>;
entries(): ArrayIterator<[number, CSSUnparsedSegment]>;
keys(): ArrayIterator<number>;
values(): ArrayIterator<CSSUnparsedSegment>;
}

interface Cache {
Expand All @@ -92,72 +92,80 @@ interface CustomStateSet extends Set<string> {
}

interface DOMRectList {
[Symbol.iterator](): BuiltinIterator<DOMRect, BuiltinIteratorReturn>;
[Symbol.iterator](): ArrayIterator<DOMRect>;
}

interface DOMStringList {
[Symbol.iterator](): BuiltinIterator<string, BuiltinIteratorReturn>;
[Symbol.iterator](): ArrayIterator<string>;
}

interface DOMTokenList {
[Symbol.iterator](): BuiltinIterator<string, BuiltinIteratorReturn>;
entries(): BuiltinIterator<[number, string], BuiltinIteratorReturn>;
keys(): BuiltinIterator<number, BuiltinIteratorReturn>;
values(): BuiltinIterator<string, BuiltinIteratorReturn>;
[Symbol.iterator](): ArrayIterator<string>;
entries(): ArrayIterator<[number, string]>;
keys(): ArrayIterator<number>;
values(): ArrayIterator<string>;
}

interface DataTransferItemList {
[Symbol.iterator](): BuiltinIterator<DataTransferItem, BuiltinIteratorReturn>;
[Symbol.iterator](): ArrayIterator<DataTransferItem>;
}

interface EventCounts extends ReadonlyMap<string, number> {
}

interface FileList {
[Symbol.iterator](): BuiltinIterator<File, BuiltinIteratorReturn>;
[Symbol.iterator](): ArrayIterator<File>;
}

interface FontFaceSet extends Set<FontFace> {
}

interface FormDataIterator<T> extends IteratorObject<T, BuiltinIteratorReturn, unknown> {
[Symbol.iterator](): FormDataIterator<T>;
}

interface FormData {
[Symbol.iterator](): BuiltinIterator<[string, FormDataEntryValue], BuiltinIteratorReturn>;
[Symbol.iterator](): FormDataIterator<[string, FormDataEntryValue]>;
/** Returns an array of key, value pairs for every entry in the list. */
entries(): BuiltinIterator<[string, FormDataEntryValue], BuiltinIteratorReturn>;
entries(): FormDataIterator<[string, FormDataEntryValue]>;
/** Returns a list of keys in the list. */
keys(): BuiltinIterator<string, BuiltinIteratorReturn>;
keys(): FormDataIterator<string>;
/** Returns a list of values in the list. */
values(): BuiltinIterator<FormDataEntryValue, BuiltinIteratorReturn>;
values(): FormDataIterator<FormDataEntryValue>;
}

interface HTMLAllCollection {
[Symbol.iterator](): BuiltinIterator<Element, BuiltinIteratorReturn>;
[Symbol.iterator](): ArrayIterator<Element>;
}

interface HTMLCollectionBase {
[Symbol.iterator](): BuiltinIterator<Element, BuiltinIteratorReturn>;
[Symbol.iterator](): ArrayIterator<Element>;
}

interface HTMLCollectionOf<T extends Element> {
[Symbol.iterator](): BuiltinIterator<T, BuiltinIteratorReturn>;
[Symbol.iterator](): ArrayIterator<T>;
}

interface HTMLFormElement {
[Symbol.iterator](): BuiltinIterator<Element, BuiltinIteratorReturn>;
[Symbol.iterator](): ArrayIterator<Element>;
}

interface HTMLSelectElement {
[Symbol.iterator](): BuiltinIterator<HTMLOptionElement, BuiltinIteratorReturn>;
[Symbol.iterator](): ArrayIterator<HTMLOptionElement>;
}

interface HeadersIterator<T> extends IteratorObject<T, BuiltinIteratorReturn, unknown> {
[Symbol.iterator](): HeadersIterator<T>;
}

interface Headers {
[Symbol.iterator](): BuiltinIterator<[string, string], BuiltinIteratorReturn>;
[Symbol.iterator](): HeadersIterator<[string, string]>;
/** Returns an iterator allowing to go through all key/value pairs contained in this object. */
entries(): BuiltinIterator<[string, string], BuiltinIteratorReturn>;
entries(): HeadersIterator<[string, string]>;
/** Returns an iterator allowing to go through all keys of the key/value pairs contained in this object. */
keys(): BuiltinIterator<string, BuiltinIteratorReturn>;
keys(): HeadersIterator<string>;
/** Returns an iterator allowing to go through all values of the key/value pairs contained in this object. */
values(): BuiltinIterator<string, BuiltinIteratorReturn>;
values(): HeadersIterator<string>;
}

interface Highlight extends Set<AbstractRange> {
Expand Down Expand Up @@ -197,15 +205,19 @@ interface MIDIOutput {
interface MIDIOutputMap extends ReadonlyMap<string, MIDIOutput> {
}

interface MediaKeyStatusMapIterator<T> extends IteratorObject<T, BuiltinIteratorReturn, unknown> {
[Symbol.iterator](): MediaKeyStatusMapIterator<T>;
}

interface MediaKeyStatusMap {
[Symbol.iterator](): BuiltinIterator<[BufferSource, MediaKeyStatus], BuiltinIteratorReturn>;
entries(): BuiltinIterator<[BufferSource, MediaKeyStatus], BuiltinIteratorReturn>;
keys(): BuiltinIterator<BufferSource, BuiltinIteratorReturn>;
values(): BuiltinIterator<MediaKeyStatus, BuiltinIteratorReturn>;
[Symbol.iterator](): MediaKeyStatusMapIterator<[BufferSource, MediaKeyStatus]>;
entries(): MediaKeyStatusMapIterator<[BufferSource, MediaKeyStatus]>;
keys(): MediaKeyStatusMapIterator<BufferSource>;
values(): MediaKeyStatusMapIterator<MediaKeyStatus>;
}

interface MediaList {
[Symbol.iterator](): BuiltinIterator<string, BuiltinIteratorReturn>;
[Symbol.iterator](): ArrayIterator<string>;
}

interface MessageEvent<T = any> {
Expand All @@ -214,11 +226,11 @@ interface MessageEvent<T = any> {
}

interface MimeTypeArray {
[Symbol.iterator](): BuiltinIterator<MimeType, BuiltinIteratorReturn>;
[Symbol.iterator](): ArrayIterator<MimeType>;
}

interface NamedNodeMap {
[Symbol.iterator](): BuiltinIterator<Attr, BuiltinIteratorReturn>;
[Symbol.iterator](): ArrayIterator<Attr>;
}

interface Navigator {
Expand All @@ -233,31 +245,31 @@ interface Navigator {
}

interface NodeList {
[Symbol.iterator](): BuiltinIterator<Node, BuiltinIteratorReturn>;
[Symbol.iterator](): ArrayIterator<Node>;
/** Returns an array of key, value pairs for every entry in the list. */
entries(): BuiltinIterator<[number, Node], BuiltinIteratorReturn>;
entries(): ArrayIterator<[number, Node]>;
/** Returns an list of keys in the list. */
keys(): BuiltinIterator<number, BuiltinIteratorReturn>;
keys(): ArrayIterator<number>;
/** Returns an list of values in the list. */
values(): BuiltinIterator<Node, BuiltinIteratorReturn>;
values(): ArrayIterator<Node>;
}

interface NodeListOf<TNode extends Node> {
[Symbol.iterator](): BuiltinIterator<TNode, BuiltinIteratorReturn>;
[Symbol.iterator](): ArrayIterator<TNode>;
/** Returns an array of key, value pairs for every entry in the list. */
entries(): BuiltinIterator<[number, TNode], BuiltinIteratorReturn>;
entries(): ArrayIterator<[number, TNode]>;
/** Returns an list of keys in the list. */
keys(): BuiltinIterator<number, BuiltinIteratorReturn>;
keys(): ArrayIterator<number>;
/** Returns an list of values in the list. */
values(): BuiltinIterator<TNode, BuiltinIteratorReturn>;
values(): ArrayIterator<TNode>;
}

interface Plugin {
[Symbol.iterator](): BuiltinIterator<MimeType, BuiltinIteratorReturn>;
[Symbol.iterator](): ArrayIterator<MimeType>;
}

interface PluginArray {
[Symbol.iterator](): BuiltinIterator<Plugin, BuiltinIteratorReturn>;
[Symbol.iterator](): ArrayIterator<Plugin>;
}

interface RTCRtpTransceiver {
Expand All @@ -269,46 +281,50 @@ interface RTCStatsReport extends ReadonlyMap<string, any> {
}

interface SVGLengthList {
[Symbol.iterator](): BuiltinIterator<SVGLength, BuiltinIteratorReturn>;
[Symbol.iterator](): ArrayIterator<SVGLength>;
}

interface SVGNumberList {
[Symbol.iterator](): BuiltinIterator<SVGNumber, BuiltinIteratorReturn>;
[Symbol.iterator](): ArrayIterator<SVGNumber>;
}

interface SVGPointList {
[Symbol.iterator](): BuiltinIterator<DOMPoint, BuiltinIteratorReturn>;
[Symbol.iterator](): ArrayIterator<DOMPoint>;
}

interface SVGStringList {
[Symbol.iterator](): BuiltinIterator<string, BuiltinIteratorReturn>;
[Symbol.iterator](): ArrayIterator<string>;
}

interface SVGTransformList {
[Symbol.iterator](): BuiltinIterator<SVGTransform, BuiltinIteratorReturn>;
[Symbol.iterator](): ArrayIterator<SVGTransform>;
}

interface SourceBufferList {
[Symbol.iterator](): BuiltinIterator<SourceBuffer, BuiltinIteratorReturn>;
[Symbol.iterator](): ArrayIterator<SourceBuffer>;
}

interface SpeechRecognitionResult {
[Symbol.iterator](): BuiltinIterator<SpeechRecognitionAlternative, BuiltinIteratorReturn>;
[Symbol.iterator](): ArrayIterator<SpeechRecognitionAlternative>;
}

interface SpeechRecognitionResultList {
[Symbol.iterator](): BuiltinIterator<SpeechRecognitionResult, BuiltinIteratorReturn>;
[Symbol.iterator](): ArrayIterator<SpeechRecognitionResult>;
}

interface StylePropertyMapReadOnlyIterator<T> extends IteratorObject<T, BuiltinIteratorReturn, unknown> {
[Symbol.iterator](): StylePropertyMapReadOnlyIterator<T>;
}

interface StylePropertyMapReadOnly {
[Symbol.iterator](): BuiltinIterator<[string, Iterable<CSSStyleValue>], BuiltinIteratorReturn>;
entries(): BuiltinIterator<[string, Iterable<CSSStyleValue>], BuiltinIteratorReturn>;
keys(): BuiltinIterator<string, BuiltinIteratorReturn>;
values(): BuiltinIterator<Iterable<CSSStyleValue>, BuiltinIteratorReturn>;
[Symbol.iterator](): StylePropertyMapReadOnlyIterator<[string, Iterable<CSSStyleValue>]>;
entries(): StylePropertyMapReadOnlyIterator<[string, Iterable<CSSStyleValue>]>;
keys(): StylePropertyMapReadOnlyIterator<string>;
values(): StylePropertyMapReadOnlyIterator<Iterable<CSSStyleValue>>;
}

interface StyleSheetList {
[Symbol.iterator](): BuiltinIterator<CSSStyleSheet, BuiltinIteratorReturn>;
[Symbol.iterator](): ArrayIterator<CSSStyleSheet>;
}

interface SubtleCrypto {
Expand All @@ -327,25 +343,29 @@ interface SubtleCrypto {
}

interface TextTrackCueList {
[Symbol.iterator](): BuiltinIterator<TextTrackCue, BuiltinIteratorReturn>;
[Symbol.iterator](): ArrayIterator<TextTrackCue>;
}

interface TextTrackList {
[Symbol.iterator](): BuiltinIterator<TextTrack, BuiltinIteratorReturn>;
[Symbol.iterator](): ArrayIterator<TextTrack>;
}

interface TouchList {
[Symbol.iterator](): BuiltinIterator<Touch, BuiltinIteratorReturn>;
[Symbol.iterator](): ArrayIterator<Touch>;
}

interface URLSearchParamsIterator<T> extends IteratorObject<T, BuiltinIteratorReturn, unknown> {
[Symbol.iterator](): URLSearchParamsIterator<T>;
}

interface URLSearchParams {
[Symbol.iterator](): BuiltinIterator<[string, string], BuiltinIteratorReturn>;
[Symbol.iterator](): URLSearchParamsIterator<[string, string]>;
/** Returns an array of key, value pairs for every entry in the search params. */
entries(): BuiltinIterator<[string, string], BuiltinIteratorReturn>;
entries(): URLSearchParamsIterator<[string, string]>;
/** Returns a list of keys in the search params. */
keys(): BuiltinIterator<string, BuiltinIteratorReturn>;
keys(): URLSearchParamsIterator<string>;
/** Returns a list of values in the search params. */
values(): BuiltinIterator<string, BuiltinIteratorReturn>;
values(): URLSearchParamsIterator<string>;
}

interface WEBGL_draw_buffers {
Expand Down
2 changes: 1 addition & 1 deletion lib/lib.es2015.generator.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ and limitations under the License.

/// <reference lib="es2015.iterable" />

interface Generator<T = unknown, TReturn = any, TNext = any> extends BuiltinIterator<T, TReturn, TNext> {
interface Generator<T = unknown, TReturn = any, TNext = any> extends IteratorObject<T, TReturn, TNext> {
// NOTE: 'next' is defined using a tuple to ensure we report the correct assignability errors in all places.
next(...[value]: [] | [TNext]): IteratorResult<T, TReturn>;
return(value: TReturn): IteratorResult<T, TReturn>;
Expand Down
Loading

0 comments on commit 34121c4

Please sign in to comment.