Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Emit modular.generated.d.ts #1228

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions baselines/audioworklet.generated.d.ts
Original file line number Diff line number Diff line change
@@ -131,7 +131,7 @@ declare var AudioWorkletProcessor: {
};

/** This Streams API interface provides a built-in byte length queuing strategy that can be used when constructing streams. */
interface ByteLengthQueuingStrategy extends QueuingStrategy<ArrayBufferView> {
interface ByteLengthQueuingStrategy {
readonly highWaterMark: number;
readonly size: QueuingStrategySize<ArrayBufferView>;
}
@@ -142,7 +142,7 @@ declare var ByteLengthQueuingStrategy: {
};

/** This Streams API interface provides a built-in byte length queuing strategy that can be used when constructing streams. */
interface CountQueuingStrategy extends QueuingStrategy {
interface CountQueuingStrategy {
readonly highWaterMark: number;
readonly size: QueuingStrategySize;
}
27 changes: 10 additions & 17 deletions baselines/dom.generated.d.ts
Original file line number Diff line number Diff line change
@@ -2426,7 +2426,7 @@ declare var BroadcastChannel: {
};

/** This Streams API interface provides a built-in byte length queuing strategy that can be used when constructing streams. */
interface ByteLengthQueuingStrategy extends QueuingStrategy<ArrayBufferView> {
interface ByteLengthQueuingStrategy {
readonly highWaterMark: number;
readonly size: QueuingStrategySize<ArrayBufferView>;
}
@@ -3556,7 +3556,7 @@ declare var ConvolverNode: {
};

/** This Streams API interface provides a built-in byte length queuing strategy that can be used when constructing streams. */
interface CountQueuingStrategy extends QueuingStrategy {
interface CountQueuingStrategy {
readonly highWaterMark: number;
readonly size: QueuingStrategySize;
}
@@ -6020,30 +6020,21 @@ declare var HTMLCanvasElement: {
};

/** A generic collection (array-like object similar to arguments) of elements (in document order) and offers methods and properties for selecting from the list. */
interface HTMLCollectionBase {
interface HTMLCollection<E extends Element = Element, N = never> {
/** Sets or retrieves the number of objects in a collection. */
readonly length: number;
/** Retrieves an object from various collections. */
item(index: number): Element | null;
[index: number]: Element;
}

interface HTMLCollection extends HTMLCollectionBase {
item(index: number): E | null;
/** Retrieves a select object or an object from an options collection. */
namedItem(name: string): Element | null;
namedItem(name: string): E | N | null;
[index: number]: E;
}

declare var HTMLCollection: {
prototype: HTMLCollection;
new(): HTMLCollection;
};

interface HTMLCollectionOf<T extends Element> extends HTMLCollectionBase {
item(index: number): T | null;
namedItem(name: string): T | null;
[index: number]: T;
}

/** Provides special properties (beyond those of the regular HTMLElement interface it also has available to it by inheritance) for manipulating definition list (<dl>) elements. */
interface HTMLDListElement extends HTMLElement {
/** @deprecated */
@@ -6282,7 +6273,7 @@ declare var HTMLFontElement: {
};

/** A collection of HTML form control elements. */
interface HTMLFormControlsCollection extends HTMLCollectionBase {
interface HTMLFormControlsCollection extends HTMLCollection<Element, RadioNodeList> {
/**
* Returns the item with ID or name name from the collection.
*
@@ -7331,7 +7322,7 @@ declare var HTMLOptionElement: {
};

/** HTMLOptionsCollection is an interface representing a collection of HTML option elements (in document order) and offers methods and properties for traversing the list as well as optionally altering its items. This type is returned solely by the "options" property of select. */
interface HTMLOptionsCollection extends HTMLCollectionOf<HTMLOptionElement> {
interface HTMLOptionsCollection extends HTMLCollection<HTMLOptionElement> {
/**
* Returns the number of elements in the collection.
*
@@ -17680,6 +17671,8 @@ type GLsizei = number;
type GLsizeiptr = number;
type GLuint = number;
type GLuint64 = number;
/** @deprecated */
type HTMLCollectionOf<T extends Element> = HTMLCollection<T>;
type HTMLOrSVGImageElement = HTMLImageElement | SVGImageElement;
type HTMLOrSVGScriptElement = HTMLScriptElement | SVGScriptElement;
type HashAlgorithmIdentifier = AlgorithmIdentifier;
6 changes: 1 addition & 5 deletions baselines/dom.iterable.generated.d.ts
Original file line number Diff line number Diff line change
@@ -70,14 +70,10 @@ interface HTMLAllCollection {
[Symbol.iterator](): IterableIterator<Element>;
}

interface HTMLCollectionBase {
interface HTMLCollection<E extends Element = Element, N = never> {
[Symbol.iterator](): IterableIterator<Element>;
}

interface HTMLCollectionOf<T extends Element> {
[Symbol.iterator](): IterableIterator<T>;
}

interface HTMLFormElement {
[Symbol.iterator](): IterableIterator<Element>;
}
Loading