summaryrefslogtreecommitdiff
path: root/cli/tsc/dts
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2024-09-14 11:58:47 +0100
committerGitHub <noreply@github.com>2024-09-14 11:58:47 +0100
commitaf2d992ecd2b9320072164b6ee295c31a3194406 (patch)
tree0926e2852aa2c4eb300e1f54f4c84d7568589b3b /cli/tsc/dts
parent2c0bf6fd65b3276c4818c73028b19819608c8e70 (diff)
feat: TypeScript 5.6 and `npm:@types/node@22` (#25614)
Diffstat (limited to 'cli/tsc/dts')
-rw-r--r--cli/tsc/dts/lib.dom.asynciterable.d.ts20
-rw-r--r--cli/tsc/dts/lib.dom.d.ts1228
-rw-r--r--cli/tsc/dts/lib.dom.iterable.d.ts174
-rw-r--r--cli/tsc/dts/lib.es2015.generator.d.ts4
-rw-r--r--cli/tsc/dts/lib.es2015.iterable.d.ts168
-rw-r--r--cli/tsc/dts/lib.es2017.object.d.ts8
-rw-r--r--cli/tsc/dts/lib.es2018.asyncgenerator.d.ts4
-rw-r--r--cli/tsc/dts/lib.es2018.asynciterable.d.ts22
-rw-r--r--cli/tsc/dts/lib.es2020.bigint.d.ts16
-rw-r--r--cli/tsc/dts/lib.es2020.string.d.ts4
-rw-r--r--cli/tsc/dts/lib.es2020.symbol.wellknown.d.ts6
-rw-r--r--cli/tsc/dts/lib.es2022.intl.d.ts6
-rw-r--r--cli/tsc/dts/lib.es2023.array.d.ts10
-rw-r--r--cli/tsc/dts/lib.esnext.d.ts1
-rw-r--r--cli/tsc/dts/lib.esnext.disposable.d.ts8
-rw-r--r--cli/tsc/dts/lib.esnext.iterator.d.ts148
-rw-r--r--cli/tsc/dts/lib.webworker.asynciterable.d.ts20
-rw-r--r--cli/tsc/dts/lib.webworker.d.ts197
-rw-r--r--cli/tsc/dts/lib.webworker.iterable.d.ts82
-rw-r--r--cli/tsc/dts/typescript.d.ts417
20 files changed, 1162 insertions, 1381 deletions
diff --git a/cli/tsc/dts/lib.dom.asynciterable.d.ts b/cli/tsc/dts/lib.dom.asynciterable.d.ts
index 28e1bfd80..98b96b816 100644
--- a/cli/tsc/dts/lib.dom.asynciterable.d.ts
+++ b/cli/tsc/dts/lib.dom.asynciterable.d.ts
@@ -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](): 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>;
+ [Symbol.asyncIterator](options?: ReadableStreamIteratorOptions): ReadableStreamAsyncIterator<R>;
+ values(options?: ReadableStreamIteratorOptions): ReadableStreamAsyncIterator<R>;
}
diff --git a/cli/tsc/dts/lib.dom.d.ts b/cli/tsc/dts/lib.dom.d.ts
index 51f6da9c5..0a2f9b9ed 100644
--- a/cli/tsc/dts/lib.dom.d.ts
+++ b/cli/tsc/dts/lib.dom.d.ts
@@ -597,6 +597,11 @@ interface GetAnimationsOptions {
subtree?: boolean;
}
+interface GetHTMLOptions {
+ serializableShadowRoots?: boolean;
+ shadowRoots?: ShadowRoot[];
+}
+
interface GetNotificationOptions {
tag?: string;
}
@@ -686,10 +691,6 @@ interface ImageEncodeOptions {
type?: string;
}
-interface ImportMeta {
- url: string;
-}
-
interface InputEventInit extends UIEventInit {
data?: string | null;
dataTransfer?: DataTransfer | null;
@@ -863,6 +864,10 @@ interface MediaKeySystemMediaCapability {
robustness?: string;
}
+interface MediaKeysPolicy {
+ minHdcpVersion?: string;
+}
+
interface MediaMetadataInit {
album?: string;
artist?: string;
@@ -1202,6 +1207,10 @@ interface PointerEventInit extends MouseEventInit {
width?: number;
}
+interface PointerLockOptions {
+ unadjustedMovement?: boolean;
+}
+
interface PopStateEventInit extends EventInit {
state?: any;
}
@@ -1385,11 +1394,6 @@ interface RTCIceCandidateInit {
usernameFragment?: string | null;
}
-interface RTCIceCandidatePair {
- local: RTCIceCandidate;
- remote: RTCIceCandidate;
-}
-
interface RTCIceCandidatePairStats extends RTCStats {
availableIncomingBitrate?: number;
availableOutgoingBitrate?: number;
@@ -1521,7 +1525,7 @@ interface RTCRtcpParameters {
}
interface RTCRtpCapabilities {
- codecs: RTCRtpCodecCapability[];
+ codecs: RTCRtpCodec[];
headerExtensions: RTCRtpHeaderExtensionCapability[];
}
@@ -1532,9 +1536,6 @@ interface RTCRtpCodec {
sdpFmtpLine?: string;
}
-interface RTCRtpCodecCapability extends RTCRtpCodec {
-}
-
interface RTCRtpCodecParameters extends RTCRtpCodec {
payloadType: number;
}
@@ -1930,16 +1931,11 @@ interface TrackEventInit extends EventInit {
track?: TextTrack | null;
}
-interface TransformerCancelCallback {
- (reason: any): void | PromiseLike<void>;
-}
-
interface Transformer<I = any, O = any> {
flush?: TransformerFlushCallback<O>;
readableType?: undefined;
start?: TransformerStartCallback<O>;
transform?: TransformerTransformCallback<I, O>;
- cancel?: TransformerCancelCallback;
writableType?: undefined;
}
@@ -2234,7 +2230,9 @@ interface ARIAMixin {
ariaAtomic: string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaAutoComplete) */
ariaAutoComplete: string | null;
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaBrailleLabel) */
ariaBrailleLabel: string | null;
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaBrailleRoleDescription) */
ariaBrailleRoleDescription: string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaBusy) */
ariaBusy: string | null;
@@ -2817,7 +2815,6 @@ declare var AudioNode: {
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam)
*/
interface AudioParam {
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/automationRate) */
automationRate: AutomationRate;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/defaultValue) */
readonly defaultValue: number;
@@ -3105,7 +3102,11 @@ declare var BaseAudioContext: {
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/BeforeUnloadEvent)
*/
interface BeforeUnloadEvent extends Event {
- /** @deprecated */
+ /**
+ * @deprecated
+ *
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BeforeUnloadEvent/returnValue)
+ */
returnValue: any;
}
@@ -3417,7 +3418,7 @@ interface CSSImportRule extends CSSRule {
readonly layerName: string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSImportRule/media) */
readonly media: MediaList;
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSImportRule/styleSheet) */
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSImportRule/stylesheet) */
readonly styleSheet: CSSStyleSheet | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSImportRule/supportsText) */
readonly supportsText: string | null;
@@ -3710,7 +3711,7 @@ declare var CSSPerspective: {
interface CSSPropertyRule extends CSSRule {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPropertyRule/inherits) */
readonly inherits: boolean;
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPropertyRule/initialValue) */
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPropertyRule/initialvalue) */
readonly initialValue: string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPropertyRule/name) */
readonly name: string;
@@ -3823,8 +3824,11 @@ declare var CSSScale: {
new(x: CSSNumberish, y: CSSNumberish, z?: CSSNumberish): CSSScale;
};
+/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSScopeRule) */
interface CSSScopeRule extends CSSGroupingRule {
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSScopeRule/end) */
readonly end: string | null;
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSScopeRule/start) */
readonly start: string | null;
}
@@ -3947,7 +3951,6 @@ interface CSSStyleDeclaration {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-size) */
backgroundSize: string;
baselineShift: string;
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/baseline-source) */
baselineSource: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/block-size) */
blockSize: string;
@@ -4129,11 +4132,9 @@ interface CSSStyleDeclaration {
columns: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/contain) */
contain: string;
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/contain-intrinsic-contain-intrinsic-block-size) */
containIntrinsicBlockSize: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/contain-intrinsic-height) */
containIntrinsicHeight: string;
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/contain-intrinsic-contain-intrinsic-inline-size) */
containIntrinsicInlineSize: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/contain-intrinsic-size) */
containIntrinsicSize: string;
@@ -4650,7 +4651,9 @@ interface CSSStyleDeclaration {
textUnderlinePosition: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-wrap) */
textWrap: string;
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-wrap-mode) */
textWrapMode: string;
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-wrap-style) */
textWrapStyle: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/top) */
top: string;
@@ -4685,6 +4688,8 @@ interface CSSStyleDeclaration {
vectorEffect: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/vertical-align) */
verticalAlign: string;
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/view-transition-name) */
+ viewTransitionName: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/visibility) */
visibility: string;
/**
@@ -4915,7 +4920,11 @@ interface CSSStyleDeclaration {
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/justify-content)
*/
webkitJustifyContent: string;
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/-webkit-line-clamp) */
+ /**
+ * @deprecated This is a legacy alias of `lineClamp`.
+ *
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/-webkit-line-clamp)
+ */
webkitLineClamp: string;
/**
* @deprecated This is a legacy alias of `mask`.
@@ -5577,6 +5586,8 @@ interface CanvasShadowStyles {
}
interface CanvasState {
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/isContextLost) */
+ isContextLost(): boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/reset) */
reset(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/restore) */
@@ -5774,6 +5785,8 @@ declare var ClipboardEvent: {
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ClipboardItem)
*/
interface ClipboardItem {
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ClipboardItem/presentationStyle) */
+ readonly presentationStyle: PresentationStyle;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ClipboardItem/types) */
readonly types: ReadonlyArray<string>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ClipboardItem/getType) */
@@ -5783,6 +5796,8 @@ interface ClipboardItem {
declare var ClipboardItem: {
prototype: ClipboardItem;
new(items: Record<string, string | Blob | PromiseLike<string | Blob>>, options?: ClipboardItemOptions): ClipboardItem;
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ClipboardItem/supports_static) */
+ supports(type: string): boolean;
};
/**
@@ -5852,8 +5867,6 @@ declare var CompositionEvent: {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CompressionStream) */
interface CompressionStream extends GenericTransformStream {
- readonly readable: ReadableStream<Uint8Array>;
- readonly writable: WritableStream<BufferSource>;
}
declare var CompressionStream: {
@@ -6186,9 +6199,7 @@ interface DOMMatrix extends DOMMatrixReadOnly {
rotateAxisAngleSelf(x?: number, y?: number, z?: number, angle?: number): DOMMatrix;
rotateFromVectorSelf(x?: number, y?: number): DOMMatrix;
rotateSelf(rotX?: number, rotY?: number, rotZ?: number): DOMMatrix;
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/scale3dSelf) */
scale3dSelf(scale?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix;
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/scaleSelf) */
scaleSelf(scaleX?: number, scaleY?: number, scaleZ?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix;
setMatrixValue(transformList: string): DOMMatrix;
skewXSelf(sx?: number): DOMMatrix;
@@ -6212,88 +6223,48 @@ declare var WebKitCSSMatrix: typeof DOMMatrix;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly) */
interface DOMMatrixReadOnly {
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/a) */
readonly a: number;
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/b) */
readonly b: number;
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/c) */
readonly c: number;
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/d) */
readonly d: number;
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/e) */
readonly e: number;
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/f) */
readonly f: number;
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/is2D) */
readonly is2D: boolean;
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/isIdentity) */
readonly isIdentity: boolean;
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m11) */
readonly m11: number;
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m12) */
readonly m12: number;
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m13) */
readonly m13: number;
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m14) */
readonly m14: number;
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m21) */
readonly m21: number;
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m22) */
readonly m22: number;
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m23) */
readonly m23: number;
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m24) */
readonly m24: number;
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m31) */
readonly m31: number;
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m32) */
readonly m32: number;
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m33) */
readonly m33: number;
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m34) */
readonly m34: number;
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m41) */
readonly m41: number;
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m42) */
readonly m42: number;
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m43) */
readonly m43: number;
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m44) */
readonly m44: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/flipX) */
flipX(): DOMMatrix;
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/flipY) */
flipY(): DOMMatrix;
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/inverse) */
inverse(): DOMMatrix;
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/multiply) */
multiply(other?: DOMMatrixInit): DOMMatrix;
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/rotate) */
rotate(rotX?: number, rotY?: number, rotZ?: number): DOMMatrix;
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/rotateAxisAngle) */
rotateAxisAngle(x?: number, y?: number, z?: number, angle?: number): DOMMatrix;
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/rotateFromVector) */
rotateFromVector(x?: number, y?: number): DOMMatrix;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/scale) */
scale(scaleX?: number, scaleY?: number, scaleZ?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix;
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/scale3d) */
scale3d(scale?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix;
- /**
- * @deprecated
- *
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/scaleNonUniform)
- */
+ /** @deprecated */
scaleNonUniform(scaleX?: number, scaleY?: number): DOMMatrix;
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/skewX) */
skewX(sx?: number): DOMMatrix;
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/skewY) */
skewY(sy?: number): DOMMatrix;
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/toFloat32Array) */
toFloat32Array(): Float32Array;
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/toFloat64Array) */
toFloat64Array(): Float64Array;
toJSON(): any;
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/transformPoint) */
transformPoint(point?: DOMPointInit): DOMPoint;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/translate) */
translate(tx?: number, ty?: number, tz?: number): DOMMatrix;
@@ -6365,7 +6336,6 @@ interface DOMPointReadOnly {
readonly y: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/z) */
readonly z: number;
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/matrixTransform) */
matrixTransform(matrix?: DOMMatrixInit): DOMPoint;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/toJSON) */
toJSON(): any;
@@ -6380,15 +6350,10 @@ declare var DOMPointReadOnly: {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad) */
interface DOMQuad {
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/p1) */
readonly p1: DOMPoint;
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/p2) */
readonly p2: DOMPoint;
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/p3) */
readonly p3: DOMPoint;
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/p4) */
readonly p4: DOMPoint;
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/getBounds) */
getBounds(): DOMRect;
toJSON(): any;
}
@@ -6411,6 +6376,7 @@ interface DOMRect extends DOMRectReadOnly {
declare var DOMRect: {
prototype: DOMRect;
new(x?: number, y?: number, width?: number, height?: number): DOMRect;
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRect/fromRect_static) */
fromRect(other?: DOMRectInit): DOMRect;
};
@@ -6751,8 +6717,6 @@ declare var DataTransferItemList: {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DecompressionStream) */
interface DecompressionStream extends GenericTransformStream {
- readonly readable: ReadableStream<Uint8Array>;
- readonly writable: WritableStream<BufferSource>;
}
declare var DecompressionStream: {
@@ -7157,11 +7121,7 @@ interface Document extends Node, DocumentOrShadowRoot, FontFaceSource, GlobalEve
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/adoptNode)
*/
adoptNode<T extends Node>(node: T): T;
- /**
- * @deprecated
- *
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/captureEvents)
- */
+ /** @deprecated */
captureEvents(): void;
/** @deprecated */
caretRangeFromPoint(x: number, y: number): Range | null;
@@ -7295,6 +7255,7 @@ interface Document extends Node, DocumentOrShadowRoot, FontFaceSource, GlobalEve
createEvent(eventInterface: "SpeechSynthesisEvent"): SpeechSynthesisEvent;
createEvent(eventInterface: "StorageEvent"): StorageEvent;
createEvent(eventInterface: "SubmitEvent"): SubmitEvent;
+ createEvent(eventInterface: "TextEvent"): TextEvent;
createEvent(eventInterface: "ToggleEvent"): ToggleEvent;
createEvent(eventInterface: "TouchEvent"): TouchEvent;
createEvent(eventInterface: "TrackEvent"): TrackEvent;
@@ -7451,8 +7412,6 @@ interface Document extends Node, DocumentOrShadowRoot, FontFaceSource, GlobalEve
* Returns a Boolean value that indicates whether the specified command is in the indeterminate state.
* @param commandId String that specifies a command identifier.
* @deprecated
- *
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/queryCommandIndeterm)
*/
queryCommandIndeterm(commandId: string): boolean;
/**
@@ -7475,18 +7434,14 @@ interface Document extends Node, DocumentOrShadowRoot, FontFaceSource, GlobalEve
* Returns the current value of the document, range, or current selection for the given command.
* @param commandId String that specifies a command identifier.
* @deprecated
- *
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/queryCommandValue)
*/
queryCommandValue(commandId: string): string;
- /**
- * @deprecated
- *
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/releaseEvents)
- */
+ /** @deprecated */
releaseEvents(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/requestStorageAccess) */
requestStorageAccess(): Promise<void>;
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/startViewTransition) */
+ startViewTransition(callbackOptions?: UpdateCallback): ViewTransition;
/**
* Writes one or more HTML expressions to a document in the specified window.
* @param content Specifies the text and HTML tags to write.
@@ -7510,6 +7465,7 @@ interface Document extends Node, DocumentOrShadowRoot, FontFaceSource, GlobalEve
declare var Document: {
prototype: Document;
new(): Document;
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/parseHTMLUnsafe_static) */
parseHTMLUnsafe(html: string): Document;
};
@@ -7731,7 +7687,7 @@ interface ElementEventMap {
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element)
*/
-interface Element extends Node, ARIAMixin, Animatable, ChildNode, InnerHTML, NonDocumentTypeChildNode, ParentNode, Slottable {
+interface Element extends Node, ARIAMixin, Animatable, ChildNode, NonDocumentTypeChildNode, ParentNode, Slottable {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/attributes) */
readonly attributes: NamedNodeMap;
/**
@@ -7760,6 +7716,8 @@ interface Element extends Node, ARIAMixin, Animatable, ChildNode, InnerHTML, Non
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/id)
*/
id: string;
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/innerHTML) */
+ innerHTML: string;
/**
* Returns the local name.
*
@@ -7876,6 +7834,8 @@ interface Element extends Node, ARIAMixin, Animatable, ChildNode, InnerHTML, Non
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf<SVGElement>;
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1998/Math/MathML", localName: string): HTMLCollectionOf<MathMLElement>;
getElementsByTagNameNS(namespace: string | null, localName: string): HTMLCollectionOf<Element>;
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getHTML) */
+ getHTML(options?: GetHTMLOptions): string;
/**
* Returns true if element has an attribute whose qualified name is qualifiedName, and false otherwise.
*
@@ -7899,7 +7859,7 @@ interface Element extends Node, ARIAMixin, Animatable, ChildNode, InnerHTML, Non
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/insertAdjacentElement) */
insertAdjacentElement(where: InsertPosition, element: Element): Element | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/insertAdjacentHTML) */
- insertAdjacentHTML(position: InsertPosition, text: string): void;
+ insertAdjacentHTML(position: InsertPosition, string: string): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/insertAdjacentText) */
insertAdjacentText(where: InsertPosition, data: string): void;
/**
@@ -7933,7 +7893,7 @@ interface Element extends Node, ARIAMixin, Animatable, ChildNode, InnerHTML, Non
*/
requestFullscreen(options?: FullscreenOptions): Promise<void>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/requestPointerLock) */
- requestPointerLock(): void;
+ requestPointerLock(options?: PointerLockOptions): Promise<void>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/scroll) */
scroll(options?: ScrollToOptions): void;
scroll(x: number, y: number): void;
@@ -7961,6 +7921,7 @@ interface Element extends Node, ARIAMixin, Animatable, ChildNode, InnerHTML, Non
setAttributeNode(attr: Attr): Attr | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/setAttributeNodeNS) */
setAttributeNodeNS(attr: Attr): Attr | null;
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/setHTMLUnsafe) */
setHTMLUnsafe(html: string): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/setPointerCapture) */
setPointerCapture(pointerId: number): void;
@@ -7990,6 +7951,7 @@ declare var Element: {
};
interface ElementCSSInlineStyle {
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/attributeStyleMap) */
readonly attributeStyleMap: StylePropertyMap;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/style) */
readonly style: CSSStyleDeclaration;
@@ -8104,15 +8066,10 @@ declare var EncodedVideoChunk: {
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent)
*/
interface ErrorEvent extends Event {
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent/colno) */
readonly colno: number;
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent/error) */
readonly error: any;
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent/filename) */
readonly filename: string;
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent/lineno) */
readonly lineno: number;
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent/message) */
readonly message: string;
}
@@ -8368,23 +8325,11 @@ declare var EventTarget: {
new(): EventTarget;
};
-/**
- * @deprecated
- *
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/External)
- */
+/** @deprecated */
interface External {
- /**
- * @deprecated
- *
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/External/AddSearchProvider)
- */
+ /** @deprecated */
AddSearchProvider(): void;
- /**
- * @deprecated
- *
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/External/IsSearchProviderInstalled)
- */
+ /** @deprecated */
IsSearchProviderInstalled(): void;
}
@@ -8824,6 +8769,7 @@ interface Gamepad {
readonly mapping: GamepadMappingType;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Gamepad/timestamp) */
readonly timestamp: DOMHighResTimeStamp;
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Gamepad/vibrationActuator) */
readonly vibrationActuator: GamepadHapticActuator;
}
@@ -8852,7 +8798,7 @@ declare var GamepadButton: {
};
/**
- * This Gamepad API interface contains references to gamepads connected to the system, which is what the gamepad events Window.gamepadconnected and Window.gamepaddisconnected are fired in response to.
+ * This Gamepad API interface contains references to gamepads connected to the system, which is what the gamepad events globalThis.gamepadconnected and globalThis.gamepaddisconnected are fired in response to.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GamepadEvent)
*/
@@ -8872,6 +8818,7 @@ declare var GamepadEvent: {
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GamepadHapticActuator)
*/
interface GamepadHapticActuator {
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GamepadHapticActuator/playEffect) */
playEffect(type: GamepadHapticEffectType, params?: GamepadEffectParameters): Promise<GamepadHapticsResult>;
reset(): Promise<GamepadHapticsResult>;
}
@@ -8882,7 +8829,9 @@ declare var GamepadHapticActuator: {
};
interface GenericTransformStream {
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CompressionStream/readable) */
readonly readable: ReadableStream;
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CompressionStream/writable) */
readonly writable: WritableStream;
}
@@ -8925,6 +8874,8 @@ interface GeolocationCoordinates {
readonly longitude: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationCoordinates/speed) */
readonly speed: number | null;
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationCoordinates/toJSON) */
+ toJSON(): any;
}
declare var GeolocationCoordinates: {
@@ -8942,6 +8893,8 @@ interface GeolocationPosition {
readonly coords: GeolocationCoordinates;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationPosition/timestamp) */
readonly timestamp: EpochTimeStamp;
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationPosition/toJSON) */
+ toJSON(): any;
}
declare var GeolocationPosition: {
@@ -8987,7 +8940,9 @@ interface GlobalEventHandlersEventMap {
"compositionend": CompositionEvent;
"compositionstart": CompositionEvent;
"compositionupdate": CompositionEvent;
+ "contextlost": Event;
"contextmenu": MouseEvent;
+ "contextrestored": Event;
"copy": ClipboardEvent;
"cuechange": Event;
"cut": ClipboardEvent;
@@ -9101,7 +9056,7 @@ interface GlobalEventHandlers {
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/blur_event)
*/
onblur: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDialogElement/cancel_event) */
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/cancel_event) */
oncancel: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/**
* Occurs when playback is possible, but would require further buffering.
@@ -9128,6 +9083,8 @@ interface GlobalEventHandlers {
onclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDialogElement/close_event) */
onclose: ((this: GlobalEventHandlers, ev: Event) => any) | null;
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLCanvasElement/webglcontextlost_event) */
+ oncontextlost: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/**
* Fires when the user clicks the right mouse button in the client area, opening the context menu.
* @param ev The mouse event.
@@ -9135,6 +9092,8 @@ interface GlobalEventHandlers {
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/contextmenu_event)
*/
oncontextmenu: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLCanvasElement/contextrestored_event) */
+ oncontextrestored: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/copy_event) */
oncopy: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTrackElement/cuechange_event) */
@@ -9285,7 +9244,7 @@ interface GlobalEventHandlers {
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/loadstart_event)
*/
onloadstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/lostpointercapture_event) */
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/lostpointercapture_event) */
onlostpointercapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
/**
* Fires when the user clicks the object with either mouse button.
@@ -9554,15 +9513,11 @@ interface HTMLAnchorElement extends HTMLElement, HTMLHyperlinkElementUtils {
/**
* Sets or retrieves the character set used to encode the object.
* @deprecated
- *
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/charset)
*/
charset: string;
/**
* Sets or retrieves the coordinates of the object.
* @deprecated
- *
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/coords)
*/
coords: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/download) */
@@ -9576,8 +9531,6 @@ interface HTMLAnchorElement extends HTMLElement, HTMLHyperlinkElementUtils {
/**
* Sets or retrieves the shape of the object.
* @deprecated
- *
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/name)
*/
name: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/ping) */
@@ -9595,15 +9548,11 @@ interface HTMLAnchorElement extends HTMLElement, HTMLHyperlinkElementUtils {
/**
* Sets or retrieves the relationship between the object and the destination of the link.
* @deprecated
- *
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/rev)
*/
rev: string;
/**
* Sets or retrieves the shape of the object.
* @deprecated
- *
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/shape)
*/
shape: string;
/**
@@ -9637,25 +9586,14 @@ declare var HTMLAnchorElement: {
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement)
*/
interface HTMLAreaElement extends HTMLElement, HTMLHyperlinkElementUtils {
- /**
- * Sets or retrieves a text alternative to the graphic.
- *
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement/alt)
- */
+ /** Sets or retrieves a text alternative to the graphic. */
alt: string;
- /**
- * Sets or retrieves the coordinates of the object.
- *
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement/coords)
- */
+ /** Sets or retrieves the coordinates of the object. */
coords: string;
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement/download) */
download: string;
/**
* Sets or gets whether clicks in this region cause action.
* @deprecated
- *
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement/noHref)
*/
noHref: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement/ping) */
@@ -9666,11 +9604,7 @@ interface HTMLAreaElement extends HTMLElement, HTMLHyperlinkElementUtils {
rel: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement/relList) */
readonly relList: DOMTokenList;
- /**
- * Sets or retrieves the shape of the object.
- *
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement/shape)
- */
+ /** Sets or retrieves the shape of the object. */
shape: string;
/**
* Sets or retrieves the window or frame at which to target content.
@@ -9715,8 +9649,6 @@ interface HTMLBRElement extends HTMLElement {
/**
* Sets or retrieves the side on which floating objects are not to be positioned when any IHTMLBlockElement is inserted into the document.
* @deprecated
- *
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLBRElement/clear)
*/
clear: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLBRElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
@@ -9736,11 +9668,7 @@ declare var HTMLBRElement: {
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLBaseElement)
*/
interface HTMLBaseElement extends HTMLElement {
- /**
- * Gets or sets the baseline URL on which relative links are based.
- *
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLBaseElement/href)
- */
+ /** Gets or sets the baseline URL on which relative links are based. */
href: string;
/**
* Sets or retrieves the window or frame at which to target content.
@@ -9768,41 +9696,17 @@ interface HTMLBodyElementEventMap extends HTMLElementEventMap, WindowEventHandle
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLBodyElement)
*/
interface HTMLBodyElement extends HTMLElement, WindowEventHandlers {
- /**
- * @deprecated
- *
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLBodyElement/aLink)
- */
+ /** @deprecated */
aLink: string;
- /**
- * @deprecated
- *
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLBodyElement/background)
- */
+ /** @deprecated */
background: string;
- /**
- * @deprecated
- *
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLBodyElement/bgColor)
- */
+ /** @deprecated */
bgColor: string;
- /**
- * @deprecated
- *
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLBodyElement/link)
- */
+ /** @deprecated */
link: string;
- /**
- * @deprecated
- *
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLBodyElement/text)
- */
+ /** @deprecated */
text: string;
- /**
- * @deprecated
- *
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLBodyElement/vLink)
- */
+ /** @deprecated */
vLink: string;
addEventListener<K extends keyof HTMLBodyElementEventMap>(type: K, listener: (this: HTMLBodyElement, ev: HTMLBodyElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
@@ -9823,49 +9727,21 @@ declare var HTMLBodyElement: {
interface HTMLButtonElement extends HTMLElement, PopoverInvokerElement {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/disabled) */
disabled: boolean;
- /**
- * Retrieves a reference to the form that the object is embedded in.
- *
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/form)
- */
+ /** Retrieves a reference to the form that the object is embedded in. */
readonly form: HTMLFormElement | null;
- /**
- * Overrides the action attribute (where the data on a form is sent) on the parent form element.
- *
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/formAction)
- */
+ /** Overrides the action attribute (where the data on a form is sent) on the parent form element. */
formAction: string;
- /**
- * Used to override the encoding (formEnctype attribute) specified on the form element.
- *
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/formEnctype)
- */
+ /** Used to override the encoding (formEnctype attribute) specified on the form element. */
formEnctype: string;
- /**
- * Overrides the submit method attribute previously specified on a form element.
- *
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/formMethod)
- */
+ /** Overrides the submit method attribute previously specified on a form element. */
formMethod: string;
- /**
- * Overrides any validation or required attributes on a form or form elements to allow it to be submitted without validation. This can be used to create a "save draft"-type submit option.
- *
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/formNoValidate)
- */
+ /** Overrides any validation or required attributes on a form or form elements to allow it to be submitted without validation. This can be used to create a "save draft"-type submit option. */
formNoValidate: boolean;
- /**
- * Overrides the target attribute on a form element.
- *
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/formTarget)
- */
+ /** Overrides the target attribute on a form element. */
formTarget: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/labels) */
readonly labels: NodeListOf<HTMLLabelElement>;
- /**
- * Sets or retrieves the name of the object.
- *
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/name)
- */
+ /** Sets or retrieves the name of the object. */
name: string;
/**
* Gets the classification and default behavior of the button.
@@ -9873,33 +9749,16 @@ interface HTMLButtonElement extends HTMLElement, PopoverInvokerElement {
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/type)
*/
type: "submit" | "reset" | "button";
- /**
- * Returns the error message that would be displayed if the user submits the form, or an empty string if no error message. It also triggers the standard error message, such as "this is a required field". The result is that the user sees validation messages without actually submitting.
- *
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/validationMessage)
- */
+ /** Returns the error message that would be displayed if the user submits the form, or an empty string if no error message. It also triggers the standard error message, such as "this is a required field". The result is that the user sees validation messages without actually submitting. */
readonly validationMessage: string;
- /**
- * Returns a ValidityState object that represents the validity states of an element.
- *
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/validity)
- */
+ /** Returns a ValidityState object that represents the validity states of an element. */
readonly validity: ValidityState;
- /**
- * Sets or retrieves the default or selected value of the control.
- *
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/value)
- */
+ /** Sets or retrieves the default or selected value of the control. */
value: string;
- /**
- * Returns whether an element will successfully validate based on forms validation rules and constraints.
- *
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/willValidate)
- */
+ /** Returns whether an element will successfully validate based on forms validation rules and constraints. */
readonly willValidate: boolean;
/** Returns whether a form will validate when it is submitted, without having to submit it. */
checkValidity(): boolean;
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/reportValidity) */
reportValidity(): boolean;
/**
* Sets a custom error message that is displayed when a form is submitted.
@@ -10017,11 +9876,7 @@ interface HTMLCollectionOf<T extends Element> extends HTMLCollectionBase {
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDListElement)
*/
interface HTMLDListElement extends HTMLElement {
- /**
- * @deprecated
- *
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDListElement/compact)
- */
+ /** @deprecated */
compact: boolean;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDListElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
@@ -10059,11 +9914,7 @@ declare var HTMLDataElement: {
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDataListElement)
*/
interface HTMLDataListElement extends HTMLElement {
- /**
- * Returns an HTMLCollection of the option elements of the datalist element.
- *
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDataListElement/options)
- */
+ /** Returns an HTMLCollection of the option elements of the datalist element. */
readonly options: HTMLCollectionOf<HTMLOptionElement>;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDataListElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
@@ -10150,8 +10001,6 @@ interface HTMLDivElement extends HTMLElement {
/**
* Sets or retrieves how the object is aligned with adjacent text.
* @deprecated
- *
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDivElement/align)
*/
align: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDivElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
@@ -10192,6 +10041,7 @@ interface HTMLElement extends Element, ElementCSSInlineStyle, ElementContentEdit
accessKey: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/accessKeyLabel) */
readonly accessKeyLabel: string;
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/autocapitalize) */
autocapitalize: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/dir) */
dir: string;
@@ -10265,7 +10115,11 @@ interface HTMLEmbedElement extends HTMLElement {
* @deprecated
*/
name: string;
- /** Sets or retrieves a URL to be loaded by the object. */
+ /**
+ * Sets or retrieves a URL to be loaded by the object.
+ *
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLEmbedElement/src)
+ */
src: string;
type: string;
/**
@@ -10292,49 +10146,22 @@ declare var HTMLEmbedElement: {
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFieldSetElement)
*/
interface HTMLFieldSetElement extends HTMLElement {
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFieldSetElement/disabled) */
disabled: boolean;
- /**
- * Returns an HTMLCollection of the form controls in the element.
- *
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFieldSetElement/elements)
- */
+ /** Returns an HTMLCollection of the form controls in the element. */
readonly elements: HTMLCollection;
- /**
- * Retrieves a reference to the form that the object is embedded in.
- *
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFieldSetElement/form)
- */
+ /** Retrieves a reference to the form that the object is embedded in. */
readonly form: HTMLFormElement | null;
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFieldSetElement/name) */
name: string;
- /**
- * Returns the string "fieldset".
- *
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFieldSetElement/type)
- */
+ /** Returns the string "fieldset". */
readonly type: string;
- /**
- * Returns the error message that would be displayed if the user submits the form, or an empty string if no error message. It also triggers the standard error message, such as "this is a required field". The result is that the user sees validation messages without actually submitting.
- *
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFieldSetElement/validationMessage)
- */
+ /** Returns the error message that would be displayed if the user submits the form, or an empty string if no error message. It also triggers the standard error message, such as "this is a required field". The result is that the user sees validation messages without actually submitting. */
readonly validationMessage: string;
- /**
- * Returns a ValidityState object that represents the validity states of an element.
- *
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFieldSetElement/validity)
- */
+ /** Returns a ValidityState object that represents the validity states of an element. */
readonly validity: ValidityState;
- /**
- * Returns whether an element will successfully validate based on forms validation rules and constraints.
- *
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFieldSetElement/willValidate)
- */
+ /** Returns whether an element will successfully validate based on forms validation rules and constraints. */
readonly willValidate: boolean;
/** Returns whether a form will validate when it is submitted, without having to submit it. */
checkValidity(): boolean;
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFieldSetElement/reportValidity) */
reportValidity(): boolean;
/**
* Sets a custom error message that is displayed when a form is submitted.
@@ -10429,11 +10256,7 @@ interface HTMLFormElement extends HTMLElement {
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/action)
*/
action: string;
- /**
- * Specifies whether autocomplete is applied to an editable text field.
- *
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/autocomplete)
- */
+ /** Specifies whether autocomplete is applied to an editable text field. */
autocomplete: AutoFillBase;
/**
* Retrieves a collection, in source order, of all controls in a given form.
@@ -10471,11 +10294,7 @@ interface HTMLFormElement extends HTMLElement {
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/name)
*/
name: string;
- /**
- * Designates a form that is not validated when submitted.
- *
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/noValidate)
- */
+ /** Designates a form that is not validated when submitted. */
noValidate: boolean;
rel: string;
readonly relList: DOMTokenList;
@@ -10485,11 +10304,7 @@ interface HTMLFormElement extends HTMLElement {
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/target)
*/
target: string;
- /**
- * Returns whether a form will validate when it is submitted, without having to submit it.
- *
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/checkValidity)
- */
+ /** Returns whether a form will validate when it is submitted, without having to submit it. */
checkValidity(): boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/reportValidity) */
reportValidity(): boolean;
@@ -10520,80 +10335,56 @@ declare var HTMLFormElement: {
new(): HTMLFormElement;
};
-/**
- * @deprecated
- *
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFrameElement)
- */
+/** @deprecated */
interface HTMLFrameElement extends HTMLElement {
/**
* Retrieves the document object of the page or frame.
* @deprecated
- *
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFrameElement/contentDocument)
*/
readonly contentDocument: Document | null;
/**
* Retrieves the object of the specified.
* @deprecated
- *
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFrameElement/contentWindow)
*/
readonly contentWindow: WindowProxy | null;
/**
* Sets or retrieves whether to display a border for the frame.
* @deprecated
- *
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFrameElement/frameBorder)
*/
frameBorder: string;
/**
* Sets or retrieves a URI to a long description of the object.
* @deprecated
- *
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFrameElement/longDesc)
*/
longDesc: string;
/**
* Sets or retrieves the top and bottom margin heights before displaying the text in a frame.
* @deprecated
- *
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFrameElement/marginHeight)
*/
marginHeight: string;
/**
* Sets or retrieves the left and right margin widths before displaying the text in a frame.
* @deprecated
- *
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFrameElement/marginWidth)
*/
marginWidth: string;
/**
* Sets or retrieves the frame name.
* @deprecated
- *
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFrameElement/name)
*/
name: string;
/**
* Sets or retrieves whether the user can resize the frame.
* @deprecated
- *
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFrameElement/noResize)
*/
noResize: boolean;
/**
* Sets or retrieves whether the frame can be scrolled.
* @deprecated
- *
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFrameElement/scrolling)
*/
scrolling: string;
/**
* Sets or retrieves a URL to be loaded by the object.
* @deprecated
- *
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFrameElement/src)
*/
src: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLFrameElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
@@ -10702,8 +10493,6 @@ interface HTMLHeadingElement extends HTMLElement {
/**
* Sets or retrieves a value that indicates the table alignment.
* @deprecated
- *
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLHeadingElement/align)
*/
align: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLHeadingElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
@@ -10840,10 +10629,9 @@ interface HTMLIFrameElement extends HTMLElement {
/**
* Sets or retrieves how the object is aligned with adjacent text.
* @deprecated
- *
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement/align)
*/
align: string;
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement/allow) */
allow: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement/allowFullscreen) */
allowFullscreen: boolean;
@@ -10862,8 +10650,6 @@ interface HTMLIFrameElement extends HTMLElement {
/**
* Sets or retrieves whether to display a border for the frame.
* @deprecated
- *
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement/frameBorder)
*/
frameBorder: string;
/**
@@ -10877,22 +10663,16 @@ interface HTMLIFrameElement extends HTMLElement {
/**
* Sets or retrieves a URI to a long description of the object.
* @deprecated
- *
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement/longDesc)
*/
longDesc: string;
/**
* Sets or retrieves the top and bottom margin heights before displaying the text in a frame.
* @deprecated
- *
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement/marginHeight)
*/
marginHeight: string;
/**
* Sets or retrieves the left and right margin widths before displaying the text in a frame.
* @deprecated
- *
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement/marginWidth)
*/
marginWidth: string;
/**
@@ -10903,12 +10683,11 @@ interface HTMLIFrameElement extends HTMLElement {
name: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement/referrerPolicy) */
referrerPolicy: ReferrerPolicy;
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement/sandbox) */
readonly sandbox: DOMTokenList;
/**
* Sets or retrieves whether the frame can be scrolled.
* @deprecated
- *
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement/scrolling)
*/
scrolling: string;
/**
@@ -11013,11 +10792,7 @@ interface HTMLImageElement extends HTMLElement {
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/longDesc)
*/
longDesc: string;
- /**
- * @deprecated
- *
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/lowsrc)
- */
+ /** @deprecated */
lowsrc: string;
/**
* Sets or retrieves the name of the object.
@@ -11101,22 +10876,14 @@ interface HTMLInputElement extends HTMLElement, PopoverInvokerElement {
align: string;
/** Sets or retrieves a text alternative to the graphic. */
alt: string;
- /**
- * Specifies whether autocomplete is applied to an editable text field.
- *
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/autocomplete)
- */
+ /** Specifies whether autocomplete is applied to an editable text field. */
autocomplete: AutoFill;
capture: string;
/** Sets or retrieves the state of the check box or radio button. */
checked: boolean;
/** Sets or retrieves the state of the check box or radio button. */
defaultChecked: boolean;
- /**
- * Sets or retrieves the initial contents of the object.
- *
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/defaultValue)
- */
+ /** Sets or retrieves the initial contents of the object. */
defaultValue: string;
dirName: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/disabled) */
@@ -11129,71 +10896,30 @@ interface HTMLInputElement extends HTMLElement, PopoverInvokerElement {
files: FileList | null;
/** Retrieves a reference to the form that the object is embedded in. */
readonly form: HTMLFormElement | null;
- /**
- * Overrides the action attribute (where the data on a form is sent) on the parent form element.
- *
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/formAction)
- */
+ /** Overrides the action attribute (where the data on a form is sent) on the parent form element. */
formAction: string;
- /**
- * Used to override the encoding (formEnctype attribute) specified on the form element.
- *
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/formEnctype)
- */
+ /** Used to override the encoding (formEnctype attribute) specified on the form element. */
formEnctype: string;
- /**
- * Overrides the submit method attribute previously specified on a form element.
- *
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/formMethod)
- */
+ /** Overrides the submit method attribute previously specified on a form element. */
formMethod: string;
- /**
- * Overrides any validation or required attributes on a form or form elements to allow it to be submitted without validation. This can be used to create a "save draft"-type submit option.
- *
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/formNoValidate)
- */
+ /** Overrides any validation or required attributes on a form or form elements to allow it to be submitted without validation. This can be used to create a "save draft"-type submit option. */
formNoValidate: boolean;
- /**
- * Overrides the target attribute on a form element.
- *
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/formTarget)
- */
+ /** Overrides the target attribute on a form element. */
formTarget: string;
- /**
- * Sets or retrieves the height of the object.
- *
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/height)
- */
+ /** Sets or retrieves the height of the object. */
height: number;
/** When set, overrides the rendering of checkbox controls so that the current value is not visible. */
indeterminate: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/labels) */
readonly labels: NodeListOf<HTMLLabelElement> | null;
- /**
- * Specifies the ID of a pre-defined datalist of options for an input element.
- *
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/list)
- */
+ /** Specifies the ID of a pre-defined datalist of options for an input element. */
readonly list: HTMLDataListElement | null;
- /**
- * Defines the maximum acceptable value for an input element with type="number".When used with the min and step attributes, lets you control the range and increment (such as only even numbers) that the user can enter into an input field.
- *
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/max)
- */
+ /** Defines the maximum acceptable value for an input element with type="number".When used with the min and step attributes, lets you control the range and increment (such as only even numbers) that the user can enter into an input field. */
max: string;
- /**
- * Sets or retrieves the maximum number of characters that the user can enter in a text control.
- *
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/maxLength)
- */
+ /** Sets or retrieves the maximum number of characters that the user can enter in a text control. */
maxLength: number;
- /**
- * Defines the minimum acceptable value for an input element with type="number". When used with the max and step attributes, lets you control the range and increment (such as even numbers only) that the user can enter into an input field.
- *
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/min)
- */
+ /** Defines the minimum acceptable value for an input element with type="number". When used with the max and step attributes, lets you control the range and increment (such as even numbers only) that the user can enter into an input field. */
min: string;
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/minLength) */
minLength: number;
/**
* Sets or retrieves the Boolean value indicating whether multiple items can be selected from a list.
@@ -11203,24 +10929,12 @@ interface HTMLInputElement extends HTMLElement, PopoverInvokerElement {
multiple: boolean;
/** Sets or retrieves the name of the object. */
name: string;
- /**
- * Gets or sets a string containing a regular expression that the user's input must match.
- *
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/pattern)
- */
+ /** Gets or sets a string containing a regular expression that the user's input must match. */
pattern: string;
- /**
- * Gets or sets a text string that is displayed in an input field as a hint or prompt to users as the format or type of information they need to enter.The text appears in an input field until the user puts focus on the field.
- *
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/placeholder)
- */
+ /** Gets or sets a text string that is displayed in an input field as a hint or prompt to users as the format or type of information they need to enter.The text appears in an input field until the user puts focus on the field. */
placeholder: string;
readOnly: boolean;
- /**
- * When present, marks an element that can't be submitted without a value.
- *
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/required)
- */
+ /** When present, marks an element that can't be submitted without a value. */
required: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/selectionDirection) */
selectionDirection: "forward" | "backward" | "none" | null;
@@ -11252,23 +10966,11 @@ interface HTMLInputElement extends HTMLElement, PopoverInvokerElement {
* @deprecated
*/
useMap: string;
- /**
- * Returns the error message that would be displayed if the user submits the form, or an empty string if no error message. It also triggers the standard error message, such as "this is a required field". The result is that the user sees validation messages without actually submitting.
- *
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/validationMessage)
- */
+ /** Returns the error message that would be displayed if the user submits the form, or an empty string if no error message. It also triggers the standard error message, such as "this is a required field". The result is that the user sees validation messages without actually submitting. */
readonly validationMessage: string;
- /**
- * Returns a ValidityState object that represents the validity states of an element.
- *
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/validity)
- */
+ /** Returns a ValidityState object that represents the validity states of an element. */
readonly validity: ValidityState;
- /**
- * Returns the value of the data at the cursor's current position.
- *
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/value)
- */
+ /** Returns the value of the data at the cursor's current position. */
value: string;
/** Returns a Date object representing the form control's value, if applicable; otherwise, returns null. Can be set, to change the value. Throws an "InvalidStateError" DOMException if the control isn't date- or time-based. */
valueAsDate: Date | null;
@@ -11278,17 +10980,9 @@ interface HTMLInputElement extends HTMLElement, PopoverInvokerElement {
readonly webkitEntries: ReadonlyArray<FileSystemEntry>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/webkitdirectory) */
webkitdirectory: boolean;
- /**
- * Sets or retrieves the width of the object.
- *
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/width)
- */
+ /** Sets or retrieves the width of the object. */
width: number;
- /**
- * Returns whether an element will successfully validate based on forms validation rules and constraints.
- *
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/willValidate)
- */
+ /** Returns whether an element will successfully validate based on forms validation rules and constraints. */
readonly willValidate: boolean;
/**
* Returns whether a form will validate when it is submitted, without having to submit it.
@@ -11442,14 +11136,11 @@ interface HTMLLinkElement extends HTMLElement, LinkStyle {
charset: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement/crossOrigin) */
crossOrigin: string | null;
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement/disabled) */
disabled: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement/fetchPriority) */
fetchPriority: string;
- /**
- * Sets or retrieves a destination URL or an anchor point.
- *
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement/href)
- */
+ /** Sets or retrieves a destination URL or an anchor point. */
href: string;
/**
* Sets or retrieves the language code of the object.
@@ -11459,6 +11150,7 @@ interface HTMLLinkElement extends HTMLElement, LinkStyle {
hreflang: string;
imageSizes: string;
imageSrcset: string;
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement/integrity) */
integrity: string;
/** Sets or retrieves the media type. */
media: string;
@@ -11477,14 +11169,17 @@ interface HTMLLinkElement extends HTMLElement, LinkStyle {
* @deprecated
*/
rev: string;
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement/sizes) */
readonly sizes: DOMTokenList;
/**
* Sets or retrieves the window or frame at which to target content.
* @deprecated
*/
target: string;
- /** Sets or retrieves the MIME type of the object. */
+ /**
+ * Sets or retrieves the MIME type of the object.
+ *
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement/type)
+ */
type: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLLinkElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
@@ -11503,11 +11198,7 @@ declare var HTMLLinkElement: {
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMapElement)
*/
interface HTMLMapElement extends HTMLElement {
- /**
- * Retrieves a collection of the area objects defined for the given map object.
- *
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMapElement/areas)
- */
+ /** Retrieves a collection of the area objects defined for the given map object. */
readonly areas: HTMLCollection;
/**
* Sets or retrieves the name of the object.
@@ -11668,7 +11359,6 @@ interface HTMLMediaElement extends HTMLElement {
readonly networkState: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/encrypted_event) */
onencrypted: ((this: HTMLMediaElement, ev: MediaEncryptedEvent) => any) | null;
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/waitingforkey_event) */
onwaitingforkey: ((this: HTMLMediaElement, ev: Event) => any) | null;
/**
* Gets a flag that specifies whether playback is paused.
@@ -11682,11 +11372,7 @@ interface HTMLMediaElement extends HTMLElement {
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/playbackRate)
*/
playbackRate: number;
- /**
- * Gets TimeRanges for the current media resource that has been played.
- *
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/played)
- */
+ /** Gets TimeRanges for the current media resource that has been played. */
readonly played: TimeRanges;
/**
* Gets or sets a value indicating what data should be preloaded, if any.
@@ -11706,11 +11392,7 @@ interface HTMLMediaElement extends HTMLElement {
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/seekable)
*/
readonly seekable: TimeRanges;
- /**
- * Gets a flag that indicates whether the client is currently moving to a new playback position in the media resource.
- *
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/seeking)
- */
+ /** Gets a flag that indicates whether the client is currently moving to a new playback position in the media resource. */
readonly seeking: boolean;
/**
* Available only in secure contexts.
@@ -11734,7 +11416,6 @@ interface HTMLMediaElement extends HTMLElement {
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/volume)
*/
volume: number;
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/addTextTrack) */
addTextTrack(kind: TextTrackKind, label?: string, language?: string): TextTrack;
/**
* Returns a string that specifies whether the client can play a given media resource type.
@@ -11805,11 +11486,7 @@ declare var HTMLMediaElement: {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMenuElement) */
interface HTMLMenuElement extends HTMLElement {
- /**
- * @deprecated
- *
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMenuElement/compact)
- */
+ /** @deprecated */
compact: boolean;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMenuElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
@@ -11872,19 +11549,13 @@ declare var HTMLMetaElement: {
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMeterElement)
*/
interface HTMLMeterElement extends HTMLElement {
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMeterElement/high) */
high: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMeterElement/labels) */
readonly labels: NodeListOf<HTMLLabelElement>;
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMeterElement/low) */
low: number;
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMeterElement/max) */
max: number;
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMeterElement/min) */
min: number;
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMeterElement/optimum) */
optimum: number;
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMeterElement/value) */
value: number;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMeterElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
@@ -11903,17 +11574,9 @@ declare var HTMLMeterElement: {
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLModElement)
*/
interface HTMLModElement extends HTMLElement {
- /**
- * Sets or retrieves reference information about the object.
- *
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLModElement/cite)
- */
+ /** Sets or retrieves reference information about the object. */
cite: string;
- /**
- * Sets or retrieves the date and time of a modification to the object.
- *
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLModElement/dateTime)
- */
+ /** Sets or retrieves the date and time of a modification to the object. */
dateTime: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLModElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
@@ -11932,11 +11595,7 @@ declare var HTMLModElement: {
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOListElement)
*/
interface HTMLOListElement extends HTMLElement {
- /**
- * @deprecated
- *
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOListElement/compact)
- */
+ /** @deprecated */
compact: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOListElement/reversed) */
reversed: boolean;
@@ -11965,44 +11624,28 @@ declare var HTMLOListElement: {
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement)
*/
interface HTMLObjectElement extends HTMLElement {
- /**
- * @deprecated
- *
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/align)
- */
+ /** @deprecated */
align: string;
/**
* Sets or retrieves a character string that can be used to implement your own archive functionality for the object.
* @deprecated
- *
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/archive)
*/
archive: string;
- /**
- * @deprecated
- *
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/border)
- */
+ /** @deprecated */
border: string;
/**
* Sets or retrieves the URL of the file containing the compiled Java class.
* @deprecated
- *
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/code)
*/
code: string;
/**
* Sets or retrieves the URL of the component.
* @deprecated
- *
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/codeBase)
*/
codeBase: string;
/**
* Sets or retrieves the Internet media type for the code associated with the object.
* @deprecated
- *
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/codeType)
*/
codeType: string;
/**
@@ -12019,11 +11662,7 @@ interface HTMLObjectElement extends HTMLElement {
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/data)
*/
data: string;
- /**
- * @deprecated
- *
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/declare)
- */
+ /** @deprecated */
declare: boolean;
/**
* Retrieves a reference to the form that the object is embedded in.
@@ -12037,11 +11676,7 @@ interface HTMLObjectElement extends HTMLElement {
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/height)
*/
height: string;
- /**
- * @deprecated
- *
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/hspace)
- */
+ /** @deprecated */
hspace: number;
/**
* Sets or retrieves the name of the object.
@@ -12052,8 +11687,6 @@ interface HTMLObjectElement extends HTMLElement {
/**
* Sets or retrieves a message to be displayed while an object is loading.
* @deprecated
- *
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/standby)
*/
standby: string;
/**
@@ -12081,11 +11714,7 @@ interface HTMLObjectElement extends HTMLElement {
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/validity)
*/
readonly validity: ValidityState;
- /**
- * @deprecated
- *
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/vspace)
- */
+ /** @deprecated */
vspace: number;
/**
* Sets or retrieves the width of the object.
@@ -12105,9 +11734,7 @@ interface HTMLObjectElement extends HTMLElement {
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/checkValidity)
*/
checkValidity(): boolean;
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/getSVGDocument) */
getSVGDocument(): Document | null;
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/reportValidity) */
reportValidity(): boolean;
/**
* Sets a custom error message that is displayed when a form is submitted.
@@ -12133,13 +11760,8 @@ declare var HTMLObjectElement: {
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOptGroupElement)
*/
interface HTMLOptGroupElement extends HTMLElement {
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOptGroupElement/disabled) */
disabled: boolean;
- /**
- * Sets or retrieves a value that you can use to implement your own label functionality for the object.
- *
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOptGroupElement/label)
- */
+ /** Sets or retrieves a value that you can use to implement your own label functionality for the object. */
label: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLOptGroupElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
@@ -12158,49 +11780,20 @@ declare var HTMLOptGroupElement: {
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOptionElement)
*/
interface HTMLOptionElement extends HTMLElement {
- /**
- * Sets or retrieves the status of an option.
- *
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOptionElement/defaultSelected)
- */
+ /** Sets or retrieves the status of an option. */
defaultSelected: boolean;
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOptionElement/disabled) */
disabled: boolean;
- /**
- * Retrieves a reference to the form that the object is embedded in.
- *
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOptionElement/form)
- */
+ /** Retrieves a reference to the form that the object is embedded in. */
readonly form: HTMLFormElement | null;
- /**
- * Sets or retrieves the ordinal position of an option in a list box.
- *
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOptionElement/index)
- */
+ /** Sets or retrieves the ordinal position of an option in a list box. */
readonly index: number;
- /**
- * Sets or retrieves a value that you can use to implement your own label functionality for the object.
- *
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOptionElement/label)
- */
+ /** Sets or retrieves a value that you can use to implement your own label functionality for the object. */
label: string;
- /**
- * Sets or retrieves whether the option in the list box is the default item.
- *
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOptionElement/selected)
- */
+ /** Sets or retrieves whether the option in the list box is the default item. */
selected: boolean;
- /**
- * Sets or retrieves the text string specified by the option tag.
- *
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOptionElement/text)
- */
+ /** Sets or retrieves the text string specified by the option tag. */
text: string;
- /**
- * Sets or retrieves the value which is returned to the server when the form control is submitted.
- *
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOptionElement/value)
- */
+ /** Sets or retrieves the value which is returned to the server when the form control is submitted. */
value: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLOptionElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
@@ -12225,16 +11818,12 @@ interface HTMLOptionsCollection extends HTMLCollectionOf<HTMLOptionElement> {
* When set to a smaller number, truncates the number of option elements in the corresponding container.
*
* When set to a greater number, adds new blank option elements to that container.
- *
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOptionsCollection/length)
*/
length: number;
/**
* Returns the index of the first selected item, if any, or −1 if there is no selected item.
*
* Can be set, to change the selection.
- *
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOptionsCollection/selectedIndex)
*/
selectedIndex: number;
/**
@@ -12245,15 +11834,9 @@ interface HTMLOptionsCollection extends HTMLCollectionOf<HTMLOptionElement> {
* If before is omitted, null, or a number out of range, then element will be added at the end of the list.
*
* This method will throw a "HierarchyRequestError" DOMException if element is an ancestor of the element into which it is to be inserted.
- *
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOptionsCollection/add)
*/
add(element: HTMLOptionElement | HTMLOptGroupElement, before?: HTMLElement | number | null): void;
- /**
- * Removes the item with index index from the collection.
- *
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOptionsCollection/remove)
- */
+ /** Removes the item with index index from the collection. */
remove(index: number): void;
}
@@ -12283,41 +11866,25 @@ interface HTMLOrSVGElement {
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOutputElement)
*/
interface HTMLOutputElement extends HTMLElement {
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOutputElement/defaultValue) */
defaultValue: string;
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOutputElement/form) */
readonly form: HTMLFormElement | null;
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOutputElement/htmlFor) */
readonly htmlFor: DOMTokenList;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOutputElement/labels) */
readonly labels: NodeListOf<HTMLLabelElement>;
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOutputElement/name) */
name: string;
- /**
- * Returns the string "output".
- *
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOutputElement/type)
- */
+ /** Returns the string "output". */
readonly type: string;
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOutputElement/validationMessage) */
readonly validationMessage: string;
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOutputElement/validity) */
readonly validity: ValidityState;
/**
* Returns the element's current value.
*
* Can be set, to change the value.
- *
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOutputElement/value)
*/
value: string;
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOutputElement/willValidate) */
readonly willValidate: boolean;
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOutputElement/checkValidity) */
checkValidity(): boolean;
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOutputElement/reportValidity) */
reportValidity(): boolean;
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOutputElement/setCustomValidity) */
setCustomValidity(error: string): void;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLOutputElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
@@ -12339,8 +11906,6 @@ interface HTMLParagraphElement extends HTMLElement {
/**
* Sets or retrieves how the object is aligned with adjacent text.
* @deprecated
- *
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLParagraphElement/align)
*/
align: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLParagraphElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
@@ -12364,29 +11929,21 @@ interface HTMLParamElement extends HTMLElement {
/**
* Sets or retrieves the name of an input parameter for an element.
* @deprecated
- *
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLParamElement/name)
*/
name: string;
/**
* Sets or retrieves the content type of the resource designated by the value attribute.
* @deprecated
- *
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLParamElement/type)
*/
type: string;
/**
* Sets or retrieves the value of an input parameter for an element.
* @deprecated
- *
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLParamElement/value)
*/
value: string;
/**
* Sets or retrieves the data type of the value attribute.
* @deprecated
- *
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLParamElement/valueType)
*/
valueType: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLParamElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
@@ -12427,8 +11984,6 @@ interface HTMLPreElement extends HTMLElement {
/**
* Sets or gets a value that you can use to implement your own width functionality for the object.
* @deprecated
- *
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLPreElement/width)
*/
width: number;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLPreElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
@@ -12485,11 +12040,7 @@ declare var HTMLProgressElement: {
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLQuoteElement)
*/
interface HTMLQuoteElement extends HTMLElement {
- /**
- * Sets or retrieves reference information about the object.
- *
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLQuoteElement/cite)
- */
+ /** Sets or retrieves reference information about the object. */
cite: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLQuoteElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
@@ -12508,6 +12059,7 @@ declare var HTMLQuoteElement: {
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLScriptElement)
*/
interface HTMLScriptElement extends HTMLElement {
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLScriptElement/async) */
async: boolean;
/**
* Sets or retrieves the character set used to encode the object.
@@ -12516,28 +12068,47 @@ interface HTMLScriptElement extends HTMLElement {
charset: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLScriptElement/crossOrigin) */
crossOrigin: string | null;
- /** Sets or retrieves the status of the script. */
+ /**
+ * Sets or retrieves the status of the script.
+ *
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLScriptElement/defer)
+ */
defer: boolean;
/**
* Sets or retrieves the event for which the script is written.
* @deprecated
*/
event: string;
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLScriptElement/fetchPriority) */
fetchPriority: string;
/**
* Sets or retrieves the object that is bound to the event script.
* @deprecated
*/
htmlFor: string;
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLScriptElement/integrity) */
integrity: string;
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLScriptElement/noModule) */
noModule: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLScriptElement/referrerPolicy) */
referrerPolicy: string;
- /** Retrieves the URL to an external file that contains the source code or data. */
+ /**
+ * Retrieves the URL to an external file that contains the source code or data.
+ *
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLScriptElement/src)
+ */
src: string;
- /** Retrieves or sets the text of the object as a string. */
+ /**
+ * Retrieves or sets the text of the object as a string.
+ *
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLScriptElement/text)
+ */
text: string;
- /** Sets or retrieves the MIME type for the associated scripting engine. */
+ /**
+ * Sets or retrieves the MIME type for the associated scripting engine.
+ *
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLScriptElement/type)
+ */
type: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLScriptElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
@@ -12558,7 +12129,6 @@ declare var HTMLScriptElement: {
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement)
*/
interface HTMLSelectElement extends HTMLElement {
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/autocomplete) */
autocomplete: AutoFill;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/disabled) */
disabled: boolean;
@@ -12570,23 +12140,11 @@ interface HTMLSelectElement extends HTMLElement {
readonly form: HTMLFormElement | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/labels) */
readonly labels: NodeListOf<HTMLLabelElement>;
- /**
- * Sets or retrieves the number of objects in a collection.
- *
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/length)
- */
+ /** Sets or retrieves the number of objects in a collection. */
length: number;
- /**
- * Sets or retrieves the Boolean value indicating whether multiple items can be selected from a list.
- *
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/multiple)
- */
+ /** Sets or retrieves the Boolean value indicating whether multiple items can be selected from a list. */
multiple: boolean;
- /**
- * Sets or retrieves the name of the object.
- *
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/name)
- */
+ /** Sets or retrieves the name of the object. */
name: string;
/**
* Returns an HTMLOptionsCollection of the list of options.
@@ -12594,11 +12152,7 @@ interface HTMLSelectElement extends HTMLElement {
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/options)
*/
readonly options: HTMLOptionsCollection;
- /**
- * When present, marks an element that can't be submitted without a value.
- *
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/required)
- */
+ /** When present, marks an element that can't be submitted without a value. */
required: boolean;
/**
* Sets or retrieves the index of the selected option in a select object.
@@ -12608,11 +12162,7 @@ interface HTMLSelectElement extends HTMLElement {
selectedIndex: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/selectedOptions) */
readonly selectedOptions: HTMLCollectionOf<HTMLOptionElement>;
- /**
- * Sets or retrieves the number of rows in the list box.
- *
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/size)
- */
+ /** Sets or retrieves the number of rows in the list box. */
size: number;
/**
* Retrieves the type of select control based on the value of the MULTIPLE attribute.
@@ -12620,17 +12170,9 @@ interface HTMLSelectElement extends HTMLElement {
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/type)
*/
readonly type: "select-one" | "select-multiple";
- /**
- * Returns the error message that would be displayed if the user submits the form, or an empty string if no error message. It also triggers the standard error message, such as "this is a required field". The result is that the user sees validation messages without actually submitting.
- *
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/validationMessage)
- */
+ /** Returns the error message that would be displayed if the user submits the form, or an empty string if no error message. It also triggers the standard error message, such as "this is a required field". The result is that the user sees validation messages without actually submitting. */
readonly validationMessage: string;
- /**
- * Returns a ValidityState object that represents the validity states of an element.
- *
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/validity)
- */
+ /** Returns a ValidityState object that represents the validity states of an element. */
readonly validity: ValidityState;
/**
* Sets or retrieves the value which is returned to the server when the form control is submitted.
@@ -12638,11 +12180,7 @@ interface HTMLSelectElement extends HTMLElement {
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/value)
*/
value: string;
- /**
- * Returns whether an element will successfully validate based on forms validation rules and constraints.
- *
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/willValidate)
- */
+ /** Returns whether an element will successfully validate based on forms validation rules and constraints. */
readonly willValidate: boolean;
/**
* Adds an element to the areas, controlRange, or options collection.
@@ -12681,7 +12219,6 @@ interface HTMLSelectElement extends HTMLElement {
*/
remove(): void;
remove(index: number): void;
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/reportValidity) */
reportValidity(): boolean;
/**
* Sets a custom error message that is displayed when a form is submitted.
@@ -12733,27 +12270,13 @@ declare var HTMLSlotElement: {
interface HTMLSourceElement extends HTMLElement {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSourceElement/height) */
height: number;
- /**
- * Gets or sets the intended media type of the media source.
- *
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSourceElement/media)
- */
+ /** Gets or sets the intended media type of the media source. */
media: string;
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSourceElement/sizes) */
sizes: string;
- /**
- * The address or URL of the a media resource that is to be considered.
- *
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSourceElement/src)
- */
+ /** The address or URL of the a media resource that is to be considered. */
src: string;
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSourceElement/srcset) */
srcset: string;
- /**
- * Gets or sets the MIME type of a media resource.
- *
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSourceElement/type)
- */
+ /** Gets or sets the MIME type of a media resource. */
type: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSourceElement/width) */
width: number;
@@ -12830,8 +12353,6 @@ interface HTMLTableCaptionElement extends HTMLElement {
/**
* Sets or retrieves the alignment of the caption or legend.
* @deprecated
- *
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableCaptionElement/align)
*/
align: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableCaptionElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
@@ -12867,8 +12388,6 @@ interface HTMLTableCellElement extends HTMLElement {
/**
* Sets or retrieves a comma-delimited list of conceptual categories associated with the object.
* @deprecated
- *
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableCellElement/axis)
*/
axis: string;
/**
@@ -12910,8 +12429,6 @@ interface HTMLTableCellElement extends HTMLElement {
/**
* Sets or retrieves the height of the object.
* @deprecated
- *
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableCellElement/height)
*/
height: string;
/**
@@ -12942,8 +12459,6 @@ interface HTMLTableCellElement extends HTMLElement {
/**
* Sets or retrieves the width of the object.
* @deprecated
- *
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableCellElement/width)
*/
width: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableCellElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
@@ -12997,8 +12512,6 @@ interface HTMLTableColElement extends HTMLElement {
/**
* Sets or retrieves the width of the object.
* @deprecated
- *
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableColElement/width)
*/
width: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableColElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
@@ -13202,8 +12715,6 @@ interface HTMLTableRowElement extends HTMLElement {
/**
* Sets or retrieves how the object is aligned with adjacent text.
* @deprecated
- *
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableRowElement/align)
*/
align: string;
/**
@@ -13242,11 +12753,7 @@ interface HTMLTableRowElement extends HTMLElement {
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableRowElement/sectionRowIndex)
*/
readonly sectionRowIndex: number;
- /**
- * @deprecated
- *
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableRowElement/vAlign)
- */
+ /** @deprecated */
vAlign: string;
/**
* Removes the specified cell from the table row, as well as from the cells collection.
@@ -13282,8 +12789,6 @@ interface HTMLTableSectionElement extends HTMLElement {
/**
* Sets or retrieves a value that indicates the table alignment.
* @deprecated
- *
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableSectionElement/align)
*/
align: string;
/**
@@ -13304,11 +12809,7 @@ interface HTMLTableSectionElement extends HTMLElement {
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableSectionElement/rows)
*/
readonly rows: HTMLCollectionOf<HTMLTableRowElement>;
- /**
- * @deprecated
- *
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableSectionElement/vAlign)
- */
+ /** @deprecated */
vAlign: string;
/**
* Removes the specified row (tr) from the element and from the rows collection.
@@ -13347,7 +12848,14 @@ interface HTMLTemplateElement extends HTMLElement {
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTemplateElement/content)
*/
readonly content: DocumentFragment;
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTemplateElement/shadowRootClonable) */
+ shadowRootClonable: boolean;
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTemplateElement/shadowRootDelegatesFocus) */
+ shadowRootDelegatesFocus: boolean;
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTemplateElement/shadowRootMode) */
shadowRootMode: string;
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTemplateElement/shadowRootSerializable) */
+ shadowRootSerializable: boolean;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTemplateElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTemplateElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
@@ -13365,7 +12873,6 @@ declare var HTMLTemplateElement: {
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement)
*/
interface HTMLTextAreaElement extends HTMLElement {
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/autocomplete) */
autocomplete: AutoFill;
/** Sets or retrieves the width of the object. */
cols: number;
@@ -13395,7 +12902,6 @@ interface HTMLTextAreaElement extends HTMLElement {
selectionEnd: number;
/** Gets or sets the starting position or offset of a text selection. */
selectionStart: number;
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/textLength) */
readonly textLength: number;
/**
* Retrieves the type of control.
@@ -13415,7 +12921,6 @@ interface HTMLTextAreaElement extends HTMLElement {
wrap: string;
/** Returns whether a form will validate when it is submitted, without having to submit it. */
checkValidity(): boolean;
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/reportValidity) */
reportValidity(): boolean;
/** Highlights the input area of a form element. */
select(): void;
@@ -13492,23 +12997,14 @@ declare var HTMLTitleElement: {
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTrackElement)
*/
interface HTMLTrackElement extends HTMLElement {
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTrackElement/default) */
default: boolean;
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTrackElement/kind) */
kind: string;
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTrackElement/label) */
label: string;
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTrackElement/readyState) */
readonly readyState: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTrackElement/src) */
src: string;
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTrackElement/srclang) */
srclang: string;
- /**
- * Returns the TextTrack object corresponding to the text track of the track element.
- *
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTrackElement/track)
- */
+ /** Returns the TextTrack object corresponding to the text track of the track element. */
readonly track: TextTrack;
readonly NONE: 0;
readonly LOADING: 1;
@@ -13535,17 +13031,9 @@ declare var HTMLTrackElement: {
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLUListElement)
*/
interface HTMLUListElement extends HTMLElement {
- /**
- * @deprecated
- *
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLUListElement/compact)
- */
+ /** @deprecated */
compact: boolean;
- /**
- * @deprecated
- *
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLUListElement/type)
- */
+ /** @deprecated */
type: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLUListElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
@@ -14376,7 +13864,7 @@ interface IDBTransaction extends EventTarget {
/**
* Returns a list of the names of object stores in the transaction's scope. For an upgrade transaction this is all object stores in the database.
*
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/objectStoreNames)
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/ObjectStoreNames)
*/
readonly objectStoreNames: DOMStringList;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/abort_event) */
@@ -14533,9 +14021,9 @@ declare var ImageData: {
new(data: Uint8ClampedArray, sw: number, sh?: number, settings?: ImageDataSettings): ImageData;
};
-interface InnerHTML {
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/innerHTML) */
- innerHTML: string;
+interface ImportMeta {
+ url: string;
+ resolve(specifier: string): string;
}
/**
@@ -15304,6 +14792,7 @@ declare var MediaKeySystemAccess: {
interface MediaKeys {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeys/createSession) */
createSession(sessionType?: MediaKeySessionType): MediaKeySession;
+ getStatusForPolicy(policy?: MediaKeysPolicy): Promise<MediaKeyStatus>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeys/setServerCertificate) */
setServerCertificate(serverCertificate: BufferSource): Promise<boolean>;
}
@@ -15492,11 +14981,8 @@ interface MediaSource extends EventTarget {
readonly activeSourceBuffers: SourceBufferList;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSource/duration) */
duration: number;
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSource/sourceclose_event) */
onsourceclose: ((this: MediaSource, ev: Event) => any) | null;
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSource/sourceended_event) */
onsourceended: ((this: MediaSource, ev: Event) => any) | null;
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSource/sourceopen_event) */
onsourceopen: ((this: MediaSource, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSource/readyState) */
readonly readyState: ReadyState;
@@ -15521,10 +15007,21 @@ interface MediaSource extends EventTarget {
declare var MediaSource: {
prototype: MediaSource;
new(): MediaSource;
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSource/canConstructInDedicatedWorker_static) */
+ readonly canConstructInDedicatedWorker: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSource/isTypeSupported_static) */
isTypeSupported(type: string): boolean;
};
+/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSourceHandle) */
+interface MediaSourceHandle {
+}
+
+declare var MediaSourceHandle: {
+ prototype: MediaSourceHandle;
+ new(): MediaSourceHandle;
+};
+
interface MediaStreamEventMap {
"addtrack": MediaStreamTrackEvent;
"removetrack": MediaStreamTrackEvent;
@@ -15728,11 +15225,7 @@ interface MessageEvent<T = any> extends Event {
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent/source)
*/
readonly source: MessageEventSource | null;
- /**
- * @deprecated
- *
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent/initMessageEvent)
- */
+ /** @deprecated */
initMessageEvent(type: string, bubbles?: boolean, cancelable?: boolean, data?: any, origin?: string, lastEventId?: string, source?: MessageEventSource | null, ports?: MessagePort[]): void;
}
@@ -15798,29 +15291,21 @@ interface MimeType {
/**
* Returns the MIME type's description.
* @deprecated
- *
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MimeType/description)
*/
readonly description: string;
/**
* Returns the Plugin object that implements this MIME type.
* @deprecated
- *
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MimeType/enabledPlugin)
*/
readonly enabledPlugin: Plugin;
/**
* Returns the MIME type's typical file extensions, in a comma-separated list.
* @deprecated
- *
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MimeType/suffixes)
*/
readonly suffixes: string;
/**
* Returns the MIME type.
* @deprecated
- *
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MimeType/type)
*/
readonly type: string;
}
@@ -15838,23 +15323,11 @@ declare var MimeType: {
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MimeTypeArray)
*/
interface MimeTypeArray {
- /**
- * @deprecated
- *
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MimeTypeArray/length)
- */
+ /** @deprecated */
readonly length: number;
- /**
- * @deprecated
- *
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MimeTypeArray/item)
- */
+ /** @deprecated */
item(index: number): MimeType | null;
- /**
- * @deprecated
- *
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MimeTypeArray/namedItem)
- */
+ /** @deprecated */
namedItem(name: string): MimeType | null;
[index: number]: MimeType;
}
@@ -16325,7 +15798,7 @@ interface NavigatorPlugins {
/**
* @deprecated
*
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigatorPlugins/mimeTypes)
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/mimeTypes)
*/
readonly mimeTypes: MimeTypeArray;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/pdfViewerEnabled) */
@@ -16874,7 +16347,9 @@ interface OffscreenCanvas extends EventTarget {
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas/height)
*/
height: number;
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas/contextlost_event) */
oncontextlost: ((this: OffscreenCanvas, ev: Event) => any) | null;
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas/contextrestored_event) */
oncontextrestored: ((this: OffscreenCanvas, ev: Event) => any) | null;
/**
* These attributes return the dimensions of the OffscreenCanvas object's bitmap.
@@ -16926,8 +16401,6 @@ declare var OffscreenCanvas: {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvasRenderingContext2D) */
interface OffscreenCanvasRenderingContext2D extends CanvasCompositing, CanvasDrawImage, CanvasDrawPath, CanvasFillStrokeStyles, CanvasFilters, CanvasImageData, CanvasImageSmoothing, CanvasPath, CanvasPathDrawingStyles, CanvasRect, CanvasShadowStyles, CanvasState, CanvasText, CanvasTextDrawingStyles, CanvasTransform {
readonly canvas: OffscreenCanvas;
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvasRenderingContext2D/commit) */
- commit(): void;
}
declare var OffscreenCanvasRenderingContext2D: {
@@ -17550,7 +17023,7 @@ declare var PerformanceServerTiming: {
};
/**
- * A legacy interface kept for backwards compatibility and contains properties that offer performance timing information for various events which occur during the loading and use of the current page. You get a PerformanceTiming object describing your page using the globalThis.performance.timing property.
+ * A legacy interface kept for backwards compatibility and contains properties that offer performance timing information for various events which occur during the loading and use of the current page. You get a PerformanceTiming object describing your page using the window.performance.timing property.
* @deprecated This interface is deprecated in the Navigation Timing Level 2 specification. Please use the PerformanceNavigationTiming interface instead.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming)
@@ -17787,15 +17260,11 @@ interface Plugin {
/**
* Returns the plugin's description.
* @deprecated
- *
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Plugin/description)
*/
readonly description: string;
/**
* Returns the plugin library's filename, if applicable on the current platform.
* @deprecated
- *
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Plugin/filename)
*/
readonly filename: string;
/**
@@ -17806,22 +17275,14 @@ interface Plugin {
/**
* Returns the plugin's name.
* @deprecated
- *
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Plugin/name)
*/
readonly name: string;
/**
* Returns the specified MimeType object.
* @deprecated
- *
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Plugin/item)
*/
item(index: number): MimeType | null;
- /**
- * @deprecated
- *
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Plugin/namedItem)
- */
+ /** @deprecated */
namedItem(name: string): MimeType | null;
[index: number]: MimeType;
}
@@ -17833,35 +17294,19 @@ declare var Plugin: {
};
/**
- * Used to store a list of Plugin objects describing the available plugins; it's returned by the globalThis.navigator.plugins property. The PluginArray is not a JavaScript array, but has the length property and supports accessing individual items using bracket notation (plugins[2]), as well as via item(index) and namedItem("name") methods.
+ * Used to store a list of Plugin objects describing the available plugins; it's returned by the window.navigator.plugins property. The PluginArray is not a JavaScript array, but has the length property and supports accessing individual items using bracket notation (plugins[2]), as well as via item(index) and namedItem("name") methods.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PluginArray)
*/
interface PluginArray {
- /**
- * @deprecated
- *
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PluginArray/length)
- */
+ /** @deprecated */
readonly length: number;
- /**
- * @deprecated
- *
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PluginArray/item)
- */
+ /** @deprecated */
item(index: number): Plugin | null;
- /**
- * @deprecated
- *
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PluginArray/namedItem)
- */
+ /** @deprecated */
namedItem(name: string): Plugin | null;
- /**
- * @deprecated
- *
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PluginArray/refresh)
- */
+ /** @deprecated */
refresh(): void;
[index: number]: Plugin;
}
@@ -17919,6 +17364,7 @@ declare var PointerEvent: {
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PopStateEvent)
*/
interface PopStateEvent extends Event {
+ readonly hasUAVisualTransition: boolean;
/**
* Returns a copy of the information that was provided to pushState() or replaceState().
*
@@ -17994,6 +17440,7 @@ declare var PromiseRejectionEvent: {
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PublicKeyCredential)
*/
interface PublicKeyCredential extends Credential {
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PublicKeyCredential/authenticatorAttachment) */
readonly authenticatorAttachment: string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PublicKeyCredential/rawId) */
readonly rawId: ArrayBuffer;
@@ -18213,12 +17660,11 @@ interface RTCDtlsTransportEventMap {
interface RTCDtlsTransport extends EventTarget {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDtlsTransport/iceTransport) */
readonly iceTransport: RTCIceTransport;
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDtlsTransport/error_event) */
onerror: ((this: RTCDtlsTransport, ev: Event) => any) | null;
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDtlsTransport/statechange_event) */
onstatechange: ((this: RTCDtlsTransport, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDtlsTransport/state) */
readonly state: RTCDtlsTransportState;
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDtlsTransport/getRemoteCertificates) */
getRemoteCertificates(): ArrayBuffer[];
addEventListener<K extends keyof RTCDtlsTransportEventMap>(type: K, listener: (this: RTCDtlsTransport, ev: RTCDtlsTransportEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
@@ -18336,6 +17782,11 @@ declare var RTCIceCandidate: {
new(candidateInitDict?: RTCIceCandidateInit): RTCIceCandidate;
};
+interface RTCIceCandidatePair {
+ local: RTCIceCandidate;
+ remote: RTCIceCandidate;
+}
+
interface RTCIceTransportEventMap {
"gatheringstatechange": Event;
"selectedcandidatepairchange": Event;
@@ -18492,12 +17943,9 @@ declare var RTCPeerConnection: {
interface RTCPeerConnectionIceErrorEvent extends Event {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnectionIceErrorEvent/address) */
readonly address: string | null;
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnectionIceErrorEvent/errorCode) */
readonly errorCode: number;
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnectionIceErrorEvent/errorText) */
readonly errorText: string;
readonly port: number | null;
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnectionIceErrorEvent/url) */
readonly url: string;
}
@@ -18527,6 +17975,8 @@ declare var RTCPeerConnectionIceEvent: {
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpReceiver)
*/
interface RTCRtpReceiver {
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpReceiver/jitterBufferTarget) */
+ jitterBufferTarget: DOMHighResTimeStamp | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpReceiver/track) */
readonly track: MediaStreamTrack;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpReceiver/transform) */
@@ -18605,7 +18055,7 @@ interface RTCRtpTransceiver {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpTransceiver/sender) */
readonly sender: RTCRtpSender;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpTransceiver/setCodecPreferences) */
- setCodecPreferences(codecs: RTCRtpCodecCapability[]): void;
+ setCodecPreferences(codecs: RTCRtpCodec[]): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpTransceiver/stop) */
stop(): void;
}
@@ -18625,6 +18075,7 @@ interface RTCSctpTransport extends EventTarget {
readonly maxChannels: number | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCSctpTransport/maxMessageSize) */
readonly maxMessageSize: number;
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCSctpTransport/statechange_event) */
onstatechange: ((this: RTCSctpTransport, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCSctpTransport/state) */
readonly state: RTCSctpTransportState;
@@ -18652,7 +18103,7 @@ interface RTCSessionDescription {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCSessionDescription/type) */
readonly type: RTCSdpType;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCSessionDescription/toJSON) */
- toJSON(): any;
+ toJSON(): RTCSessionDescriptionInit;
}
declare var RTCSessionDescription: {
@@ -18725,7 +18176,7 @@ interface Range extends AbstractRange {
*/
comparePoint(node: Node, offset: number): number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/createContextualFragment) */
- createContextualFragment(fragment: string): DocumentFragment;
+ createContextualFragment(string: string): DocumentFragment;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/deleteContents) */
deleteContents(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/detach) */
@@ -18829,21 +18280,17 @@ declare var ReadableStream: {
from<R>(asyncIterable: AsyncIterable<R> | Iterable<R | PromiseLike<R>>): ReadableStream<R>;
};
-interface ReadableStreamBYOBReaderReadOptions {
- min?: number;
-}
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBReader) */
interface ReadableStreamBYOBReader extends ReadableStreamGenericReader {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBReader/read) */
- read<T extends ArrayBufferView>(view: T, options?: ReadableStreamBYOBReaderReadOptions): Promise<ReadableStreamReadResult<T>>;
+ read<T extends ArrayBufferView>(view: T): Promise<ReadableStreamReadResult<T>>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBReader/releaseLock) */
releaseLock(): void;
}
declare var ReadableStreamBYOBReader: {
prototype: ReadableStreamBYOBReader;
- new(stream: ReadableStream<Uint8Array>): ReadableStreamBYOBReader;
+ new(stream: ReadableStream): ReadableStreamBYOBReader;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBRequest) */
@@ -18949,6 +18396,7 @@ declare var Report: {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReportBody) */
interface ReportBody {
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReportBody/toJSON) */
toJSON(): any;
}
@@ -19008,11 +18456,7 @@ interface Request extends Body {
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/integrity)
*/
readonly integrity: string;
- /**
- * Returns a boolean indicating whether or not request can outlive the global in which it was created.
- *
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/keepalive)
- */
+ /** Returns a boolean indicating whether or not request can outlive the global in which it was created. */
readonly keepalive: boolean;
/**
* Returns request's HTTP method, which is "GET" by default.
@@ -19088,6 +18532,7 @@ interface ResizeObserverEntry {
readonly contentBoxSize: ReadonlyArray<ResizeObserverSize>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ResizeObserverEntry/contentRect) */
readonly contentRect: DOMRectReadOnly;
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ResizeObserverEntry/devicePixelContentBoxSize) */
readonly devicePixelContentBoxSize: ReadonlyArray<ResizeObserverSize>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ResizeObserverEntry/target) */
readonly target: Element;
@@ -19271,7 +18716,9 @@ declare var SVGAnimatedBoolean: {
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedEnumeration)
*/
interface SVGAnimatedEnumeration {
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedEnumeration/animVal) */
readonly animVal: number;
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedEnumeration/baseVal) */
baseVal: number;
}
@@ -19301,7 +18748,9 @@ declare var SVGAnimatedInteger: {
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedLength)
*/
interface SVGAnimatedLength {
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedLength/animVal) */
readonly animVal: SVGLength;
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedLength/baseVal) */
readonly baseVal: SVGLength;
}
@@ -19663,11 +19112,8 @@ declare var SVGFEBlendElement: {
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEColorMatrixElement)
*/
interface SVGFEColorMatrixElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEColorMatrixElement/in1) */
readonly in1: SVGAnimatedString;
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEColorMatrixElement/type) */
readonly type: SVGAnimatedEnumeration;
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEColorMatrixElement/values) */
readonly values: SVGAnimatedNumberList;
readonly SVG_FECOLORMATRIX_TYPE_UNKNOWN: 0;
readonly SVG_FECOLORMATRIX_TYPE_MATRIX: 1;
@@ -20357,7 +19803,6 @@ declare var SVGGraphicsElement: {
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGImageElement)
*/
interface SVGImageElement extends SVGGraphicsElement, SVGURIReference {
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGImageElement/crossorigin) */
crossOrigin: string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGImageElement/height) */
readonly height: SVGAnimatedLength;
@@ -21306,6 +20751,7 @@ interface ScreenOrientationEventMap {
interface ScreenOrientation extends EventTarget {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ScreenOrientation/angle) */
readonly angle: number;
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ScreenOrientation/change_event) */
onchange: ((this: ScreenOrientation, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ScreenOrientation/type) */
readonly type: OrientationType;
@@ -21404,6 +20850,8 @@ interface Selection {
readonly anchorNode: Node | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/anchorOffset) */
readonly anchorOffset: number;
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/direction) */
+ readonly direction: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/focusNode) */
readonly focusNode: Node | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/focusOffset) */
@@ -21576,18 +21024,25 @@ interface ShadowRootEventMap {
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ShadowRoot) */
-interface ShadowRoot extends DocumentFragment, DocumentOrShadowRoot, InnerHTML {
+interface ShadowRoot extends DocumentFragment, DocumentOrShadowRoot {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ShadowRoot/clonable) */
readonly clonable: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ShadowRoot/delegatesFocus) */
readonly delegatesFocus: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ShadowRoot/host) */
readonly host: Element;
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ShadowRoot/innerHTML) */
+ innerHTML: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ShadowRoot/mode) */
readonly mode: ShadowRootMode;
onslotchange: ((this: ShadowRoot, ev: Event) => any) | null;
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ShadowRoot/serializable) */
+ readonly serializable: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ShadowRoot/slotAssignment) */
readonly slotAssignment: SlotAssignmentMode;
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ShadowRoot/getHTML) */
+ getHTML(options?: GetHTMLOptions): string;
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ShadowRoot/setHTMLUnsafe) */
setHTMLUnsafe(html: string): void;
/** Throws a "NotSupportedError" DOMException if context object is a shadow root. */
addEventListener<K extends keyof ShadowRootEventMap>(type: K, listener: (this: ShadowRoot, ev: ShadowRootEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
@@ -21647,15 +21102,10 @@ interface SourceBuffer extends EventTarget {
readonly buffered: TimeRanges;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBuffer/mode) */
mode: AppendMode;
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBuffer/abort_event) */
onabort: ((this: SourceBuffer, ev: Event) => any) | null;
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBuffer/error_event) */
onerror: ((this: SourceBuffer, ev: Event) => any) | null;
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBuffer/update_event) */
onupdate: ((this: SourceBuffer, ev: Event) => any) | null;
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBuffer/updateend_event) */
onupdateend: ((this: SourceBuffer, ev: Event) => any) | null;
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBuffer/updatestart_event) */
onupdatestart: ((this: SourceBuffer, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBuffer/timestampOffset) */
timestampOffset: number;
@@ -21693,9 +21143,7 @@ interface SourceBufferListEventMap {
interface SourceBufferList extends EventTarget {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBufferList/length) */
readonly length: number;
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBufferList/addsourcebuffer_event) */
onaddsourcebuffer: ((this: SourceBufferList, ev: Event) => any) | null;
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBufferList/removesourcebuffer_event) */
onremovesourcebuffer: ((this: SourceBufferList, ev: Event) => any) | null;
addEventListener<K extends keyof SourceBufferListEventMap>(type: K, listener: (this: SourceBufferList, ev: SourceBufferListEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
@@ -22329,6 +21777,16 @@ declare var TextEncoderStream: {
new(): TextEncoderStream;
};
+interface TextEvent extends UIEvent {
+ readonly data: string;
+ initTextEvent(type: string, bubbles?: boolean, cancelable?: boolean, view?: Window | null, data?: string): void;
+}
+
+declare var TextEvent: {
+ prototype: TextEvent;
+ new(): TextEvent;
+};
+
/**
* The dimensions of a piece of text in the canvas, as created by the CanvasRenderingContext2D.measureText() method.
*
@@ -22605,7 +22063,7 @@ interface TextTrackList extends EventTarget {
onaddtrack: ((this: TextTrackList, ev: TrackEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrackList/change_event) */
onchange: ((this: TextTrackList, ev: Event) => any) | null;
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrackList/removetrack_event) */
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrackList/removeTrack_event) */
onremovetrack: ((this: TextTrackList, ev: TrackEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrackList/getTrackById) */
getTrackById(id: string): TextTrack | null;
@@ -23036,21 +22494,13 @@ declare var VTTCue: {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTRegion) */
interface VTTRegion {
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTRegion/id) */
id: string;
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTRegion/lines) */
lines: number;
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTRegion/regionAnchorX) */
regionAnchorX: number;
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTRegion/regionAnchorY) */
regionAnchorY: number;
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTRegion/scroll) */
scroll: ScrollSetting;
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTRegion/viewportAnchorX) */
viewportAnchorX: number;
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTRegion/viewportAnchorY) */
viewportAnchorY: number;
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTRegion/width) */
width: number;
}
@@ -23067,7 +22517,6 @@ declare var VTTRegion: {
interface ValidityState {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ValidityState/badInput) */
readonly badInput: boolean;
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ValidityState/customError) */
readonly customError: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ValidityState/patternMismatch) */
readonly patternMismatch: boolean;
@@ -23083,7 +22532,6 @@ interface ValidityState {
readonly tooShort: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ValidityState/typeMismatch) */
readonly typeMismatch: boolean;
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ValidityState/valid) */
readonly valid: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ValidityState/valueMissing) */
readonly valueMissing: boolean;
@@ -23125,6 +22573,7 @@ interface VideoDecoderEventMap {
interface VideoDecoder extends EventTarget {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoDecoder/decodeQueueSize) */
readonly decodeQueueSize: number;
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoDecoder/dequeue_event) */
ondequeue: ((this: VideoDecoder, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoDecoder/state) */
readonly state: CodecState;
@@ -23147,6 +22596,7 @@ interface VideoDecoder extends EventTarget {
declare var VideoDecoder: {
prototype: VideoDecoder;
new(init: VideoDecoderInit): VideoDecoder;
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoDecoder/isConfigSupported_static) */
isConfigSupported(config: VideoDecoderConfig): Promise<VideoDecoderSupport>;
};
@@ -23162,6 +22612,7 @@ interface VideoEncoderEventMap {
interface VideoEncoder extends EventTarget {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoEncoder/encodeQueueSize) */
readonly encodeQueueSize: number;
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoEncoder/dequeue_event) */
ondequeue: ((this: VideoEncoder, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoEncoder/state) */
readonly state: CodecState;
@@ -23171,6 +22622,7 @@ interface VideoEncoder extends EventTarget {
configure(config: VideoEncoderConfig): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoEncoder/encode) */
encode(frame: VideoFrame, options?: VideoEncoderEncodeOptions): void;
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoEncoder/flush) */
flush(): Promise<void>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoEncoder/reset) */
reset(): void;
@@ -23183,6 +22635,7 @@ interface VideoEncoder extends EventTarget {
declare var VideoEncoder: {
prototype: VideoEncoder;
new(init: VideoEncoderInit): VideoEncoder;
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoEncoder/isConfigSupported_static) */
isConfigSupported(config: VideoEncoderConfig): Promise<VideoEncoderSupport>;
};
@@ -23214,6 +22667,7 @@ interface VideoFrame {
clone(): VideoFrame;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/close) */
close(): void;
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/copyTo) */
copyTo(destination: AllowSharedBufferSource, options?: VideoFrameCopyToOptions): Promise<PlaneLayout[]>;
}
@@ -23248,6 +22702,23 @@ declare var VideoPlaybackQuality: {
new(): VideoPlaybackQuality;
};
+/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ViewTransition) */
+interface ViewTransition {
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ViewTransition/finished) */
+ readonly finished: Promise<undefined>;
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ViewTransition/ready) */
+ readonly ready: Promise<undefined>;
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ViewTransition/updateCallbackDone) */
+ readonly updateCallbackDone: Promise<undefined>;
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ViewTransition/skipTransition) */
+ skipTransition(): void;
+}
+
+declare var ViewTransition: {
+ prototype: ViewTransition;
+ new(): ViewTransition;
+};
+
interface VisualViewportEventMap {
"resize": Event;
"scroll": Event;
@@ -24113,7 +23584,7 @@ interface WebGL2RenderingContextBase {
clearBufferuiv(buffer: GLenum, drawbuffer: GLint, values: Uint32List, srcOffset?: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clientWaitSync) */
clientWaitSync(sync: WebGLSync, flags: GLbitfield, timeout: GLuint64): GLenum;
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/compressedTexImage3D) */
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/compressedTexImage2D) */
compressedTexImage3D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, imageSize: GLsizei, offset: GLintptr): void;
compressedTexImage3D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, srcData: ArrayBufferView, srcOffset?: number, srcLengthOverride?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/compressedTexSubImage3D) */
@@ -24996,6 +24467,7 @@ declare var WebGLRenderingContext: {
interface WebGLRenderingContextBase {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/canvas) */
readonly canvas: HTMLCanvasElement | OffscreenCanvas;
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/drawingBufferColorSpace) */
drawingBufferColorSpace: PredefinedColorSpace;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/drawingBufferHeight) */
readonly drawingBufferHeight: GLsizei;
@@ -25705,7 +25177,7 @@ declare var WebGLVertexArrayObject: {
new(): WebGLVertexArrayObject;
};
-/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLVertexArrayObjectOES) */
+/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLVertexArrayObject) */
interface WebGLVertexArrayObjectOES {
}
@@ -26286,24 +25758,24 @@ interface WindowOrWorkerGlobalScope {
/**
* Available only in secure contexts.
*
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/caches)
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/caches)
*/
readonly caches: CacheStorage;
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/crossOriginIsolated) */
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/crossOriginIsolated) */
readonly crossOriginIsolated: boolean;
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/crypto_property) */
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/crypto) */
readonly crypto: Crypto;
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/indexedDB) */
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/indexedDB) */
readonly indexedDB: IDBFactory;
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/isSecureContext) */
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/isSecureContext) */
readonly isSecureContext: boolean;
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/origin) */
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/origin) */
readonly origin: string;
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/performance_property) */
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/performance) */
readonly performance: Performance;
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/atob) */
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/atob) */
atob(data: string): string;
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/btoa) */
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/btoa) */
btoa(data: string): string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/clearInterval) */
clearInterval(id: number | undefined): void;
@@ -26810,7 +26282,7 @@ interface Console {
clear(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/count_static) */
count(label?: string): void;
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/countReset_static) */
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/countreset_static) */
countReset(label?: string): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/debug_static) */
debug(...data: any[]): void;
@@ -26822,9 +26294,9 @@ interface Console {
error(...data: any[]): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/group_static) */
group(...data: any[]): void;
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/groupCollapsed_static) */
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/groupcollapsed_static) */
groupCollapsed(...data: any[]): void;
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/groupEnd_static) */
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/groupend_static) */
groupEnd(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/info_static) */
info(...data: any[]): void;
@@ -26834,9 +26306,9 @@ interface Console {
table(tabularData?: any, properties?: string[]): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/time_static) */
time(label?: string): void;
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/timeEnd_static) */
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/timeend_static) */
timeEnd(label?: string): void;
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/timeLog_static) */
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/timelog_static) */
timeLog(label?: string, ...data: any[]): void;
timeStamp(label?: string): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/trace_static) */
@@ -26988,9 +26460,7 @@ declare namespace WebAssembly {
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Global) */
interface Global<T extends ValueType = ValueType> {
- /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Global/value) */
value: ValueTypeMap[T];
- /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Global/valueOf) */
valueOf(): ValueTypeMap[T];
}
@@ -27289,6 +26759,10 @@ interface UnderlyingSourceStartCallback<R> {
(controller: ReadableStreamController<R>): any;
}
+interface UpdateCallback {
+ (): any;
+}
+
interface VideoFrameOutputCallback {
(output: VideoFrame): void;
}
@@ -27865,7 +27339,7 @@ declare var onbeforetoggle: ((this: Window, ev: Event) => any) | null;
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/blur_event)
*/
declare var onblur: ((this: Window, ev: FocusEvent) => any) | null;
-/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDialogElement/cancel_event) */
+/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/cancel_event) */
declare var oncancel: ((this: Window, ev: Event) => any) | null;
/**
* Occurs when playback is possible, but would require further buffering.
@@ -27892,6 +27366,8 @@ declare var onchange: ((this: Window, ev: Event) => any) | null;
declare var onclick: ((this: Window, ev: MouseEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDialogElement/close_event) */
declare var onclose: ((this: Window, ev: Event) => any) | null;
+/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLCanvasElement/webglcontextlost_event) */
+declare var oncontextlost: ((this: Window, ev: Event) => any) | null;
/**
* Fires when the user clicks the right mouse button in the client area, opening the context menu.
* @param ev The mouse event.
@@ -27899,6 +27375,8 @@ declare var onclose: ((this: Window, ev: Event) => any) | null;
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/contextmenu_event)
*/
declare var oncontextmenu: ((this: Window, ev: MouseEvent) => any) | null;
+/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLCanvasElement/contextrestored_event) */
+declare var oncontextrestored: ((this: Window, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/copy_event) */
declare var oncopy: ((this: Window, ev: ClipboardEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTrackElement/cuechange_event) */
@@ -28049,7 +27527,7 @@ declare var onloadedmetadata: ((this: Window, ev: Event) => any) | null;
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/loadstart_event)
*/
declare var onloadstart: ((this: Window, ev: Event) => any) | null;
-/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/lostpointercapture_event) */
+/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/lostpointercapture_event) */
declare var onlostpointercapture: ((this: Window, ev: PointerEvent) => any) | null;
/**
* Fires when the user clicks the object with either mouse button.
@@ -28316,24 +27794,24 @@ declare var localStorage: Storage;
/**
* Available only in secure contexts.
*
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/caches)
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/caches)
*/
declare var caches: CacheStorage;
-/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/crossOriginIsolated) */
+/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/crossOriginIsolated) */
declare var crossOriginIsolated: boolean;
-/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/crypto_property) */
+/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/crypto) */
declare var crypto: Crypto;
-/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/indexedDB) */
+/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/indexedDB) */
declare var indexedDB: IDBFactory;
-/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/isSecureContext) */
+/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/isSecureContext) */
declare var isSecureContext: boolean;
-/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/origin) */
+/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/origin) */
declare var origin: string;
-/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/performance_property) */
+/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/performance) */
declare var performance: Performance;
-/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/atob) */
+/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/atob) */
declare function atob(data: string): string;
-/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/btoa) */
+/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/btoa) */
declare function btoa(data: string): string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/clearInterval) */
declare function clearInterval(id: number | undefined): void;
@@ -28427,7 +27905,7 @@ type ReportList = Report[];
type RequestInfo = Request | string;
type TexImageSource = ImageBitmap | ImageData | HTMLImageElement | HTMLCanvasElement | HTMLVideoElement | OffscreenCanvas | VideoFrame;
type TimerHandler = string | Function;
-type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | ReadableStream | WritableStream | TransformStream | VideoFrame | ArrayBuffer;
+type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | MediaSourceHandle | ReadableStream | WritableStream | TransformStream | VideoFrame | ArrayBuffer;
type Uint32List = Uint32Array | GLuint[];
type VibratePattern = number | number[];
type WindowProxy = Window;
diff --git a/cli/tsc/dts/lib.dom.iterable.d.ts b/cli/tsc/dts/lib.dom.iterable.d.ts
index f8ac3d9c1..b4cec2ce2 100644
--- a/cli/tsc/dts/lib.dom.iterable.d.ts
+++ b/cli/tsc/dts/lib.dom.iterable.d.ts
@@ -41,36 +41,36 @@ interface BaseAudioContext {
}
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>;
}
interface Cache {
@@ -92,72 +92,80 @@ interface CustomStateSet extends Set<string> {
}
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>;
}
interface EventCounts extends ReadonlyMap<string, number> {
}
interface FileList {
- [Symbol.iterator](): IterableIterator<File>;
+ [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](): 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>;
}
interface Highlight extends Set<AbstractRange> {
@@ -197,32 +205,32 @@ interface MIDIOutput {
interface MIDIOutputMap extends ReadonlyMap<string, MIDIOutput> {
}
+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(type: string, bubbles?: boolean, cancelable?: boolean, data?: any, origin?: string, lastEventId?: string, source?: MessageEventSource | null, ports?: Iterable<MessagePort>): void;
}
interface MimeTypeArray {
- [Symbol.iterator](): IterableIterator<MimeType>;
+ [Symbol.iterator](): ArrayIterator<MimeType>;
}
interface NamedNodeMap {
- [Symbol.iterator](): IterableIterator<Attr>;
+ [Symbol.iterator](): ArrayIterator<Attr>;
}
interface Navigator {
@@ -237,82 +245,86 @@ interface Navigator {
}
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>;
}
interface RTCRtpTransceiver {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpTransceiver/setCodecPreferences) */
- setCodecPreferences(codecs: Iterable<RTCRtpCodecCapability>): void;
+ setCodecPreferences(codecs: Iterable<RTCRtpCodec>): void;
}
interface RTCStatsReport extends ReadonlyMap<string, any> {
}
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>;
}
interface SubtleCrypto {
@@ -331,25 +343,29 @@ interface SubtleCrypto {
}
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>;
}
interface WEBGL_draw_buffers {
diff --git a/cli/tsc/dts/lib.es2015.generator.d.ts b/cli/tsc/dts/lib.es2015.generator.d.ts
index 716bac29c..dc7460a0f 100644
--- a/cli/tsc/dts/lib.es2015.generator.d.ts
+++ b/cli/tsc/dts/lib.es2015.generator.d.ts
@@ -18,9 +18,9 @@ and limitations under the License.
/// <reference lib="es2015.iterable" />
-interface Generator<T = unknown, TReturn = any, TNext = unknown> extends Iterator<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(...args: [] | [TNext]): IteratorResult<T, TReturn>;
+ next(...[value]: [] | [TNext]): IteratorResult<T, TReturn>;
return(value: TReturn): IteratorResult<T, TReturn>;
throw(e: any): IteratorResult<T, TReturn>;
[Symbol.iterator](): Generator<T, TReturn, TNext>;
diff --git a/cli/tsc/dts/lib.es2015.iterable.d.ts b/cli/tsc/dts/lib.es2015.iterable.d.ts
index 3ad043c67..eaff26d9a 100644
--- a/cli/tsc/dts/lib.es2015.iterable.d.ts
+++ b/cli/tsc/dts/lib.es2015.iterable.d.ts
@@ -38,39 +38,59 @@ interface IteratorReturnResult<TReturn> {
type IteratorResult<T, TReturn = any> = IteratorYieldResult<T> | IteratorReturnResult<TReturn>;
-interface Iterator<T, TReturn = any, TNext = undefined> {
+interface Iterator<T, TReturn = any, TNext = any> {
// NOTE: 'next' is defined using a tuple to ensure we report the correct assignability errors in all places.
- next(...args: [] | [TNext]): IteratorResult<T, TReturn>;
+ next(...[value]: [] | [TNext]): IteratorResult<T, TReturn>;
return?(value?: TReturn): IteratorResult<T, TReturn>;
throw?(e?: any): IteratorResult<T, TReturn>;
}
-interface Iterable<T> {
- [Symbol.iterator](): Iterator<T>;
+interface Iterable<T, TReturn = any, TNext = any> {
+ [Symbol.iterator](): Iterator<T, TReturn, TNext>;
}
-interface IterableIterator<T> extends Iterator<T> {
- [Symbol.iterator](): IterableIterator<T>;
+/**
+ * Describes a user-defined {@link Iterator} that is also iterable.
+ */
+interface IterableIterator<T, TReturn = any, TNext = any> extends Iterator<T, TReturn, TNext> {
+ [Symbol.iterator](): IterableIterator<T, TReturn, TNext>;
+}
+
+/**
+ * Describes an {@link Iterator} produced by the runtime that inherits from the intrinsic `Iterator.prototype`.
+ */
+interface IteratorObject<T, TReturn = unknown, TNext = unknown> extends Iterator<T, TReturn, TNext> {
+ [Symbol.iterator](): IteratorObject<T, TReturn, TNext>;
+}
+
+/**
+ * Defines the `TReturn` type used for built-in iterators produced by `Array`, `Map`, `Set`, and others.
+ * This is `undefined` when `strictBuiltInIteratorReturn` is `true`; otherwise, this is `any`.
+ */
+type BuiltinIteratorReturn = intrinsic;
+
+interface ArrayIterator<T> extends IteratorObject<T, BuiltinIteratorReturn, unknown> {
+ [Symbol.iterator](): ArrayIterator<T>;
}
interface Array<T> {
/** Iterator */
- [Symbol.iterator](): IterableIterator<T>;
+ [Symbol.iterator](): ArrayIterator<T>;
/**
* Returns an iterable of key, value pairs for every entry in the array
*/
- entries(): IterableIterator<[number, T]>;
+ entries(): ArrayIterator<[number, T]>;
/**
* Returns an iterable of keys in the array
*/
- keys(): IterableIterator<number>;
+ keys(): ArrayIterator<number>;
/**
* Returns an iterable of values in the array
*/
- values(): IterableIterator<T>;
+ values(): ArrayIterator<T>;
}
interface ArrayConstructor {
@@ -91,67 +111,71 @@ interface ArrayConstructor {
interface ReadonlyArray<T> {
/** Iterator of values in the array. */
- [Symbol.iterator](): IterableIterator<T>;
+ [Symbol.iterator](): ArrayIterator<T>;
/**
* Returns an iterable of key, value pairs for every entry in the array
*/
- entries(): IterableIterator<[number, T]>;
+ entries(): ArrayIterator<[number, T]>;
/**
* Returns an iterable of keys in the array
*/
- keys(): IterableIterator<number>;
+ keys(): ArrayIterator<number>;
/**
* Returns an iterable of values in the array
*/
- values(): IterableIterator<T>;
+ values(): ArrayIterator<T>;
}
interface IArguments {
/** Iterator */
- [Symbol.iterator](): IterableIterator<any>;
+ [Symbol.iterator](): ArrayIterator<any>;
+}
+
+interface MapIterator<T> extends IteratorObject<T, BuiltinIteratorReturn, unknown> {
+ [Symbol.iterator](): MapIterator<T>;
}
interface Map<K, V> {
/** Returns an iterable of entries in the map. */
- [Symbol.iterator](): IterableIterator<[K, V]>;
+ [Symbol.iterator](): MapIterator<[K, V]>;
/**
* Returns an iterable of key, value pairs for every entry in the map.
*/
- entries(): IterableIterator<[K, V]>;
+ entries(): MapIterator<[K, V]>;
/**
* Returns an iterable of keys in the map
*/
- keys(): IterableIterator<K>;
+ keys(): MapIterator<K>;
/**
* Returns an iterable of values in the map
*/
- values(): IterableIterator<V>;
+ values(): MapIterator<V>;
}
interface ReadonlyMap<K, V> {
/** Returns an iterable of entries in the map. */
- [Symbol.iterator](): IterableIterator<[K, V]>;
+ [Symbol.iterator](): MapIterator<[K, V]>;
/**
* Returns an iterable of key, value pairs for every entry in the map.
*/
- entries(): IterableIterator<[K, V]>;
+ entries(): MapIterator<[K, V]>;
/**
* Returns an iterable of keys in the map
*/
- keys(): IterableIterator<K>;
+ keys(): MapIterator<K>;
/**
* Returns an iterable of values in the map
*/
- values(): IterableIterator<V>;
+ values(): MapIterator<V>;
}
interface MapConstructor {
@@ -165,42 +189,46 @@ interface WeakMapConstructor {
new <K extends WeakKey, V>(iterable: Iterable<readonly [K, V]>): WeakMap<K, V>;
}
+interface SetIterator<T> extends IteratorObject<T, BuiltinIteratorReturn, unknown> {
+ [Symbol.iterator](): SetIterator<T>;
+}
+
interface Set<T> {
/** Iterates over values in the set. */
- [Symbol.iterator](): IterableIterator<T>;
+ [Symbol.iterator](): SetIterator<T>;
/**
* Returns an iterable of [v,v] pairs for every value `v` in the set.
*/
- entries(): IterableIterator<[T, T]>;
+ entries(): SetIterator<[T, T]>;
/**
* Despite its name, returns an iterable of the values in the set.
*/
- keys(): IterableIterator<T>;
+ keys(): SetIterator<T>;
/**
* Returns an iterable of values in the set.
*/
- values(): IterableIterator<T>;
+ values(): SetIterator<T>;
}
interface ReadonlySet<T> {
/** Iterates over values in the set. */
- [Symbol.iterator](): IterableIterator<T>;
+ [Symbol.iterator](): SetIterator<T>;
/**
* Returns an iterable of [v,v] pairs for every value `v` in the set.
*/
- entries(): IterableIterator<[T, T]>;
+ entries(): SetIterator<[T, T]>;
/**
* Despite its name, returns an iterable of the values in the set.
*/
- keys(): IterableIterator<T>;
+ keys(): SetIterator<T>;
/**
* Returns an iterable of values in the set.
*/
- values(): IterableIterator<T>;
+ values(): SetIterator<T>;
}
interface SetConstructor {
@@ -233,25 +261,29 @@ interface PromiseConstructor {
race<T>(values: Iterable<T | PromiseLike<T>>): Promise<Awaited<T>>;
}
+interface StringIterator<T> extends IteratorObject<T, BuiltinIteratorReturn, unknown> {
+ [Symbol.iterator](): StringIterator<T>;
+}
+
interface String {
/** Iterator */
- [Symbol.iterator](): IterableIterator<string>;
+ [Symbol.iterator](): StringIterator<string>;
}
interface Int8Array {
- [Symbol.iterator](): IterableIterator<number>;
+ [Symbol.iterator](): ArrayIterator<number>;
/**
* Returns an array of key, value pairs for every entry in the array
*/
- entries(): IterableIterator<[number, number]>;
+ entries(): ArrayIterator<[number, number]>;
/**
* Returns an list of keys in the array
*/
- keys(): IterableIterator<number>;
+ keys(): ArrayIterator<number>;
/**
* Returns an list of values in the array
*/
- values(): IterableIterator<number>;
+ values(): ArrayIterator<number>;
}
interface Int8ArrayConstructor {
@@ -267,19 +299,19 @@ interface Int8ArrayConstructor {
}
interface Uint8Array {
- [Symbol.iterator](): IterableIterator<number>;
+ [Symbol.iterator](): ArrayIterator<number>;
/**
* Returns an array of key, value pairs for every entry in the array
*/
- entries(): IterableIterator<[number, number]>;
+ entries(): ArrayIterator<[number, number]>;
/**
* Returns an list of keys in the array
*/
- keys(): IterableIterator<number>;
+ keys(): ArrayIterator<number>;
/**
* Returns an list of values in the array
*/
- values(): IterableIterator<number>;
+ values(): ArrayIterator<number>;
}
interface Uint8ArrayConstructor {
@@ -295,21 +327,21 @@ interface Uint8ArrayConstructor {
}
interface Uint8ClampedArray {
- [Symbol.iterator](): IterableIterator<number>;
+ [Symbol.iterator](): ArrayIterator<number>;
/**
* Returns an array of key, value pairs for every entry in the array
*/
- entries(): IterableIterator<[number, number]>;
+ entries(): ArrayIterator<[number, number]>;
/**
* Returns an list of keys in the array
*/
- keys(): IterableIterator<number>;
+ keys(): ArrayIterator<number>;
/**
* Returns an list of values in the array
*/
- values(): IterableIterator<number>;
+ values(): ArrayIterator<number>;
}
interface Uint8ClampedArrayConstructor {
@@ -325,21 +357,21 @@ interface Uint8ClampedArrayConstructor {
}
interface Int16Array {
- [Symbol.iterator](): IterableIterator<number>;
+ [Symbol.iterator](): ArrayIterator<number>;
/**
* Returns an array of key, value pairs for every entry in the array
*/
- entries(): IterableIterator<[number, number]>;
+ entries(): ArrayIterator<[number, number]>;
/**
* Returns an list of keys in the array
*/
- keys(): IterableIterator<number>;
+ keys(): ArrayIterator<number>;
/**
* Returns an list of values in the array
*/
- values(): IterableIterator<number>;
+ values(): ArrayIterator<number>;
}
interface Int16ArrayConstructor {
@@ -355,19 +387,19 @@ interface Int16ArrayConstructor {
}
interface Uint16Array {
- [Symbol.iterator](): IterableIterator<number>;
+ [Symbol.iterator](): ArrayIterator<number>;
/**
* Returns an array of key, value pairs for every entry in the array
*/
- entries(): IterableIterator<[number, number]>;
+ entries(): ArrayIterator<[number, number]>;
/**
* Returns an list of keys in the array
*/
- keys(): IterableIterator<number>;
+ keys(): ArrayIterator<number>;
/**
* Returns an list of values in the array
*/
- values(): IterableIterator<number>;
+ values(): ArrayIterator<number>;
}
interface Uint16ArrayConstructor {
@@ -383,19 +415,19 @@ interface Uint16ArrayConstructor {
}
interface Int32Array {
- [Symbol.iterator](): IterableIterator<number>;
+ [Symbol.iterator](): ArrayIterator<number>;
/**
* Returns an array of key, value pairs for every entry in the array
*/
- entries(): IterableIterator<[number, number]>;
+ entries(): ArrayIterator<[number, number]>;
/**
* Returns an list of keys in the array
*/
- keys(): IterableIterator<number>;
+ keys(): ArrayIterator<number>;
/**
* Returns an list of values in the array
*/
- values(): IterableIterator<number>;
+ values(): ArrayIterator<number>;
}
interface Int32ArrayConstructor {
@@ -411,19 +443,19 @@ interface Int32ArrayConstructor {
}
interface Uint32Array {
- [Symbol.iterator](): IterableIterator<number>;
+ [Symbol.iterator](): ArrayIterator<number>;
/**
* Returns an array of key, value pairs for every entry in the array
*/
- entries(): IterableIterator<[number, number]>;
+ entries(): ArrayIterator<[number, number]>;
/**
* Returns an list of keys in the array
*/
- keys(): IterableIterator<number>;
+ keys(): ArrayIterator<number>;
/**
* Returns an list of values in the array
*/
- values(): IterableIterator<number>;
+ values(): ArrayIterator<number>;
}
interface Uint32ArrayConstructor {
@@ -439,19 +471,19 @@ interface Uint32ArrayConstructor {
}
interface Float32Array {
- [Symbol.iterator](): IterableIterator<number>;
+ [Symbol.iterator](): ArrayIterator<number>;
/**
* Returns an array of key, value pairs for every entry in the array
*/
- entries(): IterableIterator<[number, number]>;
+ entries(): ArrayIterator<[number, number]>;
/**
* Returns an list of keys in the array
*/
- keys(): IterableIterator<number>;
+ keys(): ArrayIterator<number>;
/**
* Returns an list of values in the array
*/
- values(): IterableIterator<number>;
+ values(): ArrayIterator<number>;
}
interface Float32ArrayConstructor {
@@ -467,19 +499,19 @@ interface Float32ArrayConstructor {
}
interface Float64Array {
- [Symbol.iterator](): IterableIterator<number>;
+ [Symbol.iterator](): ArrayIterator<number>;
/**
* Returns an array of key, value pairs for every entry in the array
*/
- entries(): IterableIterator<[number, number]>;
+ entries(): ArrayIterator<[number, number]>;
/**
* Returns an list of keys in the array
*/
- keys(): IterableIterator<number>;
+ keys(): ArrayIterator<number>;
/**
* Returns an list of values in the array
*/
- values(): IterableIterator<number>;
+ values(): ArrayIterator<number>;
}
interface Float64ArrayConstructor {
diff --git a/cli/tsc/dts/lib.es2017.object.d.ts b/cli/tsc/dts/lib.es2017.object.d.ts
index af9ef2f98..523b05dc8 100644
--- a/cli/tsc/dts/lib.es2017.object.d.ts
+++ b/cli/tsc/dts/lib.es2017.object.d.ts
@@ -18,25 +18,25 @@ and limitations under the License.
interface ObjectConstructor {
/**
- * Returns an array of values of the enumerable properties of an object
+ * Returns an array of values of the enumerable own properties of an object
* @param o Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object.
*/
values<T>(o: { [s: string]: T; } | ArrayLike<T>): T[];
/**
- * Returns an array of values of the enumerable properties of an object
+ * Returns an array of values of the enumerable own properties of an object
* @param o Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object.
*/
values(o: {}): any[];
/**
- * Returns an array of key/values of the enumerable properties of an object
+ * Returns an array of key/values of the enumerable own properties of an object
* @param o Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object.
*/
entries<T>(o: { [s: string]: T; } | ArrayLike<T>): [string, T][];
/**
- * Returns an array of key/values of the enumerable properties of an object
+ * Returns an array of key/values of the enumerable own properties of an object
* @param o Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object.
*/
entries(o: {}): [string, any][];
diff --git a/cli/tsc/dts/lib.es2018.asyncgenerator.d.ts b/cli/tsc/dts/lib.es2018.asyncgenerator.d.ts
index 092a34f01..429c21820 100644
--- a/cli/tsc/dts/lib.es2018.asyncgenerator.d.ts
+++ b/cli/tsc/dts/lib.es2018.asyncgenerator.d.ts
@@ -18,9 +18,9 @@ and limitations under the License.
/// <reference lib="es2018.asynciterable" />
-interface AsyncGenerator<T = unknown, TReturn = any, TNext = unknown> extends AsyncIterator<T, TReturn, TNext> {
+interface AsyncGenerator<T = unknown, TReturn = any, TNext = any> extends AsyncIteratorObject<T, TReturn, TNext> {
// NOTE: 'next' is defined using a tuple to ensure we report the correct assignability errors in all places.
- next(...args: [] | [TNext]): Promise<IteratorResult<T, TReturn>>;
+ next(...[value]: [] | [TNext]): Promise<IteratorResult<T, TReturn>>;
return(value: TReturn | PromiseLike<TReturn>): Promise<IteratorResult<T, TReturn>>;
throw(e: any): Promise<IteratorResult<T, TReturn>>;
[Symbol.asyncIterator](): AsyncGenerator<T, TReturn, TNext>;
diff --git a/cli/tsc/dts/lib.es2018.asynciterable.d.ts b/cli/tsc/dts/lib.es2018.asynciterable.d.ts
index f3de8021d..a2ddd99be 100644
--- a/cli/tsc/dts/lib.es2018.asynciterable.d.ts
+++ b/cli/tsc/dts/lib.es2018.asynciterable.d.ts
@@ -27,17 +27,27 @@ interface SymbolConstructor {
readonly asyncIterator: unique symbol;
}
-interface AsyncIterator<T, TReturn = any, TNext = undefined> {
+interface AsyncIterator<T, TReturn = any, TNext = any> {
// NOTE: 'next' is defined using a tuple to ensure we report the correct assignability errors in all places.
- next(...args: [] | [TNext]): Promise<IteratorResult<T, TReturn>>;
+ next(...[value]: [] | [TNext]): Promise<IteratorResult<T, TReturn>>;
return?(value?: TReturn | PromiseLike<TReturn>): Promise<IteratorResult<T, TReturn>>;
throw?(e?: any): Promise<IteratorResult<T, TReturn>>;
}
-interface AsyncIterable<T> {
- [Symbol.asyncIterator](): AsyncIterator<T>;
+interface AsyncIterable<T, TReturn = any, TNext = any> {
+ [Symbol.asyncIterator](): AsyncIterator<T, TReturn, TNext>;
}
-interface AsyncIterableIterator<T> extends AsyncIterator<T> {
- [Symbol.asyncIterator](): AsyncIterableIterator<T>;
+/**
+ * Describes a user-defined {@link AsyncIterator} that is also async iterable.
+ */
+interface AsyncIterableIterator<T, TReturn = any, TNext = any> extends AsyncIterator<T, TReturn, TNext> {
+ [Symbol.asyncIterator](): AsyncIterableIterator<T, TReturn, TNext>;
+}
+
+/**
+ * Describes an {@link AsyncIterator} produced by the runtime that inherits from the intrinsic `AsyncIterator.prototype`.
+ */
+interface AsyncIteratorObject<T, TReturn = unknown, TNext = unknown> extends AsyncIterator<T, TReturn, TNext> {
+ [Symbol.asyncIterator](): AsyncIteratorObject<T, TReturn, TNext>;
}
diff --git a/cli/tsc/dts/lib.es2020.bigint.d.ts b/cli/tsc/dts/lib.es2020.bigint.d.ts
index 4b8939601..9997ac000 100644
--- a/cli/tsc/dts/lib.es2020.bigint.d.ts
+++ b/cli/tsc/dts/lib.es2020.bigint.d.ts
@@ -171,7 +171,7 @@ interface BigInt64Array {
copyWithin(target: number, start: number, end?: number): this;
/** Yields index, value pairs for every entry in the array. */
- entries(): IterableIterator<[number, bigint]>;
+ entries(): ArrayIterator<[number, bigint]>;
/**
* Determines whether all the members of an array satisfy the specified test.
@@ -256,7 +256,7 @@ interface BigInt64Array {
join(separator?: string): string;
/** Yields each index in the array. */
- keys(): IterableIterator<number>;
+ keys(): ArrayIterator<number>;
/**
* Returns the index of the last occurrence of a value in an array.
@@ -378,9 +378,9 @@ interface BigInt64Array {
valueOf(): BigInt64Array;
/** Yields each value in the array. */
- values(): IterableIterator<bigint>;
+ values(): ArrayIterator<bigint>;
- [Symbol.iterator](): IterableIterator<bigint>;
+ [Symbol.iterator](): ArrayIterator<bigint>;
readonly [Symbol.toStringTag]: "BigInt64Array";
@@ -443,7 +443,7 @@ interface BigUint64Array {
copyWithin(target: number, start: number, end?: number): this;
/** Yields index, value pairs for every entry in the array. */
- entries(): IterableIterator<[number, bigint]>;
+ entries(): ArrayIterator<[number, bigint]>;
/**
* Determines whether all the members of an array satisfy the specified test.
@@ -528,7 +528,7 @@ interface BigUint64Array {
join(separator?: string): string;
/** Yields each index in the array. */
- keys(): IterableIterator<number>;
+ keys(): ArrayIterator<number>;
/**
* Returns the index of the last occurrence of a value in an array.
@@ -650,9 +650,9 @@ interface BigUint64Array {
valueOf(): BigUint64Array;
/** Yields each value in the array. */
- values(): IterableIterator<bigint>;
+ values(): ArrayIterator<bigint>;
- [Symbol.iterator](): IterableIterator<bigint>;
+ [Symbol.iterator](): ArrayIterator<bigint>;
readonly [Symbol.toStringTag]: "BigUint64Array";
diff --git a/cli/tsc/dts/lib.es2020.string.d.ts b/cli/tsc/dts/lib.es2020.string.d.ts
index 17c15806e..cdb38e0d8 100644
--- a/cli/tsc/dts/lib.es2020.string.d.ts
+++ b/cli/tsc/dts/lib.es2020.string.d.ts
@@ -16,7 +16,7 @@ and limitations under the License.
/// <reference no-default-lib="true"/>
-/// <reference lib="es2015.iterable" />
+/// <reference lib="es2020.symbol.wellknown" />
interface String {
/**
@@ -24,7 +24,7 @@ interface String {
* containing the results of that search.
* @param regexp A variable name or string literal containing the regular expression pattern and flags.
*/
- matchAll(regexp: RegExp): IterableIterator<RegExpExecArray>;
+ matchAll(regexp: RegExp): RegExpStringIterator<RegExpExecArray>;
/** Converts all alphabetic characters to lowercase, taking into account the host environment's current locale. */
toLocaleLowerCase(locales?: Intl.LocalesArgument): string;
diff --git a/cli/tsc/dts/lib.es2020.symbol.wellknown.d.ts b/cli/tsc/dts/lib.es2020.symbol.wellknown.d.ts
index 89262b74c..a3b45bb8a 100644
--- a/cli/tsc/dts/lib.es2020.symbol.wellknown.d.ts
+++ b/cli/tsc/dts/lib.es2020.symbol.wellknown.d.ts
@@ -27,11 +27,15 @@ interface SymbolConstructor {
readonly matchAll: unique symbol;
}
+interface RegExpStringIterator<T> extends IteratorObject<T, BuiltinIteratorReturn, unknown> {
+ [Symbol.iterator](): RegExpStringIterator<T>;
+}
+
interface RegExp {
/**
* Matches a string with this regular expression, and returns an iterable of matches
* containing the results of that search.
* @param string A string to search within.
*/
- [Symbol.matchAll](str: string): IterableIterator<RegExpMatchArray>;
+ [Symbol.matchAll](str: string): RegExpStringIterator<RegExpMatchArray>;
}
diff --git a/cli/tsc/dts/lib.es2022.intl.d.ts b/cli/tsc/dts/lib.es2022.intl.d.ts
index 6a2ba0787..cd8eb1140 100644
--- a/cli/tsc/dts/lib.es2022.intl.d.ts
+++ b/cli/tsc/dts/lib.es2022.intl.d.ts
@@ -46,6 +46,10 @@ declare namespace Intl {
granularity: "grapheme" | "word" | "sentence";
}
+ interface SegmentIterator<T> extends IteratorObject<T, BuiltinIteratorReturn, unknown> {
+ [Symbol.iterator](): SegmentIterator<T>;
+ }
+
interface Segments {
/**
* Returns an object describing the segment in the original string that includes the code unit at a specified index.
@@ -55,7 +59,7 @@ declare namespace Intl {
containing(codeUnitIndex?: number): SegmentData;
/** Returns an iterator to iterate over the segments. */
- [Symbol.iterator](): IterableIterator<SegmentData>;
+ [Symbol.iterator](): SegmentIterator<SegmentData>;
}
interface SegmentData {
diff --git a/cli/tsc/dts/lib.es2023.array.d.ts b/cli/tsc/dts/lib.es2023.array.d.ts
index bd4db2ceb..57362da53 100644
--- a/cli/tsc/dts/lib.es2023.array.d.ts
+++ b/cli/tsc/dts/lib.es2023.array.d.ts
@@ -203,7 +203,7 @@ interface Int8Array {
/**
* Copies the array and returns the copy with the elements in reverse order.
*/
- toReversed(): Uint8Array;
+ toReversed(): Int8Array;
/**
* Copies and sorts the array.
@@ -211,11 +211,11 @@ interface Int8Array {
* a negative value if the first argument is less than the second argument, zero if they're equal, and a positive
* value otherwise. If omitted, the elements are sorted in ascending order.
* ```ts
- * const myNums = Uint8Array.from([11, 2, 22, 1]);
- * myNums.toSorted((a, b) => a - b) // Uint8Array(4) [1, 2, 11, 22]
+ * const myNums = Int8Array.from([11, 2, 22, 1]);
+ * myNums.toSorted((a, b) => a - b) // Int8Array(4) [1, 2, 11, 22]
* ```
*/
- toSorted(compareFn?: (a: number, b: number) => number): Uint8Array;
+ toSorted(compareFn?: (a: number, b: number) => number): Int8Array;
/**
* Copies the array and inserts the given number at the provided index.
@@ -224,7 +224,7 @@ interface Int8Array {
* @param value The value to insert into the copied array.
* @returns A copy of the original array with the inserted value.
*/
- with(index: number, value: number): Uint8Array;
+ with(index: number, value: number): Int8Array;
}
interface Uint8Array {
diff --git a/cli/tsc/dts/lib.esnext.d.ts b/cli/tsc/dts/lib.esnext.d.ts
index a2912fe3d..e0217b6c6 100644
--- a/cli/tsc/dts/lib.esnext.d.ts
+++ b/cli/tsc/dts/lib.esnext.d.ts
@@ -26,3 +26,4 @@ and limitations under the License.
/// <reference lib="esnext.array" />
/// <reference lib="esnext.regexp" />
/// <reference lib="esnext.string" />
+/// <reference lib="esnext.iterator" />
diff --git a/cli/tsc/dts/lib.esnext.disposable.d.ts b/cli/tsc/dts/lib.esnext.disposable.d.ts
index 0fea9442a..b169d962e 100644
--- a/cli/tsc/dts/lib.esnext.disposable.d.ts
+++ b/cli/tsc/dts/lib.esnext.disposable.d.ts
@@ -17,6 +17,8 @@ and limitations under the License.
/// <reference no-default-lib="true"/>
/// <reference lib="es2015.symbol" />
+/// <reference lib="es2015.iterable" />
+/// <reference lib="es2018.asynciterable" />
interface SymbolConstructor {
/**
@@ -183,3 +185,9 @@ interface AsyncDisposableStackConstructor {
readonly prototype: AsyncDisposableStack;
}
declare var AsyncDisposableStack: AsyncDisposableStackConstructor;
+
+interface IteratorObject<T, TReturn, TNext> extends Disposable {
+}
+
+interface AsyncIteratorObject<T, TReturn, TNext> extends AsyncDisposable {
+}
diff --git a/cli/tsc/dts/lib.esnext.iterator.d.ts b/cli/tsc/dts/lib.esnext.iterator.d.ts
new file mode 100644
index 000000000..983344279
--- /dev/null
+++ b/cli/tsc/dts/lib.esnext.iterator.d.ts
@@ -0,0 +1,148 @@
+/*! *****************************************************************************
+Copyright (c) Microsoft Corporation. All rights reserved.
+Licensed under the Apache License, Version 2.0 (the "License"); you may not use
+this file except in compliance with the License. You may obtain a copy of the
+License at http://www.apache.org/licenses/LICENSE-2.0
+
+THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
+WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
+MERCHANTABLITY OR NON-INFRINGEMENT.
+
+See the Apache Version 2.0 License for specific language governing permissions
+and limitations under the License.
+***************************************************************************** */
+
+
+/// <reference no-default-lib="true"/>
+
+/// <reference lib="es2015.iterable" />
+
+// NOTE: This is specified as what is essentially an unreachable module. All actual global declarations can be found
+// in the `declare global` section, below. This is necessary as there is currently no way to declare an `abstract`
+// member without declaring a `class`, but declaring `class Iterator<T>` globally would conflict with TypeScript's
+// general purpose `Iterator<T>` interface.
+export {};
+
+// Abstract type that allows us to mark `next` as `abstract`
+declare abstract class Iterator<T, TResult = undefined, TNext = unknown> { // eslint-disable-line @typescript-eslint/no-unsafe-declaration-merging
+ abstract next(value?: TNext): IteratorResult<T, TResult>;
+}
+
+// Merge all members of `IteratorObject<T>` into `Iterator<T>`
+interface Iterator<T, TResult, TNext> extends globalThis.IteratorObject<T, TResult, TNext> {}
+
+// Capture the `Iterator` constructor in a type we can use in the `extends` clause of `IteratorConstructor`.
+type IteratorObjectConstructor = typeof Iterator;
+
+declare global {
+ // Global `IteratorObject<T, TReturn, TNext>` interface that can be augmented by polyfills
+ interface IteratorObject<T, TReturn, TNext> {
+ /**
+ * Returns this iterator.
+ */
+ [Symbol.iterator](): IteratorObject<T, TReturn, TNext>;
+
+ /**
+ * Creates an iterator whose values are the result of applying the callback to the values from this iterator.
+ * @param callbackfn A function that accepts up to two arguments to be used to transform values from the underlying iterator.
+ */
+ map<U>(callbackfn: (value: T, index: number) => U): IteratorObject<U, undefined, unknown>;
+
+ /**
+ * Creates an iterator whose values are those from this iterator for which the provided predicate returns true.
+ * @param predicate A function that accepts up to two arguments to be used to test values from the underlying iterator.
+ */
+ filter<S extends T>(predicate: (value: T, index: number) => value is S): IteratorObject<S, undefined, unknown>;
+
+ /**
+ * Creates an iterator whose values are those from this iterator for which the provided predicate returns true.
+ * @param predicate A function that accepts up to two arguments to be used to test values from the underlying iterator.
+ */
+ filter(predicate: (value: T, index: number) => unknown): IteratorObject<T, undefined, unknown>;
+
+ /**
+ * Creates an iterator whose values are the values from this iterator, stopping once the provided limit is reached.
+ * @param limit The maximum number of values to yield.
+ */
+ take(limit: number): IteratorObject<T, undefined, unknown>;
+
+ /**
+ * Creates an iterator whose values are the values from this iterator after skipping the provided count.
+ * @param count The number of values to drop.
+ */
+ drop(count: number): IteratorObject<T, undefined, unknown>;
+
+ /**
+ * Creates an iterator whose values are the result of applying the callback to the values from this iterator and then flattening the resulting iterators or iterables.
+ * @param callback A function that accepts up to two arguments to be used to transform values from the underlying iterator into new iterators or iterables to be flattened into the result.
+ */
+ flatMap<U>(callback: (value: T, index: number) => Iterator<U, unknown, undefined> | Iterable<U, unknown, undefined>): IteratorObject<U, undefined, unknown>;
+
+ /**
+ * Calls the specified callback function for all the elements in this iterator. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.
+ * @param callbackfn A function that accepts up to three arguments. The reduce method calls the callbackfn function one time for each element in the iterator.
+ * @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of a value from the iterator.
+ */
+ reduce(callbackfn: (previousValue: T, currentValue: T, currentIndex: number) => T): T;
+ reduce(callbackfn: (previousValue: T, currentValue: T, currentIndex: number) => T, initialValue: T): T;
+
+ /**
+ * Calls the specified callback function for all the elements in this iterator. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.
+ * @param callbackfn A function that accepts up to three arguments. The reduce method calls the callbackfn function one time for each element in the iterator.
+ * @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of a value from the iterator.
+ */
+ reduce<U>(callbackfn: (previousValue: U, currentValue: T, currentIndex: number) => U, initialValue: U): U;
+
+ /**
+ * Creates a new array from the values yielded by this iterator.
+ */
+ toArray(): T[];
+
+ /**
+ * Performs the specified action for each element in the iterator.
+ * @param callbackfn A function that accepts up to two arguments. forEach calls the callbackfn function one time for each element in the iterator.
+ */
+ forEach(callbackfn: (value: T, index: number) => void): void;
+
+ /**
+ * Determines whether the specified callback function returns true for any element of this iterator.
+ * @param predicate A function that accepts up to two arguments. The some method calls
+ * the predicate function for each element in this iterator until the predicate returns a value
+ * true, or until the end of the iterator.
+ */
+ some(predicate: (value: T, index: number) => unknown): boolean;
+
+ /**
+ * Determines whether all the members of this iterator satisfy the specified test.
+ * @param predicate A function that accepts up to two arguments. The every method calls
+ * the predicate function for each element in this iterator until the predicate returns
+ * false, or until the end of this iterator.
+ */
+ every(predicate: (value: T, index: number) => unknown): boolean;
+
+ /**
+ * Returns the value of the first element in this iterator where predicate is true, and undefined
+ * otherwise.
+ * @param predicate find calls predicate once for each element of this iterator, in
+ * order, until it finds one where predicate returns true. If such an element is found, find
+ * immediately returns that element value. Otherwise, find returns undefined.
+ */
+ find<S extends T>(predicate: (value: T, index: number) => value is S): S | undefined;
+ find(predicate: (value: T, index: number) => unknown): T | undefined;
+
+ readonly [Symbol.toStringTag]: string;
+ }
+
+ // Global `IteratorConstructor` interface that can be augmented by polyfills
+ interface IteratorConstructor extends IteratorObjectConstructor {
+ /**
+ * Creates a native iterator from an iterator or iterable object.
+ * Returns its input if the input already inherits from the built-in Iterator class.
+ * @param value An iterator or iterable object to convert a native iterator.
+ */
+ from<T>(value: Iterator<T, unknown, undefined> | Iterable<T, unknown, undefined>): IteratorObject<T, undefined, unknown>;
+ }
+
+ var Iterator: IteratorConstructor;
+}
diff --git a/cli/tsc/dts/lib.webworker.asynciterable.d.ts b/cli/tsc/dts/lib.webworker.asynciterable.d.ts
index 86de21097..4c7aaadc6 100644
--- a/cli/tsc/dts/lib.webworker.asynciterable.d.ts
+++ b/cli/tsc/dts/lib.webworker.asynciterable.d.ts
@@ -20,14 +20,22 @@ and limitations under the License.
/// Worker Async Iterable APIs
/////////////////////////////
+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>;
+ [Symbol.asyncIterator](options?: ReadableStreamIteratorOptions): ReadableStreamAsyncIterator<R>;
+ values(options?: ReadableStreamIteratorOptions): ReadableStreamAsyncIterator<R>;
}
diff --git a/cli/tsc/dts/lib.webworker.d.ts b/cli/tsc/dts/lib.webworker.d.ts
index e05292ec6..f0c5b3200 100644
--- a/cli/tsc/dts/lib.webworker.d.ts
+++ b/cli/tsc/dts/lib.webworker.d.ts
@@ -340,10 +340,6 @@ interface ImageEncodeOptions {
type?: string;
}
-interface ImportMeta {
- url: string;
-}
-
interface JsonWebKey {
alg?: string;
crv?: string;
@@ -414,6 +410,10 @@ interface MediaEncodingConfiguration extends MediaConfiguration {
type: MediaEncodingType;
}
+interface MediaStreamTrackProcessorInit {
+ maxBufferSize?: number;
+}
+
interface MessageEventInit<T = any> extends EventInit {
data?: T;
lastEventId?: string;
@@ -717,16 +717,11 @@ interface TextEncoderEncodeIntoResult {
written: number;
}
-interface TransformerCancelCallback {
- (reason: any): void | PromiseLike<void>;
-}
-
interface Transformer<I = any, O = any> {
flush?: TransformerFlushCallback<O>;
readableType?: undefined;
start?: TransformerStartCallback<O>;
transform?: TransformerTransformCallback<I, O>;
- cancel?: TransformerCancelCallback;
writableType?: undefined;
}
@@ -1676,6 +1671,8 @@ interface CanvasShadowStyles {
}
interface CanvasState {
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/isContextLost) */
+ isContextLost(): boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/reset) */
reset(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/restore) */
@@ -1812,8 +1809,6 @@ declare var CloseEvent: {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CompressionStream) */
interface CompressionStream extends GenericTransformStream {
- readonly readable: ReadableStream<Uint8Array>;
- readonly writable: WritableStream<BufferSource>;
}
declare var CompressionStream: {
@@ -2011,9 +2006,7 @@ interface DOMMatrix extends DOMMatrixReadOnly {
rotateAxisAngleSelf(x?: number, y?: number, z?: number, angle?: number): DOMMatrix;
rotateFromVectorSelf(x?: number, y?: number): DOMMatrix;
rotateSelf(rotX?: number, rotY?: number, rotZ?: number): DOMMatrix;
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/scale3dSelf) */
scale3dSelf(scale?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix;
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/scaleSelf) */
scaleSelf(scaleX?: number, scaleY?: number, scaleZ?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix;
skewXSelf(sx?: number): DOMMatrix;
skewYSelf(sy?: number): DOMMatrix;
@@ -2030,88 +2023,48 @@ declare var DOMMatrix: {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly) */
interface DOMMatrixReadOnly {
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/a) */
readonly a: number;
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/b) */
readonly b: number;
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/c) */
readonly c: number;
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/d) */
readonly d: number;
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/e) */
readonly e: number;
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/f) */
readonly f: number;
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/is2D) */
readonly is2D: boolean;
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/isIdentity) */
readonly isIdentity: boolean;
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m11) */
readonly m11: number;
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m12) */
readonly m12: number;
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m13) */
readonly m13: number;
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m14) */
readonly m14: number;
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m21) */
readonly m21: number;
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m22) */
readonly m22: number;
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m23) */
readonly m23: number;
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m24) */
readonly m24: number;
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m31) */
readonly m31: number;
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m32) */
readonly m32: number;
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m33) */
readonly m33: number;
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m34) */
readonly m34: number;
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m41) */
readonly m41: number;
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m42) */
readonly m42: number;
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m43) */
readonly m43: number;
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m44) */
readonly m44: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/flipX) */
flipX(): DOMMatrix;
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/flipY) */
flipY(): DOMMatrix;
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/inverse) */
inverse(): DOMMatrix;
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/multiply) */
multiply(other?: DOMMatrixInit): DOMMatrix;
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/rotate) */
rotate(rotX?: number, rotY?: number, rotZ?: number): DOMMatrix;
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/rotateAxisAngle) */
rotateAxisAngle(x?: number, y?: number, z?: number, angle?: number): DOMMatrix;
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/rotateFromVector) */
rotateFromVector(x?: number, y?: number): DOMMatrix;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/scale) */
scale(scaleX?: number, scaleY?: number, scaleZ?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix;
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/scale3d) */
scale3d(scale?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix;
- /**
- * @deprecated
- *
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/scaleNonUniform)
- */
+ /** @deprecated */
scaleNonUniform(scaleX?: number, scaleY?: number): DOMMatrix;
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/skewX) */
skewX(sx?: number): DOMMatrix;
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/skewY) */
skewY(sy?: number): DOMMatrix;
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/toFloat32Array) */
toFloat32Array(): Float32Array;
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/toFloat64Array) */
toFloat64Array(): Float64Array;
toJSON(): any;
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/transformPoint) */
transformPoint(point?: DOMPointInit): DOMPoint;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/translate) */
translate(tx?: number, ty?: number, tz?: number): DOMMatrix;
@@ -2154,7 +2107,6 @@ interface DOMPointReadOnly {
readonly y: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/z) */
readonly z: number;
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/matrixTransform) */
matrixTransform(matrix?: DOMMatrixInit): DOMPoint;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/toJSON) */
toJSON(): any;
@@ -2169,15 +2121,10 @@ declare var DOMPointReadOnly: {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad) */
interface DOMQuad {
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/p1) */
readonly p1: DOMPoint;
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/p2) */
readonly p2: DOMPoint;
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/p3) */
readonly p3: DOMPoint;
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/p4) */
readonly p4: DOMPoint;
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/getBounds) */
getBounds(): DOMRect;
toJSON(): any;
}
@@ -2200,6 +2147,7 @@ interface DOMRect extends DOMRectReadOnly {
declare var DOMRect: {
prototype: DOMRect;
new(x?: number, y?: number, width?: number, height?: number): DOMRect;
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRect/fromRect_static) */
fromRect(other?: DOMRectInit): DOMRect;
};
@@ -2265,8 +2213,6 @@ declare var DOMStringList: {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DecompressionStream) */
interface DecompressionStream extends GenericTransformStream {
- readonly readable: ReadableStream<Uint8Array>;
- readonly writable: WritableStream<BufferSource>;
}
declare var DecompressionStream: {
@@ -2427,15 +2373,10 @@ declare var EncodedVideoChunk: {
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent)
*/
interface ErrorEvent extends Event {
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent/colno) */
readonly colno: number;
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent/error) */
readonly error: any;
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent/filename) */
readonly filename: string;
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent/lineno) */
readonly lineno: number;
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent/message) */
readonly message: string;
}
@@ -3091,7 +3032,9 @@ declare var FormData: {
};
interface GenericTransformStream {
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CompressionStream/readable) */
readonly readable: ReadableStream;
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CompressionStream/writable) */
readonly writable: WritableStream;
}
@@ -3750,7 +3693,7 @@ interface IDBTransaction extends EventTarget {
/**
* Returns a list of the names of object stores in the transaction's scope. For an upgrade transaction this is all object stores in the database.
*
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/objectStoreNames)
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/ObjectStoreNames)
*/
readonly objectStoreNames: DOMStringList;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/abort_event) */
@@ -3877,6 +3820,11 @@ declare var ImageData: {
new(data: Uint8ClampedArray, sw: number, sh?: number, settings?: ImageDataSettings): ImageData;
};
+interface ImportMeta {
+ url: string;
+ resolve(specifier: string): string;
+}
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/KHR_parallel_shader_compile) */
interface KHR_parallel_shader_compile {
readonly COMPLETION_STATUS_KHR: 0x91B1;
@@ -3930,6 +3878,26 @@ declare var MediaCapabilities: {
new(): MediaCapabilities;
};
+/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSourceHandle) */
+interface MediaSourceHandle {
+}
+
+declare var MediaSourceHandle: {
+ prototype: MediaSourceHandle;
+ new(): MediaSourceHandle;
+};
+
+/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrackProcessor) */
+interface MediaStreamTrackProcessor {
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrackProcessor/readable) */
+ readonly readable: ReadableStream;
+}
+
+declare var MediaStreamTrackProcessor: {
+ prototype: MediaStreamTrackProcessor;
+ new(init: MediaStreamTrackProcessorInit): MediaStreamTrackProcessor;
+};
+
/**
* This Channel Messaging API interface allows us to create a new message channel and send data through it via its two MessagePort properties.
*
@@ -3991,11 +3959,7 @@ interface MessageEvent<T = any> extends Event {
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent/source)
*/
readonly source: MessageEventSource | null;
- /**
- * @deprecated
- *
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent/initMessageEvent)
- */
+ /** @deprecated */
initMessageEvent(type: string, bubbles?: boolean, cancelable?: boolean, data?: any, origin?: string, lastEventId?: string, source?: MessageEventSource | null, ports?: MessagePort[]): void;
}
@@ -4327,7 +4291,9 @@ interface OffscreenCanvas extends EventTarget {
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas/height)
*/
height: number;
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas/contextlost_event) */
oncontextlost: ((this: OffscreenCanvas, ev: Event) => any) | null;
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas/contextrestored_event) */
oncontextrestored: ((this: OffscreenCanvas, ev: Event) => any) | null;
/**
* These attributes return the dimensions of the OffscreenCanvas object's bitmap.
@@ -4379,8 +4345,6 @@ declare var OffscreenCanvas: {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvasRenderingContext2D) */
interface OffscreenCanvasRenderingContext2D extends CanvasCompositing, CanvasDrawImage, CanvasDrawPath, CanvasFillStrokeStyles, CanvasFilters, CanvasImageData, CanvasImageSmoothing, CanvasPath, CanvasPathDrawingStyles, CanvasRect, CanvasShadowStyles, CanvasState, CanvasText, CanvasTextDrawingStyles, CanvasTransform {
readonly canvas: OffscreenCanvas;
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvasRenderingContext2D/commit) */
- commit(): void;
}
declare var OffscreenCanvasRenderingContext2D: {
@@ -4885,24 +4849,19 @@ declare var ReadableStream: {
new(underlyingSource: UnderlyingByteSource, strategy?: { highWaterMark?: number }): ReadableStream<Uint8Array>;
new<R = any>(underlyingSource: UnderlyingDefaultSource<R>, strategy?: QueuingStrategy<R>): ReadableStream<R>;
new<R = any>(underlyingSource?: UnderlyingSource<R>, strategy?: QueuingStrategy<R>): ReadableStream<R>;
- from<R>(asyncIterable: AsyncIterable<R> | Iterable<R | PromiseLike<R>>): ReadableStream<R>;
};
-interface ReadableStreamBYOBReaderReadOptions {
- min?: number;
-}
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBReader) */
interface ReadableStreamBYOBReader extends ReadableStreamGenericReader {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBReader/read) */
- read<T extends ArrayBufferView>(view: T, options?: ReadableStreamBYOBReaderReadOptions): Promise<ReadableStreamReadResult<T>>;
+ read<T extends ArrayBufferView>(view: T): Promise<ReadableStreamReadResult<T>>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBReader/releaseLock) */
releaseLock(): void;
}
declare var ReadableStreamBYOBReader: {
prototype: ReadableStreamBYOBReader;
- new(stream: ReadableStream<Uint8Array>): ReadableStreamBYOBReader;
+ new(stream: ReadableStream): ReadableStreamBYOBReader;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBRequest) */
@@ -4975,6 +4934,7 @@ declare var Report: {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReportBody) */
interface ReportBody {
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReportBody/toJSON) */
toJSON(): any;
}
@@ -5034,11 +4994,7 @@ interface Request extends Body {
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/integrity)
*/
readonly integrity: string;
- /**
- * Returns a boolean indicating whether or not request can outlive the global in which it was created.
- *
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/keepalive)
- */
+ /** Returns a boolean indicating whether or not request can outlive the global in which it was created. */
readonly keepalive: boolean;
/**
* Returns request's HTTP method, which is "GET" by default.
@@ -5802,6 +5758,7 @@ interface VideoDecoderEventMap {
interface VideoDecoder extends EventTarget {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoDecoder/decodeQueueSize) */
readonly decodeQueueSize: number;
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoDecoder/dequeue_event) */
ondequeue: ((this: VideoDecoder, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoDecoder/state) */
readonly state: CodecState;
@@ -5824,6 +5781,7 @@ interface VideoDecoder extends EventTarget {
declare var VideoDecoder: {
prototype: VideoDecoder;
new(init: VideoDecoderInit): VideoDecoder;
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoDecoder/isConfigSupported_static) */
isConfigSupported(config: VideoDecoderConfig): Promise<VideoDecoderSupport>;
};
@@ -5839,6 +5797,7 @@ interface VideoEncoderEventMap {
interface VideoEncoder extends EventTarget {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoEncoder/encodeQueueSize) */
readonly encodeQueueSize: number;
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoEncoder/dequeue_event) */
ondequeue: ((this: VideoEncoder, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoEncoder/state) */
readonly state: CodecState;
@@ -5848,6 +5807,7 @@ interface VideoEncoder extends EventTarget {
configure(config: VideoEncoderConfig): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoEncoder/encode) */
encode(frame: VideoFrame, options?: VideoEncoderEncodeOptions): void;
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoEncoder/flush) */
flush(): Promise<void>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoEncoder/reset) */
reset(): void;
@@ -5860,6 +5820,7 @@ interface VideoEncoder extends EventTarget {
declare var VideoEncoder: {
prototype: VideoEncoder;
new(init: VideoEncoderInit): VideoEncoder;
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoEncoder/isConfigSupported_static) */
isConfigSupported(config: VideoEncoderConfig): Promise<VideoEncoderSupport>;
};
@@ -5891,6 +5852,7 @@ interface VideoFrame {
clone(): VideoFrame;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/close) */
close(): void;
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/copyTo) */
copyTo(destination: AllowSharedBufferSource, options?: VideoFrameCopyToOptions): Promise<PlaneLayout[]>;
}
@@ -6668,7 +6630,7 @@ interface WebGL2RenderingContextBase {
clearBufferuiv(buffer: GLenum, drawbuffer: GLint, values: Uint32List, srcOffset?: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clientWaitSync) */
clientWaitSync(sync: WebGLSync, flags: GLbitfield, timeout: GLuint64): GLenum;
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/compressedTexImage3D) */
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/compressedTexImage2D) */
compressedTexImage3D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, imageSize: GLsizei, offset: GLintptr): void;
compressedTexImage3D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, srcData: ArrayBufferView, srcOffset?: number, srcLengthOverride?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/compressedTexSubImage3D) */
@@ -7549,6 +7511,7 @@ declare var WebGLRenderingContext: {
};
interface WebGLRenderingContextBase {
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/drawingBufferColorSpace) */
drawingBufferColorSpace: PredefinedColorSpace;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/drawingBufferHeight) */
readonly drawingBufferHeight: GLsizei;
@@ -8258,7 +8221,7 @@ declare var WebGLVertexArrayObject: {
new(): WebGLVertexArrayObject;
};
-/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLVertexArrayObjectOES) */
+/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLVertexArrayObject) */
interface WebGLVertexArrayObjectOES {
}
@@ -8469,24 +8432,24 @@ interface WindowOrWorkerGlobalScope {
/**
* Available only in secure contexts.
*
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/caches)
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/caches)
*/
readonly caches: CacheStorage;
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/crossOriginIsolated) */
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/crossOriginIsolated) */
readonly crossOriginIsolated: boolean;
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/crypto_property) */
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/crypto) */
readonly crypto: Crypto;
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/indexedDB) */
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/indexedDB) */
readonly indexedDB: IDBFactory;
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/isSecureContext) */
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/isSecureContext) */
readonly isSecureContext: boolean;
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/origin) */
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/origin) */
readonly origin: string;
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/performance_property) */
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/performance) */
readonly performance: Performance;
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/atob) */
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/atob) */
atob(data: string): string;
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/btoa) */
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/btoa) */
btoa(data: string): string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/clearInterval) */
clearInterval(id: number | undefined): void;
@@ -8583,7 +8546,9 @@ interface WorkerGlobalScope extends EventTarget, FontFaceSource, WindowOrWorkerG
onoffline: ((this: WorkerGlobalScope, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope/online_event) */
ononline: ((this: WorkerGlobalScope, ev: Event) => any) | null;
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope/rejectionhandled_event) */
onrejectionhandled: ((this: WorkerGlobalScope, ev: PromiseRejectionEvent) => any) | null;
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope/unhandledrejection_event) */
onunhandledrejection: ((this: WorkerGlobalScope, ev: PromiseRejectionEvent) => any) | null;
/**
* Returns workerGlobal.
@@ -8641,7 +8606,7 @@ declare var WorkerLocation: {
};
/**
- * A subset of the Navigator interface allowed to be accessed from a Worker. Such an object is initialized for each worker and is available via the WorkerGlobalScope.navigator property obtained by calling globalThis.self.navigator.
+ * A subset of the Navigator interface allowed to be accessed from a Worker. Such an object is initialized for each worker and is available via the WorkerGlobalScope.navigator property obtained by calling window.self.navigator.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerNavigator)
*/
@@ -8917,7 +8882,7 @@ interface Console {
clear(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/count_static) */
count(label?: string): void;
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/countReset_static) */
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/countreset_static) */
countReset(label?: string): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/debug_static) */
debug(...data: any[]): void;
@@ -8929,9 +8894,9 @@ interface Console {
error(...data: any[]): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/group_static) */
group(...data: any[]): void;
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/groupCollapsed_static) */
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/groupcollapsed_static) */
groupCollapsed(...data: any[]): void;
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/groupEnd_static) */
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/groupend_static) */
groupEnd(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/info_static) */
info(...data: any[]): void;
@@ -8941,9 +8906,9 @@ interface Console {
table(tabularData?: any, properties?: string[]): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/time_static) */
time(label?: string): void;
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/timeEnd_static) */
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/timeend_static) */
timeEnd(label?: string): void;
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/timeLog_static) */
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/timelog_static) */
timeLog(label?: string, ...data: any[]): void;
timeStamp(label?: string): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/trace_static) */
@@ -8966,9 +8931,7 @@ declare namespace WebAssembly {
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Global) */
interface Global<T extends ValueType = ValueType> {
- /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Global/value) */
value: ValueTypeMap[T];
- /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Global/valueOf) */
valueOf(): ValueTypeMap[T];
}
@@ -9246,7 +9209,9 @@ declare var onlanguagechange: ((this: DedicatedWorkerGlobalScope, ev: Event) =>
declare var onoffline: ((this: DedicatedWorkerGlobalScope, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope/online_event) */
declare var ononline: ((this: DedicatedWorkerGlobalScope, ev: Event) => any) | null;
+/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope/rejectionhandled_event) */
declare var onrejectionhandled: ((this: DedicatedWorkerGlobalScope, ev: PromiseRejectionEvent) => any) | null;
+/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope/unhandledrejection_event) */
declare var onunhandledrejection: ((this: DedicatedWorkerGlobalScope, ev: PromiseRejectionEvent) => any) | null;
/**
* Returns workerGlobal.
@@ -9271,24 +9236,24 @@ declare var fonts: FontFaceSet;
/**
* Available only in secure contexts.
*
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/caches)
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/caches)
*/
declare var caches: CacheStorage;
-/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/crossOriginIsolated) */
+/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/crossOriginIsolated) */
declare var crossOriginIsolated: boolean;
-/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/crypto_property) */
+/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/crypto) */
declare var crypto: Crypto;
-/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/indexedDB) */
+/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/indexedDB) */
declare var indexedDB: IDBFactory;
-/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/isSecureContext) */
+/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/isSecureContext) */
declare var isSecureContext: boolean;
-/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/origin) */
+/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/origin) */
declare var origin: string;
-/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/performance_property) */
+/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/performance) */
declare var performance: Performance;
-/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/atob) */
+/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/atob) */
declare function atob(data: string): string;
-/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/btoa) */
+/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/btoa) */
declare function btoa(data: string): string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/clearInterval) */
declare function clearInterval(id: number | undefined): void;
@@ -9365,7 +9330,7 @@ type ReportList = Report[];
type RequestInfo = Request | string;
type TexImageSource = ImageBitmap | ImageData | OffscreenCanvas | VideoFrame;
type TimerHandler = string | Function;
-type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | ReadableStream | WritableStream | TransformStream | VideoFrame | ArrayBuffer;
+type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | MediaSourceHandle | ReadableStream | WritableStream | TransformStream | VideoFrame | ArrayBuffer;
type Uint32List = Uint32Array | GLuint[];
type XMLHttpRequestBodyInit = Blob | BufferSource | FormData | URLSearchParams | string;
type AlphaOption = "discard" | "keep";
diff --git a/cli/tsc/dts/lib.webworker.iterable.d.ts b/cli/tsc/dts/lib.webworker.iterable.d.ts
index 4f53ad5e0..be864068e 100644
--- a/cli/tsc/dts/lib.webworker.iterable.d.ts
+++ b/cli/tsc/dts/lib.webworker.iterable.d.ts
@@ -26,24 +26,24 @@ interface AbortSignal {
}
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 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>;
}
interface Cache {
@@ -62,34 +62,42 @@ interface CanvasPathDrawingStyles {
}
interface DOMStringList {
- [Symbol.iterator](): IterableIterator<string>;
+ [Symbol.iterator](): ArrayIterator<string>;
}
interface FileList {
- [Symbol.iterator](): IterableIterator<File>;
+ [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](): 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 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>;
}
interface IDBDatabase {
@@ -113,19 +121,19 @@ interface IDBObjectStore {
}
interface MessageEvent<T = any> {
- /**
- * @deprecated
- *
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent/initMessageEvent)
- */
+ /** @deprecated */
initMessageEvent(type: string, bubbles?: boolean, cancelable?: boolean, data?: any, origin?: string, lastEventId?: string, source?: MessageEventSource | null, ports?: Iterable<MessagePort>): void;
}
+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 SubtleCrypto {
@@ -143,14 +151,18 @@ interface SubtleCrypto {
unwrapKey(format: KeyFormat, wrappedKey: BufferSource, unwrappingKey: CryptoKey, unwrapAlgorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, unwrappedKeyAlgorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKey>;
}
+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>;
}
interface WEBGL_draw_buffers {
diff --git a/cli/tsc/dts/typescript.d.ts b/cli/tsc/dts/typescript.d.ts
index 882767d3c..5326c98dd 100644
--- a/cli/tsc/dts/typescript.d.ts
+++ b/cli/tsc/dts/typescript.d.ts
@@ -214,6 +214,22 @@ declare namespace ts {
* The time spent creating or updating the auto-import program, in milliseconds.
*/
createAutoImportProviderProgramDurationMs?: number;
+ /**
+ * The time spent computing diagnostics, in milliseconds.
+ */
+ diagnosticsDuration?: FileDiagnosticPerformanceData[];
+ }
+ /**
+ * Time spent computing each kind of diagnostics, in milliseconds.
+ */
+ export type DiagnosticPerformanceData = {
+ [Kind in DiagnosticEventKind]?: number;
+ };
+ export interface FileDiagnosticPerformanceData extends DiagnosticPerformanceData {
+ /**
+ * The file for which the performance data is reported.
+ */
+ file: string;
}
/**
* Arguments for FileRequest messages.
@@ -584,23 +600,7 @@ declare namespace ts {
}
export interface ApplyCodeActionCommandResponse extends Response {
}
- export interface FileRangeRequestArgs extends FileRequestArgs {
- /**
- * The line number for the request (1-based).
- */
- startLine: number;
- /**
- * The character offset (on the line) for the request (1-based).
- */
- startOffset: number;
- /**
- * The line number for the request (1-based).
- */
- endLine: number;
- /**
- * The character offset (on the line) for the request (1-based).
- */
- endOffset: number;
+ export interface FileRangeRequestArgs extends FileRequestArgs, FileRange {
}
/**
* Instances of this interface specify errorcodes on a specific location in a sourcefile.
@@ -1866,7 +1866,7 @@ declare namespace ts {
* List of file names for which to compute compiler errors.
* The files will be checked in list order.
*/
- files: string[];
+ files: (string | FileRangesRequestArgs)[];
/**
* Delay in milliseconds to wait before starting to compute
* errors for the files in the file list
@@ -1887,6 +1887,27 @@ declare namespace ts {
command: CommandTypes.Geterr;
arguments: GeterrRequestArgs;
}
+ export interface FileRange {
+ /**
+ * The line number for the request (1-based).
+ */
+ startLine: number;
+ /**
+ * The character offset (on the line) for the request (1-based).
+ */
+ startOffset: number;
+ /**
+ * The line number for the request (1-based).
+ */
+ endLine: number;
+ /**
+ * The character offset (on the line) for the request (1-based).
+ */
+ endOffset: number;
+ }
+ export interface FileRangesRequestArgs extends Pick<FileRequestArgs, "file"> {
+ ranges: FileRange[];
+ }
export type RequestCompletedEventName = "requestCompleted";
/**
* Event that is sent when server have finished processing request with specified id.
@@ -1897,6 +1918,7 @@ declare namespace ts {
}
export interface RequestCompletedEventBody {
request_seq: number;
+ performanceData?: PerformanceData;
}
/**
* Item of diagnostic information found in a DiagnosticEvent message.
@@ -1969,8 +1991,12 @@ declare namespace ts {
* An array of diagnostic information items.
*/
diagnostics: Diagnostic[];
+ /**
+ * Spans where the region diagnostic was requested, if this is a region semantic diagnostic event.
+ */
+ spans?: TextSpan[];
}
- export type DiagnosticEventKind = "semanticDiag" | "syntaxDiag" | "suggestionDiag";
+ export type DiagnosticEventKind = "semanticDiag" | "syntaxDiag" | "suggestionDiag" | "regionSemanticDiag";
/**
* Event message for DiagnosticEventKind event types.
* These events provide syntactic and semantic errors for a file.
@@ -2510,6 +2536,7 @@ declare namespace ts {
private readonly knownCachesSet;
private readonly projectWatchers;
private safeList;
+ private pendingRunRequests;
private installRunCount;
private inFlightRequestCount;
abstract readonly typesRegistry: Map<string, MapLike<string>>;
@@ -2636,6 +2663,7 @@ declare namespace ts {
interface ServerHost extends System {
watchFile(path: string, callback: FileWatcherCallback, pollingInterval?: number, options?: WatchOptions): FileWatcher;
watchDirectory(path: string, callback: DirectoryWatcherCallback, recursive?: boolean, options?: WatchOptions): FileWatcher;
+ preferNonRecursiveWatch?: boolean;
setTimeout(callback: (...args: any[]) => void, ms: number, ...args: any[]): any;
clearTimeout(timeoutId: any): void;
setImmediate(callback: (...args: any[]) => void, ...args: any[]): any;
@@ -2644,6 +2672,18 @@ declare namespace ts {
trace?(s: string): void;
require?(initialPath: string, moduleName: string): ModuleImportResult;
}
+ interface InstallPackageOptionsWithProject extends InstallPackageOptions {
+ projectName: string;
+ projectRootPath: Path;
+ }
+ interface ITypingsInstaller {
+ isKnownTypesPackageName(name: string): boolean;
+ installPackage(options: InstallPackageOptionsWithProject): Promise<ApplyCodeActionCommandResult>;
+ enqueueInstallTypingsRequest(p: Project, typeAcquisition: TypeAcquisition, unresolvedImports: SortedReadonlyArray<string> | undefined): void;
+ attach(projectService: ProjectService): void;
+ onProjectClosed(p: Project): void;
+ readonly globalTypingsCacheLocation: string | undefined;
+ }
function createInstallTypingsRequest(project: Project, typeAcquisition: TypeAcquisition, unresolvedImports: SortedReadonlyArray<string>, cachePath?: string): DiscoverTypings;
function toNormalizedPath(fileName: string): NormalizedPath;
function normalizedPathToPath(normalizedPath: NormalizedPath, currentDirectory: string, getCanonicalFileName: (f: string) => string): Path;
@@ -2702,6 +2742,7 @@ declare namespace ts {
readonly containingProjects: Project[];
private formatSettings;
private preferences;
+ private realpath;
constructor(host: ServerHost, fileName: NormalizedPath, scriptKind: ScriptKind, hasMixedContent: boolean, path: Path, initialVersion?: number);
isScriptOpen(): boolean;
open(newText: string | undefined): void;
@@ -2735,19 +2776,6 @@ declare namespace ts {
positionToLineOffset(position: number): protocol.Location;
isJavaScript(): boolean;
}
- interface InstallPackageOptionsWithProject extends InstallPackageOptions {
- projectName: string;
- projectRootPath: Path;
- }
- interface ITypingsInstaller {
- isKnownTypesPackageName(name: string): boolean;
- installPackage(options: InstallPackageOptionsWithProject): Promise<ApplyCodeActionCommandResult>;
- enqueueInstallTypingsRequest(p: Project, typeAcquisition: TypeAcquisition, unresolvedImports: SortedReadonlyArray<string> | undefined): void;
- attach(projectService: ProjectService): void;
- onProjectClosed(p: Project): void;
- readonly globalTypingsCacheLocation: string | undefined;
- }
- const nullTypingsInstaller: ITypingsInstaller;
function allRootFilesAreJsOrDts(project: Project): boolean;
function allFilesAreJsOrDts(project: Project): boolean;
enum ProjectKind {
@@ -2789,33 +2817,31 @@ declare namespace ts {
private externalFiles;
private missingFilesMap;
private generatedFilesMap;
+ private hasAddedorRemovedFiles;
+ private hasAddedOrRemovedSymlinks;
protected languageService: LanguageService;
languageServiceEnabled: boolean;
readonly trace?: (s: string) => void;
readonly realpath?: (path: string) => string;
private builderState;
- /**
- * Set of files names that were updated since the last call to getChangesSinceVersion.
- */
private updatedFileNames;
- /**
- * Set of files that was returned from the last call to getChangesSinceVersion.
- */
private lastReportedFileNames;
- /**
- * Last version that was reported.
- */
private lastReportedVersion;
protected projectErrors: Diagnostic[] | undefined;
protected isInitialLoadPending: () => boolean;
+ private typingsCache;
+ private typingWatchers;
private readonly cancellationToken;
isNonTsProject(): boolean;
isJsOnlyProject(): boolean;
static resolveModule(moduleName: string, initialDir: string, host: ServerHost, log: (message: string) => void): {} | undefined;
+ private exportMapCache;
+ private changedFilesForExportMapCache;
+ private moduleSpecifierCache;
+ private symlinks;
readonly jsDocParsingMode: JSDocParsingMode | undefined;
isKnownTypesPackageName(name: string): boolean;
installPackage(options: InstallPackageOptions): Promise<ApplyCodeActionCommandResult>;
- private get typingsCache();
getCompilationSettings(): ts.CompilerOptions;
getCompilerOptions(): ts.CompilerOptions;
getNewLine(): string;
@@ -2882,6 +2908,8 @@ declare namespace ts {
* @returns: true if set of files in the project stays the same and false - otherwise.
*/
updateGraph(): boolean;
+ private closeWatchingTypingLocations;
+ private onTypingInstallerWatchInvoke;
protected removeExistingTypings(include: string[]): string[];
private updateGraphWorker;
private detachScriptInfoFromProject;
@@ -2893,6 +2921,7 @@ declare namespace ts {
getScriptInfoForNormalizedPath(fileName: NormalizedPath): ScriptInfo | undefined;
getScriptInfo(uncheckedFileName: string): ts.server.ScriptInfo | undefined;
filesToString(writeProjectFileNames: boolean): string;
+ private filesToStringWorker;
setCompilerOptions(compilerOptions: CompilerOptions): void;
setTypeAcquisition(newTypeAcquisition: TypeAcquisition | undefined): void;
getTypeAcquisition(): ts.TypeAcquisition;
@@ -2901,6 +2930,8 @@ declare namespace ts {
protected enablePlugin(pluginConfigEntry: PluginImport, searchPaths: string[]): void;
/** Starts a new check for diagnostics. Call this if some file has updated that would cause diagnostics to be changed. */
refreshDiagnostics(): void;
+ private isDefaultProjectForOpenFiles;
+ private getCompilerOptionsForNoDtsResolutionProject;
}
/**
* If a file is opened and no tsconfig (or jsconfig) is found,
@@ -2920,6 +2951,7 @@ declare namespace ts {
}
class AutoImportProviderProject extends Project {
private hostProject;
+ private static readonly maxDependencies;
private rootFileNames;
updateGraph(): boolean;
hasRoots(): boolean;
@@ -2936,6 +2968,8 @@ declare namespace ts {
class ConfiguredProject extends Project {
readonly canonicalConfigFilePath: NormalizedPath;
private projectReferences;
+ private compilerHost?;
+ private releaseParsedConfig;
/**
* If the project has reload from disk pending, it reloads (and then updates graph as part of that) instead of just updating the graph
* @returns: true if set of files in the project stays the same and false - otherwise.
@@ -3126,6 +3160,7 @@ declare namespace ts {
configFileName?: NormalizedPath;
configFileErrors?: readonly Diagnostic[];
}
+ const nullTypingsInstaller: ITypingsInstaller;
interface ProjectServiceOptions {
host: ServerHost;
logger: Logger;
@@ -3151,16 +3186,8 @@ declare namespace ts {
}
class ProjectService {
private readonly nodeModulesWatchers;
- /**
- * Contains all the deleted script info's version information so that
- * it does not reset when creating script info again
- * (and could have potentially collided with version where contents mismatch)
- */
private readonly filenameToScriptInfoVersion;
private readonly allJsFilesForOpenFileTelemetry;
- /**
- * maps external project file name to list of config files that were the part of this project
- */
private readonly externalProjectToConfiguredProjectMap;
/**
* external projects (configuration and list of root files is not controlled by tsserver)
@@ -3178,13 +3205,8 @@ declare namespace ts {
* Open files: with value being project root path, and key being Path of the file that is open
*/
readonly openFiles: Map<Path, NormalizedPath | undefined>;
- /** Config files looked up and cached config files for open script info */
private readonly configFileForOpenFiles;
- /** Set of open script infos that are root of inferred project */
private rootOfInferredProjects;
- /**
- * Map of open files that are opened without complete path but have projectRoot as current directory
- */
private readonly openFilesWithNonRootedDiskPath;
private compilerOptionsForInferredProjects;
private compilerOptionsForInferredProjectsPerProjectRoot;
@@ -3192,18 +3214,11 @@ declare namespace ts {
private watchOptionsForInferredProjectsPerProjectRoot;
private typeAcquisitionForInferredProjects;
private typeAcquisitionForInferredProjectsPerProjectRoot;
- /**
- * Project size for configured or external projects
- */
private readonly projectToSizeMap;
private readonly hostConfiguration;
private safelist;
private readonly legacySafelist;
private pendingProjectUpdates;
- /**
- * All the open script info that needs recalculation of the default project,
- * this also caches config file info before config file change was detected to use it in case projects are not updated yet
- */
private pendingOpenFileProjectUpdates?;
readonly currentDirectory: NormalizedPath;
readonly toCanonicalFileName: (f: string) => string;
@@ -3221,8 +3236,11 @@ declare namespace ts {
readonly allowLocalPluginLoads: boolean;
readonly typesMapLocation: string | undefined;
readonly serverMode: LanguageServiceMode;
- /** Tracks projects that we have already sent telemetry for. */
private readonly seenProjects;
+ private readonly sharedExtendedConfigFileWatchers;
+ private readonly extendedConfigCache;
+ private packageJsonFilesMap;
+ private incompleteCompletionsCache;
private performanceEventHandler?;
private pendingPluginEnablements?;
private currentPluginEnablementPromise?;
@@ -3236,20 +3254,9 @@ declare namespace ts {
setCompilerOptionsForInferredProjects(projectCompilerOptions: protocol.InferredProjectCompilerOptions, projectRootPath?: string): void;
findProject(projectName: string): Project | undefined;
getDefaultProjectForFile(fileName: NormalizedPath, ensureProject: boolean): Project | undefined;
- /**
- * If there is default project calculation pending for this file,
- * then it completes that calculation so that correct default project is used for the project
- */
private tryGetDefaultProjectForEnsuringConfiguredProjectForFile;
private doEnsureDefaultProjectForFile;
getScriptInfoEnsuringProjectsUptoDate(uncheckedFileName: string): ScriptInfo | undefined;
- /**
- * Ensures the project structures are upto date
- * This means,
- * - we go through all the projects and update them if they are dirty
- * - if updates reflect some change in structure or there was pending request to ensure projects for open files
- * ensure that each open script info has project
- */
private ensureProjectStructuresUptoDate;
getFormatCodeOptions(file: NormalizedPath): FormatCodeSettings;
getPreferences(file: NormalizedPath): protocol.UserPreferences;
@@ -3260,37 +3267,30 @@ declare namespace ts {
private delayUpdateSourceInfoProjects;
private delayUpdateProjectsOfScriptInfoPath;
private handleDeletedFile;
+ private watchWildcardDirectory;
+ private onWildCardDirectoryWatcherInvoke;
+ private delayUpdateProjectsFromParsedConfigOnConfigFileChange;
+ private onConfigFileChanged;
private removeProject;
private assignOrphanScriptInfosToInferredProject;
- /**
- * Remove this file from the set of open, non-configured files.
- * @param info The file that has been closed or newly configured
- */
private closeOpenFile;
private deleteScriptInfo;
private configFileExists;
- /**
- * This function tries to search for a tsconfig.json for the given file.
- * This is different from the method the compiler uses because
- * the compiler can assume it will always start searching in the
- * current directory (the directory in which tsc was invoked).
- * The server must start searching from the directory containing
- * the newly opened file.
- */
+ private createConfigFileWatcherForParsedConfig;
private forEachConfigFileLocation;
- /** Get cached configFileName for scriptInfo or ancestor of open script info */
private getConfigFileNameForFileFromCache;
- /** Caches the configFilename for script info or ancestor of open script info */
private setConfigFileNameForFileInCache;
private printProjects;
private getConfiguredProjectByCanonicalConfigFilePath;
private findExternalProjectByProjectName;
- /** Get a filename if the language service exceeds the maximum allowed program size; otherwise returns undefined. */
private getFilenameForExceededTotalSizeLimitForNonTsFiles;
private createExternalProject;
private addFilesToNonInferredProject;
+ private loadConfiguredProject;
private updateNonInferredProjectFiles;
private updateRootAndOptionsOfNonInferredProject;
+ private reloadFileNamesOfParsedConfig;
+ private clearSemanticCache;
private getOrCreateInferredProjectForProjectRootPathIfEnabled;
private getOrCreateSingleInferredProjectIfEnabled;
private getOrCreateSingleInferredWithoutProjectRoot;
@@ -3316,23 +3316,15 @@ declare namespace ts {
private addSourceInfoToSourceMap;
private addMissingSourceMapFile;
setHostConfiguration(args: protocol.ConfigureRequestArguments): void;
+ private getWatchOptionsFromProjectWatchOptions;
closeLog(): void;
+ private sendSourceFileChange;
/**
* This function rebuilds the project for every file opened by the client
* This does not reload contents of open files from disk. But we could do that if needed
*/
reloadProjects(): void;
- /**
- * Remove the root of inferred project if script info is part of another project
- */
private removeRootOfInferredProjectIfNowPartOfOtherProject;
- /**
- * This function is to update the project structure for every inferred project.
- * It is called on the premise that all the configured projects are
- * up to date.
- * This will go through open files and assign them to inferred project if open file is not part of any other project
- * After that all the inferred project graphs are updated
- */
private ensureProjectForOpenFiles;
/**
* Open file whose contents is managed by the client
@@ -3343,20 +3335,12 @@ declare namespace ts {
private findExternalProjectContainingOpenScriptInfo;
private getOrCreateOpenScriptInfo;
private assignProjectToOpenedScriptInfo;
- /**
- * Finds the default configured project for given info
- * For any tsconfig found, it looks into that project, if not then all its references,
- * The search happens for all tsconfigs till projectRootPath
- */
private tryFindDefaultConfiguredProjectForOpenScriptInfo;
- /**
- * Finds the default configured project, if found, it creates the solution projects (does not load them right away)
- * with Find: finds the projects even if the project is deferredClosed
- */
private tryFindDefaultConfiguredProjectAndLoadAncestorsForOpenScriptInfo;
private ensureProjectChildren;
private cleanupConfiguredProjects;
private cleanupProjectsAndScriptInfos;
+ private tryInvokeWildCardDirectories;
openClientFileWithNormalizedPath(fileName: NormalizedPath, fileContent?: string, scriptKind?: ScriptKind, hasMixedContent?: boolean, projectRootPath?: NormalizedPath): OpenConfiguredProjectResult;
private removeOrphanScriptInfos;
private telemetryOnOpenFile;
@@ -3368,7 +3352,6 @@ declare namespace ts {
private collectChanges;
closeExternalProject(uncheckedFileName: string): void;
openExternalProjects(projects: protocol.ExternalProject[]): void;
- /** Makes a filename safe to insert in a RegExp */
private static readonly filenameEscapeRegexp;
private static escapeFilenameForRegex;
resetSafeList(): void;
@@ -3376,9 +3359,12 @@ declare namespace ts {
private applySafeListWorker;
openExternalProject(proj: protocol.ExternalProject): void;
hasDeferredExtension(): boolean;
+ private endEnablePlugin;
private enableRequestedPluginsAsync;
private enableRequestedPluginsWorker;
configurePlugin(args: protocol.ConfigurePluginRequestArguments): void;
+ private watchPackageJsonFile;
+ private onPackageJsonChange;
}
function formatMessage<T extends protocol.Message>(msg: T, logger: Logger, byteLength: (s: string, encoding: BufferEncoding) => number, newLine: string): string;
interface ServerCancellationToken extends HostCancellationToken {
@@ -3386,10 +3372,6 @@ declare namespace ts {
resetRequest(requestId: number): void;
}
const nullCancellationToken: ServerCancellationToken;
- interface PendingErrorCheck {
- fileName: NormalizedPath;
- project: Project;
- }
/** @deprecated use ts.server.protocol.CommandTypes */
type CommandNames = protocol.CommandTypes;
/** @deprecated use ts.server.protocol.CommandTypes */
@@ -3449,6 +3431,7 @@ declare namespace ts {
constructor(opts: SessionOptions);
private sendRequestCompletedEvent;
private addPerformanceData;
+ private addDiagnosticsPerformanceData;
private performanceEventHandler;
private defaultEventHandler;
private projectsUpdatedInBackgroundEvent;
@@ -3460,8 +3443,8 @@ declare namespace ts {
private semanticCheck;
private syntacticCheck;
private suggestionCheck;
+ private regionSemanticCheck;
private sendDiagnosticsEvent;
- /** It is the caller's responsibility to verify that `!this.suppressDiagnosticEvents`. */
private updateErrorCheck;
private cleanProjects;
private cleanup;
@@ -3508,10 +3491,6 @@ declare namespace ts {
private toSpanGroups;
private getReferences;
private getFileReferences;
- /**
- * @param fileName is the name of the file to be opened
- * @param fileContent is a version of the file content that is known to be more up to date than the one on disk
- */
private openClientFile;
private getPosition;
private getPositionInFile;
@@ -3610,19 +3589,12 @@ declare namespace ts {
}
namespace deno {
function setIsNodeSourceFileCallback(callback: IsNodeSourceFileCallback): void;
- function setNodeBuiltInModuleNames(names: readonly string[]): void;
function setNodeOnlyGlobalNames(names: readonly string[]): void;
- function createDenoForkContext({ mergeSymbol, globals, nodeGlobals, ambientModuleSymbolRegex }: {
+ function createDenoForkContext({ mergeSymbol, globals, nodeGlobals }: {
mergeSymbol(target: ts.Symbol, source: ts.Symbol, unidirectional?: boolean): ts.Symbol;
globals: ts.SymbolTable;
nodeGlobals: ts.SymbolTable;
- ambientModuleSymbolRegex: RegExp;
- }): {
- hasNodeSourceFile: (node: ts.Node | undefined) => boolean;
- getGlobalsForName: (id: ts.__String) => ts.SymbolTable;
- mergeGlobalSymbolTable: (node: ts.Node, source: ts.SymbolTable, unidirectional?: boolean) => void;
- combinedGlobals: ts.SymbolTable;
- };
+ }): DenoForkContext;
function tryParseNpmPackageReference(text: string): {
name: string;
versionReq: string | undefined;
@@ -3634,6 +3606,12 @@ declare namespace ts {
subPath: string | undefined;
};
type IsNodeSourceFileCallback = (sourceFile: ts.SourceFile) => boolean;
+ interface DenoForkContext {
+ hasNodeSourceFile: (node: ts.Node | undefined) => boolean;
+ getGlobalsForName: (id: ts.__String) => ts.SymbolTable;
+ mergeGlobalSymbolTable: (node: ts.Node, source: ts.SymbolTable, unidirectional?: boolean) => void;
+ combinedGlobals: ts.SymbolTable;
+ }
interface NpmPackageReference {
name: string;
versionReq: string;
@@ -3648,7 +3626,7 @@ declare namespace ts {
readDirectory(rootDir: string, extensions: readonly string[], excludes: readonly string[] | undefined, includes: readonly string[] | undefined, depth?: number): string[];
}
}
- const versionMajorMinor = "5.5";
+ const versionMajorMinor = "5.6";
/** The version of the TypeScript compiler release */
const version: string;
/**
@@ -4478,7 +4456,7 @@ declare namespace ts {
readonly right: Identifier;
}
type EntityName = Identifier | QualifiedName;
- type PropertyName = Identifier | StringLiteral | NoSubstitutionTemplateLiteral | NumericLiteral | ComputedPropertyName | PrivateIdentifier;
+ type PropertyName = Identifier | StringLiteral | NoSubstitutionTemplateLiteral | NumericLiteral | ComputedPropertyName | PrivateIdentifier | BigIntLiteral;
type MemberName = Identifier | PrivateIdentifier;
type DeclarationName = PropertyName | JsxAttributeName | StringLiteralLike | ElementAccessExpression | BindingPattern | EntityNameExpression;
interface Declaration extends Node {
@@ -4829,7 +4807,7 @@ declare namespace ts {
readonly kind: SyntaxKind.StringLiteral;
}
type StringLiteralLike = StringLiteral | NoSubstitutionTemplateLiteral;
- type PropertyNameLiteral = Identifier | StringLiteralLike | NumericLiteral | JsxNamespacedName;
+ type PropertyNameLiteral = Identifier | StringLiteralLike | NumericLiteral | JsxNamespacedName | BigIntLiteral;
interface TemplateLiteralTypeNode extends TypeNode {
kind: SyntaxKind.TemplateLiteralType;
readonly head: TemplateHead;
@@ -5549,7 +5527,7 @@ declare namespace ts {
interface NamespaceExport extends NamedDeclaration {
readonly kind: SyntaxKind.NamespaceExport;
readonly parent: ExportDeclaration;
- readonly name: Identifier;
+ readonly name: ModuleExportName;
}
interface NamespaceExportDeclaration extends DeclarationStatement, JSDocContainer {
readonly kind: SyntaxKind.NamespaceExportDeclaration;
@@ -5581,7 +5559,7 @@ declare namespace ts {
interface ImportSpecifier extends NamedDeclaration {
readonly kind: SyntaxKind.ImportSpecifier;
readonly parent: NamedImports;
- readonly propertyName?: Identifier;
+ readonly propertyName?: ModuleExportName;
readonly name: Identifier;
readonly isTypeOnly: boolean;
}
@@ -5589,9 +5567,10 @@ declare namespace ts {
readonly kind: SyntaxKind.ExportSpecifier;
readonly parent: NamedExports;
readonly isTypeOnly: boolean;
- readonly propertyName?: Identifier;
- readonly name: Identifier;
+ readonly propertyName?: ModuleExportName;
+ readonly name: ModuleExportName;
}
+ type ModuleExportName = Identifier | StringLiteral;
type ImportOrExportSpecifier = ImportSpecifier | ExportSpecifier;
type TypeOnlyCompatibleAliasDeclaration = ImportClause | ImportEqualsDeclaration | NamespaceImport | ImportOrExportSpecifier | ExportDeclaration | NamespaceExport;
type TypeOnlyImportDeclaration =
@@ -6046,19 +6025,67 @@ declare namespace ts {
isSourceFileFromExternalLibrary(file: SourceFile): boolean;
isSourceFileDefaultLibrary(file: SourceFile): boolean;
/**
- * Calculates the final resolution mode for a given module reference node. This is the resolution mode explicitly provided via import
- * attributes, if present, or the syntax the usage would have if emitted to JavaScript. In `--module node16` or `nodenext`, this may
- * depend on the file's `impliedNodeFormat`. In `--module preserve`, it depends only on the input syntax of the reference. In other
- * `module` modes, when overriding import attributes are not provided, this function returns `undefined`, as the result would have no
- * impact on module resolution, emit, or type checking.
+ * Calculates the final resolution mode for a given module reference node. This function only returns a result when module resolution
+ * settings allow differing resolution between ESM imports and CJS requires, or when a mode is explicitly provided via import attributes,
+ * which cause an `import` or `require` condition to be used during resolution regardless of module resolution settings. In absence of
+ * overriding attributes, and in modes that support differing resolution, the result indicates the syntax the usage would emit to JavaScript.
+ * Some examples:
+ *
+ * ```ts
+ * // tsc foo.mts --module nodenext
+ * import {} from "mod";
+ * // Result: ESNext - the import emits as ESM due to `impliedNodeFormat` set by .mts file extension
+ *
+ * // tsc foo.cts --module nodenext
+ * import {} from "mod";
+ * // Result: CommonJS - the import emits as CJS due to `impliedNodeFormat` set by .cts file extension
+ *
+ * // tsc foo.ts --module preserve --moduleResolution bundler
+ * import {} from "mod";
+ * // Result: ESNext - the import emits as ESM due to `--module preserve` and `--moduleResolution bundler`
+ * // supports conditional imports/exports
+ *
+ * // tsc foo.ts --module preserve --moduleResolution node10
+ * import {} from "mod";
+ * // Result: undefined - the import emits as ESM due to `--module preserve`, but `--moduleResolution node10`
+ * // does not support conditional imports/exports
+ *
+ * // tsc foo.ts --module commonjs --moduleResolution node10
+ * import type {} from "mod" with { "resolution-mode": "import" };
+ * // Result: ESNext - conditional imports/exports always supported with "resolution-mode" attribute
+ * ```
*/
getModeForUsageLocation(file: SourceFile, usage: StringLiteralLike): ResolutionMode;
/**
- * Calculates the final resolution mode for an import at some index within a file's `imports` list. This is the resolution mode
- * explicitly provided via import attributes, if present, or the syntax the usage would have if emitted to JavaScript. In
- * `--module node16` or `nodenext`, this may depend on the file's `impliedNodeFormat`. In `--module preserve`, it depends only on the
- * input syntax of the reference. In other `module` modes, when overriding import attributes are not provided, this function returns
- * `undefined`, as the result would have no impact on module resolution, emit, or type checking.
+ * Calculates the final resolution mode for an import at some index within a file's `imports` list. This function only returns a result
+ * when module resolution settings allow differing resolution between ESM imports and CJS requires, or when a mode is explicitly provided
+ * via import attributes, which cause an `import` or `require` condition to be used during resolution regardless of module resolution
+ * settings. In absence of overriding attributes, and in modes that support differing resolution, the result indicates the syntax the
+ * usage would emit to JavaScript. Some examples:
+ *
+ * ```ts
+ * // tsc foo.mts --module nodenext
+ * import {} from "mod";
+ * // Result: ESNext - the import emits as ESM due to `impliedNodeFormat` set by .mts file extension
+ *
+ * // tsc foo.cts --module nodenext
+ * import {} from "mod";
+ * // Result: CommonJS - the import emits as CJS due to `impliedNodeFormat` set by .cts file extension
+ *
+ * // tsc foo.ts --module preserve --moduleResolution bundler
+ * import {} from "mod";
+ * // Result: ESNext - the import emits as ESM due to `--module preserve` and `--moduleResolution bundler`
+ * // supports conditional imports/exports
+ *
+ * // tsc foo.ts --module preserve --moduleResolution node10
+ * import {} from "mod";
+ * // Result: undefined - the import emits as ESM due to `--module preserve`, but `--moduleResolution node10`
+ * // does not support conditional imports/exports
+ *
+ * // tsc foo.ts --module commonjs --moduleResolution node10
+ * import type {} from "mod" with { "resolution-mode": "import" };
+ * // Result: ESNext - conditional imports/exports always supported with "resolution-mode" attribute
+ * ```
*/
getModeForResolutionAtIndex(file: SourceFile, index: number): ResolutionMode;
getProjectReferences(): readonly ProjectReference[] | undefined;
@@ -6125,6 +6152,27 @@ declare namespace ts {
getBaseTypes(type: InterfaceType): BaseType[];
getBaseTypeOfLiteralType(type: Type): Type;
getWidenedType(type: Type): Type;
+ /**
+ * Gets the "awaited type" of a type.
+ *
+ * If an expression has a Promise-like type, the "awaited type" of the expression is
+ * derived from the type of the first argument of the fulfillment callback for that
+ * Promise's `then` method. If the "awaited type" is itself a Promise-like, it is
+ * recursively unwrapped in the same manner until a non-promise type is found.
+ *
+ * If an expression does not have a Promise-like type, its "awaited type" is the type
+ * of the expression.
+ *
+ * If the resulting "awaited type" is a generic object type, then it is wrapped in
+ * an `Awaited<T>`.
+ *
+ * In the event the "awaited type" circularly references itself, or is a non-Promise
+ * object-type with a callable `then()` method, an "awaited type" cannot be determined
+ * and the value `undefined` will be returned.
+ *
+ * This is used to reflect the runtime behavior of the `await` keyword.
+ */
+ getAwaitedType(type: Type): Type | undefined;
getReturnTypeOfSignature(signature: Signature): Type;
getNullableType(type: Type, flags: TypeFlags): Type;
getNonNullableType(type: Type): Type;
@@ -6217,6 +6265,7 @@ declare namespace ts {
getNumberType(): Type;
getNumberLiteralType(value: number): NumberLiteralType;
getBigIntType(): Type;
+ getBigIntLiteralType(value: PseudoBigInt): BigIntLiteralType;
getBooleanType(): Type;
getFalseType(): Type;
getTrueType(): Type;
@@ -6686,7 +6735,11 @@ declare namespace ts {
minLength: number;
/** Number of initial required or optional elements */
fixedLength: number;
- /** True if tuple has any rest or variadic elements */
+ /**
+ * True if tuple has any rest or variadic elements
+ *
+ * @deprecated Use `.combinedFlags & ElementFlags.Variable` instead
+ */
hasRestElement: boolean;
combinedFlags: ElementFlags;
readonly: boolean;
@@ -7010,6 +7063,7 @@ declare namespace ts {
strictBindCallApply?: boolean;
strictNullChecks?: boolean;
strictPropertyInitialization?: boolean;
+ strictBuiltinIteratorReturn?: boolean;
stripInternal?: boolean;
/** @deprecated */
suppressExcessPropertyErrors?: boolean;
@@ -7018,6 +7072,7 @@ declare namespace ts {
target?: ScriptTarget;
traceResolution?: boolean;
useUnknownInCatchVariables?: boolean;
+ noUncheckedSideEffectImports?: boolean;
resolveJsonModule?: boolean;
types?: string[];
/** Paths used to compute primary types search locations */
@@ -7344,9 +7399,10 @@ declare namespace ts {
TypeAssertions = 2,
NonNullAssertions = 4,
PartiallyEmittedExpressions = 8,
+ ExpressionsWithTypeArguments = 16,
Assertions = 6,
- All = 15,
- ExcludeJSDocTypeAssertion = 16,
+ All = 31,
+ ExcludeJSDocTypeAssertion = -2147483648,
}
type ImmediatelyInvokedFunctionExpression = CallExpression & {
readonly expression: FunctionExpression;
@@ -7645,20 +7701,20 @@ declare namespace ts {
updateImportAttribute(node: ImportAttribute, name: ImportAttributeName, value: Expression): ImportAttribute;
createNamespaceImport(name: Identifier): NamespaceImport;
updateNamespaceImport(node: NamespaceImport, name: Identifier): NamespaceImport;
- createNamespaceExport(name: Identifier): NamespaceExport;
- updateNamespaceExport(node: NamespaceExport, name: Identifier): NamespaceExport;
+ createNamespaceExport(name: ModuleExportName): NamespaceExport;
+ updateNamespaceExport(node: NamespaceExport, name: ModuleExportName): NamespaceExport;
createNamedImports(elements: readonly ImportSpecifier[]): NamedImports;
updateNamedImports(node: NamedImports, elements: readonly ImportSpecifier[]): NamedImports;
- createImportSpecifier(isTypeOnly: boolean, propertyName: Identifier | undefined, name: Identifier): ImportSpecifier;
- updateImportSpecifier(node: ImportSpecifier, isTypeOnly: boolean, propertyName: Identifier | undefined, name: Identifier): ImportSpecifier;
+ createImportSpecifier(isTypeOnly: boolean, propertyName: ModuleExportName | undefined, name: Identifier): ImportSpecifier;
+ updateImportSpecifier(node: ImportSpecifier, isTypeOnly: boolean, propertyName: ModuleExportName | undefined, name: Identifier): ImportSpecifier;
createExportAssignment(modifiers: readonly ModifierLike[] | undefined, isExportEquals: boolean | undefined, expression: Expression): ExportAssignment;
updateExportAssignment(node: ExportAssignment, modifiers: readonly ModifierLike[] | undefined, expression: Expression): ExportAssignment;
createExportDeclaration(modifiers: readonly ModifierLike[] | undefined, isTypeOnly: boolean, exportClause: NamedExportBindings | undefined, moduleSpecifier?: Expression, attributes?: ImportAttributes): ExportDeclaration;
updateExportDeclaration(node: ExportDeclaration, modifiers: readonly ModifierLike[] | undefined, isTypeOnly: boolean, exportClause: NamedExportBindings | undefined, moduleSpecifier: Expression | undefined, attributes: ImportAttributes | undefined): ExportDeclaration;
createNamedExports(elements: readonly ExportSpecifier[]): NamedExports;
updateNamedExports(node: NamedExports, elements: readonly ExportSpecifier[]): NamedExports;
- createExportSpecifier(isTypeOnly: boolean, propertyName: string | Identifier | undefined, name: string | Identifier): ExportSpecifier;
- updateExportSpecifier(node: ExportSpecifier, isTypeOnly: boolean, propertyName: Identifier | undefined, name: Identifier): ExportSpecifier;
+ createExportSpecifier(isTypeOnly: boolean, propertyName: string | ModuleExportName | undefined, name: string | ModuleExportName): ExportSpecifier;
+ updateExportSpecifier(node: ExportSpecifier, isTypeOnly: boolean, propertyName: ModuleExportName | undefined, name: ModuleExportName): ExportSpecifier;
createExternalModuleReference(expression: Expression): ExternalModuleReference;
updateExternalModuleReference(node: ExternalModuleReference, expression: Expression): ExternalModuleReference;
createJSDocAllType(): JSDocAllType;
@@ -8238,6 +8294,7 @@ declare namespace ts {
readonly interactiveInlayHints?: boolean;
readonly allowRenameOfImportPath?: boolean;
readonly autoImportFileExcludePatterns?: string[];
+ readonly autoImportSpecifierExcludeRegexes?: string[];
readonly preferTypeOnlyAutoImports?: boolean;
/**
* Indicates whether imports should be organized in a case-insensitive manner.
@@ -8976,6 +9033,7 @@ declare namespace ts {
function isExportDeclaration(node: Node): node is ExportDeclaration;
function isNamedExports(node: Node): node is NamedExports;
function isExportSpecifier(node: Node): node is ExportSpecifier;
+ function isModuleExportName(node: Node): node is ModuleExportName;
function isMissingDeclaration(node: Node): node is MissingDeclaration;
function isNotEmittedStatement(node: Node): node is NotEmittedStatement;
function isExternalModuleReference(node: Node): node is ExternalModuleReference;
@@ -9411,24 +9469,43 @@ declare namespace ts {
function getModeForResolutionAtIndex(file: SourceFile, index: number, compilerOptions: CompilerOptions): ResolutionMode;
/**
* Use `program.getModeForUsageLocation`, which retrieves the correct `compilerOptions`, instead of this function whenever possible.
- * Calculates the final resolution mode for a given module reference node. This is the resolution mode explicitly provided via import
- * attributes, if present, or the syntax the usage would have if emitted to JavaScript. In `--module node16` or `nodenext`, this may
- * depend on the file's `impliedNodeFormat`. In `--module preserve`, it depends only on the input syntax of the reference. In other
- * `module` modes, when overriding import attributes are not provided, this function returns `undefined`, as the result would have no
- * impact on module resolution, emit, or type checking.
+ * Calculates the final resolution mode for a given module reference node. This function only returns a result when module resolution
+ * settings allow differing resolution between ESM imports and CJS requires, or when a mode is explicitly provided via import attributes,
+ * which cause an `import` or `require` condition to be used during resolution regardless of module resolution settings. In absence of
+ * overriding attributes, and in modes that support differing resolution, the result indicates the syntax the usage would emit to JavaScript.
+ * Some examples:
+ *
+ * ```ts
+ * // tsc foo.mts --module nodenext
+ * import {} from "mod";
+ * // Result: ESNext - the import emits as ESM due to `impliedNodeFormat` set by .mts file extension
+ *
+ * // tsc foo.cts --module nodenext
+ * import {} from "mod";
+ * // Result: CommonJS - the import emits as CJS due to `impliedNodeFormat` set by .cts file extension
+ *
+ * // tsc foo.ts --module preserve --moduleResolution bundler
+ * import {} from "mod";
+ * // Result: ESNext - the import emits as ESM due to `--module preserve` and `--moduleResolution bundler`
+ * // supports conditional imports/exports
+ *
+ * // tsc foo.ts --module preserve --moduleResolution node10
+ * import {} from "mod";
+ * // Result: undefined - the import emits as ESM due to `--module preserve`, but `--moduleResolution node10`
+ * // does not support conditional imports/exports
+ *
+ * // tsc foo.ts --module commonjs --moduleResolution node10
+ * import type {} from "mod" with { "resolution-mode": "import" };
+ * // Result: ESNext - conditional imports/exports always supported with "resolution-mode" attribute
+ * ```
+ *
* @param file The file the import or import-like reference is contained within
* @param usage The module reference string
* @param compilerOptions The compiler options for the program that owns the file. If the file belongs to a referenced project, the compiler options
* should be the options of the referenced project, not the referencing project.
* @returns The final resolution mode of the import
*/
- function getModeForUsageLocation(
- file: {
- impliedNodeFormat?: ResolutionMode;
- },
- usage: StringLiteralLike,
- compilerOptions: CompilerOptions,
- ): ModuleKind.CommonJS | ModuleKind.ESNext | undefined;
+ function getModeForUsageLocation(file: SourceFile, usage: StringLiteralLike, compilerOptions: CompilerOptions): ResolutionMode;
function getConfigFileParsingDiagnostics(configFileParseResult: ParsedCommandLine): readonly Diagnostic[];
/**
* A function for determining if a given file is esm or cjs format, assuming modern node module resolution rules, as configured by the
@@ -9654,6 +9731,7 @@ declare namespace ts {
setTimeout?(callback: (...args: any[]) => void, ms: number, ...args: any[]): any;
/** If provided, will be used to reset existing delayed compilation */
clearTimeout?(timeoutId: any): void;
+ preferNonRecursiveWatch?: boolean;
}
interface ProgramHost<T extends BuilderProgram> {
/**
@@ -9776,6 +9854,7 @@ declare namespace ts {
dry?: boolean;
force?: boolean;
verbose?: boolean;
+ stopBuildOnErrors?: boolean;
incremental?: boolean;
assumeChangesOnlyAffectDirectDependencies?: boolean;
declaration?: boolean;
@@ -10743,6 +10822,10 @@ declare namespace ts {
*/
isIncomplete?: true;
entries: CompletionEntry[];
+ /**
+ * Default commit characters for the completion entries.
+ */
+ defaultCommitCharacters?: string[];
}
interface CompletionEntryDataAutoImport {
/**
@@ -10849,6 +10932,10 @@ declare namespace ts {
* is an auto-import.
*/
data?: CompletionEntryData;
+ /**
+ * If this completion entry is selected, typing a commit character will cause the entry to be accepted.
+ */
+ commitCharacters?: string[];
}
interface CompletionEntryLabelDetails {
/**