mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
🤖 Update TypeScript DOM Libs (#47445)
Co-authored-by: orta <orta@users.noreply.github.com>
This commit is contained in:
Vendored
+145
-59
@@ -207,7 +207,7 @@ interface ComputedEffectTiming extends EffectTiming {
|
||||
currentIteration?: number | null;
|
||||
endTime?: CSSNumberish;
|
||||
localTime?: CSSNumberish | null;
|
||||
progress?: CSSNumberish | null;
|
||||
progress?: number | null;
|
||||
startTime?: CSSNumberish;
|
||||
}
|
||||
|
||||
@@ -264,8 +264,8 @@ interface CredentialRequestOptions {
|
||||
}
|
||||
|
||||
interface CryptoKeyPair {
|
||||
privateKey?: CryptoKey;
|
||||
publicKey?: CryptoKey;
|
||||
privateKey: CryptoKey;
|
||||
publicKey: CryptoKey;
|
||||
}
|
||||
|
||||
interface CustomEventInit<T = any> extends EventInit {
|
||||
@@ -467,6 +467,18 @@ interface FileSystemFlags {
|
||||
exclusive?: boolean;
|
||||
}
|
||||
|
||||
interface FileSystemGetDirectoryOptions {
|
||||
create?: boolean;
|
||||
}
|
||||
|
||||
interface FileSystemGetFileOptions {
|
||||
create?: boolean;
|
||||
}
|
||||
|
||||
interface FileSystemRemoveOptions {
|
||||
recursive?: boolean;
|
||||
}
|
||||
|
||||
interface FocusEventInit extends UIEventInit {
|
||||
relatedTarget?: EventTarget | null;
|
||||
}
|
||||
@@ -920,7 +932,7 @@ interface NotificationOptions {
|
||||
requireInteraction?: boolean;
|
||||
silent?: boolean;
|
||||
tag?: string;
|
||||
timestamp?: DOMTimeStamp;
|
||||
timestamp?: EpochTimeStamp;
|
||||
vibrate?: VibratePattern;
|
||||
}
|
||||
|
||||
@@ -1152,7 +1164,7 @@ interface PublicKeyCredentialUserEntity extends PublicKeyCredentialEntity {
|
||||
|
||||
interface PushSubscriptionJSON {
|
||||
endpoint?: string;
|
||||
expirationTime?: DOMTimeStamp | null;
|
||||
expirationTime?: EpochTimeStamp | null;
|
||||
keys?: Record<string, string>;
|
||||
}
|
||||
|
||||
@@ -1179,7 +1191,7 @@ interface RTCAnswerOptions extends RTCOfferAnswerOptions {
|
||||
}
|
||||
|
||||
interface RTCCertificateExpiration {
|
||||
expires?: DOMTimeStamp;
|
||||
expires?: number;
|
||||
}
|
||||
|
||||
interface RTCConfiguration {
|
||||
@@ -1628,7 +1640,7 @@ interface StreamPipeOptions {
|
||||
}
|
||||
|
||||
interface StructuredSerializeOptions {
|
||||
transfer?: any[];
|
||||
transfer?: Transferable[];
|
||||
}
|
||||
|
||||
interface SubmitEventInit extends EventInit {
|
||||
@@ -1804,42 +1816,42 @@ interface ANGLE_instanced_arrays {
|
||||
}
|
||||
|
||||
interface ARIAMixin {
|
||||
ariaAtomic: string;
|
||||
ariaAutoComplete: string;
|
||||
ariaBusy: string;
|
||||
ariaChecked: string;
|
||||
ariaColCount: string;
|
||||
ariaColIndex: string;
|
||||
ariaColSpan: string;
|
||||
ariaCurrent: string;
|
||||
ariaDisabled: string;
|
||||
ariaExpanded: string;
|
||||
ariaHasPopup: string;
|
||||
ariaHidden: string;
|
||||
ariaKeyShortcuts: string;
|
||||
ariaLabel: string;
|
||||
ariaLevel: string;
|
||||
ariaLive: string;
|
||||
ariaModal: string;
|
||||
ariaMultiLine: string;
|
||||
ariaMultiSelectable: string;
|
||||
ariaOrientation: string;
|
||||
ariaPlaceholder: string;
|
||||
ariaPosInSet: string;
|
||||
ariaPressed: string;
|
||||
ariaReadOnly: string;
|
||||
ariaRequired: string;
|
||||
ariaRoleDescription: string;
|
||||
ariaRowCount: string;
|
||||
ariaRowIndex: string;
|
||||
ariaRowSpan: string;
|
||||
ariaSelected: string;
|
||||
ariaSetSize: string;
|
||||
ariaSort: string;
|
||||
ariaValueMax: string;
|
||||
ariaValueMin: string;
|
||||
ariaValueNow: string;
|
||||
ariaValueText: string;
|
||||
ariaAtomic: string | null;
|
||||
ariaAutoComplete: string | null;
|
||||
ariaBusy: string | null;
|
||||
ariaChecked: string | null;
|
||||
ariaColCount: string | null;
|
||||
ariaColIndex: string | null;
|
||||
ariaColSpan: string | null;
|
||||
ariaCurrent: string | null;
|
||||
ariaDisabled: string | null;
|
||||
ariaExpanded: string | null;
|
||||
ariaHasPopup: string | null;
|
||||
ariaHidden: string | null;
|
||||
ariaKeyShortcuts: string | null;
|
||||
ariaLabel: string | null;
|
||||
ariaLevel: string | null;
|
||||
ariaLive: string | null;
|
||||
ariaModal: string | null;
|
||||
ariaMultiLine: string | null;
|
||||
ariaMultiSelectable: string | null;
|
||||
ariaOrientation: string | null;
|
||||
ariaPlaceholder: string | null;
|
||||
ariaPosInSet: string | null;
|
||||
ariaPressed: string | null;
|
||||
ariaReadOnly: string | null;
|
||||
ariaRequired: string | null;
|
||||
ariaRoleDescription: string | null;
|
||||
ariaRowCount: string | null;
|
||||
ariaRowIndex: string | null;
|
||||
ariaRowSpan: string | null;
|
||||
ariaSelected: string | null;
|
||||
ariaSetSize: string | null;
|
||||
ariaSort: string | null;
|
||||
ariaValueMax: string | null;
|
||||
ariaValueMin: string | null;
|
||||
ariaValueNow: string | null;
|
||||
ariaValueText: string | null;
|
||||
}
|
||||
|
||||
/** A controller object that allows you to abort one or more DOM requests as and when desired. */
|
||||
@@ -1847,7 +1859,7 @@ interface AbortController {
|
||||
/** Returns the AbortSignal object associated with this object. */
|
||||
readonly signal: AbortSignal;
|
||||
/** Invoking this method will set this object's AbortSignal's aborted flag and signal to any observers that the associated activity is to be aborted. */
|
||||
abort(): void;
|
||||
abort(reason?: any): void;
|
||||
}
|
||||
|
||||
declare var AbortController: {
|
||||
@@ -1873,7 +1885,7 @@ interface AbortSignal extends EventTarget {
|
||||
declare var AbortSignal: {
|
||||
prototype: AbortSignal;
|
||||
new(): AbortSignal;
|
||||
// abort(): AbortSignal; - To be re-added in the future
|
||||
abort(reason?: any): AbortSignal;
|
||||
};
|
||||
|
||||
interface AbstractRange {
|
||||
@@ -3233,7 +3245,7 @@ declare var CacheStorage: {
|
||||
|
||||
interface CanvasCompositing {
|
||||
globalAlpha: number;
|
||||
globalCompositeOperation: string;
|
||||
globalCompositeOperation: GlobalCompositeOperation;
|
||||
}
|
||||
|
||||
interface CanvasDrawImage {
|
||||
@@ -3259,6 +3271,7 @@ interface CanvasDrawPath {
|
||||
interface CanvasFillStrokeStyles {
|
||||
fillStyle: string | CanvasGradient | CanvasPattern;
|
||||
strokeStyle: string | CanvasGradient | CanvasPattern;
|
||||
createConicGradient(startAngle: number, x: number, y: number): CanvasGradient;
|
||||
createLinearGradient(x0: number, y0: number, x1: number, y1: number): CanvasGradient;
|
||||
createPattern(image: CanvasImageSource, repetition: string | null): CanvasPattern | null;
|
||||
createRadialGradient(x0: number, y0: number, r0: number, x1: number, y1: number, r1: number): CanvasGradient;
|
||||
@@ -3582,6 +3595,8 @@ interface Crypto {
|
||||
/** Available only in secure contexts. */
|
||||
readonly subtle: SubtleCrypto;
|
||||
getRandomValues<T extends ArrayBufferView | null>(array: T): T;
|
||||
/** Available only in secure contexts. */
|
||||
randomUUID(): string;
|
||||
}
|
||||
|
||||
declare var Crypto: {
|
||||
@@ -4288,7 +4303,7 @@ interface Document extends Node, DocumentAndElementEventHandlers, DocumentOrShad
|
||||
readonly timeline: DocumentTimeline;
|
||||
/** Contains the title of the document. */
|
||||
title: string;
|
||||
readonly visibilityState: VisibilityState;
|
||||
readonly visibilityState: DocumentVisibilityState;
|
||||
/**
|
||||
* Sets or gets the color of the links that the user has visited.
|
||||
* @deprecated
|
||||
@@ -4928,8 +4943,10 @@ interface EventSource extends EventTarget {
|
||||
readonly CONNECTING: number;
|
||||
readonly OPEN: number;
|
||||
addEventListener<K extends keyof EventSourceEventMap>(type: K, listener: (this: EventSource, ev: EventSourceEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
||||
addEventListener(type: string, listener: (this: EventSource, event: MessageEvent) => any, options?: boolean | AddEventListenerOptions): void;
|
||||
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
||||
removeEventListener<K extends keyof EventSourceEventMap>(type: K, listener: (this: EventSource, ev: EventSourceEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
||||
removeEventListener(type: string, listener: (this: EventSource, event: MessageEvent) => any, options?: boolean | EventListenerOptions): void;
|
||||
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
||||
}
|
||||
|
||||
@@ -5071,6 +5088,19 @@ declare var FileSystemDirectoryEntry: {
|
||||
new(): FileSystemDirectoryEntry;
|
||||
};
|
||||
|
||||
/** Available only in secure contexts. */
|
||||
interface FileSystemDirectoryHandle extends FileSystemHandle {
|
||||
getDirectoryHandle(name: string, options?: FileSystemGetDirectoryOptions): Promise<FileSystemDirectoryHandle>;
|
||||
getFileHandle(name: string, options?: FileSystemGetFileOptions): Promise<FileSystemFileHandle>;
|
||||
removeEntry(name: string, options?: FileSystemRemoveOptions): Promise<void>;
|
||||
resolve(possibleDescendant: FileSystemHandle): Promise<string[] | null>;
|
||||
}
|
||||
|
||||
declare var FileSystemDirectoryHandle: {
|
||||
prototype: FileSystemDirectoryHandle;
|
||||
new(): FileSystemDirectoryHandle;
|
||||
};
|
||||
|
||||
interface FileSystemDirectoryReader {
|
||||
readEntries(successCallback: FileSystemEntriesCallback, errorCallback?: ErrorCallback): void;
|
||||
}
|
||||
@@ -5103,6 +5133,28 @@ declare var FileSystemFileEntry: {
|
||||
new(): FileSystemFileEntry;
|
||||
};
|
||||
|
||||
/** Available only in secure contexts. */
|
||||
interface FileSystemFileHandle extends FileSystemHandle {
|
||||
getFile(): Promise<File>;
|
||||
}
|
||||
|
||||
declare var FileSystemFileHandle: {
|
||||
prototype: FileSystemFileHandle;
|
||||
new(): FileSystemFileHandle;
|
||||
};
|
||||
|
||||
/** Available only in secure contexts. */
|
||||
interface FileSystemHandle {
|
||||
readonly kind: FileSystemHandleKind;
|
||||
readonly name: string;
|
||||
isSameEntry(other: FileSystemHandle): Promise<boolean>;
|
||||
}
|
||||
|
||||
declare var FileSystemHandle: {
|
||||
prototype: FileSystemHandle;
|
||||
new(): FileSystemHandle;
|
||||
};
|
||||
|
||||
/** Focus-related events like focus, blur, focusin, or focusout. */
|
||||
interface FocusEvent extends UIEvent {
|
||||
readonly relatedTarget: EventTarget | null;
|
||||
@@ -5305,7 +5357,7 @@ declare var GeolocationCoordinates: {
|
||||
/** Available only in secure contexts. */
|
||||
interface GeolocationPosition {
|
||||
readonly coords: GeolocationCoordinates;
|
||||
readonly timestamp: DOMTimeStamp;
|
||||
readonly timestamp: EpochTimeStamp;
|
||||
}
|
||||
|
||||
declare var GeolocationPosition: {
|
||||
@@ -6620,7 +6672,8 @@ interface HTMLImageElement extends HTMLElement {
|
||||
hspace: number;
|
||||
/** Sets or retrieves whether the image is a server-side image map. */
|
||||
isMap: boolean;
|
||||
loading: string;
|
||||
/** Sets or retrieves the policy for loading image elements that are outside the viewport. */
|
||||
loading: "eager" | "lazy";
|
||||
/**
|
||||
* Sets or retrieves a Uniform Resource Identifier (URI) to a long description of the object.
|
||||
* @deprecated
|
||||
@@ -7078,6 +7131,7 @@ interface HTMLMetaElement extends HTMLElement {
|
||||
content: string;
|
||||
/** Gets or sets information used to bind the value of a content attribute of a meta element to an HTTP response header. */
|
||||
httpEquiv: string;
|
||||
media: string;
|
||||
/** Sets or retrieves the value specified in the content attribute of the meta object. */
|
||||
name: string;
|
||||
/**
|
||||
@@ -7597,6 +7651,7 @@ declare var HTMLSlotElement: {
|
||||
|
||||
/** Provides special properties (beyond the regular HTMLElement object interface it also has available to it by inheritance) for manipulating <source> elements. */
|
||||
interface HTMLSourceElement extends HTMLElement {
|
||||
height: number;
|
||||
/** Gets or sets the intended media type of the media source. */
|
||||
media: string;
|
||||
sizes: string;
|
||||
@@ -7605,6 +7660,7 @@ interface HTMLSourceElement extends HTMLElement {
|
||||
srcset: string;
|
||||
/** Gets or sets the MIME type of a media resource. */
|
||||
type: string;
|
||||
width: number;
|
||||
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLSourceElement, 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: HTMLSourceElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
||||
@@ -8560,6 +8616,7 @@ interface IDBTransactionEventMap {
|
||||
interface IDBTransaction extends EventTarget {
|
||||
/** Returns the transaction's connection. */
|
||||
readonly db: IDBDatabase;
|
||||
readonly durability: IDBTransactionDurability;
|
||||
/** If the transaction was aborted, returns the error (a DOMException) providing the reason. */
|
||||
readonly error: DOMException | null;
|
||||
/** Returns the mode the transaction was created with ("readonly" or "readwrite"), or "versionchange" for an upgrade transaction. */
|
||||
@@ -8662,6 +8719,14 @@ interface InnerHTML {
|
||||
innerHTML: string;
|
||||
}
|
||||
|
||||
interface InputDeviceInfo extends MediaDeviceInfo {
|
||||
}
|
||||
|
||||
declare var InputDeviceInfo: {
|
||||
prototype: InputDeviceInfo;
|
||||
new(): InputDeviceInfo;
|
||||
};
|
||||
|
||||
interface InputEvent extends UIEvent {
|
||||
readonly data: string | null;
|
||||
readonly dataTransfer: DataTransfer | null;
|
||||
@@ -10563,7 +10628,7 @@ declare var PublicKeyCredential: {
|
||||
*/
|
||||
interface PushManager {
|
||||
getSubscription(): Promise<PushSubscription | null>;
|
||||
permissionState(options?: PushSubscriptionOptionsInit): Promise<PushPermissionState>;
|
||||
permissionState(options?: PushSubscriptionOptionsInit): Promise<PermissionState>;
|
||||
subscribe(options?: PushSubscriptionOptionsInit): Promise<PushSubscription>;
|
||||
}
|
||||
|
||||
@@ -10601,7 +10666,7 @@ declare var PushSubscriptionOptions: {
|
||||
};
|
||||
|
||||
interface RTCCertificate {
|
||||
readonly expires: DOMTimeStamp;
|
||||
readonly expires: EpochTimeStamp;
|
||||
getFingerprints(): RTCDtlsFingerprint[];
|
||||
}
|
||||
|
||||
@@ -13053,11 +13118,20 @@ declare var ServiceWorkerRegistration: {
|
||||
new(): ServiceWorkerRegistration;
|
||||
};
|
||||
|
||||
interface ShadowRootEventMap {
|
||||
"slotchange": Event;
|
||||
}
|
||||
|
||||
interface ShadowRoot extends DocumentFragment, DocumentOrShadowRoot, InnerHTML {
|
||||
readonly delegatesFocus: boolean;
|
||||
readonly host: Element;
|
||||
readonly mode: ShadowRootMode;
|
||||
onslotchange: ((this: ShadowRoot, ev: Event) => any) | null;
|
||||
/** 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;
|
||||
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
||||
removeEventListener<K extends keyof ShadowRootEventMap>(type: K, listener: (this: ShadowRoot, ev: ShadowRootEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
||||
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
||||
}
|
||||
|
||||
declare var ShadowRoot: {
|
||||
@@ -13350,6 +13424,7 @@ declare var StorageEvent: {
|
||||
/** Available only in secure contexts. */
|
||||
interface StorageManager {
|
||||
estimate(): Promise<StorageEstimate>;
|
||||
getDirectory(): Promise<FileSystemDirectoryHandle>;
|
||||
persist(): Promise<boolean>;
|
||||
persisted(): Promise<boolean>;
|
||||
}
|
||||
@@ -14111,6 +14186,13 @@ interface WEBGL_lose_context {
|
||||
restoreContext(): void;
|
||||
}
|
||||
|
||||
interface WEBGL_multi_draw {
|
||||
multiDrawArraysInstancedWEBGL(mode: GLenum, firstsList: Int32Array | GLint[], firstsOffset: GLuint, countsList: Int32Array | GLsizei[], countsOffset: GLuint, instanceCountsList: Int32Array | GLsizei[], instanceCountsOffset: GLuint, drawcount: GLsizei): void;
|
||||
multiDrawArraysWEBGL(mode: GLenum, firstsList: Int32Array | GLint[], firstsOffset: GLuint, countsList: Int32Array | GLsizei[], countsOffset: GLuint, drawcount: GLsizei): void;
|
||||
multiDrawElementsInstancedWEBGL(mode: GLenum, countsList: Int32Array | GLint[], countsOffset: GLuint, type: GLenum, offsetsList: Int32Array | GLsizei[], offsetsOffset: GLuint, instanceCountsList: Int32Array | GLsizei[], instanceCountsOffset: GLuint, drawcount: GLsizei): void;
|
||||
multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array | GLint[], countsOffset: GLuint, type: GLenum, offsetsList: Int32Array | GLsizei[], offsetsOffset: GLuint, drawcount: GLsizei): void;
|
||||
}
|
||||
|
||||
/** A WaveShaperNode always has exactly one input and one output. */
|
||||
interface WaveShaperNode extends AudioNode {
|
||||
curve: Float32Array | null;
|
||||
@@ -16276,12 +16358,13 @@ interface WindowOrWorkerGlobalScope {
|
||||
readonly performance: Performance;
|
||||
atob(data: string): string;
|
||||
btoa(data: string): string;
|
||||
clearInterval(handle?: number): void;
|
||||
clearTimeout(handle?: number): void;
|
||||
clearInterval(id?: number): void;
|
||||
clearTimeout(id?: number): void;
|
||||
createImageBitmap(image: ImageBitmapSource, options?: ImageBitmapOptions): Promise<ImageBitmap>;
|
||||
createImageBitmap(image: ImageBitmapSource, sx: number, sy: number, sw: number, sh: number, options?: ImageBitmapOptions): Promise<ImageBitmap>;
|
||||
fetch(input: RequestInfo, init?: RequestInit): Promise<Response>;
|
||||
queueMicrotask(callback: VoidFunction): void;
|
||||
reportError(e: any): void;
|
||||
setInterval(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;
|
||||
setTimeout(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;
|
||||
}
|
||||
@@ -16770,7 +16853,7 @@ declare namespace WebAssembly {
|
||||
|
||||
type ImportExportKind = "function" | "global" | "memory" | "table";
|
||||
type TableKind = "anyfunc" | "externref";
|
||||
type ValueType = "anyfunc" | "externref" | "f32" | "f64" | "i32" | "i64";
|
||||
type ValueType = "anyfunc" | "externref" | "f32" | "f64" | "i32" | "i64" | "v128";
|
||||
type ExportValue = Function | Global | Memory | Table;
|
||||
type Exports = Record<string, ExportValue>;
|
||||
type ImportValue = ExportValue | number;
|
||||
@@ -17550,12 +17633,13 @@ declare var origin: string;
|
||||
declare var performance: Performance;
|
||||
declare function atob(data: string): string;
|
||||
declare function btoa(data: string): string;
|
||||
declare function clearInterval(handle?: number): void;
|
||||
declare function clearTimeout(handle?: number): void;
|
||||
declare function clearInterval(id?: number): void;
|
||||
declare function clearTimeout(id?: number): void;
|
||||
declare function createImageBitmap(image: ImageBitmapSource, options?: ImageBitmapOptions): Promise<ImageBitmap>;
|
||||
declare function createImageBitmap(image: ImageBitmapSource, sx: number, sy: number, sw: number, sh: number, options?: ImageBitmapOptions): Promise<ImageBitmap>;
|
||||
declare function fetch(input: RequestInfo, init?: RequestInit): Promise<Response>;
|
||||
declare function queueMicrotask(callback: VoidFunction): void;
|
||||
declare function reportError(e: any): void;
|
||||
declare function setInterval(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;
|
||||
declare function setTimeout(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;
|
||||
declare var sessionStorage: Storage;
|
||||
@@ -17580,7 +17664,7 @@ type ConstrainDOMString = string | string[] | ConstrainDOMStringParameters;
|
||||
type ConstrainDouble = number | ConstrainDoubleRange;
|
||||
type ConstrainULong = number | ConstrainULongRange;
|
||||
type DOMHighResTimeStamp = number;
|
||||
type DOMTimeStamp = number;
|
||||
type EpochTimeStamp = number;
|
||||
type EventListenerOrEventListenerObject = EventListener | EventListenerObject;
|
||||
type Float32List = Float32Array | GLfloat[];
|
||||
type FormDataEntryValue = File | string;
|
||||
@@ -17664,17 +17748,21 @@ type DirectionSetting = "" | "lr" | "rl";
|
||||
type DisplayCaptureSurfaceType = "application" | "browser" | "monitor" | "window";
|
||||
type DistanceModelType = "exponential" | "inverse" | "linear";
|
||||
type DocumentReadyState = "complete" | "interactive" | "loading";
|
||||
type DocumentVisibilityState = "hidden" | "visible";
|
||||
type EndOfStreamError = "decode" | "network";
|
||||
type EndingType = "native" | "transparent";
|
||||
type FileSystemHandleKind = "directory" | "file";
|
||||
type FillMode = "auto" | "backwards" | "both" | "forwards" | "none";
|
||||
type FontFaceLoadStatus = "error" | "loaded" | "loading" | "unloaded";
|
||||
type FontFaceSetLoadStatus = "loaded" | "loading";
|
||||
type FullscreenNavigationUI = "auto" | "hide" | "show";
|
||||
type GamepadHapticActuatorType = "vibration";
|
||||
type GamepadMappingType = "" | "standard" | "xr-standard";
|
||||
type GlobalCompositeOperation = "color" | "color-burn" | "color-dodge" | "copy" | "darken" | "destination-atop" | "destination-in" | "destination-out" | "destination-over" | "difference" | "exclusion" | "hard-light" | "hue" | "lighten" | "lighter" | "luminosity" | "multiply" | "overlay" | "saturation" | "screen" | "soft-light" | "source-atop" | "source-in" | "source-out" | "source-over" | "xor";
|
||||
type HdrMetadataType = "smpteSt2086" | "smpteSt2094-10" | "smpteSt2094-40";
|
||||
type IDBCursorDirection = "next" | "nextunique" | "prev" | "prevunique";
|
||||
type IDBRequestReadyState = "done" | "pending";
|
||||
type IDBTransactionDurability = "default" | "relaxed" | "strict";
|
||||
type IDBTransactionMode = "readonly" | "readwrite" | "versionchange";
|
||||
type ImageOrientation = "flipY" | "none";
|
||||
type ImageSmoothingQuality = "high" | "low" | "medium";
|
||||
@@ -17712,7 +17800,6 @@ type PremultiplyAlpha = "default" | "none" | "premultiply";
|
||||
type PresentationStyle = "attachment" | "inline" | "unspecified";
|
||||
type PublicKeyCredentialType = "public-key";
|
||||
type PushEncryptionKeyName = "auth" | "p256dh";
|
||||
type PushPermissionState = "denied" | "granted" | "prompt";
|
||||
type RTCBundlePolicy = "balanced" | "max-bundle" | "max-compat";
|
||||
type RTCDataChannelState = "closed" | "closing" | "connecting" | "open";
|
||||
type RTCDegradationPreference = "balanced" | "maintain-framerate" | "maintain-resolution";
|
||||
@@ -17765,7 +17852,6 @@ type TouchType = "direct" | "stylus";
|
||||
type TransferFunction = "hlg" | "pq" | "srgb";
|
||||
type UserVerificationRequirement = "discouraged" | "preferred" | "required";
|
||||
type VideoFacingModeEnum = "environment" | "left" | "right" | "user";
|
||||
type VisibilityState = "hidden" | "visible";
|
||||
type WebGLPowerPreference = "default" | "high-performance" | "low-power";
|
||||
type WorkerType = "classic" | "module";
|
||||
type XMLHttpRequestResponseType = "" | "arraybuffer" | "blob" | "document" | "json" | "text";
|
||||
|
||||
Vendored
+7
@@ -243,6 +243,13 @@ interface WEBGL_draw_buffers {
|
||||
drawBuffersWEBGL(buffers: Iterable<GLenum>): void;
|
||||
}
|
||||
|
||||
interface WEBGL_multi_draw {
|
||||
multiDrawArraysInstancedWEBGL(mode: GLenum, firstsList: Int32Array | Iterable<GLint>, firstsOffset: GLuint, countsList: Int32Array | Iterable<GLsizei>, countsOffset: GLuint, instanceCountsList: Int32Array | Iterable<GLsizei>, instanceCountsOffset: GLuint, drawcount: GLsizei): void;
|
||||
multiDrawArraysWEBGL(mode: GLenum, firstsList: Int32Array | Iterable<GLint>, firstsOffset: GLuint, countsList: Int32Array | Iterable<GLsizei>, countsOffset: GLuint, drawcount: GLsizei): void;
|
||||
multiDrawElementsInstancedWEBGL(mode: GLenum, countsList: Int32Array | Iterable<GLint>, countsOffset: GLuint, type: GLenum, offsetsList: Int32Array | Iterable<GLsizei>, offsetsOffset: GLuint, instanceCountsList: Int32Array | Iterable<GLsizei>, instanceCountsOffset: GLuint, drawcount: GLsizei): void;
|
||||
multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array | Iterable<GLint>, countsOffset: GLuint, type: GLenum, offsetsList: Int32Array | Iterable<GLsizei>, offsetsOffset: GLuint, drawcount: GLsizei): void;
|
||||
}
|
||||
|
||||
interface WebGL2RenderingContextBase {
|
||||
clearBufferfv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLfloat>, srcOffset?: GLuint): void;
|
||||
clearBufferiv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLint>, srcOffset?: GLuint): void;
|
||||
|
||||
Vendored
+80
-17
@@ -70,8 +70,8 @@ interface CloseEventInit extends EventInit {
|
||||
}
|
||||
|
||||
interface CryptoKeyPair {
|
||||
privateKey?: CryptoKey;
|
||||
publicKey?: CryptoKey;
|
||||
privateKey: CryptoKey;
|
||||
publicKey: CryptoKey;
|
||||
}
|
||||
|
||||
interface CustomEventInit<T = any> extends EventInit {
|
||||
@@ -190,6 +190,18 @@ interface FilePropertyBag extends BlobPropertyBag {
|
||||
lastModified?: number;
|
||||
}
|
||||
|
||||
interface FileSystemGetDirectoryOptions {
|
||||
create?: boolean;
|
||||
}
|
||||
|
||||
interface FileSystemGetFileOptions {
|
||||
create?: boolean;
|
||||
}
|
||||
|
||||
interface FileSystemRemoveOptions {
|
||||
recursive?: boolean;
|
||||
}
|
||||
|
||||
interface FontFaceDescriptors {
|
||||
display?: string;
|
||||
featureSettings?: string;
|
||||
@@ -353,7 +365,7 @@ interface NotificationOptions {
|
||||
requireInteraction?: boolean;
|
||||
silent?: boolean;
|
||||
tag?: string;
|
||||
timestamp?: DOMTimeStamp;
|
||||
timestamp?: EpochTimeStamp;
|
||||
vibrate?: VibratePattern;
|
||||
}
|
||||
|
||||
@@ -402,7 +414,7 @@ interface PushEventInit extends ExtendableEventInit {
|
||||
|
||||
interface PushSubscriptionJSON {
|
||||
endpoint?: string;
|
||||
expirationTime?: DOMTimeStamp | null;
|
||||
expirationTime?: EpochTimeStamp | null;
|
||||
keys?: Record<string, string>;
|
||||
}
|
||||
|
||||
@@ -558,7 +570,7 @@ interface StreamPipeOptions {
|
||||
}
|
||||
|
||||
interface StructuredSerializeOptions {
|
||||
transfer?: any[];
|
||||
transfer?: Transferable[];
|
||||
}
|
||||
|
||||
interface TextDecodeOptions {
|
||||
@@ -645,7 +657,7 @@ interface AbortController {
|
||||
/** Returns the AbortSignal object associated with this object. */
|
||||
readonly signal: AbortSignal;
|
||||
/** Invoking this method will set this object's AbortSignal's aborted flag and signal to any observers that the associated activity is to be aborted. */
|
||||
abort(): void;
|
||||
abort(reason?: any): void;
|
||||
}
|
||||
|
||||
declare var AbortController: {
|
||||
@@ -671,7 +683,7 @@ interface AbortSignal extends EventTarget {
|
||||
declare var AbortSignal: {
|
||||
prototype: AbortSignal;
|
||||
new(): AbortSignal;
|
||||
// abort(): AbortSignal; - To be re-added in the future
|
||||
abort(reason?: any): AbortSignal;
|
||||
};
|
||||
|
||||
interface AbstractWorkerEventMap {
|
||||
@@ -885,6 +897,8 @@ interface Crypto {
|
||||
/** Available only in secure contexts. */
|
||||
readonly subtle: SubtleCrypto;
|
||||
getRandomValues<T extends ArrayBufferView | null>(array: T): T;
|
||||
/** Available only in secure contexts. */
|
||||
randomUUID(): string;
|
||||
}
|
||||
|
||||
declare var Crypto: {
|
||||
@@ -1338,8 +1352,10 @@ interface EventSource extends EventTarget {
|
||||
readonly CONNECTING: number;
|
||||
readonly OPEN: number;
|
||||
addEventListener<K extends keyof EventSourceEventMap>(type: K, listener: (this: EventSource, ev: EventSourceEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
||||
addEventListener(type: string, listener: (this: EventSource, event: MessageEvent) => any, options?: boolean | AddEventListenerOptions): void;
|
||||
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
||||
removeEventListener<K extends keyof EventSourceEventMap>(type: K, listener: (this: EventSource, ev: EventSourceEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
||||
removeEventListener(type: string, listener: (this: EventSource, event: MessageEvent) => any, options?: boolean | EventListenerOptions): void;
|
||||
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
||||
}
|
||||
|
||||
@@ -1498,6 +1514,41 @@ declare var FileReaderSync: {
|
||||
new(): FileReaderSync;
|
||||
};
|
||||
|
||||
/** Available only in secure contexts. */
|
||||
interface FileSystemDirectoryHandle extends FileSystemHandle {
|
||||
getDirectoryHandle(name: string, options?: FileSystemGetDirectoryOptions): Promise<FileSystemDirectoryHandle>;
|
||||
getFileHandle(name: string, options?: FileSystemGetFileOptions): Promise<FileSystemFileHandle>;
|
||||
removeEntry(name: string, options?: FileSystemRemoveOptions): Promise<void>;
|
||||
resolve(possibleDescendant: FileSystemHandle): Promise<string[] | null>;
|
||||
}
|
||||
|
||||
declare var FileSystemDirectoryHandle: {
|
||||
prototype: FileSystemDirectoryHandle;
|
||||
new(): FileSystemDirectoryHandle;
|
||||
};
|
||||
|
||||
/** Available only in secure contexts. */
|
||||
interface FileSystemFileHandle extends FileSystemHandle {
|
||||
getFile(): Promise<File>;
|
||||
}
|
||||
|
||||
declare var FileSystemFileHandle: {
|
||||
prototype: FileSystemFileHandle;
|
||||
new(): FileSystemFileHandle;
|
||||
};
|
||||
|
||||
/** Available only in secure contexts. */
|
||||
interface FileSystemHandle {
|
||||
readonly kind: FileSystemHandleKind;
|
||||
readonly name: string;
|
||||
isSameEntry(other: FileSystemHandle): Promise<boolean>;
|
||||
}
|
||||
|
||||
declare var FileSystemHandle: {
|
||||
prototype: FileSystemHandle;
|
||||
new(): FileSystemHandle;
|
||||
};
|
||||
|
||||
interface FontFace {
|
||||
ascentOverride: string;
|
||||
descentOverride: string;
|
||||
@@ -1961,6 +2012,7 @@ interface IDBTransactionEventMap {
|
||||
interface IDBTransaction extends EventTarget {
|
||||
/** Returns the transaction's connection. */
|
||||
readonly db: IDBDatabase;
|
||||
readonly durability: IDBTransactionDurability;
|
||||
/** If the transaction was aborted, returns the error (a DOMException) providing the reason. */
|
||||
readonly error: DOMException | null;
|
||||
/** Returns the mode the transaction was created with ("readonly" or "readwrite"), or "versionchange" for an upgrade transaction. */
|
||||
@@ -2461,7 +2513,7 @@ declare var PushEvent: {
|
||||
*/
|
||||
interface PushManager {
|
||||
getSubscription(): Promise<PushSubscription | null>;
|
||||
permissionState(options?: PushSubscriptionOptionsInit): Promise<PushPermissionState>;
|
||||
permissionState(options?: PushSubscriptionOptionsInit): Promise<PermissionState>;
|
||||
subscribe(options?: PushSubscriptionOptionsInit): Promise<PushSubscription>;
|
||||
}
|
||||
|
||||
@@ -2778,6 +2830,7 @@ declare var SharedWorkerGlobalScope: {
|
||||
/** Available only in secure contexts. */
|
||||
interface StorageManager {
|
||||
estimate(): Promise<StorageEstimate>;
|
||||
getDirectory(): Promise<FileSystemDirectoryHandle>;
|
||||
persisted(): Promise<boolean>;
|
||||
}
|
||||
|
||||
@@ -3114,6 +3167,13 @@ interface WEBGL_lose_context {
|
||||
restoreContext(): void;
|
||||
}
|
||||
|
||||
interface WEBGL_multi_draw {
|
||||
multiDrawArraysInstancedWEBGL(mode: GLenum, firstsList: Int32Array | GLint[], firstsOffset: GLuint, countsList: Int32Array | GLsizei[], countsOffset: GLuint, instanceCountsList: Int32Array | GLsizei[], instanceCountsOffset: GLuint, drawcount: GLsizei): void;
|
||||
multiDrawArraysWEBGL(mode: GLenum, firstsList: Int32Array | GLint[], firstsOffset: GLuint, countsList: Int32Array | GLsizei[], countsOffset: GLuint, drawcount: GLsizei): void;
|
||||
multiDrawElementsInstancedWEBGL(mode: GLenum, countsList: Int32Array | GLint[], countsOffset: GLuint, type: GLenum, offsetsList: Int32Array | GLsizei[], offsetsOffset: GLuint, instanceCountsList: Int32Array | GLsizei[], instanceCountsOffset: GLuint, drawcount: GLsizei): void;
|
||||
multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array | GLint[], countsOffset: GLuint, type: GLenum, offsetsList: Int32Array | GLsizei[], offsetsOffset: GLuint, drawcount: GLsizei): void;
|
||||
}
|
||||
|
||||
interface WebGL2RenderingContext extends WebGL2RenderingContextBase, WebGL2RenderingContextOverloads, WebGLRenderingContextBase {
|
||||
}
|
||||
|
||||
@@ -5055,7 +5115,7 @@ declare var WebSocket: {
|
||||
/** This ServiceWorker API interface represents the scope of a service worker client that is a document in a browser context, controlled by an active worker. The service worker client independently selects and uses a service worker for its own loading and sub-resources. */
|
||||
interface WindowClient extends Client {
|
||||
readonly focused: boolean;
|
||||
readonly visibilityState: VisibilityState;
|
||||
readonly visibilityState: DocumentVisibilityState;
|
||||
focus(): Promise<WindowClient>;
|
||||
navigate(url: string | URL): Promise<WindowClient | null>;
|
||||
}
|
||||
@@ -5076,12 +5136,13 @@ interface WindowOrWorkerGlobalScope {
|
||||
readonly performance: Performance;
|
||||
atob(data: string): string;
|
||||
btoa(data: string): string;
|
||||
clearInterval(handle?: number): void;
|
||||
clearTimeout(handle?: number): void;
|
||||
clearInterval(id?: number): void;
|
||||
clearTimeout(id?: number): void;
|
||||
createImageBitmap(image: ImageBitmapSource, options?: ImageBitmapOptions): Promise<ImageBitmap>;
|
||||
createImageBitmap(image: ImageBitmapSource, sx: number, sy: number, sw: number, sh: number, options?: ImageBitmapOptions): Promise<ImageBitmap>;
|
||||
fetch(input: RequestInfo, init?: RequestInit): Promise<Response>;
|
||||
queueMicrotask(callback: VoidFunction): void;
|
||||
reportError(e: any): void;
|
||||
setInterval(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;
|
||||
setTimeout(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;
|
||||
}
|
||||
@@ -5498,7 +5559,7 @@ declare namespace WebAssembly {
|
||||
|
||||
type ImportExportKind = "function" | "global" | "memory" | "table";
|
||||
type TableKind = "anyfunc" | "externref";
|
||||
type ValueType = "anyfunc" | "externref" | "f32" | "f64" | "i32" | "i64";
|
||||
type ValueType = "anyfunc" | "externref" | "f32" | "f64" | "i32" | "i64" | "v128";
|
||||
type ExportValue = Function | Global | Memory | Table;
|
||||
type Exports = Record<string, ExportValue>;
|
||||
type ImportValue = ExportValue | number;
|
||||
@@ -5610,12 +5671,13 @@ declare var origin: string;
|
||||
declare var performance: Performance;
|
||||
declare function atob(data: string): string;
|
||||
declare function btoa(data: string): string;
|
||||
declare function clearInterval(handle?: number): void;
|
||||
declare function clearTimeout(handle?: number): void;
|
||||
declare function clearInterval(id?: number): void;
|
||||
declare function clearTimeout(id?: number): void;
|
||||
declare function createImageBitmap(image: ImageBitmapSource, options?: ImageBitmapOptions): Promise<ImageBitmap>;
|
||||
declare function createImageBitmap(image: ImageBitmapSource, sx: number, sy: number, sw: number, sh: number, options?: ImageBitmapOptions): Promise<ImageBitmap>;
|
||||
declare function fetch(input: RequestInfo, init?: RequestInit): Promise<Response>;
|
||||
declare function queueMicrotask(callback: VoidFunction): void;
|
||||
declare function reportError(e: any): void;
|
||||
declare function setInterval(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;
|
||||
declare function setTimeout(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;
|
||||
declare function cancelAnimationFrame(handle: number): void;
|
||||
@@ -5632,7 +5694,7 @@ type BodyInit = ReadableStream | XMLHttpRequestBodyInit;
|
||||
type BufferSource = ArrayBufferView | ArrayBuffer;
|
||||
type CanvasImageSource = ImageBitmap | OffscreenCanvas;
|
||||
type DOMHighResTimeStamp = number;
|
||||
type DOMTimeStamp = number;
|
||||
type EpochTimeStamp = number;
|
||||
type EventListenerOrEventListenerObject = EventListener | EventListenerObject;
|
||||
type Float32List = Float32Array | GLfloat[];
|
||||
type FormDataEntryValue = File | string;
|
||||
@@ -5673,13 +5735,16 @@ type ClientTypes = "all" | "sharedworker" | "window" | "worker";
|
||||
type ColorGamut = "p3" | "rec2020" | "srgb";
|
||||
type ColorSpaceConversion = "default" | "none";
|
||||
type ConnectionType = "bluetooth" | "cellular" | "ethernet" | "mixed" | "none" | "other" | "unknown" | "wifi";
|
||||
type DocumentVisibilityState = "hidden" | "visible";
|
||||
type EndingType = "native" | "transparent";
|
||||
type FileSystemHandleKind = "directory" | "file";
|
||||
type FontFaceLoadStatus = "error" | "loaded" | "loading" | "unloaded";
|
||||
type FontFaceSetLoadStatus = "loaded" | "loading";
|
||||
type FrameType = "auxiliary" | "nested" | "none" | "top-level";
|
||||
type HdrMetadataType = "smpteSt2086" | "smpteSt2094-10" | "smpteSt2094-40";
|
||||
type IDBCursorDirection = "next" | "nextunique" | "prev" | "prevunique";
|
||||
type IDBRequestReadyState = "done" | "pending";
|
||||
type IDBTransactionDurability = "default" | "relaxed" | "strict";
|
||||
type IDBTransactionMode = "readonly" | "readwrite" | "versionchange";
|
||||
type ImageOrientation = "flipY" | "none";
|
||||
type KeyFormat = "jwk" | "pkcs8" | "raw" | "spki";
|
||||
@@ -5694,7 +5759,6 @@ type PermissionState = "denied" | "granted" | "prompt";
|
||||
type PredefinedColorSpace = "display-p3" | "srgb";
|
||||
type PremultiplyAlpha = "default" | "none" | "premultiply";
|
||||
type PushEncryptionKeyName = "auth" | "p256dh";
|
||||
type PushPermissionState = "denied" | "granted" | "prompt";
|
||||
type ReferrerPolicy = "" | "no-referrer" | "no-referrer-when-downgrade" | "origin" | "origin-when-cross-origin" | "same-origin" | "strict-origin" | "strict-origin-when-cross-origin" | "unsafe-url";
|
||||
type RequestCache = "default" | "force-cache" | "no-cache" | "no-store" | "only-if-cached" | "reload";
|
||||
type RequestCredentials = "include" | "omit" | "same-origin";
|
||||
@@ -5707,7 +5771,6 @@ type SecurityPolicyViolationEventDisposition = "enforce" | "report";
|
||||
type ServiceWorkerState = "activated" | "activating" | "installed" | "installing" | "parsed" | "redundant";
|
||||
type ServiceWorkerUpdateViaCache = "all" | "imports" | "none";
|
||||
type TransferFunction = "hlg" | "pq" | "srgb";
|
||||
type VisibilityState = "hidden" | "visible";
|
||||
type WebGLPowerPreference = "default" | "high-performance" | "low-power";
|
||||
type WorkerType = "classic" | "module";
|
||||
type XMLHttpRequestResponseType = "" | "arraybuffer" | "blob" | "document" | "json" | "text";
|
||||
|
||||
+7
@@ -80,6 +80,13 @@ interface WEBGL_draw_buffers {
|
||||
drawBuffersWEBGL(buffers: Iterable<GLenum>): void;
|
||||
}
|
||||
|
||||
interface WEBGL_multi_draw {
|
||||
multiDrawArraysInstancedWEBGL(mode: GLenum, firstsList: Int32Array | Iterable<GLint>, firstsOffset: GLuint, countsList: Int32Array | Iterable<GLsizei>, countsOffset: GLuint, instanceCountsList: Int32Array | Iterable<GLsizei>, instanceCountsOffset: GLuint, drawcount: GLsizei): void;
|
||||
multiDrawArraysWEBGL(mode: GLenum, firstsList: Int32Array | Iterable<GLint>, firstsOffset: GLuint, countsList: Int32Array | Iterable<GLsizei>, countsOffset: GLuint, drawcount: GLsizei): void;
|
||||
multiDrawElementsInstancedWEBGL(mode: GLenum, countsList: Int32Array | Iterable<GLint>, countsOffset: GLuint, type: GLenum, offsetsList: Int32Array | Iterable<GLsizei>, offsetsOffset: GLuint, instanceCountsList: Int32Array | Iterable<GLsizei>, instanceCountsOffset: GLuint, drawcount: GLsizei): void;
|
||||
multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array | Iterable<GLint>, countsOffset: GLuint, type: GLenum, offsetsList: Int32Array | Iterable<GLsizei>, offsetsOffset: GLuint, drawcount: GLsizei): void;
|
||||
}
|
||||
|
||||
interface WebGL2RenderingContextBase {
|
||||
clearBufferfv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLfloat>, srcOffset?: GLuint): void;
|
||||
clearBufferiv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLint>, srcOffset?: GLuint): void;
|
||||
|
||||
@@ -12,10 +12,10 @@ tests/cases/compiler/extendArray.ts(7,32): error TS2552: Cannot find name '_elem
|
||||
collect(fn:(e:_element) => _element[]) : any[];
|
||||
~~~~~~~~
|
||||
!!! error TS2552: Cannot find name '_element'. Did you mean 'Element'?
|
||||
!!! related TS2728 /.ts/lib.dom.d.ts:4829:13: 'Element' is declared here.
|
||||
!!! related TS2728 /.ts/lib.dom.d.ts:4844:13: 'Element' is declared here.
|
||||
~~~~~~~~
|
||||
!!! error TS2552: Cannot find name '_element'. Did you mean 'Element'?
|
||||
!!! related TS2728 /.ts/lib.dom.d.ts:4829:13: 'Element' is declared here.
|
||||
!!! related TS2728 /.ts/lib.dom.d.ts:4844:13: 'Element' is declared here.
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -10,7 +10,7 @@ tests/cases/compiler/intersectionsOfLargeUnions2.ts(31,15): error TS2536: Type '
|
||||
interface ElementTagNameMap {
|
||||
~~~~~~~~~~~~~~~~~
|
||||
!!! error TS2300: Duplicate identifier 'ElementTagNameMap'.
|
||||
!!! related TS6203 /.ts/lib.dom.d.ts:17143:6: 'ElementTagNameMap' was also declared here.
|
||||
!!! related TS6203 /.ts/lib.dom.d.ts:17226:6: 'ElementTagNameMap' was also declared here.
|
||||
[index: number]: HTMLElement
|
||||
}
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@ tests/cases/compiler/test.tsx(9,17): error TS2552: Cannot find name 'createEleme
|
||||
return <div />;
|
||||
~~~
|
||||
!!! error TS2552: Cannot find name 'createElement'. Did you mean 'frameElement'?
|
||||
!!! related TS2728 /.ts/lib.dom.d.ts:17166:13: 'frameElement' is declared here.
|
||||
!!! related TS2728 /.ts/lib.dom.d.ts:17249:13: 'frameElement' is declared here.
|
||||
}
|
||||
}
|
||||
|
||||
@@ -13,6 +13,6 @@ tests/cases/compiler/test.tsx(9,17): error TS2552: Cannot find name 'MyElement'.
|
||||
return <div />;
|
||||
~~~
|
||||
!!! error TS2552: Cannot find name 'MyElement'. Did you mean 'Element'?
|
||||
!!! related TS2728 /.ts/lib.dom.d.ts:4829:13: 'Element' is declared here.
|
||||
!!! related TS2728 /.ts/lib.dom.d.ts:4844:13: 'Element' is declared here.
|
||||
}
|
||||
}
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user