summaryrefslogtreecommitdiff
path: root/cli/dts
diff options
context:
space:
mode:
Diffstat (limited to 'cli/dts')
-rw-r--r--cli/dts/lib.dom.d.ts911
-rw-r--r--cli/dts/lib.dom.iterable.d.ts6
-rw-r--r--cli/dts/lib.es2015.core.d.ts4
-rw-r--r--cli/dts/lib.es2015.iterable.d.ts2
-rw-r--r--cli/dts/lib.es2015.symbol.wellknown.d.ts20
-rw-r--r--cli/dts/lib.es2018.asynciterable.d.ts2
-rw-r--r--cli/dts/lib.es2020.bigint.d.ts2
-rw-r--r--cli/dts/lib.es2020.intl.d.ts13
-rw-r--r--cli/dts/lib.es2020.symbol.wellknown.d.ts2
-rw-r--r--cli/dts/lib.es2021.d.ts24
-rw-r--r--cli/dts/lib.es2021.full.d.ts25
-rw-r--r--cli/dts/lib.es2021.promise.d.ts43
-rw-r--r--cli/dts/lib.es2021.string.d.ts35
-rw-r--r--cli/dts/lib.es2021.weakref.d.ts75
-rw-r--r--cli/dts/lib.es5.d.ts18
-rw-r--r--cli/dts/lib.esnext.d.ts5
-rw-r--r--cli/dts/lib.webworker.d.ts251
-rw-r--r--cli/dts/lib.webworker.iterable.d.ts2
-rw-r--r--cli/dts/typescript.d.ts873
19 files changed, 1113 insertions, 1200 deletions
diff --git a/cli/dts/lib.dom.d.ts b/cli/dts/lib.dom.d.ts
index 960a6800e..c5cd8c389 100644
--- a/cli/dts/lib.dom.d.ts
+++ b/cli/dts/lib.dom.d.ts
@@ -22,19 +22,24 @@ and limitations under the License.
/// DOM APIs
/////////////////////////////
-interface Account {
- displayName: string;
- id: string;
- imageURL?: string;
- name?: string;
- rpDisplayName: string;
-}
-
interface AddEventListenerOptions extends EventListenerOptions {
once?: boolean;
passive?: boolean;
}
+interface AddressErrors {
+ addressLine?: string;
+ city?: string;
+ country?: string;
+ dependentLocality?: string;
+ organization?: string;
+ phone?: string;
+ postalCode?: string;
+ recipient?: string;
+ region?: string;
+ sortingCode?: string;
+}
+
interface AesCbcParams extends Algorithm {
iv: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer;
}
@@ -84,13 +89,6 @@ interface AnimationPlaybackEventInit extends EventInit {
timelineTime?: number | null;
}
-interface AssertionOptions {
- allowList?: ScopedCredentialDescriptor[];
- extensions?: WebAuthnExtensions;
- rpId?: string;
- timeoutSeconds?: number;
-}
-
interface AssignedNodesOptions {
flatten?: boolean;
}
@@ -209,15 +207,6 @@ interface ChannelSplitterOptions extends AudioNodeOptions {
numberOfOutputs?: number;
}
-interface ClientData {
- challenge: string;
- extensions?: WebAuthnExtensions;
- hashAlg: string | Algorithm;
- origin: string;
- rpId: string;
- tokenBinding?: string;
-}
-
interface ClientQueryOptions {
includeUncontrolled?: boolean;
type?: ClientTypes;
@@ -365,10 +354,6 @@ interface DelayOptions extends AudioNodeOptions {
maxDelayTime?: number;
}
-interface DeviceLightEventInit extends EventInit {
- value?: number;
-}
-
interface DeviceMotionEventAccelerationInit {
x?: number | null;
y?: number | null;
@@ -966,9 +951,14 @@ interface PannerOptions extends AudioNodeOptions {
rolloffFactor?: number;
}
+interface PayerErrors {
+ email?: string;
+ name?: string;
+ phone?: string;
+}
+
interface PaymentCurrencyAmount {
currency: string;
- currencySystem?: string;
value: string;
}
@@ -992,6 +982,9 @@ interface PaymentDetailsModifier {
interface PaymentDetailsUpdate extends PaymentDetailsBase {
error?: string;
+ payerErrors?: PayerErrors;
+ paymentMethodErrors?: any;
+ shippingAddressErrors?: AddressErrors;
total?: PaymentItem;
}
@@ -1001,17 +994,23 @@ interface PaymentItem {
pending?: boolean;
}
+interface PaymentMethodChangeEventInit extends PaymentRequestUpdateEventInit {
+ methodDetails?: any;
+ methodName?: string;
+}
+
interface PaymentMethodData {
data?: any;
supportedMethods: string | string[];
}
interface PaymentOptions {
+ requestBillingAddress?: boolean;
requestPayerEmail?: boolean;
requestPayerName?: boolean;
requestPayerPhone?: boolean;
requestShipping?: boolean;
- shippingType?: string;
+ shippingType?: PaymentShippingType;
}
interface PaymentRequestUpdateEventInit extends EventInit {
@@ -1024,6 +1023,13 @@ interface PaymentShippingOption {
selected?: boolean;
}
+interface PaymentValidationErrors {
+ error?: string;
+ payer?: PayerErrors;
+ paymentMethod?: any;
+ shippingAddress?: AddressErrors;
+}
+
interface Pbkdf2Params extends Algorithm {
hash: HashAlgorithmIdentifier;
iterations: number;
@@ -1165,7 +1171,7 @@ interface QueuingStrategy<T = any> {
interface QueuingStrategyInit {
/**
* Creates a new ByteLengthQueuingStrategy with the provided high water mark.
- *
+ *
* Note that the provided high water mark will not be validated ahead of time. Instead, if it is negative, NaN, or not a number, the resulting ByteLengthQueuingStrategy will cause the corresponding stream constructor to throw.
*/
highWaterMark: number;
@@ -1184,12 +1190,11 @@ interface RTCConfiguration {
iceCandidatePoolSize?: number;
iceServers?: RTCIceServer[];
iceTransportPolicy?: RTCIceTransportPolicy;
- peerIdentity?: string;
rtcpMuxPolicy?: RTCRtcpMuxPolicy;
}
interface RTCDTMFToneChangeEventInit extends EventInit {
- tone: string;
+ tone?: string;
}
interface RTCDataChannelEventInit extends EventInit {
@@ -1202,7 +1207,6 @@ interface RTCDataChannelInit {
maxRetransmits?: number;
negotiated?: boolean;
ordered?: boolean;
- priority?: RTCPriorityType;
protocol?: string;
}
@@ -1222,7 +1226,6 @@ interface RTCErrorEventInit extends EventInit {
interface RTCErrorInit {
errorDetail: RTCErrorDetailType;
- httpRequestStatusCode?: number;
receivedAlert?: number;
sctpCauseCode?: number;
sdpLineNumber?: number;
@@ -1312,7 +1315,7 @@ interface RTCIceParameters {
}
interface RTCIceServer {
- credential?: string | RTCOAuthCredential;
+ credential?: string;
credentialType?: RTCIceCredentialType;
urls: string | string[];
username?: string;
@@ -1332,6 +1335,11 @@ interface RTCInboundRTPStreamStats extends RTCRTPStreamStats {
packetsReceived?: number;
}
+interface RTCLocalSessionDescriptionInit {
+ sdp?: string;
+ type?: RTCSdpType;
+}
+
interface RTCMediaStreamTrackStats extends RTCStats {
audioLevel?: number;
echoReturnLoss?: number;
@@ -1349,13 +1357,7 @@ interface RTCMediaStreamTrackStats extends RTCStats {
trackIdentifier?: string;
}
-interface RTCOAuthCredential {
- accessToken: string;
- macKey: string;
-}
-
interface RTCOfferAnswerOptions {
- voiceActivityDetection?: boolean;
}
interface RTCOfferOptions extends RTCOfferAnswerOptions {
@@ -1372,8 +1374,9 @@ interface RTCOutboundRTPStreamStats extends RTCRTPStreamStats {
}
interface RTCPeerConnectionIceErrorEventInit extends EventInit {
+ address?: string | null;
errorCode: number;
- hostCandidate?: string;
+ port?: number | null;
statusText?: string;
url?: string;
}
@@ -1438,16 +1441,9 @@ interface RTCRtpContributingSource {
timestamp: number;
}
-interface RTCRtpDecodingParameters extends RTCRtpCodingParameters {
-}
-
interface RTCRtpEncodingParameters extends RTCRtpCodingParameters {
active?: boolean;
- codecPayloadType?: number;
- dtx?: RTCDtxStatus;
maxBitrate?: number;
- maxFramerate?: number;
- ptime?: number;
scaleResolutionDownBy?: number;
}
@@ -1480,7 +1476,6 @@ interface RTCRtpParameters {
}
interface RTCRtpReceiveParameters extends RTCRtpParameters {
- encodings: RTCRtpDecodingParameters[];
}
interface RTCRtpRtxParameters {
@@ -1488,9 +1483,7 @@ interface RTCRtpRtxParameters {
}
interface RTCRtpSendParameters extends RTCRtpParameters {
- degradationPreference?: RTCDegradationPreference;
encodings: RTCRtpEncodingParameters[];
- priority?: RTCPriorityType;
transactionId: string;
}
@@ -1512,7 +1505,7 @@ interface RTCRtpUnhandled {
interface RTCSessionDescriptionInit {
sdp?: string;
- type?: RTCSdpType;
+ type: RTCSdpType;
}
interface RTCSrtpKeyParam {
@@ -1541,10 +1534,6 @@ interface RTCStats {
type?: RTCStatsType;
}
-interface RTCStatsEventInit extends EventInit {
- report: RTCStatsReport;
-}
-
interface RTCStatsReport {
}
@@ -1587,7 +1576,7 @@ interface ReadableWritablePair<R = any, W = any> {
readable: ReadableStream<R>;
/**
* Provides a convenient, chainable way of piping this readable stream through a transform stream (or any other { writable, readable } pair). It simply pipes the stream into the writable side of the supplied pair, and returns the readable side for further use.
- *
+ *
* Piping a stream will lock it for the duration of the pipe, preventing any other consumer from acquiring a reader.
*/
writable: WritableStream<W>;
@@ -1707,24 +1696,6 @@ interface SVGBoundingBoxOptions {
stroke?: boolean;
}
-interface ScopedCredentialDescriptor {
- id: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer | null;
- transports?: Transport[];
- type: ScopedCredentialType;
-}
-
-interface ScopedCredentialOptions {
- excludeList?: ScopedCredentialDescriptor[];
- extensions?: WebAuthnExtensions;
- rpId?: string;
- timeoutSeconds?: number;
-}
-
-interface ScopedCredentialParameters {
- algorithm: string | Algorithm;
- type: ScopedCredentialType;
-}
-
interface ScrollIntoViewOptions extends ScrollOptions {
block?: ScrollLogicalPosition;
inline?: ScrollLogicalPosition;
@@ -1752,14 +1723,6 @@ interface SecurityPolicyViolationEventInit extends EventInit {
violatedDirective?: string;
}
-interface ServiceWorkerMessageEventInit extends EventInit {
- data?: any;
- lastEventId?: string;
- origin?: string;
- ports?: MessagePort[] | null;
- source?: ServiceWorker | MessagePort | null;
-}
-
interface ShadowRootInit {
delegatesFocus?: boolean;
mode: ShadowRootMode;
@@ -1832,19 +1795,19 @@ interface StreamPipeOptions {
preventCancel?: boolean;
/**
* Pipes this readable stream to a given writable stream destination. The way in which the piping process behaves under various error conditions can be customized with a number of passed options. It returns a promise that fulfills when the piping process completes successfully, or rejects if any errors were encountered.
- *
+ *
* Piping a stream will lock it for the duration of the pipe, preventing any other consumer from acquiring a reader.
- *
+ *
* Errors and closures of the source and destination streams propagate as follows:
- *
+ *
* An error in this source readable stream will abort destination, unless preventAbort is truthy. The returned promise will be rejected with the source's error, or with any error that occurs during aborting the destination.
- *
+ *
* An error in destination will cancel this source readable stream, unless preventCancel is truthy. The returned promise will be rejected with the destination's error, or with any error that occurs during canceling the source.
- *
+ *
* When this source readable stream closes, destination will be closed, unless preventClose is truthy. The returned promise will be fulfilled once this process completes, unless an error is encountered while closing the destination, in which case it will be rejected with that error.
- *
+ *
* If destination starts out closed or closing, this source readable stream will be canceled, unless preventCancel is true. The returned promise will be rejected with an error indicating piping to a closed stream failed, or with any error that occurs during canceling the source.
- *
+ *
* The signal option can be set to an AbortSignal to allow aborting an ongoing pipe operation via the corresponding AbortController. In this case, this source readable stream will be canceled, and destination aborted, unless the respective options preventCancel or preventAbort are set.
*/
preventClose?: boolean;
@@ -1954,9 +1917,6 @@ interface WaveShaperOptions extends AudioNodeOptions {
oversample?: OverSampleType;
}
-interface WebAuthnExtensions {
-}
-
interface WebGLContextAttributes {
alpha?: boolean;
antialias?: boolean;
@@ -3404,7 +3364,7 @@ interface CanvasFilters {
interface CanvasGradient {
/**
* Adds a color stop with the given color to the gradient at the given offset. 0.0 is the offset at one end of the gradient, 1.0 is the offset at the other end.
- *
+ *
* Throws an "IndexSizeError" DOMException if the offset is out of range. Throws a "SyntaxError" DOMException if the color cannot be parsed.
*/
addColorStop(offset: number, color: string): void;
@@ -3571,13 +3531,13 @@ declare var CharacterData: {
interface ChildNode extends Node {
/**
* Inserts nodes just after node, while replacing strings in nodes with equivalent Text nodes.
- *
+ *
* Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated.
*/
after(...nodes: (Node | string)[]): void;
/**
* Inserts nodes just before node, while replacing strings in nodes with equivalent Text nodes.
- *
+ *
* Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated.
*/
before(...nodes: (Node | string)[]): void;
@@ -3587,7 +3547,7 @@ interface ChildNode extends Node {
remove(): void;
/**
* Replaces node with nodes, while replacing strings in nodes with equivalent Text nodes.
- *
+ *
* Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated.
*/
replaceWith(...nodes: (Node | string)[]): void;
@@ -3891,10 +3851,6 @@ declare var DOMImplementation: {
new(): DOMImplementation;
};
-interface DOML2DeprecatedColorProperty {
- color: string;
-}
-
interface DOMMatrix extends DOMMatrixReadOnly {
a: number;
b: number;
@@ -4005,11 +3961,11 @@ declare var DOMMatrixReadOnly: {
interface DOMParser {
/**
* Parses string using either the HTML or XML parser, according to type, and returns the resulting Document. type can be "text/html" (which will invoke the HTML parser), or any of "text/xml", "application/xml", "application/xhtml+xml", or "image/svg+xml" (which will invoke the XML parser).
- *
+ *
* For the XML parser, if string cannot be parsed, then the returned Document will contain elements describing the resulting error.
- *
+ *
* Note that script elements are not evaluated during parsing, and the resulting document's encoding will always be UTF-8.
- *
+ *
* Values other than the above for type will cause a TypeError exception to be thrown.
*/
parseFromString(string: string, type: DOMParserSupportedType): Document;
@@ -4161,16 +4117,16 @@ interface DOMTokenList {
readonly length: number;
/**
* Returns the associated set as string.
- *
+ *
* Can be set, to change the associated attribute.
*/
value: string;
toString(): string;
/**
* Adds all arguments passed, except those already present.
- *
+ *
* Throws a "SyntaxError" DOMException if one of the arguments is the empty string.
- *
+ *
* Throws an "InvalidCharacterError" DOMException if one of the arguments contains any ASCII whitespace.
*/
add(...tokens: string[]): void;
@@ -4184,35 +4140,35 @@ interface DOMTokenList {
item(index: number): string | null;
/**
* Removes arguments passed, if they are present.
- *
+ *
* Throws a "SyntaxError" DOMException if one of the arguments is the empty string.
- *
+ *
* Throws an "InvalidCharacterError" DOMException if one of the arguments contains any ASCII whitespace.
*/
remove(...tokens: string[]): void;
/**
* Replaces token with newToken.
- *
+ *
* Returns true if token was replaced with newToken, and false otherwise.
- *
+ *
* Throws a "SyntaxError" DOMException if one of the arguments is the empty string.
- *
+ *
* Throws an "InvalidCharacterError" DOMException if one of the arguments contains any ASCII whitespace.
*/
replace(oldToken: string, newToken: string): void;
/**
* Returns true if token is in the associated attribute's supported tokens. Returns false otherwise.
- *
+ *
* Throws a TypeError if the associated attribute has no supported tokens defined.
*/
supports(token: string): boolean;
/**
* If force is not given, "toggles" token, removing it if it's present and adding it if it's not present. If force is true, adds token (same as add()). If force is false, removes token (same as remove()).
- *
+ *
* Returns true if token is now present, and false otherwise.
- *
+ *
* Throws a "SyntaxError" DOMException if token is empty.
- *
+ *
* Throws an "InvalidCharacterError" DOMException if token contains any spaces.
*/
toggle(token: string, force?: boolean): boolean;
@@ -4242,17 +4198,17 @@ declare var DataCue: {
interface DataTransfer {
/**
* Returns the kind of operation that is currently selected. If the kind of operation isn't one of those that is allowed by the effectAllowed attribute, then the operation will fail.
- *
+ *
* Can be set, to change the selected operation.
- *
+ *
* The possible values are "none", "copy", "link", and "move".
*/
dropEffect: "none" | "copy" | "link" | "move";
/**
* Returns the kinds of operations that are to be allowed.
- *
+ *
* Can be set (during the dragstart event), to change the allowed operations.
- *
+ *
* The possible values are "none", "copy", "copyLink", "copyMove", "link", "linkMove", "move", "all", and "uninitialized",
*/
effectAllowed: "none" | "copy" | "copyLink" | "copyMove" | "link" | "linkMove" | "move" | "all" | "uninitialized";
@@ -4380,16 +4336,6 @@ declare var DeviceAcceleration: {
new(): DeviceAcceleration;
};
-/** The DeviceLightEvent provides web developers with information from photo sensors or similiar detectors about ambient light levels near the device. For example this may be useful to adjust the screen's brightness based on the current ambient light level in order to save energy or provide better readability. */
-interface DeviceLightEvent extends Event {
- readonly value: number;
-}
-
-declare var DeviceLightEvent: {
- prototype: DeviceLightEvent;
- new(typeArg: string, eventInitDict?: DeviceLightEventInit): DeviceLightEvent;
-};
-
/** The DeviceMotionEvent provides web developers with information about the speed of changes for the device's position and orientation. */
interface DeviceMotionEvent extends Event {
readonly acceleration: DeviceMotionEventAcceleration | null;
@@ -4523,15 +4469,15 @@ interface Document extends Node, DocumentAndElementEventHandlers, DocumentOrShad
readonly contentType: string;
/**
* Returns the HTTP cookies that apply to the Document. If there are no cookies or cookies can't be applied to this resource, the empty string will be returned.
- *
+ *
* Can be set, to add a new cookie to the element's set of HTTP cookies.
- *
+ *
* If the contents are sandboxed into a unique origin (e.g. in an iframe with the sandbox attribute), a "SecurityError" DOMException will be thrown on getting and setting.
*/
cookie: string;
/**
* Returns the script element, or the SVG script element, that is currently executing, as long as the element represents a classic script. In the case of reentrant script execution, returns the one that most recently started executing amongst those that have not yet finished executing.
- *
+ *
* Returns null if the Document is not currently executing a script or SVG script element (e.g., because the running script is an event handler, or a timeout), or if the currently executing script or SVG script element represents a module script.
*/
readonly currentScript: HTMLOrSVGScriptElement | null;
@@ -4654,7 +4600,7 @@ interface Document extends Node, DocumentAndElementEventHandlers, DocumentOrShad
vlinkColor: string;
/**
* Moves node from another document and returns it.
- *
+ *
* If node is a document, throws a "NotSupportedError" DOMException or, if node is a shadow root, throws a "HierarchyRequestError" DOMException.
*/
adoptNode<T extends Node>(source: T): T;
@@ -4698,17 +4644,17 @@ interface Document extends Node, DocumentAndElementEventHandlers, DocumentOrShad
createElement(tagName: string, options?: ElementCreationOptions): HTMLElement;
/**
* Returns an element with namespace namespace. Its namespace prefix will be everything before ":" (U+003E) in qualifiedName or null. Its local name will be everything after ":" (U+003E) in qualifiedName or qualifiedName.
- *
+ *
* If localName does not match the Name production an "InvalidCharacterError" DOMException will be thrown.
- *
+ *
* If one of the following conditions is true a "NamespaceError" DOMException will be thrown:
- *
+ *
* localName does not match the QName production.
* Namespace prefix is not null and namespace is the empty string.
* Namespace prefix is "xml" and namespace is not the XML namespace.
* qualifiedName or namespace prefix is "xmlns" and namespace is not the XMLNS namespace.
* namespace is the XMLNS namespace and neither qualifiedName nor namespace prefix is "xmlns".
- *
+ *
* When supplied, options's is can be used to create a customized built-in element.
*/
createElementNS(namespaceURI: "http://www.w3.org/1999/xhtml", qualifiedName: string): HTMLElement;
@@ -4724,7 +4670,6 @@ interface Document extends Node, DocumentAndElementEventHandlers, DocumentOrShad
createEvent(eventInterface: "CloseEvent"): CloseEvent;
createEvent(eventInterface: "CompositionEvent"): CompositionEvent;
createEvent(eventInterface: "CustomEvent"): CustomEvent;
- createEvent(eventInterface: "DeviceLightEvent"): DeviceLightEvent;
createEvent(eventInterface: "DeviceMotionEvent"): DeviceMotionEvent;
createEvent(eventInterface: "DeviceOrientationEvent"): DeviceOrientationEvent;
createEvent(eventInterface: "DragEvent"): DragEvent;
@@ -4739,10 +4684,6 @@ interface Document extends Node, DocumentAndElementEventHandlers, DocumentOrShad
createEvent(eventInterface: "InputEvent"): InputEvent;
createEvent(eventInterface: "KeyboardEvent"): KeyboardEvent;
createEvent(eventInterface: "ListeningStateChangedEvent"): ListeningStateChangedEvent;
- createEvent(eventInterface: "MSGestureEvent"): MSGestureEvent;
- createEvent(eventInterface: "MSMediaKeyMessageEvent"): MSMediaKeyMessageEvent;
- createEvent(eventInterface: "MSMediaKeyNeededEvent"): MSMediaKeyNeededEvent;
- createEvent(eventInterface: "MSPointerEvent"): MSPointerEvent;
createEvent(eventInterface: "MediaEncryptedEvent"): MediaEncryptedEvent;
createEvent(eventInterface: "MediaKeyMessageEvent"): MediaKeyMessageEvent;
createEvent(eventInterface: "MediaQueryListEvent"): MediaQueryListEvent;
@@ -4757,6 +4698,7 @@ interface Document extends Node, DocumentAndElementEventHandlers, DocumentOrShad
createEvent(eventInterface: "OfflineAudioCompletionEvent"): OfflineAudioCompletionEvent;
createEvent(eventInterface: "OverflowEvent"): OverflowEvent;
createEvent(eventInterface: "PageTransitionEvent"): PageTransitionEvent;
+ createEvent(eventInterface: "PaymentMethodChangeEvent"): PaymentMethodChangeEvent;
createEvent(eventInterface: "PaymentRequestUpdateEvent"): PaymentRequestUpdateEvent;
createEvent(eventInterface: "PermissionRequestedEvent"): PermissionRequestedEvent;
createEvent(eventInterface: "PointerEvent"): PointerEvent;
@@ -4773,12 +4715,10 @@ interface Document extends Node, DocumentAndElementEventHandlers, DocumentOrShad
createEvent(eventInterface: "RTCPeerConnectionIceErrorEvent"): RTCPeerConnectionIceErrorEvent;
createEvent(eventInterface: "RTCPeerConnectionIceEvent"): RTCPeerConnectionIceEvent;
createEvent(eventInterface: "RTCSsrcConflictEvent"): RTCSsrcConflictEvent;
- createEvent(eventInterface: "RTCStatsEvent"): RTCStatsEvent;
createEvent(eventInterface: "RTCTrackEvent"): RTCTrackEvent;
createEvent(eventInterface: "SVGZoomEvent"): SVGZoomEvent;
createEvent(eventInterface: "SVGZoomEvents"): SVGZoomEvent;
createEvent(eventInterface: "SecurityPolicyViolationEvent"): SecurityPolicyViolationEvent;
- createEvent(eventInterface: "ServiceWorkerMessageEvent"): ServiceWorkerMessageEvent;
createEvent(eventInterface: "SpeechRecognitionErrorEvent"): SpeechRecognitionErrorEvent;
createEvent(eventInterface: "SpeechRecognitionEvent"): SpeechRecognitionEvent;
createEvent(eventInterface: "SpeechSynthesisErrorEvent"): SpeechSynthesisErrorEvent;
@@ -4869,11 +4809,11 @@ interface Document extends Node, DocumentAndElementEventHandlers, DocumentOrShad
getElementsByTagName(qualifiedName: string): HTMLCollectionOf<Element>;
/**
* If namespace and localName are "*" returns a HTMLCollection of all descendant elements.
- *
+ *
* If only namespace is "*" returns a HTMLCollection of all descendant elements whose local name is localName.
- *
+ *
* If only localName is "*" returns a HTMLCollection of all descendant elements whose namespace is namespace.
- *
+ *
* Otherwise, returns a HTMLCollection of all descendant elements whose namespace is namespace and local name is localName.
*/
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1999/xhtml", localName: string): HTMLCollectionOf<HTMLElement>;
@@ -4889,7 +4829,7 @@ interface Document extends Node, DocumentAndElementEventHandlers, DocumentOrShad
hasFocus(): boolean;
/**
* Returns a copy of node. If deep is true, the copy also includes the node's descendants.
- *
+ *
* If node is a document or a shadow root, throws a "NotSupportedError" DOMException.
*/
importNode<T extends Node>(importedNode: T, deep: boolean): T;
@@ -4974,7 +4914,6 @@ interface DocumentEvent {
createEvent(eventInterface: "CloseEvent"): CloseEvent;
createEvent(eventInterface: "CompositionEvent"): CompositionEvent;
createEvent(eventInterface: "CustomEvent"): CustomEvent;
- createEvent(eventInterface: "DeviceLightEvent"): DeviceLightEvent;
createEvent(eventInterface: "DeviceMotionEvent"): DeviceMotionEvent;
createEvent(eventInterface: "DeviceOrientationEvent"): DeviceOrientationEvent;
createEvent(eventInterface: "DragEvent"): DragEvent;
@@ -4989,10 +4928,6 @@ interface DocumentEvent {
createEvent(eventInterface: "InputEvent"): InputEvent;
createEvent(eventInterface: "KeyboardEvent"): KeyboardEvent;
createEvent(eventInterface: "ListeningStateChangedEvent"): ListeningStateChangedEvent;
- createEvent(eventInterface: "MSGestureEvent"): MSGestureEvent;
- createEvent(eventInterface: "MSMediaKeyMessageEvent"): MSMediaKeyMessageEvent;
- createEvent(eventInterface: "MSMediaKeyNeededEvent"): MSMediaKeyNeededEvent;
- createEvent(eventInterface: "MSPointerEvent"): MSPointerEvent;
createEvent(eventInterface: "MediaEncryptedEvent"): MediaEncryptedEvent;
createEvent(eventInterface: "MediaKeyMessageEvent"): MediaKeyMessageEvent;
createEvent(eventInterface: "MediaQueryListEvent"): MediaQueryListEvent;
@@ -5007,6 +4942,7 @@ interface DocumentEvent {
createEvent(eventInterface: "OfflineAudioCompletionEvent"): OfflineAudioCompletionEvent;
createEvent(eventInterface: "OverflowEvent"): OverflowEvent;
createEvent(eventInterface: "PageTransitionEvent"): PageTransitionEvent;
+ createEvent(eventInterface: "PaymentMethodChangeEvent"): PaymentMethodChangeEvent;
createEvent(eventInterface: "PaymentRequestUpdateEvent"): PaymentRequestUpdateEvent;
createEvent(eventInterface: "PermissionRequestedEvent"): PermissionRequestedEvent;
createEvent(eventInterface: "PointerEvent"): PointerEvent;
@@ -5023,12 +4959,10 @@ interface DocumentEvent {
createEvent(eventInterface: "RTCPeerConnectionIceErrorEvent"): RTCPeerConnectionIceErrorEvent;
createEvent(eventInterface: "RTCPeerConnectionIceEvent"): RTCPeerConnectionIceEvent;
createEvent(eventInterface: "RTCSsrcConflictEvent"): RTCSsrcConflictEvent;
- createEvent(eventInterface: "RTCStatsEvent"): RTCStatsEvent;
createEvent(eventInterface: "RTCTrackEvent"): RTCTrackEvent;
createEvent(eventInterface: "SVGZoomEvent"): SVGZoomEvent;
createEvent(eventInterface: "SVGZoomEvents"): SVGZoomEvent;
createEvent(eventInterface: "SecurityPolicyViolationEvent"): SecurityPolicyViolationEvent;
- createEvent(eventInterface: "ServiceWorkerMessageEvent"): ServiceWorkerMessageEvent;
createEvent(eventInterface: "SpeechRecognitionErrorEvent"): SpeechRecognitionErrorEvent;
createEvent(eventInterface: "SpeechRecognitionEvent"): SpeechRecognitionEvent;
createEvent(eventInterface: "SpeechSynthesisErrorEvent"): SpeechSynthesisErrorEvent;
@@ -5276,7 +5210,7 @@ interface Element extends Node, Animatable, ChildNode, InnerHTML, NonDocumentTyp
removeAttributeNode(attr: Attr): Attr;
/**
* Displays element fullscreen and resolves promise when done.
- *
+ *
* When supplied, options's navigationUI member indicates whether showing navigation UI while in fullscreen is preferred or not. If set to "show", navigation simplicity is preferred over screen space, and if set to "hide", more screen space is preferred. User agents are always free to honor user preference over the application's. The default value "auto" indicates no application preference.
*/
requestFullscreen(options?: FullscreenOptions): Promise<void>;
@@ -5301,7 +5235,7 @@ interface Element extends Node, Animatable, ChildNode, InnerHTML, NonDocumentTyp
setPointerCapture(pointerId: number): void;
/**
* If force is not given, "toggles" qualifiedName, removing it if it is present and adding it if it is not present. If force is true, adds qualifiedName. If force is false, removes qualifiedName.
- *
+ *
* Returns true if qualifiedName is now present, and false otherwise.
*/
toggleAttribute(qualifiedName: string, force?: boolean): boolean;
@@ -5471,15 +5405,15 @@ declare var EventSource: {
interface EventTarget {
/**
* Appends an event listener for events whose type attribute value is type. The callback argument sets the callback that will be invoked when the event is dispatched.
- *
+ *
* The options argument sets listener-specific options. For compatibility this can be a boolean, in which case the method behaves exactly as if the value was specified as options's capture.
- *
+ *
* When set to true, options's capture prevents callback from being invoked when the event's eventPhase attribute value is BUBBLING_PHASE. When false (or not present), callback will not be invoked when event's eventPhase attribute value is CAPTURING_PHASE. Either way, callback will be invoked if event's eventPhase attribute value is AT_TARGET.
- *
+ *
* When set to true, options's passive indicates that the callback will not cancel the event by invoking preventDefault(). This is used to enable performance optimizations described in ยง 2.8 Observing event listeners.
- *
+ *
* When set to true, options's once indicates that the callback will only be invoked once after which the event listener will be removed.
- *
+ *
* The event listener is appended to target's event listener list and is not appended if it has the same type, callback, and capture.
*/
addEventListener(type: string, listener: EventListenerOrEventListenerObject | null, options?: boolean | AddEventListenerOptions): void;
@@ -6146,9 +6080,9 @@ interface HTMLAllCollection {
item(nameOrIndex?: string): HTMLCollection | Element | null;
/**
* Returns the item with ID or name name from the collection.
- *
+ *
* If there are multiple matching items, then an HTMLCollection object containing all those elements is returned.
- *
+ *
* Only button, form, iframe, input, map, meta, object, select, and textarea elements can have a name for the purpose of this method; their name is given by the value of their name attribute.
*/
namedItem(name: string): HTMLCollection | Element | null;
@@ -6360,29 +6294,6 @@ declare var HTMLBaseElement: {
new(): HTMLBaseElement;
};
-/** Provides special properties (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating <basefont> elements. */
-interface HTMLBaseFontElement extends HTMLElement, DOML2DeprecatedColorProperty {
- /**
- * Sets or retrieves the current typeface family.
- */
- /** @deprecated */
- face: string;
- /**
- * Sets or retrieves the font size of the object.
- */
- /** @deprecated */
- size: number;
- addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLBaseFontElement, 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: HTMLBaseFontElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
-}
-
-declare var HTMLBaseFontElement: {
- prototype: HTMLBaseFontElement;
- new(): HTMLBaseFontElement;
-};
-
interface HTMLBodyElementEventMap extends HTMLElementEventMap, WindowEventHandlersEventMap {
"orientationchange": Event;
}
@@ -6809,7 +6720,7 @@ declare var HTMLFontElement: {
interface HTMLFormControlsCollection extends HTMLCollectionBase {
/**
* Returns the item with ID or name name from the collection.
- *
+ *
* If there are multiple matching items, then a RadioNodeList object containing all those elements is returned.
*/
namedItem(name: string): RadioNodeList | Element | null;
@@ -8058,25 +7969,25 @@ declare var HTMLOptionElement: {
interface HTMLOptionsCollection extends HTMLCollectionOf<HTMLOptionElement> {
/**
* Returns the number of elements in the collection.
- *
+ *
* 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.
*/
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.
*/
selectedIndex: number;
/**
* Inserts element before the node given by before.
- *
+ *
* The before argument can be a number, in which case element is inserted before the item with that number, or an element from the collection, in which case element is inserted before that element.
- *
+ *
* 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.
*/
add(element: HTMLOptionElement | HTMLOptGroupElement, before?: HTMLElement | number | null): void;
@@ -9155,15 +9066,15 @@ interface IDBCursor {
continuePrimaryKey(key: IDBValidKey, primaryKey: IDBValidKey): void;
/**
* Delete the record pointed at by the cursor with a new value.
- *
+ *
* If successful, request's result will be undefined.
*/
delete(): IDBRequest<undefined>;
/**
* Updated the record pointed at by the cursor with a new value.
- *
+ *
* Throws a "DataError" DOMException if the effective object store uses in-line keys and the key would have changed.
- *
+ *
* If successful, request's result will be the record's key.
*/
update(value: any): IDBRequest<IDBValidKey>;
@@ -9218,13 +9129,13 @@ interface IDBDatabase extends EventTarget {
close(): void;
/**
* Creates a new object store with the given name and options and returns a new IDBObjectStore.
- *
+ *
* Throws a "InvalidStateError" DOMException if not called within an upgrade transaction.
*/
createObjectStore(name: string, options?: IDBObjectStoreParameters): IDBObjectStore;
/**
* Deletes the object store with the given name.
- *
+ *
* Throws a "InvalidStateError" DOMException if not called within an upgrade transaction.
*/
deleteObjectStore(name: string): void;
@@ -9247,7 +9158,7 @@ declare var IDBDatabase: {
interface IDBFactory {
/**
* Compares two values as keys. Returns -1 if key1 precedes key2, 1 if key2 precedes key1, and 0 if the keys are equal.
- *
+ *
* Throws a "DataError" DOMException if either input is not a valid key.
*/
cmp(first: any, second: any): number;
@@ -9281,43 +9192,43 @@ interface IDBIndex {
readonly unique: boolean;
/**
* Retrieves the number of records matching the given key or key range in query.
- *
+ *
* If successful, request's result will be the count.
*/
count(key?: IDBValidKey | IDBKeyRange): IDBRequest<number>;
/**
* Retrieves the value of the first record matching the given key or key range in query.
- *
+ *
* If successful, request's result will be the value, or undefined if there was no matching record.
*/
get(key: IDBValidKey | IDBKeyRange): IDBRequest<any | undefined>;
/**
* Retrieves the values of the records matching the given key or key range in query (up to count if given).
- *
+ *
* If successful, request's result will be an Array of the values.
*/
getAll(query?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<any[]>;
/**
* Retrieves the keys of records matching the given key or key range in query (up to count if given).
- *
+ *
* If successful, request's result will be an Array of the keys.
*/
getAllKeys(query?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<IDBValidKey[]>;
/**
* Retrieves the key of the first record matching the given key or key range in query.
- *
+ *
* If successful, request's result will be the key, or undefined if there was no matching record.
*/
getKey(key: IDBValidKey | IDBKeyRange): IDBRequest<IDBValidKey | undefined>;
/**
* Opens a cursor over the records matching query, ordered by direction. If query is null, all records in index are matched.
- *
+ *
* If successful, request's result will be an IDBCursorWithValue, or null if there were no matching records.
*/
openCursor(query?: IDBValidKey | IDBKeyRange | null, direction?: IDBCursorDirection): IDBRequest<IDBCursorWithValue | null>;
/**
* Opens a cursor with key only flag set over the records matching query, ordered by direction. If query is null, all records in index are matched.
- *
+ *
* If successful, request's result will be an IDBCursor, or null if there were no matching records.
*/
openKeyCursor(query?: IDBValidKey | IDBKeyRange | null, direction?: IDBCursorDirection): IDBRequest<IDBCursor | null>;
@@ -9397,88 +9308,88 @@ interface IDBObjectStore {
readonly transaction: IDBTransaction;
/**
* Adds or updates a record in store with the given value and key.
- *
+ *
* If the store uses in-line keys and key is specified a "DataError" DOMException will be thrown.
- *
+ *
* If put() is used, any existing record with the key will be replaced. If add() is used, and if a record with the key already exists the request will fail, with request's error set to a "ConstraintError" DOMException.
- *
+ *
* If successful, request's result will be the record's key.
*/
add(value: any, key?: IDBValidKey): IDBRequest<IDBValidKey>;
/**
* Deletes all records in store.
- *
+ *
* If successful, request's result will be undefined.
*/
clear(): IDBRequest<undefined>;
/**
* Retrieves the number of records matching the given key or key range in query.
- *
+ *
* If successful, request's result will be the count.
*/
count(key?: IDBValidKey | IDBKeyRange): IDBRequest<number>;
/**
* Creates a new index in store with the given name, keyPath and options and returns a new IDBIndex. If the keyPath and options define constraints that cannot be satisfied with the data already in store the upgrade transaction will abort with a "ConstraintError" DOMException.
- *
+ *
* Throws an "InvalidStateError" DOMException if not called within an upgrade transaction.
*/
createIndex(name: string, keyPath: string | string[], options?: IDBIndexParameters): IDBIndex;
/**
* Deletes records in store with the given key or in the given key range in query.
- *
+ *
* If successful, request's result will be undefined.
*/
delete(key: IDBValidKey | IDBKeyRange): IDBRequest<undefined>;
/**
* Deletes the index in store with the given name.
- *
+ *
* Throws an "InvalidStateError" DOMException if not called within an upgrade transaction.
*/
deleteIndex(name: string): void;
/**
* Retrieves the value of the first record matching the given key or key range in query.
- *
+ *
* If successful, request's result will be the value, or undefined if there was no matching record.
*/
get(query: IDBValidKey | IDBKeyRange): IDBRequest<any | undefined>;
/**
* Retrieves the values of the records matching the given key or key range in query (up to count if given).
- *
+ *
* If successful, request's result will be an Array of the values.
*/
getAll(query?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<any[]>;
/**
* Retrieves the keys of records matching the given key or key range in query (up to count if given).
- *
+ *
* If successful, request's result will be an Array of the keys.
*/
getAllKeys(query?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<IDBValidKey[]>;
/**
* Retrieves the key of the first record matching the given key or key range in query.
- *
+ *
* If successful, request's result will be the key, or undefined if there was no matching record.
*/
getKey(query: IDBValidKey | IDBKeyRange): IDBRequest<IDBValidKey | undefined>;
index(name: string): IDBIndex;
/**
* Opens a cursor over the records matching query, ordered by direction. If query is null, all records in store are matched.
- *
+ *
* If successful, request's result will be an IDBCursorWithValue pointing at the first matching record, or null if there were no matching records.
*/
openCursor(query?: IDBValidKey | IDBKeyRange | null, direction?: IDBCursorDirection): IDBRequest<IDBCursorWithValue | null>;
/**
* Opens a cursor with key only flag set over the records matching query, ordered by direction. If query is null, all records in store are matched.
- *
+ *
* If successful, request's result will be an IDBCursor pointing at the first matching record, or null if there were no matching records.
*/
openKeyCursor(query?: IDBValidKey | IDBKeyRange | null, direction?: IDBCursorDirection): IDBRequest<IDBCursor | null>;
/**
* Adds or updates a record in store with the given value and key.
- *
+ *
* If the store uses in-line keys and key is specified a "DataError" DOMException will be thrown.
- *
+ *
* If put() is used, any existing record with the key will be replaced. If add() is used, and if a record with the key already exists the request will fail, with request's error set to a "ConstraintError" DOMException.
- *
+ *
* If successful, request's result will be the record's key.
*/
put(value: any, key?: IDBValidKey): IDBRequest<IDBValidKey>;
@@ -9798,25 +9709,25 @@ interface Location {
readonly ancestorOrigins: DOMStringList;
/**
* Returns the Location object's URL's fragment (includes leading "#" if non-empty).
- *
+ *
* Can be set, to navigate to the same URL with a changed fragment (ignores leading "#").
*/
hash: string;
/**
* Returns the Location object's URL's host and port (if different from the default port for the scheme).
- *
+ *
* Can be set, to navigate to the same URL with a changed host and port.
*/
host: string;
/**
* Returns the Location object's URL's host.
- *
+ *
* Can be set, to navigate to the same URL with a changed host.
*/
hostname: string;
/**
* Returns the Location object's URL.
- *
+ *
* Can be set, to navigate to the given URL.
*/
href: string;
@@ -9827,25 +9738,25 @@ interface Location {
readonly origin: string;
/**
* Returns the Location object's URL's path.
- *
+ *
* Can be set, to navigate to the same URL with a changed path.
*/
pathname: string;
/**
* Returns the Location object's URL's port.
- *
+ *
* Can be set, to navigate to the same URL with a changed port.
*/
port: string;
/**
* Returns the Location object's URL's scheme.
- *
+ *
* Can be set, to navigate to the same URL with a changed scheme.
*/
protocol: string;
/**
* Returns the Location object's URL's query (includes leading "?" if non-empty).
- *
+ *
* Can be set, to navigate to the same URL with a changed query (ignores leading "?").
*/
search: string;
@@ -9938,43 +9849,6 @@ declare var MSGesture: {
new(): MSGesture;
};
-/** The MSGestureEvent is a proprietary interface specific to Internet Explorer and Microsoft Edge which represents events that occur due to touch gestures. Events using this interface include MSGestureStart, MSGestureEnd, MSGestureTap, MSGestureHold, MSGestureChange, and MSInertiaStart. */
-interface MSGestureEvent extends UIEvent {
- readonly clientX: number;
- readonly clientY: number;
- readonly expansion: number;
- readonly gestureObject: any;
- readonly hwTimestamp: number;
- readonly offsetX: number;
- readonly offsetY: number;
- readonly rotation: number;
- readonly scale: number;
- readonly screenX: number;
- readonly screenY: number;
- readonly translationX: number;
- readonly translationY: number;
- readonly velocityAngular: number;
- readonly velocityExpansion: number;
- readonly velocityX: number;
- readonly velocityY: number;
- initGestureEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, viewArg: Window, detailArg: number, screenXArg: number, screenYArg: number, clientXArg: number, clientYArg: number, offsetXArg: number, offsetYArg: number, translationXArg: number, translationYArg: number, scaleArg: number, expansionArg: number, rotationArg: number, velocityXArg: number, velocityYArg: number, velocityExpansionArg: number, velocityAngularArg: number, hwTimestampArg: number): void;
- readonly MSGESTURE_FLAG_BEGIN: number;
- readonly MSGESTURE_FLAG_CANCEL: number;
- readonly MSGESTURE_FLAG_END: number;
- readonly MSGESTURE_FLAG_INERTIA: number;
- readonly MSGESTURE_FLAG_NONE: number;
-}
-
-declare var MSGestureEvent: {
- prototype: MSGestureEvent;
- new(): MSGestureEvent;
- readonly MSGESTURE_FLAG_BEGIN: number;
- readonly MSGESTURE_FLAG_CANCEL: number;
- readonly MSGESTURE_FLAG_END: number;
- readonly MSGESTURE_FLAG_INERTIA: number;
- readonly MSGESTURE_FLAG_NONE: number;
-};
-
/** The msGraphicsTrust() constructor returns an object that provides properties for info on protected video playback. */
interface MSGraphicsTrust {
readonly constrictionActive: boolean;
@@ -10036,25 +9910,6 @@ declare var MSMediaKeyError: {
readonly MS_MEDIA_KEYERR_UNKNOWN: number;
};
-interface MSMediaKeyMessageEvent extends Event {
- readonly destinationURL: string | null;
- readonly message: Uint8Array;
-}
-
-declare var MSMediaKeyMessageEvent: {
- prototype: MSMediaKeyMessageEvent;
- new(): MSMediaKeyMessageEvent;
-};
-
-interface MSMediaKeyNeededEvent extends Event {
- readonly initData: Uint8Array | null;
-}
-
-declare var MSMediaKeyNeededEvent: {
- prototype: MSMediaKeyNeededEvent;
- new(): MSMediaKeyNeededEvent;
-};
-
interface MSMediaKeySession extends EventTarget {
readonly error: MSMediaKeyError | null;
readonly keySystem: string;
@@ -10089,29 +9944,6 @@ interface MSNavigatorDoNotTrack {
storeWebWideTrackingException(args: StoreExceptionsInformation): void;
}
-interface MSPointerEvent extends MouseEvent {
- readonly currentPoint: any;
- readonly height: number;
- readonly hwTimestamp: number;
- readonly intermediatePoints: any;
- readonly isPrimary: boolean;
- readonly pointerId: number;
- readonly pointerType: any;
- readonly pressure: number;
- readonly rotation: number;
- readonly tiltX: number;
- readonly tiltY: number;
- readonly width: number;
- getCurrentPoint(element: Element): void;
- getIntermediatePoints(element: Element): void;
- initPointerEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, viewArg: Window, detailArg: number, screenXArg: number, screenYArg: number, clientXArg: number, clientYArg: number, ctrlKeyArg: boolean, altKeyArg: boolean, shiftKeyArg: boolean, metaKeyArg: boolean, buttonArg: number, relatedTargetArg: EventTarget, offsetXArg: number, offsetYArg: number, widthArg: number, heightArg: number, pressure: number, rotation: number, tiltX: number, tiltY: number, pointerIdArg: number, pointerType: any, hwTimestampArg: number, isPrimary: boolean): void;
-}
-
-declare var MSPointerEvent: {
- prototype: MSPointerEvent;
- new(typeArg: string, eventInitDict?: PointerEventInit): MSPointerEvent;
-};
-
interface MSStream {
readonly type: string;
msClose(): void;
@@ -10436,7 +10268,6 @@ declare var MediaStreamEvent: {
interface MediaStreamTrackEventMap {
"ended": Event;
- "isolationchange": Event;
"mute": Event;
"unmute": Event;
}
@@ -10445,12 +10276,10 @@ interface MediaStreamTrackEventMap {
interface MediaStreamTrack extends EventTarget {
enabled: boolean;
readonly id: string;
- readonly isolated: boolean;
readonly kind: string;
readonly label: string;
readonly muted: boolean;
onended: ((this: MediaStreamTrack, ev: Event) => any) | null;
- onisolationchange: ((this: MediaStreamTrack, ev: Event) => any) | null;
onmute: ((this: MediaStreamTrack, ev: Event) => any) | null;
onunmute: ((this: MediaStreamTrack, ev: Event) => any) | null;
readonly readyState: MediaStreamTrackState;
@@ -10550,7 +10379,7 @@ interface MessagePort extends EventTarget {
close(): void;
/**
* Posts a message through the channel. Objects listed in transfer are transferred, not just cloned, meaning that they are no longer usable on the sending side.
- *
+ *
* Throws a "DataCloneError" DOMException if transfer contains duplicate objects or port, or if message could not be cloned.
*/
postMessage(message: any, transfer: Transferable[]): void;
@@ -10668,7 +10497,7 @@ interface MutationObserver {
disconnect(): void;
/**
* Instructs the user agent to observe a given target (a node) and report any mutations based on the criteria given by options (an object).
- *
+ *
* The options argument allows for setting mutation observation options via object members.
*/
observe(target: Node, options?: MutationObserverInit): void;
@@ -11258,27 +11087,27 @@ declare var OfflineAudioContext: {
interface OffscreenCanvas extends EventTarget {
/**
* These attributes return the dimensions of the OffscreenCanvas object's bitmap.
- *
+ *
* They can be set, to replace the bitmap with a new, transparent black bitmap of the specified dimensions (effectively resizing it).
*/
height: number;
/**
* These attributes return the dimensions of the OffscreenCanvas object's bitmap.
- *
+ *
* They can be set, to replace the bitmap with a new, transparent black bitmap of the specified dimensions (effectively resizing it).
*/
width: number;
/**
* Returns a promise that will fulfill with a new Blob object representing a file containing the image in the OffscreenCanvas object.
- *
+ *
* The argument, if provided, is a dictionary that controls the encoding options of the image file to be created. The type field specifies the file format and has a default value of "image/png"; that type is also used if the requested type isn't supported. If the image format supports variable quality (such as "image/jpeg"), then the quality field is a number in the range 0.0 to 1.0 inclusive indicating the desired quality level for the resulting image.
*/
convertToBlob(options?: ImageEncodeOptions): Promise<Blob>;
/**
* Returns an object that exposes an API for drawing on the OffscreenCanvas object. contextId specifies the desired API: "2d", "bitmaprenderer", "webgl", or "webgl2". options is handled by that API.
- *
+ *
* This specification defines the "2d" context below, which is similar but distinct from the "2d" context that is created from a canvas element. The WebGL specifications define the "webgl" and "webgl2" contexts. [WEBGL]
- *
+ *
* Returns null if the canvas has already been initialized with another context type (e.g., trying to get a "2d" context after getting a "webgl" context).
*/
getContext(contextId: "2d", options?: CanvasRenderingContext2DSettings): OffscreenCanvasRenderingContext2D | null;
@@ -11354,11 +11183,11 @@ declare var OverflowEvent: {
interface PageTransitionEvent extends Event {
/**
* For the pageshow event, returns false if the page is newly being loaded (and the load event will fire). Otherwise, returns true.
- *
+ *
* For the pagehide event, returns false if the page is going away for the last time. Otherwise, returns true, meaning that (if nothing conspires to make the page unsalvageable) the page might be reused if the user navigates back to this page.
- *
+ *
* Things that can cause the page to be unsalvageable include:
- *
+ *
* Listening for beforeunload events
* Listening for unload events
* Having iframes that are not salvageable
@@ -11416,13 +11245,13 @@ interface ParentNode {
readonly lastElementChild: Element | null;
/**
* Inserts nodes after the last child of node, while replacing strings in nodes with equivalent Text nodes.
- *
+ *
* Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated.
*/
append(...nodes: (Node | string)[]): void;
/**
* Inserts nodes before the first child of node, while replacing strings in nodes with equivalent Text nodes.
- *
+ *
* Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated.
*/
prepend(...nodes: (Node | string)[]): void;
@@ -11455,11 +11284,10 @@ declare var Path2D: {
/** This Payment Request API interface is used to store shipping or payment address information. */
interface PaymentAddress {
- readonly addressLine: string[];
+ readonly addressLine: ReadonlyArray<string>;
readonly city: string;
readonly country: string;
readonly dependentLocality: string;
- readonly languageCode: string;
readonly organization: string;
readonly phone: string;
readonly postalCode: string;
@@ -11474,7 +11302,18 @@ declare var PaymentAddress: {
new(): PaymentAddress;
};
+interface PaymentMethodChangeEvent extends PaymentRequestUpdateEvent {
+ readonly methodDetails: any;
+ readonly methodName: string;
+}
+
+declare var PaymentMethodChangeEvent: {
+ prototype: PaymentMethodChangeEvent;
+ new(type: string, eventInitDict?: PaymentMethodChangeEventInit): PaymentMethodChangeEvent;
+};
+
interface PaymentRequestEventMap {
+ "paymentmethodchange": Event;
"shippingaddresschange": Event;
"shippingoptionchange": Event;
}
@@ -11482,6 +11321,7 @@ interface PaymentRequestEventMap {
/** This Payment Request API interface is the primary access point into the API, and lets web content and apps accept payments from the end user. */
interface PaymentRequest extends EventTarget {
readonly id: string;
+ onpaymentmethodchange: ((this: PaymentRequest, ev: Event) => any) | null;
onshippingaddresschange: ((this: PaymentRequest, ev: Event) => any) | null;
onshippingoptionchange: ((this: PaymentRequest, ev: Event) => any) | null;
readonly shippingAddress: PaymentAddress | null;
@@ -11489,7 +11329,7 @@ interface PaymentRequest extends EventTarget {
readonly shippingType: PaymentShippingType | null;
abort(): Promise<void>;
canMakePayment(): Promise<boolean>;
- show(): Promise<PaymentResponse>;
+ show(detailsPromise: PaymentDetailsUpdate | Promise<PaymentDetailsUpdate>): Promise<PaymentResponse>;
addEventListener<K extends keyof PaymentRequestEventMap>(type: K, listener: (this: PaymentRequest, ev: PaymentRequestEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof PaymentRequestEventMap>(type: K, listener: (this: PaymentRequest, ev: PaymentRequestEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
@@ -11511,10 +11351,15 @@ declare var PaymentRequestUpdateEvent: {
new(type: string, eventInitDict?: PaymentRequestUpdateEventInit): PaymentRequestUpdateEvent;
};
+interface PaymentResponseEventMap {
+ "payerdetailchange": Event;
+}
+
/** This Payment Request API interface is returned after a user selects a payment method and approves a payment request. */
-interface PaymentResponse {
+interface PaymentResponse extends EventTarget {
readonly details: any;
readonly methodName: string;
+ onpayerdetailchange: ((this: PaymentResponse, ev: Event) => any) | null;
readonly payerEmail: string | null;
readonly payerName: string | null;
readonly payerPhone: string | null;
@@ -11522,7 +11367,12 @@ interface PaymentResponse {
readonly shippingAddress: PaymentAddress | null;
readonly shippingOption: string | null;
complete(result?: PaymentComplete): Promise<void>;
+ retry(errorFields?: PaymentValidationErrors): Promise<void>;
toJSON(): any;
+ addEventListener<K extends keyof PaymentResponseEventMap>(type: K, listener: (this: PaymentResponse, ev: PaymentResponseEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
+ addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
+ removeEventListener<K extends keyof PaymentResponseEventMap>(type: K, listener: (this: PaymentResponse, ev: PaymentResponseEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
+ removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var PaymentResponse: {
@@ -11976,7 +11826,6 @@ interface RTCCertificate {
declare var RTCCertificate: {
prototype: RTCCertificate;
new(): RTCCertificate;
- getSupportedAlgorithms(): AlgorithmIdentifier[];
};
interface RTCDTMFSenderEventMap {
@@ -12006,7 +11855,7 @@ interface RTCDTMFToneChangeEvent extends Event {
declare var RTCDTMFToneChangeEvent: {
prototype: RTCDTMFToneChangeEvent;
- new(type: string, eventInitDict: RTCDTMFToneChangeEventInit): RTCDTMFToneChangeEvent;
+ new(type: string, eventInitDict?: RTCDTMFToneChangeEventInit): RTCDTMFToneChangeEvent;
};
interface RTCDataChannelEventMap {
@@ -12018,7 +11867,7 @@ interface RTCDataChannelEventMap {
}
interface RTCDataChannel extends EventTarget {
- binaryType: string;
+ binaryType: BinaryType;
readonly bufferedAmount: number;
bufferedAmountLowThreshold: number;
readonly id: number | null;
@@ -12032,7 +11881,6 @@ interface RTCDataChannel extends EventTarget {
onmessage: ((this: RTCDataChannel, ev: MessageEvent) => any) | null;
onopen: ((this: RTCDataChannel, ev: Event) => any) | null;
readonly ordered: boolean;
- readonly priority: RTCPriorityType;
readonly protocol: string;
readonly readyState: RTCDataChannelState;
close(): void;
@@ -12116,7 +11964,6 @@ declare var RTCDtmfSender: {
interface RTCError extends DOMException {
readonly errorDetail: RTCErrorDetailType;
- readonly httpRequestStatusCode: number | null;
readonly receivedAlert: number | null;
readonly sctpCauseCode: number | null;
readonly sdpLineNumber: number | null;
@@ -12209,7 +12056,6 @@ interface RTCIceTransportEventMap {
/** Provides access to information about the ICE transport layer over which the data is being sent and received. */
interface RTCIceTransport extends EventTarget {
- readonly component: RTCIceComponent;
readonly gatheringState: RTCIceGathererState;
ongatheringstatechange: ((this: RTCIceTransport, ev: Event) => any) | null;
onselectedcandidatepairchange: ((this: RTCIceTransport, ev: Event) => any) | null;
@@ -12260,7 +12106,6 @@ interface RTCPeerConnectionEventMap {
"icegatheringstatechange": Event;
"negotiationneeded": Event;
"signalingstatechange": Event;
- "statsended": RTCStatsEvent;
"track": RTCTrackEvent;
}
@@ -12283,7 +12128,6 @@ interface RTCPeerConnection extends EventTarget {
onicegatheringstatechange: ((this: RTCPeerConnection, ev: Event) => any) | null;
onnegotiationneeded: ((this: RTCPeerConnection, ev: Event) => any) | null;
onsignalingstatechange: ((this: RTCPeerConnection, ev: Event) => any) | null;
- onstatsended: ((this: RTCPeerConnection, ev: RTCStatsEvent) => any) | null;
ontrack: ((this: RTCPeerConnection, ev: RTCTrackEvent) => any) | null;
readonly peerIdentity: Promise<RTCIdentityAssertion>;
readonly pendingLocalDescription: RTCSessionDescription | null;
@@ -12305,9 +12149,10 @@ interface RTCPeerConnection extends EventTarget {
getStats(selector?: MediaStreamTrack | null): Promise<RTCStatsReport>;
getTransceivers(): RTCRtpTransceiver[];
removeTrack(sender: RTCRtpSender): void;
- setConfiguration(configuration: RTCConfiguration): void;
+ restartIce(): void;
+ setConfiguration(configuration?: RTCConfiguration): void;
setIdentityProvider(provider: string, options?: RTCIdentityProviderOptions): void;
- setLocalDescription(description: RTCSessionDescriptionInit): Promise<void>;
+ setLocalDescription(description?: RTCSessionDescriptionInit): Promise<void>;
setRemoteDescription(description: RTCSessionDescriptionInit): Promise<void>;
addEventListener<K extends keyof RTCPeerConnectionEventMap>(type: K, listener: (this: RTCPeerConnection, ev: RTCPeerConnectionEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
@@ -12319,13 +12164,13 @@ declare var RTCPeerConnection: {
prototype: RTCPeerConnection;
new(configuration?: RTCConfiguration): RTCPeerConnection;
generateCertificate(keygenAlgorithm: AlgorithmIdentifier): Promise<RTCCertificate>;
- getDefaultIceServers(): RTCIceServer[];
};
interface RTCPeerConnectionIceErrorEvent extends Event {
+ readonly address: string | null;
readonly errorCode: number;
readonly errorText: string;
- readonly hostCandidate: string;
+ readonly port: number | null;
readonly url: string;
}
@@ -12337,7 +12182,6 @@ declare var RTCPeerConnectionIceErrorEvent: {
/** Events that occurs in relation to ICE candidates with the target, usually an RTCPeerConnection. Only one event is of this type: icecandidate. */
interface RTCPeerConnectionIceEvent extends Event {
readonly candidate: RTCIceCandidate | null;
- readonly url: string | null;
}
declare var RTCPeerConnectionIceEvent: {
@@ -12347,7 +12191,6 @@ declare var RTCPeerConnectionIceEvent: {
/** This WebRTC API interface manages the reception and decoding of data for aย MediaStreamTrack on anย RTCPeerConnection. */
interface RTCRtpReceiver {
- readonly rtcpTransport: RTCDtlsTransport | null;
readonly track: MediaStreamTrack;
readonly transport: RTCDtlsTransport | null;
getContributingSources(): RTCRtpContributingSource[];
@@ -12365,7 +12208,6 @@ declare var RTCRtpReceiver: {
/** Provides the ability to control and obtain details about how a particular MediaStreamTrack is encoded and sent to a remote peer. */
interface RTCRtpSender {
readonly dtmf: RTCDTMFSender | null;
- readonly rtcpTransport: RTCDtlsTransport | null;
readonly track: MediaStreamTrack | null;
readonly transport: RTCDtlsTransport | null;
getParameters(): RTCRtpSendParameters;
@@ -12426,7 +12268,7 @@ interface RTCSessionDescription {
declare var RTCSessionDescription: {
prototype: RTCSessionDescription;
- new(descriptionInitDict?: RTCSessionDescriptionInit): RTCSessionDescription;
+ new(descriptionInitDict: RTCSessionDescriptionInit): RTCSessionDescription;
};
interface RTCSrtpSdesTransportEventMap {
@@ -12457,15 +12299,6 @@ declare var RTCSsrcConflictEvent: {
new(): RTCSsrcConflictEvent;
};
-interface RTCStatsEvent extends Event {
- readonly report: RTCStatsReport;
-}
-
-declare var RTCStatsEvent: {
- prototype: RTCStatsEvent;
- new(type: string, eventInitDict: RTCStatsEventInit): RTCStatsEvent;
-};
-
interface RTCStatsProvider extends EventTarget {
getStats(): Promise<RTCStatsReport>;
msGetStats(): Promise<RTCStatsReport>;
@@ -13947,46 +13780,6 @@ declare var SVGNumberList: {
interface SVGPathElement extends SVGGraphicsElement {
/** @deprecated */
readonly pathSegList: SVGPathSegList;
- /** @deprecated */
- createSVGPathSegArcAbs(x: number, y: number, r1: number, r2: number, angle: number, largeArcFlag: boolean, sweepFlag: boolean): SVGPathSegArcAbs;
- /** @deprecated */
- createSVGPathSegArcRel(x: number, y: number, r1: number, r2: number, angle: number, largeArcFlag: boolean, sweepFlag: boolean): SVGPathSegArcRel;
- /** @deprecated */
- createSVGPathSegClosePath(): SVGPathSegClosePath;
- /** @deprecated */
- createSVGPathSegCurvetoCubicAbs(x: number, y: number, x1: number, y1: number, x2: number, y2: number): SVGPathSegCurvetoCubicAbs;
- /** @deprecated */
- createSVGPathSegCurvetoCubicRel(x: number, y: number, x1: number, y1: number, x2: number, y2: number): SVGPathSegCurvetoCubicRel;
- /** @deprecated */
- createSVGPathSegCurvetoCubicSmoothAbs(x: number, y: number, x2: number, y2: number): SVGPathSegCurvetoCubicSmoothAbs;
- /** @deprecated */
- createSVGPathSegCurvetoCubicSmoothRel(x: number, y: number, x2: number, y2: number): SVGPathSegCurvetoCubicSmoothRel;
- /** @deprecated */
- createSVGPathSegCurvetoQuadraticAbs(x: number, y: number, x1: number, y1: number): SVGPathSegCurvetoQuadraticAbs;
- /** @deprecated */
- createSVGPathSegCurvetoQuadraticRel(x: number, y: number, x1: number, y1: number): SVGPathSegCurvetoQuadraticRel;
- /** @deprecated */
- createSVGPathSegCurvetoQuadraticSmoothAbs(x: number, y: number): SVGPathSegCurvetoQuadraticSmoothAbs;
- /** @deprecated */
- createSVGPathSegCurvetoQuadraticSmoothRel(x: number, y: number): SVGPathSegCurvetoQuadraticSmoothRel;
- /** @deprecated */
- createSVGPathSegLinetoAbs(x: number, y: number): SVGPathSegLinetoAbs;
- /** @deprecated */
- createSVGPathSegLinetoHorizontalAbs(x: number): SVGPathSegLinetoHorizontalAbs;
- /** @deprecated */
- createSVGPathSegLinetoHorizontalRel(x: number): SVGPathSegLinetoHorizontalRel;
- /** @deprecated */
- createSVGPathSegLinetoRel(x: number, y: number): SVGPathSegLinetoRel;
- /** @deprecated */
- createSVGPathSegLinetoVerticalAbs(y: number): SVGPathSegLinetoVerticalAbs;
- /** @deprecated */
- createSVGPathSegLinetoVerticalRel(y: number): SVGPathSegLinetoVerticalRel;
- /** @deprecated */
- createSVGPathSegMovetoAbs(x: number, y: number): SVGPathSegMovetoAbs;
- /** @deprecated */
- createSVGPathSegMovetoRel(x: number, y: number): SVGPathSegMovetoRel;
- /** @deprecated */
- getPathSegAtLength(distance: number): number;
getPointAtLength(distance: number): SVGPoint;
getTotalLength(): number;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGPathElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
@@ -14424,25 +14217,11 @@ interface SVGSVGElementEventMap extends SVGElementEventMap {
/** Provides access to the properties of <svg> elements, as well as methods to manipulate them. This interface contains also various miscellaneous commonly-used utility methods, such as matrix operations and the ability to control the time of redraw on visual rendering devices. */
interface SVGSVGElement extends SVGGraphicsElement, DocumentEvent, SVGFitToViewBox, SVGZoomAndPan {
- /** @deprecated */
- contentScriptType: string;
- /** @deprecated */
- contentStyleType: string;
currentScale: number;
readonly currentTranslate: SVGPoint;
readonly height: SVGAnimatedLength;
onunload: ((this: SVGSVGElement, ev: Event) => any) | null;
onzoom: ((this: SVGSVGElement, ev: SVGZoomEvent) => any) | null;
- /** @deprecated */
- readonly pixelUnitToMillimeterX: number;
- /** @deprecated */
- readonly pixelUnitToMillimeterY: number;
- /** @deprecated */
- readonly screenPixelToMillimeterX: number;
- /** @deprecated */
- readonly screenPixelToMillimeterY: number;
- /** @deprecated */
- readonly viewport: SVGRect;
readonly width: SVGAnimatedLength;
readonly x: SVGAnimatedLength;
readonly y: SVGAnimatedLength;
@@ -14770,9 +14549,7 @@ declare var SVGUnitTypes: {
/** Corresponds to the <use> element. */
interface SVGUseElement extends SVGGraphicsElement, SVGURIReference {
- readonly animatedInstanceRoot: SVGElementInstance | null;
readonly height: SVGAnimatedLength;
- readonly instanceRoot: SVGElementInstance | null;
readonly width: SVGAnimatedLength;
readonly x: SVGAnimatedLength;
readonly y: SVGAnimatedLength;
@@ -14805,16 +14582,12 @@ declare var SVGViewElement: {
readonly SVG_ZOOMANDPAN_UNKNOWN: number;
};
-/** Used to reflect the zoomAndPan attribute, and is mixed in to other interfaces for elements that support this attribute. */
interface SVGZoomAndPan {
- readonly zoomAndPan: number;
-}
-
-declare var SVGZoomAndPan: {
+ zoomAndPan: number;
readonly SVG_ZOOMANDPAN_DISABLE: number;
readonly SVG_ZOOMANDPAN_MAGNIFY: number;
readonly SVG_ZOOMANDPAN_UNKNOWN: number;
-};
+}
interface SVGZoomEvent extends UIEvent {
readonly newScale: number;
@@ -14829,26 +14602,6 @@ declare var SVGZoomEvent: {
new(): SVGZoomEvent;
};
-interface ScopedCredential {
- readonly id: ArrayBuffer;
- readonly type: ScopedCredentialType;
-}
-
-declare var ScopedCredential: {
- prototype: ScopedCredential;
- new(): ScopedCredential;
-};
-
-interface ScopedCredentialInfo {
- readonly credential: ScopedCredential;
- readonly publicKey: CryptoKey;
-}
-
-declare var ScopedCredentialInfo: {
- prototype: ScopedCredentialInfo;
- new(): ScopedCredentialInfo;
-};
-
/** A screen, usually the one on which the current window is being rendered, and is obtained using window.screen. */
interface Screen {
readonly availHeight: number;
@@ -15016,22 +14769,6 @@ declare var ServiceWorkerContainer: {
new(): ServiceWorkerContainer;
};
-/** This ServiceWorker API interface contains information about an event sent to a ServiceWorkerContainerย target. This extends the default message event to allow setting a ServiceWorker object as the source of a message. The event object is accessed via the handler function of a message event, when fired by a message received from a service worker.
- * @deprecated In modern browsers, this interface has been deprecated. Service worker messages will now use the MessageEvent interface, for consistency with other web messaging features.
- */
-interface ServiceWorkerMessageEvent extends Event {
- readonly data: any;
- readonly lastEventId: string;
- readonly origin: string;
- readonly ports: ReadonlyArray<MessagePort> | null;
- readonly source: ServiceWorker | MessagePort | null;
-}
-
-declare var ServiceWorkerMessageEvent: {
- prototype: ServiceWorkerMessageEvent;
- new(type: string, eventInitDict?: ServiceWorkerMessageEventInit): ServiceWorkerMessageEvent;
-};
-
interface ServiceWorkerRegistrationEventMap {
"updatefound": Event;
}
@@ -15414,7 +15151,7 @@ interface Storage {
removeItem(key: string): void;
/**
* Sets the value of the pair identified by key to value, creating a new key/value pair if none existed for key previously.
- *
+ *
* Throws a "QuotaExceededError" DOMException exception if the new value couldn't be set. (Setting could fail if, e.g., the user has disabled storage for the site, or if the quota has been exceeded.)
*/
setItem(key: string, value: string): void;
@@ -15564,7 +15301,7 @@ declare var Text: {
interface TextDecoder extends TextDecoderCommon {
/**
* Returns the result of running encoding's decoder. The method can be invoked zero or more times with options's stream set to true, and then once without options's stream (or set to false), to process a fragmented input. If the invocation without options's stream (or set to false) has no input, it's clearest to omit both arguments.
- *
+ *
* ```
* var string = "", decoder = new TextDecoder(encoding), buffer;
* while(buffer = next_chunk()) {
@@ -15572,7 +15309,7 @@ interface TextDecoder extends TextDecoderCommon {
* }
* string += decoder.decode(); // end-of-queue
* ```
- *
+ *
* If the error mode is "fatal" and encoding's decoder returns error, throws a TypeError.
*/
decode(input?: BufferSource, options?: TextDecodeOptions): string;
@@ -15693,34 +15430,6 @@ interface TextMetrics {
/**
* Returns the measurement described below.
*/
- readonly alphabeticBaseline: number;
- /**
- * Returns the measurement described below.
- */
- readonly emHeightAscent: number;
- /**
- * Returns the measurement described below.
- */
- readonly emHeightDescent: number;
- /**
- * Returns the measurement described below.
- */
- readonly fontBoundingBoxAscent: number;
- /**
- * Returns the measurement described below.
- */
- readonly fontBoundingBoxDescent: number;
- /**
- * Returns the measurement described below.
- */
- readonly hangingBaseline: number;
- /**
- * Returns the measurement described below.
- */
- readonly ideographicBaseline: number;
- /**
- * Returns the measurement described below.
- */
readonly width: number;
}
@@ -15745,9 +15454,9 @@ interface TextTrack extends EventTarget {
readonly cues: TextTrackCueList | null;
/**
* Returns the ID of the given track.
- *
+ *
* For in-band tracks, this is the ID that can be used with a fragment if the format supports media fragment syntax, and that can be used with the getTrackById() method.
- *
+ *
* For TextTrack objects corresponding to track elements, this is the ID of the track element.
*/
readonly id: string;
@@ -15769,12 +15478,11 @@ interface TextTrack extends EventTarget {
readonly language: string;
/**
* Returns the text track mode, represented by a string from the following list:
- *
+ *
* Can be set, to change the mode.
*/
mode: TextTrackMode;
oncuechange: ((this: TextTrack, ev: Event) => any) | null;
- readonly sourceBuffer: SourceBuffer | null;
/**
* Adds the given cue to textTrack's text track list of cues.
*/
@@ -15803,13 +15511,13 @@ interface TextTrackCueEventMap {
interface TextTrackCue extends EventTarget {
/**
* Returns the text track cue end time, in seconds.
- *
+ *
* Can be set.
*/
endTime: number;
/**
* Returns the text track cue identifier.
- *
+ *
* Can be set.
*/
id: string;
@@ -15817,13 +15525,13 @@ interface TextTrackCue extends EventTarget {
onexit: ((this: TextTrackCue, ev: Event) => any) | null;
/**
* Returns true if the text track cue pause-on-exit flag is set, false otherwise.
- *
+ *
* Can be set.
*/
pauseOnExit: boolean;
/**
* Returns the text track cue start time, in seconds.
- *
+ *
* Can be set.
*/
startTime: number;
@@ -15849,7 +15557,7 @@ interface TextTrackCueList {
readonly length: number;
/**
* Returns the first text track cue (in text track cue order) with text track cue identifier id.
- *
+ *
* Returns null if none of the cues have the given identifier or if the argument is the empty string.
*/
getCueById(id: string): TextTrackCue | null;
@@ -15893,13 +15601,13 @@ interface TimeRanges {
readonly length: number;
/**
* Returns the time for the end of the range with the given index.
- *
+ *
* Throws an "IndexSizeError" DOMException if the index is out of range.
*/
end(index: number): number;
/**
* Returns the time for the start of the range with the given index.
- *
+ *
* Throws an "IndexSizeError" DOMException if the index is out of range.
*/
start(index: number): number;
@@ -16212,7 +15920,6 @@ interface VRPose {
readonly linearVelocity: Float32Array | null;
readonly orientation: Float32Array | null;
readonly position: Float32Array | null;
- readonly timestamp: number;
}
declare var VRPose: {
@@ -16439,28 +16146,6 @@ declare var WaveShaperNode: {
new(context: BaseAudioContext, options?: WaveShaperOptions): WaveShaperNode;
};
-interface WebAuthentication {
- getAssertion(assertionChallenge: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer | null, options?: AssertionOptions): Promise<WebAuthnAssertion>;
- makeCredential(accountInformation: Account, cryptoParameters: ScopedCredentialParameters[], attestationChallenge: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer | null, options?: ScopedCredentialOptions): Promise<ScopedCredentialInfo>;
-}
-
-declare var WebAuthentication: {
- prototype: WebAuthentication;
- new(): WebAuthentication;
-};
-
-interface WebAuthnAssertion {
- readonly authenticatorData: ArrayBuffer;
- readonly clientData: ArrayBuffer;
- readonly credential: ScopedCredential;
- readonly signature: ArrayBuffer;
-}
-
-declare var WebAuthnAssertion: {
- prototype: WebAuthnAssertion;
- new(): WebAuthnAssertion;
-};
-
interface WebGL2RenderingContext extends WebGL2RenderingContextBase, WebGL2RenderingContextOverloads, WebGLRenderingContextBase {
}
@@ -17438,7 +17123,7 @@ declare var WebGLActiveInfo: {
};
/** Part of the WebGL API and represents an opaque buffer object storing data such as vertices or colors. */
-interface WebGLBuffer extends WebGLObject {
+interface WebGLBuffer {
}
declare var WebGLBuffer: {
@@ -17457,7 +17142,7 @@ declare var WebGLContextEvent: {
};
/** Part of the WebGL API and represents a collection of buffers that serve as a rendering destination. */
-interface WebGLFramebuffer extends WebGLObject {
+interface WebGLFramebuffer {
}
declare var WebGLFramebuffer: {
@@ -17465,16 +17150,8 @@ declare var WebGLFramebuffer: {
new(): WebGLFramebuffer;
};
-interface WebGLObject {
-}
-
-declare var WebGLObject: {
- prototype: WebGLObject;
- new(): WebGLObject;
-};
-
/** The WebGLProgram is part of the WebGL API and is a combination of two compiled WebGLShaders consisting of a vertex shader and a fragment shader (both written in GLSL). */
-interface WebGLProgram extends WebGLObject {
+interface WebGLProgram {
}
declare var WebGLProgram: {
@@ -17482,7 +17159,7 @@ declare var WebGLProgram: {
new(): WebGLProgram;
};
-interface WebGLQuery extends WebGLObject {
+interface WebGLQuery {
}
declare var WebGLQuery: {
@@ -17491,7 +17168,7 @@ declare var WebGLQuery: {
};
/** Part of the WebGL API and represents a buffer that can contain an image, or can be source or target of an rendering operation. */
-interface WebGLRenderbuffer extends WebGLObject {
+interface WebGLRenderbuffer {
}
declare var WebGLRenderbuffer: {
@@ -18270,7 +17947,7 @@ interface WebGLRenderingContextOverloads {
uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Float32List): void;
}
-interface WebGLSampler extends WebGLObject {
+interface WebGLSampler {
}
declare var WebGLSampler: {
@@ -18279,7 +17956,7 @@ declare var WebGLSampler: {
};
/** The WebGLShader is part of the WebGL API and can either be a vertex or a fragment shader. A WebGLProgram requires both types of shaders. */
-interface WebGLShader extends WebGLObject {
+interface WebGLShader {
}
declare var WebGLShader: {
@@ -18299,7 +17976,7 @@ declare var WebGLShaderPrecisionFormat: {
new(): WebGLShaderPrecisionFormat;
};
-interface WebGLSync extends WebGLObject {
+interface WebGLSync {
}
declare var WebGLSync: {
@@ -18308,7 +17985,7 @@ declare var WebGLSync: {
};
/** Part of the WebGL API and represents an opaque texture object providing storage and state for texturing operations. */
-interface WebGLTexture extends WebGLObject {
+interface WebGLTexture {
}
declare var WebGLTexture: {
@@ -18316,7 +17993,7 @@ declare var WebGLTexture: {
new(): WebGLTexture;
};
-interface WebGLTransformFeedback extends WebGLObject {
+interface WebGLTransformFeedback {
}
declare var WebGLTransformFeedback: {
@@ -18333,7 +18010,7 @@ declare var WebGLUniformLocation: {
new(): WebGLUniformLocation;
};
-interface WebGLVertexArrayObject extends WebGLObject {
+interface WebGLVertexArrayObject {
}
declare var WebGLVertexArrayObject: {
@@ -18341,7 +18018,7 @@ declare var WebGLVertexArrayObject: {
new(): WebGLVertexArrayObject;
};
-interface WebGLVertexArrayObjectOES extends WebGLObject {
+interface WebGLVertexArrayObjectOES {
}
interface WebKitPoint {
@@ -18365,13 +18042,13 @@ interface WebSocketEventMap {
interface WebSocket extends EventTarget {
/**
* Returns a string that indicates how binary data from the WebSocket object is exposed to scripts:
- *
+ *
* Can be set, to change how binary data is returned. The default is "blob".
*/
binaryType: BinaryType;
/**
* Returns the number of bytes of application data (UTF-8 text and binary data) that have been queued using send() but not yet been transmitted to the network.
- *
+ *
* If the WebSocket connection is closed, this attribute's value will only increase with each call to the send() method. (The number does not reset to zero once the connection closes.)
*/
readonly bufferedAmount: number;
@@ -18454,7 +18131,6 @@ interface WindowEventMap extends GlobalEventHandlersEventMap, WindowEventHandler
"compassneedscalibration": Event;
"contextmenu": MouseEvent;
"dblclick": MouseEvent;
- "devicelight": DeviceLightEvent;
"devicemotion": DeviceMotionEvent;
"deviceorientation": DeviceOrientationEvent;
"deviceorientationabsolute": DeviceOrientationEvent;
@@ -18491,21 +18167,6 @@ interface WindowEventMap extends GlobalEventHandlersEventMap, WindowEventHandler
"mouseover": MouseEvent;
"mouseup": MouseEvent;
"mousewheel": Event;
- "MSGestureChange": Event;
- "MSGestureDoubleTap": Event;
- "MSGestureEnd": Event;
- "MSGestureHold": Event;
- "MSGestureStart": Event;
- "MSGestureTap": Event;
- "MSInertiaStart": Event;
- "MSPointerCancel": Event;
- "MSPointerDown": Event;
- "MSPointerEnter": Event;
- "MSPointerLeave": Event;
- "MSPointerMove": Event;
- "MSPointerOut": Event;
- "MSPointerOver": Event;
- "MSPointerUp": Event;
"offline": Event;
"online": Event;
"orientationchange": Event;
@@ -18536,9 +18197,6 @@ interface WindowEventMap extends GlobalEventHandlersEventMap, WindowEventHandler
"vrdisplayconnect": Event;
"vrdisplaydeactivate": Event;
"vrdisplaydisconnect": Event;
- "vrdisplayfocus": Event;
- "vrdisplaypointerrestricted": Event;
- "vrdisplaypointerunrestricted": Event;
"vrdisplaypresentchange": Event;
"waiting": Event;
}
@@ -18571,28 +18229,12 @@ interface Window extends EventTarget, AnimationFrameProvider, GlobalEventHandler
readonly navigator: Navigator;
offscreenBuffering: string | boolean;
oncompassneedscalibration: ((this: Window, ev: Event) => any) | null;
- ondevicelight: ((this: Window, ev: DeviceLightEvent) => any) | null;
ondevicemotion: ((this: Window, ev: DeviceMotionEvent) => any) | null;
ondeviceorientation: ((this: Window, ev: DeviceOrientationEvent) => any) | null;
ondeviceorientationabsolute: ((this: Window, ev: DeviceOrientationEvent) => any) | null;
ongamepadconnected: ((this: Window, ev: GamepadEvent) => any) | null;
ongamepaddisconnected: ((this: Window, ev: GamepadEvent) => any) | null;
onmousewheel: ((this: Window, ev: Event) => any) | null;
- onmsgesturechange: ((this: Window, ev: Event) => any) | null;
- onmsgesturedoubletap: ((this: Window, ev: Event) => any) | null;
- onmsgestureend: ((this: Window, ev: Event) => any) | null;
- onmsgesturehold: ((this: Window, ev: Event) => any) | null;
- onmsgesturestart: ((this: Window, ev: Event) => any) | null;
- onmsgesturetap: ((this: Window, ev: Event) => any) | null;
- onmsinertiastart: ((this: Window, ev: Event) => any) | null;
- onmspointercancel: ((this: Window, ev: Event) => any) | null;
- onmspointerdown: ((this: Window, ev: Event) => any) | null;
- onmspointerenter: ((this: Window, ev: Event) => any) | null;
- onmspointerleave: ((this: Window, ev: Event) => any) | null;
- onmspointermove: ((this: Window, ev: Event) => any) | null;
- onmspointerout: ((this: Window, ev: Event) => any) | null;
- onmspointerover: ((this: Window, ev: Event) => any) | null;
- onmspointerup: ((this: Window, ev: Event) => any) | null;
/** @deprecated */
onorientationchange: ((this: Window, ev: Event) => any) | null;
onreadystatechange: ((this: Window, ev: ProgressEvent<Window>) => any) | null;
@@ -18601,11 +18243,8 @@ interface Window extends EventTarget, AnimationFrameProvider, GlobalEventHandler
onvrdisplayconnect: ((this: Window, ev: Event) => any) | null;
onvrdisplaydeactivate: ((this: Window, ev: Event) => any) | null;
onvrdisplaydisconnect: ((this: Window, ev: Event) => any) | null;
- onvrdisplayfocus: ((this: Window, ev: Event) => any) | null;
- onvrdisplaypointerrestricted: ((this: Window, ev: Event) => any) | null;
- onvrdisplaypointerunrestricted: ((this: Window, ev: Event) => any) | null;
onvrdisplaypresentchange: ((this: Window, ev: Event) => any) | null;
- opener: any;
+ opener: WindowProxy | null;
/** @deprecated */
readonly orientation: string | number;
readonly outerHeight: number;
@@ -18852,26 +18491,26 @@ interface XMLHttpRequest extends XMLHttpRequestEventTarget {
readonly response: any;
/**
* Returns the text response.
- *
+ *
* Throws an "InvalidStateError" DOMException if responseType is not the empty string or "text".
*/
readonly responseText: string;
/**
* Returns the response type.
- *
+ *
* Can be set to change the response type. Values are: the empty string (default), "arraybuffer", "blob", "document", "json", and "text".
- *
+ *
* When set: setting to "document" is ignored if current global object is not a Window object.
- *
+ *
* When set: throws an "InvalidStateError" DOMException if state is loading or done.
- *
+ *
* When set: throws an "InvalidAccessError" DOMException if the synchronous flag is set and current global object is a Window object.
*/
responseType: XMLHttpRequestResponseType;
readonly responseURL: string;
/**
* Returns the document response.
- *
+ *
* Throws an "InvalidStateError" DOMException if responseType is not the empty string or "document".
*/
readonly responseXML: Document | null;
@@ -18879,7 +18518,7 @@ interface XMLHttpRequest extends XMLHttpRequestEventTarget {
readonly statusText: string;
/**
* Can be set to a time in milliseconds. When set to a non-zero value will cause fetching to terminate after the given time has passed. When the time has passed, the request has not yet completed, and the synchronous flag is unset, a timeout event will then be dispatched, or a "TimeoutError" DOMException will be thrown otherwise (for the send() method).
- *
+ *
* When set: throws an "InvalidAccessError" DOMException if the synchronous flag is set and current global object is a Window object.
*/
timeout: number;
@@ -18889,7 +18528,7 @@ interface XMLHttpRequest extends XMLHttpRequestEventTarget {
readonly upload: XMLHttpRequestUpload;
/**
* True when credentials are to be included in a cross-origin request. False when they are to be excluded in a cross-origin request and when cookies are to be ignored in its response. Initially false.
- *
+ *
* When set: throws an "InvalidStateError" DOMException if state is not unsent or opened, or if the send() flag is set.
*/
withCredentials: boolean;
@@ -18901,32 +18540,32 @@ interface XMLHttpRequest extends XMLHttpRequestEventTarget {
getResponseHeader(name: string): string | null;
/**
* Sets the request method, request URL, and synchronous flag.
- *
+ *
* Throws a "SyntaxError" DOMException if either method is not a valid HTTP method or url cannot be parsed.
- *
+ *
* Throws a "SecurityError" DOMException if method is a case-insensitive match for `CONNECT`, `TRACE`, or `TRACK`.
- *
+ *
* Throws an "InvalidAccessError" DOMException if async is false, current global object is a Window object, and the timeout attribute is not zero or the responseType attribute is not the empty string.
*/
open(method: string, url: string): void;
open(method: string, url: string, async: boolean, username?: string | null, password?: string | null): void;
/**
* Acts as if the `Content-Type` header value for response is mime. (It does not actually change the header though.)
- *
+ *
* Throws an "InvalidStateError" DOMException if state is loading or done.
*/
overrideMimeType(mime: string): void;
/**
* Initiates the request. The body argument provides the request body, if any, and is ignored if the request method is GET or HEAD.
- *
+ *
* Throws an "InvalidStateError" DOMException if either state is not opened or the send() flag is set.
*/
send(body?: Document | BodyInit | null): void;
/**
* Combines a header in author request headers.
- *
+ *
* Throws an "InvalidStateError" DOMException if either state is not opened or the send() flag is set.
- *
+ *
* Throws a "SyntaxError" DOMException if name is not a header name or if value is not a header value.
*/
setRequestHeader(name: string, value: string): void;
@@ -19133,52 +18772,52 @@ declare namespace CSS {
declare namespace WebAssembly {
interface CompileError {
}
-
+
var CompileError: {
prototype: CompileError;
new(): CompileError;
};
-
+
interface Global {
value: any;
valueOf(): any;
}
-
+
var Global: {
prototype: Global;
new(descriptor: GlobalDescriptor, v?: any): Global;
};
-
+
interface Instance {
readonly exports: Exports;
}
-
+
var Instance: {
prototype: Instance;
new(module: Module, importObject?: Imports): Instance;
};
-
+
interface LinkError {
}
-
+
var LinkError: {
prototype: LinkError;
new(): LinkError;
};
-
+
interface Memory {
readonly buffer: ArrayBuffer;
grow(delta: number): number;
}
-
+
var Memory: {
prototype: Memory;
new(descriptor: MemoryDescriptor): Memory;
};
-
+
interface Module {
}
-
+
var Module: {
prototype: Module;
new(bytes: BufferSource): Module;
@@ -19186,59 +18825,60 @@ declare namespace WebAssembly {
exports(moduleObject: Module): ModuleExportDescriptor[];
imports(moduleObject: Module): ModuleImportDescriptor[];
};
-
+
interface RuntimeError {
}
-
+
var RuntimeError: {
prototype: RuntimeError;
new(): RuntimeError;
};
-
+
interface Table {
readonly length: number;
get(index: number): Function | null;
grow(delta: number): number;
set(index: number, value: Function | null): void;
}
-
+
var Table: {
prototype: Table;
new(descriptor: TableDescriptor): Table;
};
-
+
interface GlobalDescriptor {
mutable?: boolean;
value: ValueType;
}
-
+
interface MemoryDescriptor {
initial: number;
maximum?: number;
+ shared?: boolean;
}
-
+
interface ModuleExportDescriptor {
kind: ImportExportKind;
name: string;
}
-
+
interface ModuleImportDescriptor {
kind: ImportExportKind;
module: string;
name: string;
}
-
+
interface TableDescriptor {
element: TableKind;
initial: number;
maximum?: number;
}
-
+
interface WebAssemblyInstantiatedSource {
instance: Instance;
module: Module;
}
-
+
type ImportExportKind = "function" | "global" | "memory" | "table";
type TableKind = "anyfunc";
type ValueType = "f32" | "f64" | "i32" | "i64";
@@ -19406,7 +19046,6 @@ interface HTMLElementTagNameMap {
"audio": HTMLAudioElement;
"b": HTMLElement;
"base": HTMLBaseElement;
- "basefont": HTMLBaseFontElement;
"bdi": HTMLElement;
"bdo": HTMLElement;
"blockquote": HTMLQuoteElement;
@@ -19621,28 +19260,12 @@ declare const name: void;
declare var navigator: Navigator;
declare var offscreenBuffering: string | boolean;
declare var oncompassneedscalibration: ((this: Window, ev: Event) => any) | null;
-declare var ondevicelight: ((this: Window, ev: DeviceLightEvent) => any) | null;
declare var ondevicemotion: ((this: Window, ev: DeviceMotionEvent) => any) | null;
declare var ondeviceorientation: ((this: Window, ev: DeviceOrientationEvent) => any) | null;
declare var ondeviceorientationabsolute: ((this: Window, ev: DeviceOrientationEvent) => any) | null;
declare var ongamepadconnected: ((this: Window, ev: GamepadEvent) => any) | null;
declare var ongamepaddisconnected: ((this: Window, ev: GamepadEvent) => any) | null;
declare var onmousewheel: ((this: Window, ev: Event) => any) | null;
-declare var onmsgesturechange: ((this: Window, ev: Event) => any) | null;
-declare var onmsgesturedoubletap: ((this: Window, ev: Event) => any) | null;
-declare var onmsgestureend: ((this: Window, ev: Event) => any) | null;
-declare var onmsgesturehold: ((this: Window, ev: Event) => any) | null;
-declare var onmsgesturestart: ((this: Window, ev: Event) => any) | null;
-declare var onmsgesturetap: ((this: Window, ev: Event) => any) | null;
-declare var onmsinertiastart: ((this: Window, ev: Event) => any) | null;
-declare var onmspointercancel: ((this: Window, ev: Event) => any) | null;
-declare var onmspointerdown: ((this: Window, ev: Event) => any) | null;
-declare var onmspointerenter: ((this: Window, ev: Event) => any) | null;
-declare var onmspointerleave: ((this: Window, ev: Event) => any) | null;
-declare var onmspointermove: ((this: Window, ev: Event) => any) | null;
-declare var onmspointerout: ((this: Window, ev: Event) => any) | null;
-declare var onmspointerover: ((this: Window, ev: Event) => any) | null;
-declare var onmspointerup: ((this: Window, ev: Event) => any) | null;
/** @deprecated */
declare var onorientationchange: ((this: Window, ev: Event) => any) | null;
declare var onreadystatechange: ((this: Window, ev: ProgressEvent<Window>) => any) | null;
@@ -19651,11 +19274,8 @@ declare var onvrdisplayblur: ((this: Window, ev: Event) => any) | null;
declare var onvrdisplayconnect: ((this: Window, ev: Event) => any) | null;
declare var onvrdisplaydeactivate: ((this: Window, ev: Event) => any) | null;
declare var onvrdisplaydisconnect: ((this: Window, ev: Event) => any) | null;
-declare var onvrdisplayfocus: ((this: Window, ev: Event) => any) | null;
-declare var onvrdisplaypointerrestricted: ((this: Window, ev: Event) => any) | null;
-declare var onvrdisplaypointerunrestricted: ((this: Window, ev: Event) => any) | null;
declare var onvrdisplaypresentchange: ((this: Window, ev: Event) => any) | null;
-declare var opener: any;
+declare var opener: WindowProxy | null;
/** @deprecated */
declare var orientation: string | number;
declare var outerHeight: number;
@@ -20168,15 +19788,13 @@ 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";
type RTCDtlsRole = "auto" | "client" | "server";
type RTCDtlsTransportState = "closed" | "connected" | "connecting" | "failed" | "new";
-type RTCDtxStatus = "disabled" | "enabled";
-type RTCErrorDetailType = "data-channel-failure" | "dtls-failure" | "fingerprint-failure" | "hardware-encoder-error" | "hardware-encoder-not-available" | "idp-bad-script-failure" | "idp-execution-failure" | "idp-load-failure" | "idp-need-login" | "idp-timeout" | "idp-tls-failure" | "idp-token-expired" | "idp-token-invalid" | "sctp-failure" | "sdp-syntax-error";
+type RTCErrorDetailType = "data-channel-failure" | "dtls-failure" | "fingerprint-failure" | "hardware-encoder-error" | "hardware-encoder-not-available" | "sctp-failure" | "sdp-syntax-error";
type RTCIceCandidateType = "host" | "prflx" | "relay" | "srflx";
type RTCIceComponent = "rtcp" | "rtp";
type RTCIceConnectionState = "checking" | "closed" | "completed" | "connected" | "disconnected" | "failed" | "new";
-type RTCIceCredentialType = "oauth" | "password";
+type RTCIceCredentialType = "password";
type RTCIceGatherPolicy = "all" | "nohost" | "relay";
type RTCIceGathererState = "complete" | "gathering" | "new";
type RTCIceGatheringState = "complete" | "gathering" | "new";
@@ -20186,8 +19804,7 @@ type RTCIceTcpCandidateType = "active" | "passive" | "so";
type RTCIceTransportPolicy = "all" | "relay";
type RTCIceTransportState = "checking" | "closed" | "completed" | "connected" | "disconnected" | "failed" | "new";
type RTCPeerConnectionState = "closed" | "connected" | "connecting" | "disconnected" | "failed" | "new";
-type RTCPriorityType = "high" | "low" | "medium" | "very-low";
-type RTCRtcpMuxPolicy = "negotiate" | "require";
+type RTCRtcpMuxPolicy = "require";
type RTCRtpTransceiverDirection = "inactive" | "recvonly" | "sendonly" | "sendrecv" | "stopped";
type RTCSctpTransportState = "closed" | "connected" | "connecting";
type RTCSdpType = "answer" | "offer" | "pranswer" | "rollback";
@@ -20206,7 +19823,6 @@ type ResidentKeyRequirement = "discouraged" | "preferred" | "required";
type ResizeObserverBoxOptions = "border-box" | "content-box" | "device-pixel-content-box";
type ResizeQuality = "high" | "low" | "medium" | "pixelated";
type ResponseType = "basic" | "cors" | "default" | "error" | "opaque" | "opaqueredirect";
-type ScopedCredentialType = "ScopedCred";
type ScrollBehavior = "auto" | "smooth";
type ScrollLogicalPosition = "center" | "end" | "nearest" | "start";
type ScrollRestoration = "auto" | "manual";
@@ -20220,7 +19836,6 @@ type SpeechSynthesisErrorCode = "audio-busy" | "audio-hardware" | "canceled" | "
type TextTrackKind = "captions" | "chapters" | "descriptions" | "metadata" | "subtitles";
type TextTrackMode = "disabled" | "hidden" | "showing";
type TouchType = "direct" | "stylus";
-type Transport = "ble" | "nfc" | "usb";
type UserVerificationRequirement = "discouraged" | "preferred" | "required";
type VRDisplayEventReason = "mounted" | "navigation" | "requested" | "unmounted";
type VideoFacingModeEnum = "environment" | "left" | "right" | "user";
diff --git a/cli/dts/lib.dom.iterable.d.ts b/cli/dts/lib.dom.iterable.d.ts
index ebd56d767..7e86bc19b 100644
--- a/cli/dts/lib.dom.iterable.d.ts
+++ b/cli/dts/lib.dom.iterable.d.ts
@@ -139,7 +139,7 @@ interface IDBDatabase {
interface IDBObjectStore {
/**
* Creates a new index in store with the given name, keyPath and options and returns a new IDBIndex. If the keyPath and options define constraints that cannot be satisfied with the data already in store the upgrade transaction will abort with a "ConstraintError" DOMException.
- *
+ *
* Throws an "InvalidStateError" DOMException if not called within an upgrade transaction.
*/
createIndex(name: string, keyPath: string | Iterable<string>, options?: IDBIndexParameters): IDBIndex;
@@ -287,10 +287,6 @@ interface WEBGL_draw_buffers {
drawBuffersWEBGL(buffers: Iterable<GLenum>): void;
}
-interface WebAuthentication {
- makeCredential(accountInformation: Account, cryptoParameters: Iterable<ScopedCredentialParameters>, attestationChallenge: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer | null, options?: ScopedCredentialOptions): Promise<ScopedCredentialInfo>;
-}
-
interface WebGL2RenderingContextBase {
clearBufferfv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLfloat>, srcOffset?: GLuint): void;
clearBufferiv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLint>, srcOffset?: GLuint): void;
diff --git a/cli/dts/lib.es2015.core.d.ts b/cli/dts/lib.es2015.core.d.ts
index f33038d6d..20aa06f6d 100644
--- a/cli/dts/lib.es2015.core.d.ts
+++ b/cli/dts/lib.es2015.core.d.ts
@@ -268,8 +268,8 @@ interface NumberConstructor {
/**
* Converts A string to an integer.
- * @param s A string to convert into a number.
- * @param radix A value between 2 and 36 that specifies the base of the number in numString.
+ * @param string A string to convert into a number.
+ * @param radix A value between 2 and 36 that specifies the base of the number in `string`.
* If this argument is not supplied, strings with a prefix of '0x' are considered hexadecimal.
* All other strings are considered decimal.
*/
diff --git a/cli/dts/lib.es2015.iterable.d.ts b/cli/dts/lib.es2015.iterable.d.ts
index 0dcbcfab2..06a503099 100644
--- a/cli/dts/lib.es2015.iterable.d.ts
+++ b/cli/dts/lib.es2015.iterable.d.ts
@@ -25,7 +25,7 @@ interface SymbolConstructor {
* A method that returns the default iterator for an object. Called by the semantics of the
* for-of statement.
*/
- readonly iterator: symbol;
+ readonly iterator: unique symbol;
}
interface IteratorYieldResult<TYield> {
diff --git a/cli/dts/lib.es2015.symbol.wellknown.d.ts b/cli/dts/lib.es2015.symbol.wellknown.d.ts
index b2831957a..b98e2f08f 100644
--- a/cli/dts/lib.es2015.symbol.wellknown.d.ts
+++ b/cli/dts/lib.es2015.symbol.wellknown.d.ts
@@ -25,61 +25,61 @@ interface SymbolConstructor {
* A method that determines if a constructor object recognizes an object as one of the
* constructorโ€™s instances. Called by the semantics of the instanceof operator.
*/
- readonly hasInstance: symbol;
+ readonly hasInstance: unique symbol;
/**
* A Boolean value that if true indicates that an object should flatten to its array elements
* by Array.prototype.concat.
*/
- readonly isConcatSpreadable: symbol;
+ readonly isConcatSpreadable: unique symbol;
/**
* A regular expression method that matches the regular expression against a string. Called
* by the String.prototype.match method.
*/
- readonly match: symbol;
+ readonly match: unique symbol;
/**
* A regular expression method that replaces matched substrings of a string. Called by the
* String.prototype.replace method.
*/
- readonly replace: symbol;
+ readonly replace: unique symbol;
/**
* A regular expression method that returns the index within a string that matches the
* regular expression. Called by the String.prototype.search method.
*/
- readonly search: symbol;
+ readonly search: unique symbol;
/**
* A function valued property that is the constructor function that is used to create
* derived objects.
*/
- readonly species: symbol;
+ readonly species: unique symbol;
/**
* A regular expression method that splits a string at the indices that match the regular
* expression. Called by the String.prototype.split method.
*/
- readonly split: symbol;
+ readonly split: unique symbol;
/**
* A method that converts an object to a corresponding primitive value.
* Called by the ToPrimitive abstract operation.
*/
- readonly toPrimitive: symbol;
+ readonly toPrimitive: unique symbol;
/**
* A String value that is used in the creation of the default string description of an object.
* Called by the built-in method Object.prototype.toString.
*/
- readonly toStringTag: symbol;
+ readonly toStringTag: unique symbol;
/**
* An Object whose own property names are property names that are excluded from the 'with'
* environment bindings of the associated objects.
*/
- readonly unscopables: symbol;
+ readonly unscopables: unique symbol;
}
interface Symbol {
diff --git a/cli/dts/lib.es2018.asynciterable.d.ts b/cli/dts/lib.es2018.asynciterable.d.ts
index 2c3a97085..88f9d8fba 100644
--- a/cli/dts/lib.es2018.asynciterable.d.ts
+++ b/cli/dts/lib.es2018.asynciterable.d.ts
@@ -26,7 +26,7 @@ interface SymbolConstructor {
* A method that returns the default async iterator for an object. Called by the semantics of
* the for-await-of statement.
*/
- readonly asyncIterator: symbol;
+ readonly asyncIterator: unique symbol;
}
interface AsyncIterator<T, TReturn = any, TNext = undefined> {
diff --git a/cli/dts/lib.es2020.bigint.d.ts b/cli/dts/lib.es2020.bigint.d.ts
index 6dc8b25ac..92acfe4a4 100644
--- a/cli/dts/lib.es2020.bigint.d.ts
+++ b/cli/dts/lib.es2020.bigint.d.ts
@@ -121,7 +121,7 @@ interface BigInt {
}
interface BigIntConstructor {
- (value?: any): bigint;
+ (value: bigint | boolean | number | string): bigint;
readonly prototype: BigInt;
/**
diff --git a/cli/dts/lib.es2020.intl.d.ts b/cli/dts/lib.es2020.intl.d.ts
index 1ec4628bb..2470d08b6 100644
--- a/cli/dts/lib.es2020.intl.d.ts
+++ b/cli/dts/lib.es2020.intl.d.ts
@@ -21,13 +21,12 @@ and limitations under the License.
declare namespace Intl {
/**
- * [BCP 47 language tag](http://tools.ietf.org/html/rfc5646) definition.
+ * [Unicode BCP 47 Locale Identifiers](https://unicode.org/reports/tr35/#Unicode_Language_and_Locale_Identifiers) definition.
*
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#locales_argument).
*
- * [Wikipedia](https://en.wikipedia.org/wiki/IETF_language_tag).
*/
- type BCP47LanguageTag = string;
+ type UnicodeBCP47LocaleIdentifier = string;
/**
* Unit to use in the relative time internationalized message.
@@ -98,7 +97,7 @@ declare namespace Intl {
* [Specification](https://tc39.es/ecma402/#table-relativetimeformat-resolvedoptions-properties)
*/
interface ResolvedRelativeTimeFormatOptions {
- locale: BCP47LanguageTag;
+ locale: UnicodeBCP47LocaleIdentifier;
style: RelativeTimeFormatStyle;
numeric: RelativeTimeFormatNumeric;
numberingSystem: string;
@@ -241,7 +240,7 @@ declare namespace Intl {
* [Specification](https://tc39.es/ecma402/#sec-intl-relativetimeformat-constructor).
*/
new(
- locales?: BCP47LanguageTag | BCP47LanguageTag[],
+ locales?: UnicodeBCP47LocaleIdentifier | UnicodeBCP47LocaleIdentifier[],
options?: RelativeTimeFormatOptions,
): RelativeTimeFormat;
@@ -277,9 +276,9 @@ declare namespace Intl {
* [Specification](https://tc39.es/ecma402/#sec-Intl.RelativeTimeFormat.supportedLocalesOf).
*/
supportedLocalesOf(
- locales: BCP47LanguageTag | BCP47LanguageTag[],
+ locales?: UnicodeBCP47LocaleIdentifier | UnicodeBCP47LocaleIdentifier[],
options?: RelativeTimeFormatOptions,
- ): BCP47LanguageTag[];
+ ): UnicodeBCP47LocaleIdentifier[];
};
interface NumberFormatOptions {
diff --git a/cli/dts/lib.es2020.symbol.wellknown.d.ts b/cli/dts/lib.es2020.symbol.wellknown.d.ts
index 4bac52fec..7df0a2f45 100644
--- a/cli/dts/lib.es2020.symbol.wellknown.d.ts
+++ b/cli/dts/lib.es2020.symbol.wellknown.d.ts
@@ -26,7 +26,7 @@ interface SymbolConstructor {
* A regular expression method that matches the regular expression against a string. Called
* by the String.prototype.matchAll method.
*/
- readonly matchAll: symbol;
+ readonly matchAll: unique symbol;
}
interface RegExp {
diff --git a/cli/dts/lib.es2021.d.ts b/cli/dts/lib.es2021.d.ts
new file mode 100644
index 000000000..1cb1e732a
--- /dev/null
+++ b/cli/dts/lib.es2021.d.ts
@@ -0,0 +1,24 @@
+/*! *****************************************************************************
+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="es2020" />
+/// <reference lib="es2021.promise" />
+/// <reference lib="es2021.string" />
+/// <reference lib="es2021.weakref" />
diff --git a/cli/dts/lib.es2021.full.d.ts b/cli/dts/lib.es2021.full.d.ts
new file mode 100644
index 000000000..534887377
--- /dev/null
+++ b/cli/dts/lib.es2021.full.d.ts
@@ -0,0 +1,25 @@
+/*! *****************************************************************************
+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="es2021" />
+/// <reference lib="dom" />
+/// <reference lib="webworker.importscripts" />
+/// <reference lib="scripthost" />
+/// <reference lib="dom.iterable" />
diff --git a/cli/dts/lib.es2021.promise.d.ts b/cli/dts/lib.es2021.promise.d.ts
new file mode 100644
index 000000000..6a56c5512
--- /dev/null
+++ b/cli/dts/lib.es2021.promise.d.ts
@@ -0,0 +1,43 @@
+/*! *****************************************************************************
+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"/>
+
+
+interface AggregateError extends Error {
+ errors: any[]
+}
+
+interface AggregateErrorConstructor {
+ new(errors: Iterable<any>, message?: string): AggregateError;
+ (errors: Iterable<any>, message?: string): AggregateError;
+ readonly prototype: AggregateError;
+}
+
+declare var AggregateError: AggregateErrorConstructor;
+
+/**
+ * Represents the completion of an asynchronous operation
+ */
+interface PromiseConstructor {
+ /**
+ * The any function returns a promise that is fulfilled by the first given promise to be fulfilled, or rejected with an AggregateError containing an array of rejection reasons if all of the given promises are rejected. It resolves all elements of the passed iterable to promises as it runs this algorithm.
+ * @param values An array or iterable of Promises.
+ * @returns A new Promise.
+ */
+ any<T>(values: (T | PromiseLike<T>)[] | Iterable<T | PromiseLike<T>>): Promise<T>
+}
diff --git a/cli/dts/lib.es2021.string.d.ts b/cli/dts/lib.es2021.string.d.ts
new file mode 100644
index 000000000..89b27e2fe
--- /dev/null
+++ b/cli/dts/lib.es2021.string.d.ts
@@ -0,0 +1,35 @@
+/*! *****************************************************************************
+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"/>
+
+
+interface String {
+ /**
+ * Replace all instances of a substring in a string, using a regular expression or search string.
+ * @param searchValue A string to search for.
+ * @param replaceValue A string containing the text to replace for every successful match of searchValue in this string.
+ */
+ replaceAll(searchValue: string | RegExp, replaceValue: string): string;
+
+ /**
+ * Replace all instances of a substring in a string, using a regular expression or search string.
+ * @param searchValue A string to search for.
+ * @param replacer A function that returns the replacement text.
+ */
+ replaceAll(searchValue: string | RegExp, replacer: (substring: string, ...args: any[]) => string): string;
+}
diff --git a/cli/dts/lib.es2021.weakref.d.ts b/cli/dts/lib.es2021.weakref.d.ts
new file mode 100644
index 000000000..eb7764242
--- /dev/null
+++ b/cli/dts/lib.es2021.weakref.d.ts
@@ -0,0 +1,75 @@
+/*! *****************************************************************************
+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"/>
+
+
+interface WeakRef<T extends object> {
+ readonly [Symbol.toStringTag]: "WeakRef";
+
+ /**
+ * Returns the WeakRef instance's target object, or undefined if the target object has been
+ * reclaimed.
+ */
+ deref(): T | undefined;
+}
+
+interface WeakRefConstructor {
+ readonly prototype: WeakRef<any>;
+
+ /**
+ * Creates a WeakRef instance for the given target object.
+ * @param target The target object for the WeakRef instance.
+ */
+ new<T extends object>(target: T): WeakRef<T>;
+}
+
+declare var WeakRef: WeakRefConstructor;
+
+interface FinalizationRegistry<T> {
+ readonly [Symbol.toStringTag]: "FinalizationRegistry";
+
+ /**
+ * Registers an object with the registry.
+ * @param target The target object to register.
+ * @param heldValue The value to pass to the finalizer for this object. This cannot be the
+ * target object.
+ * @param unregisterToken The token to pass to the unregister method to unregister the target
+ * object. If provided (and not undefined), this must be an object. If not provided, the target
+ * cannot be unregistered.
+ */
+ register(target: object, heldValue: T, unregisterToken?: object): void;
+
+ /**
+ * Unregisters an object from the registry.
+ * @param unregisterToken The token that was used as the unregisterToken argument when calling
+ * register to register the target object.
+ */
+ unregister(unregisterToken: object): void;
+}
+
+interface FinalizationRegistryConstructor {
+ readonly prototype: FinalizationRegistry<any>;
+
+ /**
+ * Creates a finalization registry with an associated cleanup callback
+ * @param cleanupCallback The callback to call after an object in the registry has been reclaimed.
+ */
+ new<T>(cleanupCallback: (heldValue: T) => void): FinalizationRegistry<T>;
+}
+
+declare var FinalizationRegistry: FinalizationRegistryConstructor;
diff --git a/cli/dts/lib.es5.d.ts b/cli/dts/lib.es5.d.ts
index 9e6dfccdf..606c9f201 100644
--- a/cli/dts/lib.es5.d.ts
+++ b/cli/dts/lib.es5.d.ts
@@ -33,12 +33,12 @@ declare function eval(x: string): any;
/**
* Converts a string to an integer.
- * @param s A string to convert into a number.
- * @param radix A value between 2 and 36 that specifies the base of the number in numString.
+ * @param string A string to convert into a number.
+ * @param radix A value between 2 and 36 that specifies the base of the number in `string`.
* If this argument is not supplied, strings with a prefix of '0x' are considered hexadecimal.
* All other strings are considered decimal.
*/
-declare function parseInt(s: string, radix?: number): number;
+declare function parseInt(string: string, radix?: number): number;
/**
* Converts a string to a floating-point number.
@@ -197,14 +197,14 @@ interface ObjectConstructor {
* @param p The property name.
* @param attributes Descriptor for the property. It can be for a data property or an accessor property.
*/
- defineProperty(o: any, p: PropertyKey, attributes: PropertyDescriptor & ThisType<any>): any;
+ defineProperty<T>(o: T, p: PropertyKey, attributes: PropertyDescriptor & ThisType<any>): T;
/**
* Adds one or more properties to an object, and/or modifies attributes of existing properties.
* @param o Object on which to add or modify the properties. This can be a native JavaScript object or a DOM object.
* @param properties JavaScript object that contains one or more descriptor objects. Each descriptor object describes a data property or an accessor property.
*/
- defineProperties(o: any, properties: PropertyDescriptorMap & ThisType<any>): any;
+ defineProperties<T>(o: T, properties: PropertyDescriptorMap & ThisType<any>): T;
/**
* Prevents the modification of attributes of existing properties, and prevents the addition of new properties.
@@ -1093,7 +1093,7 @@ interface ReadonlyArray<T> {
*/
toString(): string;
/**
- * Returns a string representation of an array. The elements are converted to string using their toLocalString methods.
+ * Returns a string representation of an array. The elements are converted to string using their toLocaleString methods.
*/
toLocaleString(): string;
/**
@@ -1227,7 +1227,7 @@ interface Array<T> {
*/
toString(): string;
/**
- * Returns a string representation of an array. The elements are converted to string using their toLocalString methods.
+ * Returns a string representation of an array. The elements are converted to string using their toLocaleString methods.
*/
toLocaleString(): string;
/**
@@ -1528,7 +1528,7 @@ type Parameters<T extends (...args: any) => any> = T extends (...args: infer P)
/**
* Obtain the parameters of a constructor function type in a tuple
*/
-type ConstructorParameters<T extends new (...args: any) => any> = T extends new (...args: infer P) => any ? P : never;
+type ConstructorParameters<T extends abstract new (...args: any) => any> = T extends abstract new (...args: infer P) => any ? P : never;
/**
* Obtain the return type of a function type
@@ -1538,7 +1538,7 @@ type ReturnType<T extends (...args: any) => any> = T extends (...args: any) => i
/**
* Obtain the return type of a constructor function type
*/
-type InstanceType<T extends new (...args: any) => any> = T extends new (...args: any) => infer R ? R : any;
+type InstanceType<T extends abstract new (...args: any) => any> = T extends abstract new (...args: any) => infer R ? R : any;
/**
* Convert string literal type to uppercase
diff --git a/cli/dts/lib.esnext.d.ts b/cli/dts/lib.esnext.d.ts
index ae7aaecd7..f1a4c7e14 100644
--- a/cli/dts/lib.esnext.d.ts
+++ b/cli/dts/lib.esnext.d.ts
@@ -18,8 +18,5 @@ and limitations under the License.
/// <reference no-default-lib="true"/>
-/// <reference lib="es2020" />
+/// <reference lib="es2021" />
/// <reference lib="esnext.intl" />
-/// <reference lib="esnext.string" />
-/// <reference lib="esnext.promise" />
-/// <reference lib="esnext.weakref" />
diff --git a/cli/dts/lib.webworker.d.ts b/cli/dts/lib.webworker.d.ts
index 1e0472624..528778ffd 100644
--- a/cli/dts/lib.webworker.d.ts
+++ b/cli/dts/lib.webworker.d.ts
@@ -382,11 +382,6 @@ interface PushPermissionDescriptor extends PermissionDescriptor {
userVisibleOnly?: boolean;
}
-interface PushSubscriptionChangeEventInit extends ExtendableEventInit {
- newSubscription?: PushSubscription;
- oldSubscription?: PushSubscription;
-}
-
interface PushSubscriptionJSON {
endpoint?: string;
expirationTime?: number | null;
@@ -406,7 +401,7 @@ interface QueuingStrategy<T = any> {
interface QueuingStrategyInit {
/**
* Creates a new ByteLengthQueuingStrategy with the provided high water mark.
- *
+ *
* Note that the provided high water mark will not be validated ahead of time. Instead, if it is negative, NaN, or not a number, the resulting ByteLengthQueuingStrategy will cause the corresponding stream constructor to throw.
*/
highWaterMark: number;
@@ -426,7 +421,7 @@ interface ReadableWritablePair<R = any, W = any> {
readable: ReadableStream<R>;
/**
* Provides a convenient, chainable way of piping this readable stream through a transform stream (or any other { writable, readable } pair). It simply pipes the stream into the writable side of the supplied pair, and returns the readable side for further use.
- *
+ *
* Piping a stream will lock it for the duration of the pipe, preventing any other consumer from acquiring a reader.
*/
writable: WritableStream<W>;
@@ -536,19 +531,19 @@ interface StreamPipeOptions {
preventCancel?: boolean;
/**
* Pipes this readable stream to a given writable stream destination. The way in which the piping process behaves under various error conditions can be customized with a number of passed options. It returns a promise that fulfills when the piping process completes successfully, or rejects if any errors were encountered.
- *
+ *
* Piping a stream will lock it for the duration of the pipe, preventing any other consumer from acquiring a reader.
- *
+ *
* Errors and closures of the source and destination streams propagate as follows:
- *
+ *
* An error in this source readable stream will abort destination, unless preventAbort is truthy. The returned promise will be rejected with the source's error, or with any error that occurs during aborting the destination.
- *
+ *
* An error in destination will cancel this source readable stream, unless preventCancel is truthy. The returned promise will be rejected with the destination's error, or with any error that occurs during canceling the source.
- *
+ *
* When this source readable stream closes, destination will be closed, unless preventClose is truthy. The returned promise will be fulfilled once this process completes, unless an error is encountered while closing the destination, in which case it will be rejected with that error.
- *
+ *
* If destination starts out closed or closing, this source readable stream will be canceled, unless preventCancel is true. The returned promise will be rejected with an error indicating piping to a closed stream failed, or with any error that occurs during canceling the source.
- *
+ *
* The signal option can be set to an AbortSignal to allow aborting an ongoing pipe operation via the corresponding AbortController. In this case, this source readable stream will be canceled, and destination aborted, unless the respective options preventCancel or preventAbort are set.
*/
preventClose?: boolean;
@@ -833,7 +828,7 @@ interface CanvasFilters {
interface CanvasGradient {
/**
* Adds a color stop with the given color to the gradient at the given offset. 0.0 is the offset at one end of the gradient, 1.0 is the offset at the other end.
- *
+ *
* Throws an "IndexSizeError" DOMException if the offset is out of range. Throws a "SyntaxError" DOMException if the color cannot be parsed.
*/
addColorStop(offset: number, color: string): void;
@@ -1515,15 +1510,15 @@ declare var EventSource: {
interface EventTarget {
/**
* Appends an event listener for events whose type attribute value is type. The callback argument sets the callback that will be invoked when the event is dispatched.
- *
+ *
* The options argument sets listener-specific options. For compatibility this can be a boolean, in which case the method behaves exactly as if the value was specified as options's capture.
- *
+ *
* When set to true, options's capture prevents callback from being invoked when the event's eventPhase attribute value is BUBBLING_PHASE. When false (or not present), callback will not be invoked when event's eventPhase attribute value is CAPTURING_PHASE. Either way, callback will be invoked if event's eventPhase attribute value is AT_TARGET.
- *
+ *
* When set to true, options's passive indicates that the callback will not cancel the event by invoking preventDefault(). This is used to enable performance optimizations described in ยง 2.8 Observing event listeners.
- *
+ *
* When set to true, options's once indicates that the callback will only be invoked once after which the event listener will be removed.
- *
+ *
* The event listener is appended to target's event listener list and is not appended if it has the same type, callback, and capture.
*/
addEventListener(type: string, listener: EventListenerOrEventListenerObject | null, options?: boolean | AddEventListenerOptions): void;
@@ -1570,7 +1565,6 @@ declare var ExtendableMessageEvent: {
interface FetchEvent extends ExtendableEvent {
readonly clientId: string;
readonly preloadResponse: Promise<any>;
- readonly replacesClientId: string;
readonly request: Request;
readonly resultingClientId: string;
respondWith(r: Response | Promise<Response>): void;
@@ -1730,15 +1724,15 @@ interface IDBCursor {
continuePrimaryKey(key: IDBValidKey, primaryKey: IDBValidKey): void;
/**
* Delete the record pointed at by the cursor with a new value.
- *
+ *
* If successful, request's result will be undefined.
*/
delete(): IDBRequest<undefined>;
/**
* Updated the record pointed at by the cursor with a new value.
- *
+ *
* Throws a "DataError" DOMException if the effective object store uses in-line keys and the key would have changed.
- *
+ *
* If successful, request's result will be the record's key.
*/
update(value: any): IDBRequest<IDBValidKey>;
@@ -1793,13 +1787,13 @@ interface IDBDatabase extends EventTarget {
close(): void;
/**
* Creates a new object store with the given name and options and returns a new IDBObjectStore.
- *
+ *
* Throws a "InvalidStateError" DOMException if not called within an upgrade transaction.
*/
createObjectStore(name: string, options?: IDBObjectStoreParameters): IDBObjectStore;
/**
* Deletes the object store with the given name.
- *
+ *
* Throws a "InvalidStateError" DOMException if not called within an upgrade transaction.
*/
deleteObjectStore(name: string): void;
@@ -1822,7 +1816,7 @@ declare var IDBDatabase: {
interface IDBFactory {
/**
* Compares two values as keys. Returns -1 if key1 precedes key2, 1 if key2 precedes key1, and 0 if the keys are equal.
- *
+ *
* Throws a "DataError" DOMException if either input is not a valid key.
*/
cmp(first: any, second: any): number;
@@ -1856,43 +1850,43 @@ interface IDBIndex {
readonly unique: boolean;
/**
* Retrieves the number of records matching the given key or key range in query.
- *
+ *
* If successful, request's result will be the count.
*/
count(key?: IDBValidKey | IDBKeyRange): IDBRequest<number>;
/**
* Retrieves the value of the first record matching the given key or key range in query.
- *
+ *
* If successful, request's result will be the value, or undefined if there was no matching record.
*/
get(key: IDBValidKey | IDBKeyRange): IDBRequest<any | undefined>;
/**
* Retrieves the values of the records matching the given key or key range in query (up to count if given).
- *
+ *
* If successful, request's result will be an Array of the values.
*/
getAll(query?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<any[]>;
/**
* Retrieves the keys of records matching the given key or key range in query (up to count if given).
- *
+ *
* If successful, request's result will be an Array of the keys.
*/
getAllKeys(query?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<IDBValidKey[]>;
/**
* Retrieves the key of the first record matching the given key or key range in query.
- *
+ *
* If successful, request's result will be the key, or undefined if there was no matching record.
*/
getKey(key: IDBValidKey | IDBKeyRange): IDBRequest<IDBValidKey | undefined>;
/**
* Opens a cursor over the records matching query, ordered by direction. If query is null, all records in index are matched.
- *
+ *
* If successful, request's result will be an IDBCursorWithValue, or null if there were no matching records.
*/
openCursor(query?: IDBValidKey | IDBKeyRange | null, direction?: IDBCursorDirection): IDBRequest<IDBCursorWithValue | null>;
/**
* Opens a cursor with key only flag set over the records matching query, ordered by direction. If query is null, all records in index are matched.
- *
+ *
* If successful, request's result will be an IDBCursor, or null if there were no matching records.
*/
openKeyCursor(query?: IDBValidKey | IDBKeyRange | null, direction?: IDBCursorDirection): IDBRequest<IDBCursor | null>;
@@ -1972,88 +1966,88 @@ interface IDBObjectStore {
readonly transaction: IDBTransaction;
/**
* Adds or updates a record in store with the given value and key.
- *
+ *
* If the store uses in-line keys and key is specified a "DataError" DOMException will be thrown.
- *
+ *
* If put() is used, any existing record with the key will be replaced. If add() is used, and if a record with the key already exists the request will fail, with request's error set to a "ConstraintError" DOMException.
- *
+ *
* If successful, request's result will be the record's key.
*/
add(value: any, key?: IDBValidKey): IDBRequest<IDBValidKey>;
/**
* Deletes all records in store.
- *
+ *
* If successful, request's result will be undefined.
*/
clear(): IDBRequest<undefined>;
/**
* Retrieves the number of records matching the given key or key range in query.
- *
+ *
* If successful, request's result will be the count.
*/
count(key?: IDBValidKey | IDBKeyRange): IDBRequest<number>;
/**
* Creates a new index in store with the given name, keyPath and options and returns a new IDBIndex. If the keyPath and options define constraints that cannot be satisfied with the data already in store the upgrade transaction will abort with a "ConstraintError" DOMException.
- *
+ *
* Throws an "InvalidStateError" DOMException if not called within an upgrade transaction.
*/
createIndex(name: string, keyPath: string | string[], options?: IDBIndexParameters): IDBIndex;
/**
* Deletes records in store with the given key or in the given key range in query.
- *
+ *
* If successful, request's result will be undefined.
*/
delete(key: IDBValidKey | IDBKeyRange): IDBRequest<undefined>;
/**
* Deletes the index in store with the given name.
- *
+ *
* Throws an "InvalidStateError" DOMException if not called within an upgrade transaction.
*/
deleteIndex(name: string): void;
/**
* Retrieves the value of the first record matching the given key or key range in query.
- *
+ *
* If successful, request's result will be the value, or undefined if there was no matching record.
*/
get(query: IDBValidKey | IDBKeyRange): IDBRequest<any | undefined>;
/**
* Retrieves the values of the records matching the given key or key range in query (up to count if given).
- *
+ *
* If successful, request's result will be an Array of the values.
*/
getAll(query?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<any[]>;
/**
* Retrieves the keys of records matching the given key or key range in query (up to count if given).
- *
+ *
* If successful, request's result will be an Array of the keys.
*/
getAllKeys(query?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<IDBValidKey[]>;
/**
* Retrieves the key of the first record matching the given key or key range in query.
- *
+ *
* If successful, request's result will be the key, or undefined if there was no matching record.
*/
getKey(query: IDBValidKey | IDBKeyRange): IDBRequest<IDBValidKey | undefined>;
index(name: string): IDBIndex;
/**
* Opens a cursor over the records matching query, ordered by direction. If query is null, all records in store are matched.
- *
+ *
* If successful, request's result will be an IDBCursorWithValue pointing at the first matching record, or null if there were no matching records.
*/
openCursor(query?: IDBValidKey | IDBKeyRange | null, direction?: IDBCursorDirection): IDBRequest<IDBCursorWithValue | null>;
/**
* Opens a cursor with key only flag set over the records matching query, ordered by direction. If query is null, all records in store are matched.
- *
+ *
* If successful, request's result will be an IDBCursor pointing at the first matching record, or null if there were no matching records.
*/
openKeyCursor(query?: IDBValidKey | IDBKeyRange | null, direction?: IDBCursorDirection): IDBRequest<IDBCursor | null>;
/**
* Adds or updates a record in store with the given value and key.
- *
+ *
* If the store uses in-line keys and key is specified a "DataError" DOMException will be thrown.
- *
+ *
* If put() is used, any existing record with the key will be replaced. If add() is used, and if a record with the key already exists the request will fail, with request's error set to a "ConstraintError" DOMException.
- *
+ *
* If successful, request's result will be the record's key.
*/
put(value: any, key?: IDBValidKey): IDBRequest<IDBValidKey>;
@@ -2299,7 +2293,7 @@ interface MessagePort extends EventTarget {
close(): void;
/**
* Posts a message through the channel. Objects listed in transfer are transferred, not just cloned, meaning that they are no longer usable on the sending side.
- *
+ *
* Throws a "DataCloneError" DOMException if transfer contains duplicate objects or port, or if message could not be cloned.
*/
postMessage(message: any, transfer: Transferable[]): void;
@@ -2447,27 +2441,27 @@ interface OES_vertex_array_object {
interface OffscreenCanvas extends EventTarget {
/**
* These attributes return the dimensions of the OffscreenCanvas object's bitmap.
- *
+ *
* They can be set, to replace the bitmap with a new, transparent black bitmap of the specified dimensions (effectively resizing it).
*/
height: number;
/**
* These attributes return the dimensions of the OffscreenCanvas object's bitmap.
- *
+ *
* They can be set, to replace the bitmap with a new, transparent black bitmap of the specified dimensions (effectively resizing it).
*/
width: number;
/**
* Returns a promise that will fulfill with a new Blob object representing a file containing the image in the OffscreenCanvas object.
- *
+ *
* The argument, if provided, is a dictionary that controls the encoding options of the image file to be created. The type field specifies the file format and has a default value of "image/png"; that type is also used if the requested type isn't supported. If the image format supports variable quality (such as "image/jpeg"), then the quality field is a number in the range 0.0 to 1.0 inclusive indicating the desired quality level for the resulting image.
*/
convertToBlob(options?: ImageEncodeOptions): Promise<Blob>;
/**
* Returns an object that exposes an API for drawing on the OffscreenCanvas object. contextId specifies the desired API: "2d", "bitmaprenderer", "webgl", or "webgl2". options is handled by that API.
- *
+ *
* This specification defines the "2d" context below, which is similar but distinct from the "2d" context that is created from a canvas element. The WebGL specifications define the "webgl" and "webgl2" contexts. [WEBGL]
- *
+ *
* Returns null if the canvas has already been initialized with another context type (e.g., trying to get a "2d" context after getting a "webgl" context).
*/
getContext(contextId: "2d", options?: CanvasRenderingContext2DSettings): OffscreenCanvasRenderingContext2D | null;
@@ -2722,16 +2716,6 @@ declare var PushSubscription: {
new(): PushSubscription;
};
-interface PushSubscriptionChangeEvent extends ExtendableEvent {
- readonly newSubscription: PushSubscription | null;
- readonly oldSubscription: PushSubscription | null;
-}
-
-declare var PushSubscriptionChangeEvent: {
- prototype: PushSubscriptionChangeEvent;
- new(type: string, eventInitDict?: PushSubscriptionChangeEventInit): PushSubscriptionChangeEvent;
-};
-
interface PushSubscriptionOptions {
readonly applicationServerKey: ArrayBuffer | null;
readonly userVisibleOnly: boolean;
@@ -2933,7 +2917,6 @@ interface ServiceWorkerGlobalScopeEventMap extends WorkerGlobalScopeEventMap {
"notificationclick": NotificationEvent;
"notificationclose": NotificationEvent;
"push": PushEvent;
- "pushsubscriptionchange": PushSubscriptionChangeEvent;
"sync": SyncEvent;
}
@@ -2948,7 +2931,6 @@ interface ServiceWorkerGlobalScope extends WorkerGlobalScope {
onnotificationclick: ((this: ServiceWorkerGlobalScope, ev: NotificationEvent) => any) | null;
onnotificationclose: ((this: ServiceWorkerGlobalScope, ev: NotificationEvent) => any) | null;
onpush: ((this: ServiceWorkerGlobalScope, ev: PushEvent) => any) | null;
- onpushsubscriptionchange: ((this: ServiceWorkerGlobalScope, ev: PushSubscriptionChangeEvent) => any) | null;
onsync: ((this: ServiceWorkerGlobalScope, ev: SyncEvent) => any) | null;
readonly registration: ServiceWorkerRegistration;
readonly serviceWorker: ServiceWorker;
@@ -3098,7 +3080,7 @@ declare var SyncManager: {
interface TextDecoder extends TextDecoderCommon {
/**
* Returns the result of running encoding's decoder. The method can be invoked zero or more times with options's stream set to true, and then once without options's stream (or set to false), to process a fragmented input. If the invocation without options's stream (or set to false) has no input, it's clearest to omit both arguments.
- *
+ *
* ```
* var string = "", decoder = new TextDecoder(encoding), buffer;
* while(buffer = next_chunk()) {
@@ -3106,7 +3088,7 @@ interface TextDecoder extends TextDecoderCommon {
* }
* string += decoder.decode(); // end-of-queue
* ```
- *
+ *
* If the error mode is "fatal" and encoding's decoder returns error, throws a TypeError.
*/
decode(input?: BufferSource, options?: TextDecodeOptions): string;
@@ -3197,34 +3179,6 @@ interface TextMetrics {
/**
* Returns the measurement described below.
*/
- readonly alphabeticBaseline: number;
- /**
- * Returns the measurement described below.
- */
- readonly emHeightAscent: number;
- /**
- * Returns the measurement described below.
- */
- readonly emHeightDescent: number;
- /**
- * Returns the measurement described below.
- */
- readonly fontBoundingBoxAscent: number;
- /**
- * Returns the measurement described below.
- */
- readonly fontBoundingBoxDescent: number;
- /**
- * Returns the measurement described below.
- */
- readonly hangingBaseline: number;
- /**
- * Returns the measurement described below.
- */
- readonly ideographicBaseline: number;
- /**
- * Returns the measurement described below.
- */
readonly width: number;
}
@@ -4407,7 +4361,7 @@ declare var WebGLActiveInfo: {
};
/** Part of the WebGL API and represents an opaque buffer object storing data such as vertices or colors. */
-interface WebGLBuffer extends WebGLObject {
+interface WebGLBuffer {
}
declare var WebGLBuffer: {
@@ -4426,7 +4380,7 @@ declare var WebGLContextEvent: {
};
/** Part of the WebGL API and represents a collection of buffers that serve as a rendering destination. */
-interface WebGLFramebuffer extends WebGLObject {
+interface WebGLFramebuffer {
}
declare var WebGLFramebuffer: {
@@ -4434,16 +4388,8 @@ declare var WebGLFramebuffer: {
new(): WebGLFramebuffer;
};
-interface WebGLObject {
-}
-
-declare var WebGLObject: {
- prototype: WebGLObject;
- new(): WebGLObject;
-};
-
/** The WebGLProgram is part of the WebGL API and is a combination of two compiled WebGLShaders consisting of a vertex shader and a fragment shader (both written in GLSL). */
-interface WebGLProgram extends WebGLObject {
+interface WebGLProgram {
}
declare var WebGLProgram: {
@@ -4451,7 +4397,7 @@ declare var WebGLProgram: {
new(): WebGLProgram;
};
-interface WebGLQuery extends WebGLObject {
+interface WebGLQuery {
}
declare var WebGLQuery: {
@@ -4460,7 +4406,7 @@ declare var WebGLQuery: {
};
/** Part of the WebGL API and represents a buffer that can contain an image, or can be source or target of an rendering operation. */
-interface WebGLRenderbuffer extends WebGLObject {
+interface WebGLRenderbuffer {
}
declare var WebGLRenderbuffer: {
@@ -5239,7 +5185,7 @@ interface WebGLRenderingContextOverloads {
uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Float32List): void;
}
-interface WebGLSampler extends WebGLObject {
+interface WebGLSampler {
}
declare var WebGLSampler: {
@@ -5248,7 +5194,7 @@ declare var WebGLSampler: {
};
/** The WebGLShader is part of the WebGL API and can either be a vertex or a fragment shader. A WebGLProgram requires both types of shaders. */
-interface WebGLShader extends WebGLObject {
+interface WebGLShader {
}
declare var WebGLShader: {
@@ -5268,7 +5214,7 @@ declare var WebGLShaderPrecisionFormat: {
new(): WebGLShaderPrecisionFormat;
};
-interface WebGLSync extends WebGLObject {
+interface WebGLSync {
}
declare var WebGLSync: {
@@ -5277,7 +5223,7 @@ declare var WebGLSync: {
};
/** Part of the WebGL API and represents an opaque texture object providing storage and state for texturing operations. */
-interface WebGLTexture extends WebGLObject {
+interface WebGLTexture {
}
declare var WebGLTexture: {
@@ -5285,7 +5231,7 @@ declare var WebGLTexture: {
new(): WebGLTexture;
};
-interface WebGLTransformFeedback extends WebGLObject {
+interface WebGLTransformFeedback {
}
declare var WebGLTransformFeedback: {
@@ -5302,7 +5248,7 @@ declare var WebGLUniformLocation: {
new(): WebGLUniformLocation;
};
-interface WebGLVertexArrayObject extends WebGLObject {
+interface WebGLVertexArrayObject {
}
declare var WebGLVertexArrayObject: {
@@ -5310,7 +5256,7 @@ declare var WebGLVertexArrayObject: {
new(): WebGLVertexArrayObject;
};
-interface WebGLVertexArrayObjectOES extends WebGLObject {
+interface WebGLVertexArrayObjectOES {
}
interface WebSocketEventMap {
@@ -5324,13 +5270,13 @@ interface WebSocketEventMap {
interface WebSocket extends EventTarget {
/**
* Returns a string that indicates how binary data from the WebSocket object is exposed to scripts:
- *
+ *
* Can be set, to change how binary data is returned. The default is "blob".
*/
binaryType: BinaryType;
/**
* Returns the number of bytes of application data (UTF-8 text and binary data) that have been queued using send() but not yet been transmitted to the network.
- *
+ *
* If the WebSocket connection is closed, this attribute's value will only increase with each call to the send() method. (The number does not reset to zero once the connection closes.)
*/
readonly bufferedAmount: number;
@@ -5383,7 +5329,6 @@ 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 ancestorOrigins: ReadonlyArray<string>;
readonly focused: boolean;
readonly visibilityState: VisibilityState;
focus(): Promise<WindowClient>;
@@ -5506,7 +5451,6 @@ 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 window.self.navigator. */
interface WorkerNavigator extends NavigatorConcurrentHardware, NavigatorID, NavigatorLanguage, NavigatorOnLine, NavigatorStorage {
readonly permissions: Permissions;
- readonly serviceWorker: ServiceWorkerContainer;
}
declare var WorkerNavigator: {
@@ -5569,19 +5513,19 @@ interface XMLHttpRequest extends XMLHttpRequestEventTarget {
readonly response: any;
/**
* Returns the text response.
- *
+ *
* Throws an "InvalidStateError" DOMException if responseType is not the empty string or "text".
*/
readonly responseText: string;
/**
* Returns the response type.
- *
+ *
* Can be set to change the response type. Values are: the empty string (default), "arraybuffer", "blob", "document", "json", and "text".
- *
+ *
* When set: setting to "document" is ignored if current global object is not a Window object.
- *
+ *
* When set: throws an "InvalidStateError" DOMException if state is loading or done.
- *
+ *
* When set: throws an "InvalidAccessError" DOMException if the synchronous flag is set and current global object is a Window object.
*/
responseType: XMLHttpRequestResponseType;
@@ -5590,7 +5534,7 @@ interface XMLHttpRequest extends XMLHttpRequestEventTarget {
readonly statusText: string;
/**
* Can be set to a time in milliseconds. When set to a non-zero value will cause fetching to terminate after the given time has passed. When the time has passed, the request has not yet completed, and the synchronous flag is unset, a timeout event will then be dispatched, or a "TimeoutError" DOMException will be thrown otherwise (for the send() method).
- *
+ *
* When set: throws an "InvalidAccessError" DOMException if the synchronous flag is set and current global object is a Window object.
*/
timeout: number;
@@ -5600,7 +5544,7 @@ interface XMLHttpRequest extends XMLHttpRequestEventTarget {
readonly upload: XMLHttpRequestUpload;
/**
* True when credentials are to be included in a cross-origin request. False when they are to be excluded in a cross-origin request and when cookies are to be ignored in its response. Initially false.
- *
+ *
* When set: throws an "InvalidStateError" DOMException if state is not unsent or opened, or if the send() flag is set.
*/
withCredentials: boolean;
@@ -5612,32 +5556,32 @@ interface XMLHttpRequest extends XMLHttpRequestEventTarget {
getResponseHeader(name: string): string | null;
/**
* Sets the request method, request URL, and synchronous flag.
- *
+ *
* Throws a "SyntaxError" DOMException if either method is not a valid HTTP method or url cannot be parsed.
- *
+ *
* Throws a "SecurityError" DOMException if method is a case-insensitive match for `CONNECT`, `TRACE`, or `TRACK`.
- *
+ *
* Throws an "InvalidAccessError" DOMException if async is false, current global object is a Window object, and the timeout attribute is not zero or the responseType attribute is not the empty string.
*/
open(method: string, url: string): void;
open(method: string, url: string, async: boolean, username?: string | null, password?: string | null): void;
/**
* Acts as if the `Content-Type` header value for response is mime. (It does not actually change the header though.)
- *
+ *
* Throws an "InvalidStateError" DOMException if state is loading or done.
*/
overrideMimeType(mime: string): void;
/**
* Initiates the request. The body argument provides the request body, if any, and is ignored if the request method is GET or HEAD.
- *
+ *
* Throws an "InvalidStateError" DOMException if either state is not opened or the send() flag is set.
*/
send(body?: BodyInit | null): void;
/**
* Combines a header in author request headers.
- *
+ *
* Throws an "InvalidStateError" DOMException if either state is not opened or the send() flag is set.
- *
+ *
* Throws a "SyntaxError" DOMException if name is not a header name or if value is not a header value.
*/
setRequestHeader(name: string, value: string): void;
@@ -5737,34 +5681,34 @@ declare namespace WebAssembly {
value: any;
valueOf(): any;
}
-
+
var Global: {
prototype: Global;
new(descriptor: GlobalDescriptor, v?: any): Global;
};
-
+
interface Instance {
readonly exports: Exports;
}
-
+
var Instance: {
prototype: Instance;
new(module: Module, importObject?: Imports): Instance;
};
-
+
interface Memory {
readonly buffer: ArrayBuffer;
grow(delta: number): number;
}
-
+
var Memory: {
prototype: Memory;
new(descriptor: MemoryDescriptor): Memory;
};
-
+
interface Module {
}
-
+
var Module: {
prototype: Module;
new(bytes: BufferSource): Module;
@@ -5772,51 +5716,52 @@ declare namespace WebAssembly {
exports(moduleObject: Module): ModuleExportDescriptor[];
imports(moduleObject: Module): ModuleImportDescriptor[];
};
-
+
interface Table {
readonly length: number;
get(index: number): Function | null;
grow(delta: number): number;
set(index: number, value: Function | null): void;
}
-
+
var Table: {
prototype: Table;
new(descriptor: TableDescriptor): Table;
};
-
+
interface GlobalDescriptor {
mutable?: boolean;
value: ValueType;
}
-
+
interface MemoryDescriptor {
initial: number;
maximum?: number;
+ shared?: boolean;
}
-
+
interface ModuleExportDescriptor {
kind: ImportExportKind;
name: string;
}
-
+
interface ModuleImportDescriptor {
kind: ImportExportKind;
module: string;
name: string;
}
-
+
interface TableDescriptor {
element: TableKind;
initial: number;
maximum?: number;
}
-
+
interface WebAssemblyInstantiatedSource {
instance: Instance;
module: Module;
}
-
+
type ImportExportKind = "function" | "global" | "memory" | "table";
type TableKind = "anyfunc";
type ValueType = "f32" | "f64" | "i32" | "i64";
diff --git a/cli/dts/lib.webworker.iterable.d.ts b/cli/dts/lib.webworker.iterable.d.ts
index cef75d9e6..2f3bdc936 100644
--- a/cli/dts/lib.webworker.iterable.d.ts
+++ b/cli/dts/lib.webworker.iterable.d.ts
@@ -80,7 +80,7 @@ interface IDBDatabase {
interface IDBObjectStore {
/**
* Creates a new index in store with the given name, keyPath and options and returns a new IDBIndex. If the keyPath and options define constraints that cannot be satisfied with the data already in store the upgrade transaction will abort with a "ConstraintError" DOMException.
- *
+ *
* Throws an "InvalidStateError" DOMException if not called within an upgrade transaction.
*/
createIndex(name: string, keyPath: string | Iterable<string>, options?: IDBIndexParameters): IDBIndex;
diff --git a/cli/dts/typescript.d.ts b/cli/dts/typescript.d.ts
index bba168d37..b86a3a299 100644
--- a/cli/dts/typescript.d.ts
+++ b/cli/dts/typescript.d.ts
@@ -14,7 +14,7 @@ and limitations under the License.
***************************************************************************** */
declare namespace ts {
- const versionMajorMinor = "4.2";
+ const versionMajorMinor = "4.3";
/** The version of the TypeScript compiler release */
const version: string;
/**
@@ -260,192 +260,196 @@ declare namespace ts {
FromKeyword = 153,
GlobalKeyword = 154,
BigIntKeyword = 155,
- OfKeyword = 156,
- QualifiedName = 157,
- ComputedPropertyName = 158,
- TypeParameter = 159,
- Parameter = 160,
- Decorator = 161,
- PropertySignature = 162,
- PropertyDeclaration = 163,
- MethodSignature = 164,
- MethodDeclaration = 165,
- Constructor = 166,
- GetAccessor = 167,
- SetAccessor = 168,
- CallSignature = 169,
- ConstructSignature = 170,
- IndexSignature = 171,
- TypePredicate = 172,
- TypeReference = 173,
- FunctionType = 174,
- ConstructorType = 175,
- TypeQuery = 176,
- TypeLiteral = 177,
- ArrayType = 178,
- TupleType = 179,
- OptionalType = 180,
- RestType = 181,
- UnionType = 182,
- IntersectionType = 183,
- ConditionalType = 184,
- InferType = 185,
- ParenthesizedType = 186,
- ThisType = 187,
- TypeOperator = 188,
- IndexedAccessType = 189,
- MappedType = 190,
- LiteralType = 191,
- NamedTupleMember = 192,
- TemplateLiteralType = 193,
- TemplateLiteralTypeSpan = 194,
- ImportType = 195,
- ObjectBindingPattern = 196,
- ArrayBindingPattern = 197,
- BindingElement = 198,
- ArrayLiteralExpression = 199,
- ObjectLiteralExpression = 200,
- PropertyAccessExpression = 201,
- ElementAccessExpression = 202,
- CallExpression = 203,
- NewExpression = 204,
- TaggedTemplateExpression = 205,
- TypeAssertionExpression = 206,
- ParenthesizedExpression = 207,
- FunctionExpression = 208,
- ArrowFunction = 209,
- DeleteExpression = 210,
- TypeOfExpression = 211,
- VoidExpression = 212,
- AwaitExpression = 213,
- PrefixUnaryExpression = 214,
- PostfixUnaryExpression = 215,
- BinaryExpression = 216,
- ConditionalExpression = 217,
- TemplateExpression = 218,
- YieldExpression = 219,
- SpreadElement = 220,
- ClassExpression = 221,
- OmittedExpression = 222,
- ExpressionWithTypeArguments = 223,
- AsExpression = 224,
- NonNullExpression = 225,
- MetaProperty = 226,
- SyntheticExpression = 227,
- TemplateSpan = 228,
- SemicolonClassElement = 229,
- Block = 230,
- EmptyStatement = 231,
- VariableStatement = 232,
- ExpressionStatement = 233,
- IfStatement = 234,
- DoStatement = 235,
- WhileStatement = 236,
- ForStatement = 237,
- ForInStatement = 238,
- ForOfStatement = 239,
- ContinueStatement = 240,
- BreakStatement = 241,
- ReturnStatement = 242,
- WithStatement = 243,
- SwitchStatement = 244,
- LabeledStatement = 245,
- ThrowStatement = 246,
- TryStatement = 247,
- DebuggerStatement = 248,
- VariableDeclaration = 249,
- VariableDeclarationList = 250,
- FunctionDeclaration = 251,
- ClassDeclaration = 252,
- InterfaceDeclaration = 253,
- TypeAliasDeclaration = 254,
- EnumDeclaration = 255,
- ModuleDeclaration = 256,
- ModuleBlock = 257,
- CaseBlock = 258,
- NamespaceExportDeclaration = 259,
- ImportEqualsDeclaration = 260,
- ImportDeclaration = 261,
- ImportClause = 262,
- NamespaceImport = 263,
- NamedImports = 264,
- ImportSpecifier = 265,
- ExportAssignment = 266,
- ExportDeclaration = 267,
- NamedExports = 268,
- NamespaceExport = 269,
- ExportSpecifier = 270,
- MissingDeclaration = 271,
- ExternalModuleReference = 272,
- JsxElement = 273,
- JsxSelfClosingElement = 274,
- JsxOpeningElement = 275,
- JsxClosingElement = 276,
- JsxFragment = 277,
- JsxOpeningFragment = 278,
- JsxClosingFragment = 279,
- JsxAttribute = 280,
- JsxAttributes = 281,
- JsxSpreadAttribute = 282,
- JsxExpression = 283,
- CaseClause = 284,
- DefaultClause = 285,
- HeritageClause = 286,
- CatchClause = 287,
- PropertyAssignment = 288,
- ShorthandPropertyAssignment = 289,
- SpreadAssignment = 290,
- EnumMember = 291,
- UnparsedPrologue = 292,
- UnparsedPrepend = 293,
- UnparsedText = 294,
- UnparsedInternalText = 295,
- UnparsedSyntheticReference = 296,
- SourceFile = 297,
- Bundle = 298,
- UnparsedSource = 299,
- InputFiles = 300,
- JSDocTypeExpression = 301,
- JSDocNameReference = 302,
- JSDocAllType = 303,
- JSDocUnknownType = 304,
- JSDocNullableType = 305,
- JSDocNonNullableType = 306,
- JSDocOptionalType = 307,
- JSDocFunctionType = 308,
- JSDocVariadicType = 309,
- JSDocNamepathType = 310,
- JSDocComment = 311,
- JSDocTypeLiteral = 312,
- JSDocSignature = 313,
- JSDocTag = 314,
- JSDocAugmentsTag = 315,
- JSDocImplementsTag = 316,
- JSDocAuthorTag = 317,
- JSDocDeprecatedTag = 318,
- JSDocClassTag = 319,
- JSDocPublicTag = 320,
- JSDocPrivateTag = 321,
- JSDocProtectedTag = 322,
- JSDocReadonlyTag = 323,
- JSDocCallbackTag = 324,
- JSDocEnumTag = 325,
- JSDocParameterTag = 326,
- JSDocReturnTag = 327,
- JSDocThisTag = 328,
- JSDocTypeTag = 329,
- JSDocTemplateTag = 330,
- JSDocTypedefTag = 331,
- JSDocSeeTag = 332,
- JSDocPropertyTag = 333,
- SyntaxList = 334,
- NotEmittedStatement = 335,
- PartiallyEmittedExpression = 336,
- CommaListExpression = 337,
- MergeDeclarationMarker = 338,
- EndOfDeclarationMarker = 339,
- SyntheticReferenceExpression = 340,
- Count = 341,
+ OverrideKeyword = 156,
+ OfKeyword = 157,
+ QualifiedName = 158,
+ ComputedPropertyName = 159,
+ TypeParameter = 160,
+ Parameter = 161,
+ Decorator = 162,
+ PropertySignature = 163,
+ PropertyDeclaration = 164,
+ MethodSignature = 165,
+ MethodDeclaration = 166,
+ Constructor = 167,
+ GetAccessor = 168,
+ SetAccessor = 169,
+ CallSignature = 170,
+ ConstructSignature = 171,
+ IndexSignature = 172,
+ TypePredicate = 173,
+ TypeReference = 174,
+ FunctionType = 175,
+ ConstructorType = 176,
+ TypeQuery = 177,
+ TypeLiteral = 178,
+ ArrayType = 179,
+ TupleType = 180,
+ OptionalType = 181,
+ RestType = 182,
+ UnionType = 183,
+ IntersectionType = 184,
+ ConditionalType = 185,
+ InferType = 186,
+ ParenthesizedType = 187,
+ ThisType = 188,
+ TypeOperator = 189,
+ IndexedAccessType = 190,
+ MappedType = 191,
+ LiteralType = 192,
+ NamedTupleMember = 193,
+ TemplateLiteralType = 194,
+ TemplateLiteralTypeSpan = 195,
+ ImportType = 196,
+ ObjectBindingPattern = 197,
+ ArrayBindingPattern = 198,
+ BindingElement = 199,
+ ArrayLiteralExpression = 200,
+ ObjectLiteralExpression = 201,
+ PropertyAccessExpression = 202,
+ ElementAccessExpression = 203,
+ CallExpression = 204,
+ NewExpression = 205,
+ TaggedTemplateExpression = 206,
+ TypeAssertionExpression = 207,
+ ParenthesizedExpression = 208,
+ FunctionExpression = 209,
+ ArrowFunction = 210,
+ DeleteExpression = 211,
+ TypeOfExpression = 212,
+ VoidExpression = 213,
+ AwaitExpression = 214,
+ PrefixUnaryExpression = 215,
+ PostfixUnaryExpression = 216,
+ BinaryExpression = 217,
+ ConditionalExpression = 218,
+ TemplateExpression = 219,
+ YieldExpression = 220,
+ SpreadElement = 221,
+ ClassExpression = 222,
+ OmittedExpression = 223,
+ ExpressionWithTypeArguments = 224,
+ AsExpression = 225,
+ NonNullExpression = 226,
+ MetaProperty = 227,
+ SyntheticExpression = 228,
+ TemplateSpan = 229,
+ SemicolonClassElement = 230,
+ Block = 231,
+ EmptyStatement = 232,
+ VariableStatement = 233,
+ ExpressionStatement = 234,
+ IfStatement = 235,
+ DoStatement = 236,
+ WhileStatement = 237,
+ ForStatement = 238,
+ ForInStatement = 239,
+ ForOfStatement = 240,
+ ContinueStatement = 241,
+ BreakStatement = 242,
+ ReturnStatement = 243,
+ WithStatement = 244,
+ SwitchStatement = 245,
+ LabeledStatement = 246,
+ ThrowStatement = 247,
+ TryStatement = 248,
+ DebuggerStatement = 249,
+ VariableDeclaration = 250,
+ VariableDeclarationList = 251,
+ FunctionDeclaration = 252,
+ ClassDeclaration = 253,
+ InterfaceDeclaration = 254,
+ TypeAliasDeclaration = 255,
+ EnumDeclaration = 256,
+ ModuleDeclaration = 257,
+ ModuleBlock = 258,
+ CaseBlock = 259,
+ NamespaceExportDeclaration = 260,
+ ImportEqualsDeclaration = 261,
+ ImportDeclaration = 262,
+ ImportClause = 263,
+ NamespaceImport = 264,
+ NamedImports = 265,
+ ImportSpecifier = 266,
+ ExportAssignment = 267,
+ ExportDeclaration = 268,
+ NamedExports = 269,
+ NamespaceExport = 270,
+ ExportSpecifier = 271,
+ MissingDeclaration = 272,
+ ExternalModuleReference = 273,
+ JsxElement = 274,
+ JsxSelfClosingElement = 275,
+ JsxOpeningElement = 276,
+ JsxClosingElement = 277,
+ JsxFragment = 278,
+ JsxOpeningFragment = 279,
+ JsxClosingFragment = 280,
+ JsxAttribute = 281,
+ JsxAttributes = 282,
+ JsxSpreadAttribute = 283,
+ JsxExpression = 284,
+ CaseClause = 285,
+ DefaultClause = 286,
+ HeritageClause = 287,
+ CatchClause = 288,
+ PropertyAssignment = 289,
+ ShorthandPropertyAssignment = 290,
+ SpreadAssignment = 291,
+ EnumMember = 292,
+ UnparsedPrologue = 293,
+ UnparsedPrepend = 294,
+ UnparsedText = 295,
+ UnparsedInternalText = 296,
+ UnparsedSyntheticReference = 297,
+ SourceFile = 298,
+ Bundle = 299,
+ UnparsedSource = 300,
+ InputFiles = 301,
+ JSDocTypeExpression = 302,
+ JSDocNameReference = 303,
+ JSDocAllType = 304,
+ JSDocUnknownType = 305,
+ JSDocNullableType = 306,
+ JSDocNonNullableType = 307,
+ JSDocOptionalType = 308,
+ JSDocFunctionType = 309,
+ JSDocVariadicType = 310,
+ JSDocNamepathType = 311,
+ JSDocComment = 312,
+ JSDocText = 313,
+ JSDocTypeLiteral = 314,
+ JSDocSignature = 315,
+ JSDocLink = 316,
+ JSDocTag = 317,
+ JSDocAugmentsTag = 318,
+ JSDocImplementsTag = 319,
+ JSDocAuthorTag = 320,
+ JSDocDeprecatedTag = 321,
+ JSDocClassTag = 322,
+ JSDocPublicTag = 323,
+ JSDocPrivateTag = 324,
+ JSDocProtectedTag = 325,
+ JSDocReadonlyTag = 326,
+ JSDocOverrideTag = 327,
+ JSDocCallbackTag = 328,
+ JSDocEnumTag = 329,
+ JSDocParameterTag = 330,
+ JSDocReturnTag = 331,
+ JSDocThisTag = 332,
+ JSDocTypeTag = 333,
+ JSDocTemplateTag = 334,
+ JSDocTypedefTag = 335,
+ JSDocSeeTag = 336,
+ JSDocPropertyTag = 337,
+ SyntaxList = 338,
+ NotEmittedStatement = 339,
+ PartiallyEmittedExpression = 340,
+ CommaListExpression = 341,
+ MergeDeclarationMarker = 342,
+ EndOfDeclarationMarker = 343,
+ SyntheticReferenceExpression = 344,
+ Count = 345,
FirstAssignment = 62,
LastAssignment = 77,
FirstCompoundAssignment = 63,
@@ -453,15 +457,15 @@ declare namespace ts {
FirstReservedWord = 80,
LastReservedWord = 115,
FirstKeyword = 80,
- LastKeyword = 156,
+ LastKeyword = 157,
FirstFutureReservedWord = 116,
LastFutureReservedWord = 124,
- FirstTypeNode = 172,
- LastTypeNode = 195,
+ FirstTypeNode = 173,
+ LastTypeNode = 196,
FirstPunctuation = 18,
LastPunctuation = 77,
FirstToken = 0,
- LastToken = 156,
+ LastToken = 157,
FirstTriviaToken = 2,
LastTriviaToken = 7,
FirstLiteralToken = 8,
@@ -470,20 +474,20 @@ declare namespace ts {
LastTemplateToken = 17,
FirstBinaryOperator = 29,
LastBinaryOperator = 77,
- FirstStatement = 232,
- LastStatement = 248,
- FirstNode = 157,
- FirstJSDocNode = 301,
- LastJSDocNode = 333,
- FirstJSDocTagNode = 314,
- LastJSDocTagNode = 333,
+ FirstStatement = 233,
+ LastStatement = 249,
+ FirstNode = 158,
+ FirstJSDocNode = 302,
+ LastJSDocNode = 337,
+ FirstJSDocTagNode = 317,
+ LastJSDocTagNode = 337,
}
export type TriviaSyntaxKind = SyntaxKind.SingleLineCommentTrivia | SyntaxKind.MultiLineCommentTrivia | SyntaxKind.NewLineTrivia | SyntaxKind.WhitespaceTrivia | SyntaxKind.ShebangTrivia | SyntaxKind.ConflictMarkerTrivia;
export type LiteralSyntaxKind = SyntaxKind.NumericLiteral | SyntaxKind.BigIntLiteral | SyntaxKind.StringLiteral | SyntaxKind.JsxText | SyntaxKind.JsxTextAllWhiteSpaces | SyntaxKind.RegularExpressionLiteral | SyntaxKind.NoSubstitutionTemplateLiteral;
export type PseudoLiteralSyntaxKind = SyntaxKind.TemplateHead | SyntaxKind.TemplateMiddle | SyntaxKind.TemplateTail;
export type PunctuationSyntaxKind = SyntaxKind.OpenBraceToken | SyntaxKind.CloseBraceToken | SyntaxKind.OpenParenToken | SyntaxKind.CloseParenToken | SyntaxKind.OpenBracketToken | SyntaxKind.CloseBracketToken | SyntaxKind.DotToken | SyntaxKind.DotDotDotToken | SyntaxKind.SemicolonToken | SyntaxKind.CommaToken | SyntaxKind.QuestionDotToken | SyntaxKind.LessThanToken | SyntaxKind.LessThanSlashToken | SyntaxKind.GreaterThanToken | SyntaxKind.LessThanEqualsToken | SyntaxKind.GreaterThanEqualsToken | SyntaxKind.EqualsEqualsToken | SyntaxKind.ExclamationEqualsToken | SyntaxKind.EqualsEqualsEqualsToken | SyntaxKind.ExclamationEqualsEqualsToken | SyntaxKind.EqualsGreaterThanToken | SyntaxKind.PlusToken | SyntaxKind.MinusToken | SyntaxKind.AsteriskToken | SyntaxKind.AsteriskAsteriskToken | SyntaxKind.SlashToken | SyntaxKind.PercentToken | SyntaxKind.PlusPlusToken | SyntaxKind.MinusMinusToken | SyntaxKind.LessThanLessThanToken | SyntaxKind.GreaterThanGreaterThanToken | SyntaxKind.GreaterThanGreaterThanGreaterThanToken | SyntaxKind.AmpersandToken | SyntaxKind.BarToken | SyntaxKind.CaretToken | SyntaxKind.ExclamationToken | SyntaxKind.TildeToken | SyntaxKind.AmpersandAmpersandToken | SyntaxKind.BarBarToken | SyntaxKind.QuestionQuestionToken | SyntaxKind.QuestionToken | SyntaxKind.ColonToken | SyntaxKind.AtToken | SyntaxKind.BacktickToken | SyntaxKind.EqualsToken | SyntaxKind.PlusEqualsToken | SyntaxKind.MinusEqualsToken | SyntaxKind.AsteriskEqualsToken | SyntaxKind.AsteriskAsteriskEqualsToken | SyntaxKind.SlashEqualsToken | SyntaxKind.PercentEqualsToken | SyntaxKind.LessThanLessThanEqualsToken | SyntaxKind.GreaterThanGreaterThanEqualsToken | SyntaxKind.GreaterThanGreaterThanGreaterThanEqualsToken | SyntaxKind.AmpersandEqualsToken | SyntaxKind.BarEqualsToken | SyntaxKind.CaretEqualsToken;
- export type KeywordSyntaxKind = SyntaxKind.AbstractKeyword | SyntaxKind.AnyKeyword | SyntaxKind.AsKeyword | SyntaxKind.AssertsKeyword | SyntaxKind.AsyncKeyword | SyntaxKind.AwaitKeyword | SyntaxKind.BigIntKeyword | SyntaxKind.BooleanKeyword | SyntaxKind.BreakKeyword | SyntaxKind.CaseKeyword | SyntaxKind.CatchKeyword | SyntaxKind.ClassKeyword | SyntaxKind.ConstKeyword | SyntaxKind.ConstructorKeyword | SyntaxKind.ContinueKeyword | SyntaxKind.DebuggerKeyword | SyntaxKind.DeclareKeyword | SyntaxKind.DefaultKeyword | SyntaxKind.DeleteKeyword | SyntaxKind.DoKeyword | SyntaxKind.ElseKeyword | SyntaxKind.EnumKeyword | SyntaxKind.ExportKeyword | SyntaxKind.ExtendsKeyword | SyntaxKind.FalseKeyword | SyntaxKind.FinallyKeyword | SyntaxKind.ForKeyword | SyntaxKind.FromKeyword | SyntaxKind.FunctionKeyword | SyntaxKind.GetKeyword | SyntaxKind.GlobalKeyword | SyntaxKind.IfKeyword | SyntaxKind.ImplementsKeyword | SyntaxKind.ImportKeyword | SyntaxKind.InferKeyword | SyntaxKind.InKeyword | SyntaxKind.InstanceOfKeyword | SyntaxKind.InterfaceKeyword | SyntaxKind.IntrinsicKeyword | SyntaxKind.IsKeyword | SyntaxKind.KeyOfKeyword | SyntaxKind.LetKeyword | SyntaxKind.ModuleKeyword | SyntaxKind.NamespaceKeyword | SyntaxKind.NeverKeyword | SyntaxKind.NewKeyword | SyntaxKind.NullKeyword | SyntaxKind.NumberKeyword | SyntaxKind.ObjectKeyword | SyntaxKind.OfKeyword | SyntaxKind.PackageKeyword | SyntaxKind.PrivateKeyword | SyntaxKind.ProtectedKeyword | SyntaxKind.PublicKeyword | SyntaxKind.ReadonlyKeyword | SyntaxKind.RequireKeyword | SyntaxKind.ReturnKeyword | SyntaxKind.SetKeyword | SyntaxKind.StaticKeyword | SyntaxKind.StringKeyword | SyntaxKind.SuperKeyword | SyntaxKind.SwitchKeyword | SyntaxKind.SymbolKeyword | SyntaxKind.ThisKeyword | SyntaxKind.ThrowKeyword | SyntaxKind.TrueKeyword | SyntaxKind.TryKeyword | SyntaxKind.TypeKeyword | SyntaxKind.TypeOfKeyword | SyntaxKind.UndefinedKeyword | SyntaxKind.UniqueKeyword | SyntaxKind.UnknownKeyword | SyntaxKind.VarKeyword | SyntaxKind.VoidKeyword | SyntaxKind.WhileKeyword | SyntaxKind.WithKeyword | SyntaxKind.YieldKeyword;
- export type ModifierSyntaxKind = SyntaxKind.AbstractKeyword | SyntaxKind.AsyncKeyword | SyntaxKind.ConstKeyword | SyntaxKind.DeclareKeyword | SyntaxKind.DefaultKeyword | SyntaxKind.ExportKeyword | SyntaxKind.PrivateKeyword | SyntaxKind.ProtectedKeyword | SyntaxKind.PublicKeyword | SyntaxKind.ReadonlyKeyword | SyntaxKind.StaticKeyword;
+ export type KeywordSyntaxKind = SyntaxKind.AbstractKeyword | SyntaxKind.AnyKeyword | SyntaxKind.AsKeyword | SyntaxKind.AssertsKeyword | SyntaxKind.AsyncKeyword | SyntaxKind.AwaitKeyword | SyntaxKind.BigIntKeyword | SyntaxKind.BooleanKeyword | SyntaxKind.BreakKeyword | SyntaxKind.CaseKeyword | SyntaxKind.CatchKeyword | SyntaxKind.ClassKeyword | SyntaxKind.ConstKeyword | SyntaxKind.ConstructorKeyword | SyntaxKind.ContinueKeyword | SyntaxKind.DebuggerKeyword | SyntaxKind.DeclareKeyword | SyntaxKind.DefaultKeyword | SyntaxKind.DeleteKeyword | SyntaxKind.DoKeyword | SyntaxKind.ElseKeyword | SyntaxKind.EnumKeyword | SyntaxKind.ExportKeyword | SyntaxKind.ExtendsKeyword | SyntaxKind.FalseKeyword | SyntaxKind.FinallyKeyword | SyntaxKind.ForKeyword | SyntaxKind.FromKeyword | SyntaxKind.FunctionKeyword | SyntaxKind.GetKeyword | SyntaxKind.GlobalKeyword | SyntaxKind.IfKeyword | SyntaxKind.ImplementsKeyword | SyntaxKind.ImportKeyword | SyntaxKind.InferKeyword | SyntaxKind.InKeyword | SyntaxKind.InstanceOfKeyword | SyntaxKind.InterfaceKeyword | SyntaxKind.IntrinsicKeyword | SyntaxKind.IsKeyword | SyntaxKind.KeyOfKeyword | SyntaxKind.LetKeyword | SyntaxKind.ModuleKeyword | SyntaxKind.NamespaceKeyword | SyntaxKind.NeverKeyword | SyntaxKind.NewKeyword | SyntaxKind.NullKeyword | SyntaxKind.NumberKeyword | SyntaxKind.ObjectKeyword | SyntaxKind.OfKeyword | SyntaxKind.PackageKeyword | SyntaxKind.PrivateKeyword | SyntaxKind.ProtectedKeyword | SyntaxKind.PublicKeyword | SyntaxKind.ReadonlyKeyword | SyntaxKind.OverrideKeyword | SyntaxKind.RequireKeyword | SyntaxKind.ReturnKeyword | SyntaxKind.SetKeyword | SyntaxKind.StaticKeyword | SyntaxKind.StringKeyword | SyntaxKind.SuperKeyword | SyntaxKind.SwitchKeyword | SyntaxKind.SymbolKeyword | SyntaxKind.ThisKeyword | SyntaxKind.ThrowKeyword | SyntaxKind.TrueKeyword | SyntaxKind.TryKeyword | SyntaxKind.TypeKeyword | SyntaxKind.TypeOfKeyword | SyntaxKind.UndefinedKeyword | SyntaxKind.UniqueKeyword | SyntaxKind.UnknownKeyword | SyntaxKind.VarKeyword | SyntaxKind.VoidKeyword | SyntaxKind.WhileKeyword | SyntaxKind.WithKeyword | SyntaxKind.YieldKeyword;
+ export type ModifierSyntaxKind = SyntaxKind.AbstractKeyword | SyntaxKind.AsyncKeyword | SyntaxKind.ConstKeyword | SyntaxKind.DeclareKeyword | SyntaxKind.DefaultKeyword | SyntaxKind.ExportKeyword | SyntaxKind.PrivateKeyword | SyntaxKind.ProtectedKeyword | SyntaxKind.PublicKeyword | SyntaxKind.ReadonlyKeyword | SyntaxKind.OverrideKeyword | SyntaxKind.StaticKeyword;
export type KeywordTypeSyntaxKind = SyntaxKind.AnyKeyword | SyntaxKind.BigIntKeyword | SyntaxKind.BooleanKeyword | SyntaxKind.IntrinsicKeyword | SyntaxKind.NeverKeyword | SyntaxKind.NumberKeyword | SyntaxKind.ObjectKeyword | SyntaxKind.StringKeyword | SyntaxKind.SymbolKeyword | SyntaxKind.UndefinedKeyword | SyntaxKind.UnknownKeyword | SyntaxKind.VoidKeyword;
export type TokenSyntaxKind = SyntaxKind.Unknown | SyntaxKind.EndOfFileToken | TriviaSyntaxKind | LiteralSyntaxKind | PseudoLiteralSyntaxKind | PunctuationSyntaxKind | SyntaxKind.Identifier | KeywordSyntaxKind;
export type JsxTokenSyntaxKind = SyntaxKind.LessThanSlashToken | SyntaxKind.EndOfFileToken | SyntaxKind.ConflictMarkerTrivia | SyntaxKind.JsxText | SyntaxKind.JsxTextAllWhiteSpaces | SyntaxKind.OpenBraceToken | SyntaxKind.LessThanToken;
@@ -533,13 +537,14 @@ declare namespace ts {
Const = 2048,
HasComputedJSDocModifiers = 4096,
Deprecated = 8192,
+ Override = 16384,
HasComputedFlags = 536870912,
AccessibilityModifier = 28,
- ParameterPropertyModifier = 92,
+ ParameterPropertyModifier = 16476,
NonPublicAccessibilityModifier = 24,
- TypeScriptModifier = 2270,
+ TypeScriptModifier = 18654,
ExportDefault = 513,
- All = 11263
+ All = 27647
}
export enum JsxFlags {
None = 0,
@@ -558,7 +563,7 @@ declare namespace ts {
}
export interface JSDocContainer {
}
- export type HasJSDoc = ParameterDeclaration | CallSignatureDeclaration | ConstructSignatureDeclaration | MethodSignature | PropertySignature | ArrowFunction | ParenthesizedExpression | SpreadAssignment | ShorthandPropertyAssignment | PropertyAssignment | FunctionExpression | LabeledStatement | ExpressionStatement | VariableStatement | FunctionDeclaration | ConstructorDeclaration | MethodDeclaration | PropertyDeclaration | AccessorDeclaration | ClassLikeDeclaration | InterfaceDeclaration | TypeAliasDeclaration | EnumMember | EnumDeclaration | ModuleDeclaration | ImportEqualsDeclaration | ImportDeclaration | NamespaceExportDeclaration | ExportAssignment | IndexSignatureDeclaration | FunctionTypeNode | ConstructorTypeNode | JSDocFunctionType | ExportDeclaration | NamedTupleMember | EndOfFileToken;
+ export type HasJSDoc = ParameterDeclaration | CallSignatureDeclaration | ConstructSignatureDeclaration | MethodSignature | PropertySignature | ArrowFunction | ParenthesizedExpression | SpreadAssignment | ShorthandPropertyAssignment | PropertyAssignment | FunctionExpression | EmptyStatement | DebuggerStatement | Block | VariableStatement | ExpressionStatement | IfStatement | DoStatement | WhileStatement | ForStatement | ForInStatement | ForOfStatement | BreakStatement | ContinueStatement | ReturnStatement | WithStatement | SwitchStatement | LabeledStatement | ThrowStatement | TryStatement | FunctionDeclaration | ConstructorDeclaration | MethodDeclaration | VariableDeclaration | PropertyDeclaration | AccessorDeclaration | ClassLikeDeclaration | InterfaceDeclaration | TypeAliasDeclaration | EnumMember | EnumDeclaration | ModuleDeclaration | ImportEqualsDeclaration | ImportDeclaration | NamespaceExportDeclaration | ExportAssignment | IndexSignatureDeclaration | FunctionTypeNode | ConstructorTypeNode | JSDocFunctionType | ExportDeclaration | NamedTupleMember | EndOfFileToken;
export type HasType = SignatureDeclaration | VariableDeclaration | ParameterDeclaration | PropertySignature | PropertyDeclaration | TypePredicateNode | ParenthesizedTypeNode | TypeOperatorNode | MappedTypeNode | AssertionExpression | TypeAliasDeclaration | JSDocTypeExpression | JSDocNonNullableType | JSDocNullableType | JSDocOptionalType | JSDocVariadicType;
export type HasTypeArguments = CallExpression | NewExpression | TaggedTemplateExpression | JsxOpeningElement | JsxSelfClosingElement;
export type HasInitializer = HasExpressionInitializer | ForStatement | ForInStatement | ForOfStatement | JsxAttribute;
@@ -603,10 +608,11 @@ declare namespace ts {
export type ProtectedKeyword = ModifierToken<SyntaxKind.ProtectedKeyword>;
export type PublicKeyword = ModifierToken<SyntaxKind.PublicKeyword>;
export type ReadonlyKeyword = ModifierToken<SyntaxKind.ReadonlyKeyword>;
+ export type OverrideKeyword = ModifierToken<SyntaxKind.OverrideKeyword>;
export type StaticKeyword = ModifierToken<SyntaxKind.StaticKeyword>;
/** @deprecated Use `ReadonlyKeyword` instead. */
export type ReadonlyToken = ReadonlyKeyword;
- export type Modifier = AbstractKeyword | AsyncKeyword | ConstKeyword | DeclareKeyword | DefaultKeyword | ExportKeyword | PrivateKeyword | ProtectedKeyword | PublicKeyword | ReadonlyKeyword | StaticKeyword;
+ export type Modifier = AbstractKeyword | AsyncKeyword | ConstKeyword | DeclareKeyword | DefaultKeyword | ExportKeyword | PrivateKeyword | ProtectedKeyword | PublicKeyword | OverrideKeyword | ReadonlyKeyword | StaticKeyword;
export type AccessibilityModifier = PublicKeyword | PrivateKeyword | ProtectedKeyword;
export type ParameterPropertyModifier = AccessibilityModifier | ReadonlyKeyword;
export type ClassMemberModifier = AccessibilityModifier | ReadonlyKeyword | StaticKeyword;
@@ -638,6 +644,7 @@ declare namespace ts {
}
export type EntityName = Identifier | QualifiedName;
export type PropertyName = Identifier | StringLiteral | NumericLiteral | ComputedPropertyName | PrivateIdentifier;
+ export type MemberName = Identifier | PrivateIdentifier;
export type DeclarationName = Identifier | PrivateIdentifier | StringLiteralLike | NumericLiteral | ComputedPropertyName | ElementAccessExpression | BindingPattern | EntityNameExpression;
export interface Declaration extends Node {
_declarationBrand: any;
@@ -686,7 +693,7 @@ declare namespace ts {
readonly kind: SyntaxKind.ConstructSignature;
}
export type BindingName = Identifier | BindingPattern;
- export interface VariableDeclaration extends NamedDeclaration {
+ export interface VariableDeclaration extends NamedDeclaration, JSDocContainer {
readonly kind: SyntaxKind.VariableDeclaration;
readonly parent: VariableDeclarationList | CatchClause;
readonly name: BindingName;
@@ -820,15 +827,15 @@ declare namespace ts {
readonly kind: SyntaxKind.SemicolonClassElement;
readonly parent: ClassLikeDeclaration;
}
- export interface GetAccessorDeclaration extends FunctionLikeDeclarationBase, ClassElement, ObjectLiteralElement, JSDocContainer {
+ export interface GetAccessorDeclaration extends FunctionLikeDeclarationBase, ClassElement, TypeElement, ObjectLiteralElement, JSDocContainer {
readonly kind: SyntaxKind.GetAccessor;
- readonly parent: ClassLikeDeclaration | ObjectLiteralExpression;
+ readonly parent: ClassLikeDeclaration | ObjectLiteralExpression | TypeLiteralNode | InterfaceDeclaration;
readonly name: PropertyName;
readonly body?: FunctionBody;
}
- export interface SetAccessorDeclaration extends FunctionLikeDeclarationBase, ClassElement, ObjectLiteralElement, JSDocContainer {
+ export interface SetAccessorDeclaration extends FunctionLikeDeclarationBase, ClassElement, TypeElement, ObjectLiteralElement, JSDocContainer {
readonly kind: SyntaxKind.SetAccessor;
- readonly parent: ClassLikeDeclaration | ObjectLiteralExpression;
+ readonly parent: ClassLikeDeclaration | ObjectLiteralExpression | TypeLiteralNode | InterfaceDeclaration;
readonly name: PropertyName;
readonly body?: FunctionBody;
}
@@ -1216,11 +1223,11 @@ declare namespace ts {
readonly kind: SyntaxKind.PropertyAccessExpression;
readonly expression: LeftHandSideExpression;
readonly questionDotToken?: QuestionDotToken;
- readonly name: Identifier | PrivateIdentifier;
+ readonly name: MemberName;
}
export interface PropertyAccessChain extends PropertyAccessExpression {
_optionalChainBrand: any;
- readonly name: Identifier | PrivateIdentifier;
+ readonly name: MemberName;
}
export interface SuperPropertyAccessExpression extends PropertyAccessExpression {
readonly expression: SuperExpression;
@@ -1373,7 +1380,7 @@ declare namespace ts {
readonly containsOnlyTriviaWhiteSpaces: boolean;
}
export type JsxChild = JsxText | JsxExpression | JsxElement | JsxSelfClosingElement | JsxFragment;
- export interface Statement extends Node {
+ export interface Statement extends Node, JSDocContainer {
_statementBrand: any;
}
export interface NotEmittedStatement extends Statement {
@@ -1401,11 +1408,11 @@ declare namespace ts {
readonly kind: SyntaxKind.Block;
readonly statements: NodeArray<Statement>;
}
- export interface VariableStatement extends Statement, JSDocContainer {
+ export interface VariableStatement extends Statement {
readonly kind: SyntaxKind.VariableStatement;
readonly declarationList: VariableDeclarationList;
}
- export interface ExpressionStatement extends Statement, JSDocContainer {
+ export interface ExpressionStatement extends Statement {
readonly kind: SyntaxKind.ExpressionStatement;
readonly expression: Expression;
}
@@ -1486,7 +1493,7 @@ declare namespace ts {
readonly statements: NodeArray<Statement>;
}
export type CaseOrDefaultClause = CaseClause | DefaultClause;
- export interface LabeledStatement extends Statement, JSDocContainer {
+ export interface LabeledStatement extends Statement {
readonly kind: SyntaxKind.LabeledStatement;
readonly label: Identifier;
readonly statement: Statement;
@@ -1606,7 +1613,7 @@ declare namespace ts {
readonly parent: ImportEqualsDeclaration;
readonly expression: Expression;
}
- export interface ImportDeclaration extends Statement, JSDocContainer {
+ export interface ImportDeclaration extends Statement {
readonly kind: SyntaxKind.ImportDeclaration;
readonly parent: SourceFile | ModuleBlock;
readonly importClause?: ImportClause;
@@ -1742,12 +1749,21 @@ declare namespace ts {
readonly kind: SyntaxKind.JSDocComment;
readonly parent: HasJSDoc;
readonly tags?: NodeArray<JSDocTag>;
- readonly comment?: string;
+ readonly comment?: string | NodeArray<JSDocText | JSDocLink>;
}
export interface JSDocTag extends Node {
readonly parent: JSDoc | JSDocTypeLiteral;
readonly tagName: Identifier;
- readonly comment?: string;
+ readonly comment?: string | NodeArray<JSDocText | JSDocLink>;
+ }
+ export interface JSDocLink extends Node {
+ readonly kind: SyntaxKind.JSDocLink;
+ readonly name?: EntityName;
+ text: string;
+ }
+ export interface JSDocText extends Node {
+ readonly kind: SyntaxKind.JSDocText;
+ text: string;
}
export interface JSDocUnknownTag extends JSDocTag {
readonly kind: SyntaxKind.JSDocTag;
@@ -1789,6 +1805,9 @@ declare namespace ts {
export interface JSDocReadonlyTag extends JSDocTag {
readonly kind: SyntaxKind.JSDocReadonlyTag;
}
+ export interface JSDocOverrideTag extends JSDocTag {
+ readonly kind: SyntaxKind.JSDocOverrideTag;
+ }
export interface JSDocEnumTag extends JSDocTag, Declaration {
readonly kind: SyntaxKind.JSDocEnumTag;
readonly parent: JSDoc;
@@ -2080,7 +2099,6 @@ declare namespace ts {
* Gets a type checker that can be used to semantically analyze source files in the program.
*/
getTypeChecker(): TypeChecker;
- getTypeCatalog(): readonly Type[];
getNodeCount(): number;
getIdentifierCount(): number;
getSymbolCount(): number;
@@ -2186,7 +2204,7 @@ declare namespace ts {
* The function returns the value (local variable) symbol of an identifier in the short-hand property assignment.
* This is necessary as an identifier in short-hand property assignment can contains two meaning: property name and property value.
*/
- getShorthandAssignmentValueSymbol(location: Node): Symbol | undefined;
+ getShorthandAssignmentValueSymbol(location: Node | undefined): Symbol | undefined;
getExportSpecifierLocalTargetSymbol(location: ExportSpecifier | Identifier): Symbol | undefined;
/**
* If a symbol is a local symbol with an associated exported symbol, returns the exported symbol.
@@ -2261,6 +2279,8 @@ declare namespace ts {
NoTypeReduction = 536870912,
NoUndefinedOptionalParameterType = 1073741824,
AllowThisInObjectLiteral = 32768,
+ AllowQualifiedNameInPlaceOfIdentifier = 65536,
+ /** @deprecated AllowQualifedNameInPlaceOfIdentifier. Use AllowQualifiedNameInPlaceOfIdentifier instead. */
AllowQualifedNameInPlaceOfIdentifier = 65536,
AllowAnonymousIdentifier = 131072,
AllowEmptyUnionOrIntersection = 262144,
@@ -2271,8 +2291,7 @@ declare namespace ts {
IgnoreErrors = 70221824,
InObjectTypeLiteral = 4194304,
InTypeAlias = 8388608,
- InInitialEntityName = 16777216,
- InReverseMappedType = 33554432
+ InInitialEntityName = 16777216
}
export enum TypeFormatFlags {
None = 0,
@@ -2405,8 +2424,8 @@ declare namespace ts {
export interface Symbol {
flags: SymbolFlags;
escapedName: __String;
- declarations: Declaration[];
- valueDeclaration: Declaration;
+ declarations?: Declaration[];
+ valueDeclaration?: Declaration;
members?: SymbolTable;
exports?: SymbolTable;
globalExports?: SymbolTable;
@@ -2540,15 +2559,15 @@ declare namespace ts {
ObjectLiteral = 128,
EvolvingArray = 256,
ObjectLiteralPatternWithComputedProperties = 512,
- ContainsSpread = 1024,
- ReverseMapped = 2048,
- JsxAttributes = 4096,
- MarkerType = 8192,
- JSLiteral = 16384,
- FreshLiteral = 32768,
- ArrayLiteral = 65536,
- ObjectRestType = 131072,
+ ReverseMapped = 1024,
+ JsxAttributes = 2048,
+ MarkerType = 4096,
+ JSLiteral = 8192,
+ FreshLiteral = 16384,
+ ArrayLiteral = 32768,
ClassOrInterface = 3,
+ ContainsSpread = 4194304,
+ ObjectRestType = 8388608,
}
export interface ObjectType extends Type {
objectFlags: ObjectFlags;
@@ -2662,6 +2681,7 @@ declare namespace ts {
type: Type;
}
export interface SubstitutionType extends InstantiableType {
+ objectFlags: ObjectFlags;
baseType: Type;
substitute: Type;
}
@@ -2686,16 +2706,17 @@ declare namespace ts {
export enum InferencePriority {
NakedTypeVariable = 1,
SpeculativeTuple = 2,
- HomomorphicMappedType = 4,
- PartialHomomorphicMappedType = 8,
- MappedTypeConstraint = 16,
- ContravariantConditional = 32,
- ReturnType = 64,
- LiteralKeyof = 128,
- NoConstraints = 256,
- AlwaysStrict = 512,
- MaxValue = 1024,
- PriorityImpliesCombination = 208,
+ SubstituteSource = 4,
+ HomomorphicMappedType = 8,
+ PartialHomomorphicMappedType = 16,
+ MappedTypeConstraint = 32,
+ ContravariantConditional = 64,
+ ReturnType = 128,
+ LiteralKeyof = 256,
+ NoConstraints = 512,
+ AlwaysStrict = 1024,
+ MaxValue = 2048,
+ PriorityImpliesCombination = 416,
Circularity = -1
}
/** @deprecated Use FileExtensionInfo instead. */
@@ -2772,18 +2793,21 @@ declare namespace ts {
FixedPollingInterval = 0,
PriorityPollingInterval = 1,
DynamicPriorityPolling = 2,
- UseFsEvents = 3,
- UseFsEventsOnParentDirectory = 4
+ FixedChunkSizePolling = 3,
+ UseFsEvents = 4,
+ UseFsEventsOnParentDirectory = 5
}
export enum WatchDirectoryKind {
UseFsEvents = 0,
FixedPollingInterval = 1,
- DynamicPriorityPolling = 2
+ DynamicPriorityPolling = 2,
+ FixedChunkSizePolling = 3
}
export enum PollingWatchKind {
FixedInterval = 0,
PriorityInterval = 1,
- DynamicPriority = 2
+ DynamicPriority = 2,
+ FixedChunkSize = 3
}
export type CompilerOptionsValue = string | number | boolean | (string | number)[] | string[] | MapLike<string[]> | PluginImport[] | ProjectReference[] | null | undefined;
export interface CompilerOptions {
@@ -2845,6 +2869,7 @@ declare namespace ts {
outFile?: string;
paths?: MapLike<string[]>;
preserveConstEnums?: boolean;
+ noImplicitOverride?: boolean;
preserveSymlinks?: boolean;
project?: string;
reactNamespace?: string;
@@ -2955,6 +2980,7 @@ declare namespace ts {
ES2018 = 5,
ES2019 = 6,
ES2020 = 7,
+ ES2021 = 8,
ESNext = 99,
JSON = 100,
Latest = 99
@@ -3128,17 +3154,21 @@ declare namespace ts {
Iterator = 8388608,
NoAsciiEscaping = 16777216,
}
- export interface EmitHelper {
+ export interface EmitHelperBase {
readonly name: string;
readonly scoped: boolean;
readonly text: string | ((node: EmitHelperUniqueNameCallback) => string);
readonly priority?: number;
readonly dependencies?: EmitHelper[];
}
- export interface UnscopedEmitHelper extends EmitHelper {
+ export interface ScopedEmitHelper extends EmitHelperBase {
+ readonly scoped: true;
+ }
+ export interface UnscopedEmitHelper extends EmitHelperBase {
readonly scoped: false;
readonly text: string;
}
+ export type EmitHelper = ScopedEmitHelper | UnscopedEmitHelper;
export type EmitHelperUniqueNameCallback = (name: string) => string;
export enum EmitHint {
SourceFile = 0,
@@ -3166,14 +3196,27 @@ declare namespace ts {
createStringLiteralFromNode(sourceNode: PropertyNameLiteral, isSingleQuote?: boolean): StringLiteral;
createRegularExpressionLiteral(text: string): RegularExpressionLiteral;
createIdentifier(text: string): Identifier;
- /** Create a unique temporary variable. */
- createTempVariable(recordTempVariable: ((node: Identifier) => void) | undefined): Identifier;
- /** Create a unique temporary variable for use in a loop. */
- createLoopVariable(): Identifier;
+ /**
+ * Create a unique temporary variable.
+ * @param recordTempVariable An optional callback used to record the temporary variable name. This
+ * should usually be a reference to `hoistVariableDeclaration` from a `TransformationContext`, but
+ * can be `undefined` if you plan to record the temporary variable manually.
+ * @param reservedInNestedScopes When `true`, reserves the temporary variable name in all nested scopes
+ * during emit so that the variable can be referenced in a nested function body. This is an alternative to
+ * setting `EmitFlags.ReuseTempVariableScope` on the nested function itself.
+ */
+ createTempVariable(recordTempVariable: ((node: Identifier) => void) | undefined, reservedInNestedScopes?: boolean): Identifier;
+ /**
+ * Create a unique temporary variable for use in a loop.
+ * @param reservedInNestedScopes When `true`, reserves the temporary variable name in all nested scopes
+ * during emit so that the variable can be referenced in a nested function body. This is an alternative to
+ * setting `EmitFlags.ReuseTempVariableScope` on the nested function itself.
+ */
+ createLoopVariable(reservedInNestedScopes?: boolean): Identifier;
/** Create a unique name based on the supplied text. */
createUniqueName(text: string, flags?: GeneratedIdentifierFlags): Identifier;
/** Create a unique name generated for a node. */
- getGeneratedNameForNode(node: Node | undefined): Identifier;
+ getGeneratedNameForNode(node: Node | undefined, flags?: GeneratedIdentifierFlags): Identifier;
createPrivateIdentifier(text: string): PrivateIdentifier;
createToken(token: SyntaxKind.SuperKeyword): SuperExpression;
createToken(token: SyntaxKind.ThisKeyword): ThisExpression;
@@ -3284,10 +3327,10 @@ declare namespace ts {
updateArrayLiteralExpression(node: ArrayLiteralExpression, elements: readonly Expression[]): ArrayLiteralExpression;
createObjectLiteralExpression(properties?: readonly ObjectLiteralElementLike[], multiLine?: boolean): ObjectLiteralExpression;
updateObjectLiteralExpression(node: ObjectLiteralExpression, properties: readonly ObjectLiteralElementLike[]): ObjectLiteralExpression;
- createPropertyAccessExpression(expression: Expression, name: string | Identifier | PrivateIdentifier): PropertyAccessExpression;
- updatePropertyAccessExpression(node: PropertyAccessExpression, expression: Expression, name: Identifier | PrivateIdentifier): PropertyAccessExpression;
- createPropertyAccessChain(expression: Expression, questionDotToken: QuestionDotToken | undefined, name: string | Identifier | PrivateIdentifier): PropertyAccessChain;
- updatePropertyAccessChain(node: PropertyAccessChain, expression: Expression, questionDotToken: QuestionDotToken | undefined, name: Identifier | PrivateIdentifier): PropertyAccessChain;
+ createPropertyAccessExpression(expression: Expression, name: string | MemberName): PropertyAccessExpression;
+ updatePropertyAccessExpression(node: PropertyAccessExpression, expression: Expression, name: MemberName): PropertyAccessExpression;
+ createPropertyAccessChain(expression: Expression, questionDotToken: QuestionDotToken | undefined, name: string | MemberName): PropertyAccessChain;
+ updatePropertyAccessChain(node: PropertyAccessChain, expression: Expression, questionDotToken: QuestionDotToken | undefined, name: MemberName): PropertyAccessChain;
createElementAccessExpression(expression: Expression, index: number | Expression): ElementAccessExpression;
updateElementAccessExpression(node: ElementAccessExpression, expression: Expression, argumentExpression: Expression): ElementAccessExpression;
createElementAccessChain(expression: Expression, questionDotToken: QuestionDotToken | undefined, index: number | Expression): ElementAccessChain;
@@ -3455,52 +3498,58 @@ declare namespace ts {
updateJSDocTypeExpression(node: JSDocTypeExpression, type: TypeNode): JSDocTypeExpression;
createJSDocNameReference(name: EntityName): JSDocNameReference;
updateJSDocNameReference(node: JSDocNameReference, name: EntityName): JSDocNameReference;
+ createJSDocLink(name: EntityName | undefined, text: string): JSDocLink;
+ updateJSDocLink(node: JSDocLink, name: EntityName | undefined, text: string): JSDocLink;
createJSDocTypeLiteral(jsDocPropertyTags?: readonly JSDocPropertyLikeTag[], isArrayType?: boolean): JSDocTypeLiteral;
updateJSDocTypeLiteral(node: JSDocTypeLiteral, jsDocPropertyTags: readonly JSDocPropertyLikeTag[] | undefined, isArrayType: boolean | undefined): JSDocTypeLiteral;
createJSDocSignature(typeParameters: readonly JSDocTemplateTag[] | undefined, parameters: readonly JSDocParameterTag[], type?: JSDocReturnTag): JSDocSignature;
updateJSDocSignature(node: JSDocSignature, typeParameters: readonly JSDocTemplateTag[] | undefined, parameters: readonly JSDocParameterTag[], type: JSDocReturnTag | undefined): JSDocSignature;
- createJSDocTemplateTag(tagName: Identifier | undefined, constraint: JSDocTypeExpression | undefined, typeParameters: readonly TypeParameterDeclaration[], comment?: string): JSDocTemplateTag;
- updateJSDocTemplateTag(node: JSDocTemplateTag, tagName: Identifier | undefined, constraint: JSDocTypeExpression | undefined, typeParameters: readonly TypeParameterDeclaration[], comment: string | undefined): JSDocTemplateTag;
- createJSDocTypedefTag(tagName: Identifier | undefined, typeExpression?: JSDocTypeExpression | JSDocTypeLiteral, fullName?: Identifier | JSDocNamespaceDeclaration, comment?: string): JSDocTypedefTag;
- updateJSDocTypedefTag(node: JSDocTypedefTag, tagName: Identifier | undefined, typeExpression: JSDocTypeExpression | JSDocTypeLiteral | undefined, fullName: Identifier | JSDocNamespaceDeclaration | undefined, comment: string | undefined): JSDocTypedefTag;
- createJSDocParameterTag(tagName: Identifier | undefined, name: EntityName, isBracketed: boolean, typeExpression?: JSDocTypeExpression, isNameFirst?: boolean, comment?: string): JSDocParameterTag;
- updateJSDocParameterTag(node: JSDocParameterTag, tagName: Identifier | undefined, name: EntityName, isBracketed: boolean, typeExpression: JSDocTypeExpression | undefined, isNameFirst: boolean, comment: string | undefined): JSDocParameterTag;
- createJSDocPropertyTag(tagName: Identifier | undefined, name: EntityName, isBracketed: boolean, typeExpression?: JSDocTypeExpression, isNameFirst?: boolean, comment?: string): JSDocPropertyTag;
- updateJSDocPropertyTag(node: JSDocPropertyTag, tagName: Identifier | undefined, name: EntityName, isBracketed: boolean, typeExpression: JSDocTypeExpression | undefined, isNameFirst: boolean, comment: string | undefined): JSDocPropertyTag;
- createJSDocTypeTag(tagName: Identifier | undefined, typeExpression: JSDocTypeExpression, comment?: string): JSDocTypeTag;
- updateJSDocTypeTag(node: JSDocTypeTag, tagName: Identifier | undefined, typeExpression: JSDocTypeExpression, comment: string | undefined): JSDocTypeTag;
- createJSDocSeeTag(tagName: Identifier | undefined, nameExpression: JSDocNameReference | undefined, comment?: string): JSDocSeeTag;
- updateJSDocSeeTag(node: JSDocSeeTag, tagName: Identifier | undefined, nameExpression: JSDocNameReference | undefined, comment?: string): JSDocSeeTag;
- createJSDocReturnTag(tagName: Identifier | undefined, typeExpression?: JSDocTypeExpression, comment?: string): JSDocReturnTag;
- updateJSDocReturnTag(node: JSDocReturnTag, tagName: Identifier | undefined, typeExpression: JSDocTypeExpression | undefined, comment: string | undefined): JSDocReturnTag;
- createJSDocThisTag(tagName: Identifier | undefined, typeExpression: JSDocTypeExpression, comment?: string): JSDocThisTag;
- updateJSDocThisTag(node: JSDocThisTag, tagName: Identifier | undefined, typeExpression: JSDocTypeExpression | undefined, comment: string | undefined): JSDocThisTag;
- createJSDocEnumTag(tagName: Identifier | undefined, typeExpression: JSDocTypeExpression, comment?: string): JSDocEnumTag;
- updateJSDocEnumTag(node: JSDocEnumTag, tagName: Identifier | undefined, typeExpression: JSDocTypeExpression, comment: string | undefined): JSDocEnumTag;
- createJSDocCallbackTag(tagName: Identifier | undefined, typeExpression: JSDocSignature, fullName?: Identifier | JSDocNamespaceDeclaration, comment?: string): JSDocCallbackTag;
- updateJSDocCallbackTag(node: JSDocCallbackTag, tagName: Identifier | undefined, typeExpression: JSDocSignature, fullName: Identifier | JSDocNamespaceDeclaration | undefined, comment: string | undefined): JSDocCallbackTag;
- createJSDocAugmentsTag(tagName: Identifier | undefined, className: JSDocAugmentsTag["class"], comment?: string): JSDocAugmentsTag;
- updateJSDocAugmentsTag(node: JSDocAugmentsTag, tagName: Identifier | undefined, className: JSDocAugmentsTag["class"], comment: string | undefined): JSDocAugmentsTag;
- createJSDocImplementsTag(tagName: Identifier | undefined, className: JSDocImplementsTag["class"], comment?: string): JSDocImplementsTag;
- updateJSDocImplementsTag(node: JSDocImplementsTag, tagName: Identifier | undefined, className: JSDocImplementsTag["class"], comment: string | undefined): JSDocImplementsTag;
- createJSDocAuthorTag(tagName: Identifier | undefined, comment?: string): JSDocAuthorTag;
- updateJSDocAuthorTag(node: JSDocAuthorTag, tagName: Identifier | undefined, comment: string | undefined): JSDocAuthorTag;
- createJSDocClassTag(tagName: Identifier | undefined, comment?: string): JSDocClassTag;
- updateJSDocClassTag(node: JSDocClassTag, tagName: Identifier | undefined, comment: string | undefined): JSDocClassTag;
- createJSDocPublicTag(tagName: Identifier | undefined, comment?: string): JSDocPublicTag;
- updateJSDocPublicTag(node: JSDocPublicTag, tagName: Identifier | undefined, comment: string | undefined): JSDocPublicTag;
- createJSDocPrivateTag(tagName: Identifier | undefined, comment?: string): JSDocPrivateTag;
- updateJSDocPrivateTag(node: JSDocPrivateTag, tagName: Identifier | undefined, comment: string | undefined): JSDocPrivateTag;
- createJSDocProtectedTag(tagName: Identifier | undefined, comment?: string): JSDocProtectedTag;
- updateJSDocProtectedTag(node: JSDocProtectedTag, tagName: Identifier | undefined, comment: string | undefined): JSDocProtectedTag;
- createJSDocReadonlyTag(tagName: Identifier | undefined, comment?: string): JSDocReadonlyTag;
- updateJSDocReadonlyTag(node: JSDocReadonlyTag, tagName: Identifier | undefined, comment: string | undefined): JSDocReadonlyTag;
- createJSDocUnknownTag(tagName: Identifier, comment?: string): JSDocUnknownTag;
- updateJSDocUnknownTag(node: JSDocUnknownTag, tagName: Identifier, comment: string | undefined): JSDocUnknownTag;
- createJSDocDeprecatedTag(tagName: Identifier, comment?: string): JSDocDeprecatedTag;
- updateJSDocDeprecatedTag(node: JSDocDeprecatedTag, tagName: Identifier, comment?: string): JSDocDeprecatedTag;
- createJSDocComment(comment?: string | undefined, tags?: readonly JSDocTag[] | undefined): JSDoc;
- updateJSDocComment(node: JSDoc, comment: string | undefined, tags: readonly JSDocTag[] | undefined): JSDoc;
+ createJSDocTemplateTag(tagName: Identifier | undefined, constraint: JSDocTypeExpression | undefined, typeParameters: readonly TypeParameterDeclaration[], comment?: string | NodeArray<JSDocText | JSDocLink>): JSDocTemplateTag;
+ updateJSDocTemplateTag(node: JSDocTemplateTag, tagName: Identifier | undefined, constraint: JSDocTypeExpression | undefined, typeParameters: readonly TypeParameterDeclaration[], comment: string | NodeArray<JSDocText | JSDocLink> | undefined): JSDocTemplateTag;
+ createJSDocTypedefTag(tagName: Identifier | undefined, typeExpression?: JSDocTypeExpression | JSDocTypeLiteral, fullName?: Identifier | JSDocNamespaceDeclaration, comment?: string | NodeArray<JSDocText | JSDocLink>): JSDocTypedefTag;
+ updateJSDocTypedefTag(node: JSDocTypedefTag, tagName: Identifier | undefined, typeExpression: JSDocTypeExpression | JSDocTypeLiteral | undefined, fullName: Identifier | JSDocNamespaceDeclaration | undefined, comment: string | NodeArray<JSDocText | JSDocLink> | undefined): JSDocTypedefTag;
+ createJSDocParameterTag(tagName: Identifier | undefined, name: EntityName, isBracketed: boolean, typeExpression?: JSDocTypeExpression, isNameFirst?: boolean, comment?: string | NodeArray<JSDocText | JSDocLink>): JSDocParameterTag;
+ updateJSDocParameterTag(node: JSDocParameterTag, tagName: Identifier | undefined, name: EntityName, isBracketed: boolean, typeExpression: JSDocTypeExpression | undefined, isNameFirst: boolean, comment: string | NodeArray<JSDocText | JSDocLink> | undefined): JSDocParameterTag;
+ createJSDocPropertyTag(tagName: Identifier | undefined, name: EntityName, isBracketed: boolean, typeExpression?: JSDocTypeExpression, isNameFirst?: boolean, comment?: string | NodeArray<JSDocText | JSDocLink>): JSDocPropertyTag;
+ updateJSDocPropertyTag(node: JSDocPropertyTag, tagName: Identifier | undefined, name: EntityName, isBracketed: boolean, typeExpression: JSDocTypeExpression | undefined, isNameFirst: boolean, comment: string | NodeArray<JSDocText | JSDocLink> | undefined): JSDocPropertyTag;
+ createJSDocTypeTag(tagName: Identifier | undefined, typeExpression: JSDocTypeExpression, comment?: string | NodeArray<JSDocText | JSDocLink>): JSDocTypeTag;
+ updateJSDocTypeTag(node: JSDocTypeTag, tagName: Identifier | undefined, typeExpression: JSDocTypeExpression, comment: string | NodeArray<JSDocText | JSDocLink> | undefined): JSDocTypeTag;
+ createJSDocSeeTag(tagName: Identifier | undefined, nameExpression: JSDocNameReference | undefined, comment?: string | NodeArray<JSDocText | JSDocLink>): JSDocSeeTag;
+ updateJSDocSeeTag(node: JSDocSeeTag, tagName: Identifier | undefined, nameExpression: JSDocNameReference | undefined, comment?: string | NodeArray<JSDocText | JSDocLink>): JSDocSeeTag;
+ createJSDocReturnTag(tagName: Identifier | undefined, typeExpression?: JSDocTypeExpression, comment?: string | NodeArray<JSDocText | JSDocLink>): JSDocReturnTag;
+ updateJSDocReturnTag(node: JSDocReturnTag, tagName: Identifier | undefined, typeExpression: JSDocTypeExpression | undefined, comment: string | NodeArray<JSDocText | JSDocLink> | undefined): JSDocReturnTag;
+ createJSDocThisTag(tagName: Identifier | undefined, typeExpression: JSDocTypeExpression, comment?: string | NodeArray<JSDocText | JSDocLink>): JSDocThisTag;
+ updateJSDocThisTag(node: JSDocThisTag, tagName: Identifier | undefined, typeExpression: JSDocTypeExpression | undefined, comment: string | NodeArray<JSDocText | JSDocLink> | undefined): JSDocThisTag;
+ createJSDocEnumTag(tagName: Identifier | undefined, typeExpression: JSDocTypeExpression, comment?: string | NodeArray<JSDocText | JSDocLink>): JSDocEnumTag;
+ updateJSDocEnumTag(node: JSDocEnumTag, tagName: Identifier | undefined, typeExpression: JSDocTypeExpression, comment: string | NodeArray<JSDocText | JSDocLink> | undefined): JSDocEnumTag;
+ createJSDocCallbackTag(tagName: Identifier | undefined, typeExpression: JSDocSignature, fullName?: Identifier | JSDocNamespaceDeclaration, comment?: string | NodeArray<JSDocText | JSDocLink>): JSDocCallbackTag;
+ updateJSDocCallbackTag(node: JSDocCallbackTag, tagName: Identifier | undefined, typeExpression: JSDocSignature, fullName: Identifier | JSDocNamespaceDeclaration | undefined, comment: string | NodeArray<JSDocText | JSDocLink> | undefined): JSDocCallbackTag;
+ createJSDocAugmentsTag(tagName: Identifier | undefined, className: JSDocAugmentsTag["class"], comment?: string | NodeArray<JSDocText | JSDocLink>): JSDocAugmentsTag;
+ updateJSDocAugmentsTag(node: JSDocAugmentsTag, tagName: Identifier | undefined, className: JSDocAugmentsTag["class"], comment: string | NodeArray<JSDocText | JSDocLink> | undefined): JSDocAugmentsTag;
+ createJSDocImplementsTag(tagName: Identifier | undefined, className: JSDocImplementsTag["class"], comment?: string | NodeArray<JSDocText | JSDocLink>): JSDocImplementsTag;
+ updateJSDocImplementsTag(node: JSDocImplementsTag, tagName: Identifier | undefined, className: JSDocImplementsTag["class"], comment: string | NodeArray<JSDocText | JSDocLink> | undefined): JSDocImplementsTag;
+ createJSDocAuthorTag(tagName: Identifier | undefined, comment?: string | NodeArray<JSDocText | JSDocLink>): JSDocAuthorTag;
+ updateJSDocAuthorTag(node: JSDocAuthorTag, tagName: Identifier | undefined, comment: string | NodeArray<JSDocText | JSDocLink> | undefined): JSDocAuthorTag;
+ createJSDocClassTag(tagName: Identifier | undefined, comment?: string | NodeArray<JSDocText | JSDocLink>): JSDocClassTag;
+ updateJSDocClassTag(node: JSDocClassTag, tagName: Identifier | undefined, comment: string | NodeArray<JSDocText | JSDocLink> | undefined): JSDocClassTag;
+ createJSDocPublicTag(tagName: Identifier | undefined, comment?: string | NodeArray<JSDocText | JSDocLink>): JSDocPublicTag;
+ updateJSDocPublicTag(node: JSDocPublicTag, tagName: Identifier | undefined, comment: string | NodeArray<JSDocText | JSDocLink> | undefined): JSDocPublicTag;
+ createJSDocPrivateTag(tagName: Identifier | undefined, comment?: string | NodeArray<JSDocText | JSDocLink>): JSDocPrivateTag;
+ updateJSDocPrivateTag(node: JSDocPrivateTag, tagName: Identifier | undefined, comment: string | NodeArray<JSDocText | JSDocLink> | undefined): JSDocPrivateTag;
+ createJSDocProtectedTag(tagName: Identifier | undefined, comment?: string | NodeArray<JSDocText | JSDocLink>): JSDocProtectedTag;
+ updateJSDocProtectedTag(node: JSDocProtectedTag, tagName: Identifier | undefined, comment: string | NodeArray<JSDocText | JSDocLink> | undefined): JSDocProtectedTag;
+ createJSDocReadonlyTag(tagName: Identifier | undefined, comment?: string | NodeArray<JSDocText | JSDocLink>): JSDocReadonlyTag;
+ updateJSDocReadonlyTag(node: JSDocReadonlyTag, tagName: Identifier | undefined, comment: string | NodeArray<JSDocText | JSDocLink> | undefined): JSDocReadonlyTag;
+ createJSDocUnknownTag(tagName: Identifier, comment?: string | NodeArray<JSDocText | JSDocLink>): JSDocUnknownTag;
+ updateJSDocUnknownTag(node: JSDocUnknownTag, tagName: Identifier, comment: string | NodeArray<JSDocText | JSDocLink> | undefined): JSDocUnknownTag;
+ createJSDocDeprecatedTag(tagName: Identifier, comment?: string | NodeArray<JSDocText | JSDocLink>): JSDocDeprecatedTag;
+ updateJSDocDeprecatedTag(node: JSDocDeprecatedTag, tagName: Identifier, comment?: string | NodeArray<JSDocText | JSDocLink>): JSDocDeprecatedTag;
+ createJSDocOverrideTag(tagName: Identifier, comment?: string | NodeArray<JSDocText | JSDocLink>): JSDocOverrideTag;
+ updateJSDocOverrideTag(node: JSDocOverrideTag, tagName: Identifier, comment?: string | NodeArray<JSDocText | JSDocLink>): JSDocOverrideTag;
+ createJSDocText(text: string): JSDocText;
+ updateJSDocText(node: JSDocText, text: string): JSDocText;
+ createJSDocComment(comment?: string | NodeArray<JSDocText | JSDocLink> | undefined, tags?: readonly JSDocTag[] | undefined): JSDoc;
+ updateJSDocComment(node: JSDoc, comment: string | NodeArray<JSDocText | JSDocLink> | undefined, tags: readonly JSDocTag[] | undefined): JSDoc;
createJsxElement(openingElement: JsxOpeningElement, children: readonly JsxChild[], closingElement: JsxClosingElement): JsxElement;
updateJsxElement(node: JsxElement, openingElement: JsxOpeningElement, children: readonly JsxChild[], closingElement: JsxClosingElement): JsxElement;
createJsxSelfClosingElement(tagName: JsxTagNameExpression, typeArguments: readonly TypeNode[] | undefined, attributes: JsxAttributes): JsxSelfClosingElement;
@@ -3748,12 +3797,12 @@ declare namespace ts {
* });
* ```
*/
- onEmitNode?(hint: EmitHint, node: Node | undefined, emitCallback: (hint: EmitHint, node: Node | undefined) => void): void;
+ onEmitNode?(hint: EmitHint, node: Node, emitCallback: (hint: EmitHint, node: Node) => void): void;
/**
* A hook used to check if an emit notification is required for a node.
* @param node The node to emit.
*/
- isEmitNotificationEnabled?(node: Node | undefined): boolean;
+ isEmitNotificationEnabled?(node: Node): boolean;
/**
* A hook used by the Printer to perform just-in-time substitution of a node. This is
* primarily used by node transformations that need to substitute one node for another,
@@ -3867,6 +3916,8 @@ declare namespace ts {
readonly disableSuggestions?: boolean;
readonly quotePreference?: "auto" | "double" | "single";
readonly includeCompletionsForModuleExports?: boolean;
+ readonly includeCompletionsForImportStatements?: boolean;
+ readonly includeCompletionsWithSnippetText?: boolean;
readonly includeAutomaticOptionalChainCompletions?: boolean;
readonly includeCompletionsWithInsertText?: boolean;
readonly importModuleSpecifierPreference?: "shortest" | "project-relative" | "relative" | "non-relative";
@@ -3965,7 +4016,7 @@ declare namespace ts {
scanJsxIdentifier(): SyntaxKind;
scanJsxAttributeValue(): SyntaxKind;
reScanJsxAttributeValue(): SyntaxKind;
- reScanJsxToken(): JsxTokenSyntaxKind;
+ reScanJsxToken(allowMultilineJsxText?: boolean): JsxTokenSyntaxKind;
reScanLessThanToken(): SyntaxKind;
reScanQuestionToken(): SyntaxKind;
reScanInvalidIdentifier(): SyntaxKind;
@@ -4100,7 +4151,7 @@ declare namespace ts {
function idText(identifierOrPrivateName: Identifier | PrivateIdentifier): string;
function symbolName(symbol: Symbol): string;
function getNameOfJSDocTypedef(declaration: JSDocTypedefTag): Identifier | PrivateIdentifier | undefined;
- function getNameOfDeclaration(declaration: Declaration | Expression): DeclarationName | undefined;
+ function getNameOfDeclaration(declaration: Declaration | Expression | undefined): DeclarationName | undefined;
/**
* Gets the JSDoc parameter tags for the node if present.
*
@@ -4146,6 +4197,7 @@ declare namespace ts {
function getJSDocProtectedTag(node: Node): JSDocProtectedTag | undefined;
/** Gets the JSDoc protected tag for the node if present */
function getJSDocReadonlyTag(node: Node): JSDocReadonlyTag | undefined;
+ function getJSDocOverrideTagNoCache(node: Node): JSDocOverrideTag | undefined;
/** Gets the JSDoc deprecated tag for the node if present */
function getJSDocDeprecatedTag(node: Node): JSDocDeprecatedTag | undefined;
/** Gets the JSDoc enum tag for the node if present */
@@ -4183,13 +4235,15 @@ declare namespace ts {
function getAllJSDocTags<T extends JSDocTag>(node: Node, predicate: (tag: JSDocTag) => tag is T): readonly T[];
/** Gets all JSDoc tags of a specified kind */
function getAllJSDocTagsOfKind(node: Node, kind: SyntaxKind): readonly JSDocTag[];
+ /** Gets the text of a jsdoc comment, flattening links to their text. */
+ function getTextOfJSDocComment(comment?: string | NodeArray<JSDocText | JSDocLink>): string | undefined;
/**
* Gets the effective type parameters. If the node was parsed in a
* JavaScript file, gets the type parameters from the `@template` tag from JSDoc.
*/
function getEffectiveTypeParameterDeclarations(node: DeclarationWithTypeParameters): readonly TypeParameterDeclaration[];
function getEffectiveConstraintOfTypeParameter(node: TypeParameterDeclaration): TypeNode | undefined;
- function isIdentifierOrPrivateIdentifier(node: Node): node is Identifier | PrivateIdentifier;
+ function isMemberName(node: Node): node is MemberName;
function isPropertyAccessChain(node: Node): node is PropertyAccessChain;
function isElementAccessChain(node: Node): node is ElementAccessChain;
function isCallChain(node: Node): node is CallChain;
@@ -4205,6 +4259,12 @@ declare namespace ts {
function isUnparsedNode(node: Node): node is UnparsedNode;
function isJSDocPropertyLikeTag(node: Node): node is JSDocPropertyLikeTag;
/**
+ * True if kind is of some token syntax kind.
+ * For example, this is true for an IfKeyword but not for an IfStatement.
+ * Literals are considered tokens, except TemplateLiteral, but does include TemplateHead/Middle/Tail.
+ */
+ function isTokenKind(kind: SyntaxKind): boolean;
+ /**
* True if node is of some token syntax kind.
* For example, this is true for an IfKeyword but not for an IfStatement.
* Literals are considered tokens, except TemplateLiteral, but does include TemplateHead/Middle/Tail.
@@ -4220,7 +4280,7 @@ declare namespace ts {
function isEntityName(node: Node): node is EntityName;
function isPropertyName(node: Node): node is PropertyName;
function isBindingName(node: Node): node is BindingName;
- function isFunctionLike(node: Node): node is SignatureDeclaration;
+ function isFunctionLike(node: Node | undefined): node is SignatureDeclaration;
function isClassElement(node: Node): node is ClassElement;
function isClassLike(node: Node): node is ClassLikeDeclaration;
function isAccessor(node: Node): node is AccessorDeclaration;
@@ -4346,10 +4406,14 @@ declare namespace ts {
function isTemplateHead(node: Node): node is TemplateHead;
function isTemplateMiddle(node: Node): node is TemplateMiddle;
function isTemplateTail(node: Node): node is TemplateTail;
+ function isDotDotDotToken(node: Node): node is DotDotDotToken;
+ function isPlusToken(node: Node): node is PlusToken;
+ function isMinusToken(node: Node): node is MinusToken;
+ function isAsteriskToken(node: Node): node is AsteriskToken;
function isIdentifier(node: Node): node is Identifier;
+ function isPrivateIdentifier(node: Node): node is PrivateIdentifier;
function isQualifiedName(node: Node): node is QualifiedName;
function isComputedPropertyName(node: Node): node is ComputedPropertyName;
- function isPrivateIdentifier(node: Node): node is PrivateIdentifier;
function isTypeParameterDeclaration(node: Node): node is TypeParameterDeclaration;
function isParameter(node: Node): node is ParameterDeclaration;
function isDecorator(node: Node): node is Decorator;
@@ -4492,6 +4556,7 @@ declare namespace ts {
function isUnparsedSource(node: Node): node is UnparsedSource;
function isJSDocTypeExpression(node: Node): node is JSDocTypeExpression;
function isJSDocNameReference(node: Node): node is JSDocNameReference;
+ function isJSDocLink(node: Node): node is JSDocLink;
function isJSDocAllType(node: Node): node is JSDocAllType;
function isJSDocUnknownType(node: Node): node is JSDocUnknownType;
function isJSDocNullableType(node: Node): node is JSDocNullableType;
@@ -4511,6 +4576,7 @@ declare namespace ts {
function isJSDocPrivateTag(node: Node): node is JSDocPrivateTag;
function isJSDocProtectedTag(node: Node): node is JSDocProtectedTag;
function isJSDocReadonlyTag(node: Node): node is JSDocReadonlyTag;
+ function isJSDocOverrideTag(node: Node): node is JSDocOverrideTag;
function isJSDocDeprecatedTag(node: Node): node is JSDocDeprecatedTag;
function isJSDocSeeTag(node: Node): node is JSDocSeeTag;
function isJSDocEnumTag(node: Node): node is JSDocEnumTag;
@@ -4575,7 +4641,7 @@ declare namespace ts {
/**
* Reads the config file, reports errors if any and exits if the config file cannot be found
*/
- export function getParsedCommandLineOfConfigFile(configFileName: string, optionsToExtend: CompilerOptions, host: ParseConfigFileHost, extendedConfigCache?: Map<ExtendedConfigCacheEntry>, watchOptionsToExtend?: WatchOptions, extraFileExtensions?: readonly FileExtensionInfo[]): ParsedCommandLine | undefined;
+ export function getParsedCommandLineOfConfigFile(configFileName: string, optionsToExtend: CompilerOptions | undefined, host: ParseConfigFileHost, extendedConfigCache?: Map<ExtendedConfigCacheEntry>, watchOptionsToExtend?: WatchOptions, extraFileExtensions?: readonly FileExtensionInfo[]): ParsedCommandLine | undefined;
/**
* Read tsconfig.json file
* @param fileName The path to the config file
@@ -4643,13 +4709,13 @@ declare namespace ts {
export {};
}
declare namespace ts {
- function getEffectiveTypeRoots(options: CompilerOptions, host: GetEffectiveTypeRootsHost): string[] | undefined;
+ export function getEffectiveTypeRoots(options: CompilerOptions, host: GetEffectiveTypeRootsHost): string[] | undefined;
/**
* @param {string | undefined} containingFile - file that contains type reference directive, can be undefined if containing file is unknown.
* This is possible in case if resolution is performed for directives specified via 'types' parameter. In this case initial path for secondary lookups
* is assumed to be the same as root directory of the project.
*/
- function resolveTypeReferenceDirective(typeReferenceDirectiveName: string, containingFile: string | undefined, options: CompilerOptions, host: ModuleResolutionHost, redirectedReference?: ResolvedProjectReference): ResolvedTypeReferenceDirectiveWithFailedLookupLocations;
+ export function resolveTypeReferenceDirective(typeReferenceDirectiveName: string, containingFile: string | undefined, options: CompilerOptions, host: ModuleResolutionHost, redirectedReference?: ResolvedProjectReference, cache?: TypeReferenceDirectiveResolutionCache): ResolvedTypeReferenceDirectiveWithFailedLookupLocations;
/**
* Given a set of options, returns the set of type directive names
* that should be included for this program automatically.
@@ -4658,30 +4724,46 @@ declare namespace ts {
* More type directives might appear in the program later as a result of loading actual source files;
* this list is only the set of defaults that are implicitly included.
*/
- function getAutomaticTypeDirectiveNames(options: CompilerOptions, host: ModuleResolutionHost): string[];
+ export function getAutomaticTypeDirectiveNames(options: CompilerOptions, host: ModuleResolutionHost): string[];
+ export interface TypeReferenceDirectiveResolutionCache extends PerDirectoryResolutionCache<ResolvedTypeReferenceDirectiveWithFailedLookupLocations>, PackageJsonInfoCache {
+ }
/**
- * Cached module resolutions per containing directory.
+ * Cached resolutions per containing directory.
* This assumes that any module id will have the same resolution for sibling files located in the same folder.
*/
- interface ModuleResolutionCache extends NonRelativeModuleNameResolutionCache {
- getOrCreateCacheForDirectory(directoryName: string, redirectedReference?: ResolvedProjectReference): Map<ResolvedModuleWithFailedLookupLocations>;
+ export interface PerDirectoryResolutionCache<T> {
+ getOrCreateCacheForDirectory(directoryName: string, redirectedReference?: ResolvedProjectReference): Map<T>;
+ clear(): void;
+ /**
+ * Updates with the current compilerOptions the cache will operate with.
+ * This updates the redirects map as well if needed so module resolutions are cached if they can across the projects
+ */
+ update(options: CompilerOptions): void;
+ }
+ export interface ModuleResolutionCache extends PerDirectoryResolutionCache<ResolvedModuleWithFailedLookupLocations>, NonRelativeModuleNameResolutionCache, PackageJsonInfoCache {
+ getPackageJsonInfoCache(): PackageJsonInfoCache;
}
/**
* Stored map from non-relative module name to a table: directory -> result of module lookup in this directory
* We support only non-relative module names because resolution of relative module names is usually more deterministic and thus less expensive.
*/
- interface NonRelativeModuleNameResolutionCache {
+ export interface NonRelativeModuleNameResolutionCache extends PackageJsonInfoCache {
getOrCreateCacheForModuleName(nonRelativeModuleName: string, redirectedReference?: ResolvedProjectReference): PerModuleNameCache;
}
- interface PerModuleNameCache {
+ export interface PackageJsonInfoCache {
+ clear(): void;
+ }
+ export interface PerModuleNameCache {
get(directory: string): ResolvedModuleWithFailedLookupLocations | undefined;
set(directory: string, result: ResolvedModuleWithFailedLookupLocations): void;
}
- function createModuleResolutionCache(currentDirectory: string, getCanonicalFileName: (s: string) => string, options?: CompilerOptions): ModuleResolutionCache;
- function resolveModuleNameFromCache(moduleName: string, containingFile: string, cache: ModuleResolutionCache): ResolvedModuleWithFailedLookupLocations | undefined;
- function resolveModuleName(moduleName: string, containingFile: string, compilerOptions: CompilerOptions, host: ModuleResolutionHost, cache?: ModuleResolutionCache, redirectedReference?: ResolvedProjectReference): ResolvedModuleWithFailedLookupLocations;
- function nodeModuleNameResolver(moduleName: string, containingFile: string, compilerOptions: CompilerOptions, host: ModuleResolutionHost, cache?: ModuleResolutionCache, redirectedReference?: ResolvedProjectReference): ResolvedModuleWithFailedLookupLocations;
- function classicNameResolver(moduleName: string, containingFile: string, compilerOptions: CompilerOptions, host: ModuleResolutionHost, cache?: NonRelativeModuleNameResolutionCache, redirectedReference?: ResolvedProjectReference): ResolvedModuleWithFailedLookupLocations;
+ export function createModuleResolutionCache(currentDirectory: string, getCanonicalFileName: (s: string) => string, options?: CompilerOptions): ModuleResolutionCache;
+ export function createTypeReferenceDirectiveResolutionCache(currentDirectory: string, getCanonicalFileName: (s: string) => string, options?: CompilerOptions, packageJsonInfoCache?: PackageJsonInfoCache): TypeReferenceDirectiveResolutionCache;
+ export function resolveModuleNameFromCache(moduleName: string, containingFile: string, cache: ModuleResolutionCache): ResolvedModuleWithFailedLookupLocations | undefined;
+ export function resolveModuleName(moduleName: string, containingFile: string, compilerOptions: CompilerOptions, host: ModuleResolutionHost, cache?: ModuleResolutionCache, redirectedReference?: ResolvedProjectReference): ResolvedModuleWithFailedLookupLocations;
+ export function nodeModuleNameResolver(moduleName: string, containingFile: string, compilerOptions: CompilerOptions, host: ModuleResolutionHost, cache?: ModuleResolutionCache, redirectedReference?: ResolvedProjectReference): ResolvedModuleWithFailedLookupLocations;
+ export function classicNameResolver(moduleName: string, containingFile: string, compilerOptions: CompilerOptions, host: ModuleResolutionHost, cache?: NonRelativeModuleNameResolutionCache, redirectedReference?: ResolvedProjectReference): ResolvedModuleWithFailedLookupLocations;
+ export {};
}
declare namespace ts {
/**
@@ -4749,6 +4831,10 @@ declare namespace ts {
*/
function visitFunctionBody(node: ConciseBody, visitor: Visitor, context: TransformationContext): ConciseBody;
/**
+ * Visits an iteration body, adding any block-scoped variables required by the transformation.
+ */
+ function visitIterationBody(body: Statement, visitor: Visitor, context: TransformationContext): Statement;
+ /**
* Visits each child of a Node using the supplied visitor, possibly returning a new Node of the same kind in its place.
*
* @param node The Node whose children will be visited.
@@ -5036,6 +5122,8 @@ declare namespace ts {
interface WatchCompilerHost<T extends BuilderProgram> extends ProgramHost<T>, WatchHost {
/** Instead of using output d.ts file from project reference, use its source file */
useSourceOfProjectReferenceRedirect?(): boolean;
+ /** If provided, use this method to get parsed command lines for referenced projects */
+ getParsedCommandLine?(fileName: string): ParsedCommandLine | undefined;
/** If provided, callback to invoke after every new program creation */
afterProgramCreate?(program: T): void;
}
@@ -5131,9 +5219,9 @@ declare namespace ts {
interface SolutionBuilderWithWatchHost<T extends BuilderProgram> extends SolutionBuilderHostBase<T>, WatchHost {
}
interface SolutionBuilder<T extends BuilderProgram> {
- build(project?: string, cancellationToken?: CancellationToken): ExitStatus;
+ build(project?: string, cancellationToken?: CancellationToken, writeFile?: WriteFileCallback, getCustomTransformers?: (project: string) => CustomTransformers): ExitStatus;
clean(project?: string): ExitStatus;
- buildReferences(project: string, cancellationToken?: CancellationToken): ExitStatus;
+ buildReferences(project: string, cancellationToken?: CancellationToken, writeFile?: WriteFileCallback, getCustomTransformers?: (project: string) => CustomTransformers): ExitStatus;
cleanReferences(project?: string): ExitStatus;
getNextInvalidatedProject(cancellationToken?: CancellationToken): InvalidatedProject<T> | undefined;
}
@@ -5291,7 +5379,7 @@ declare namespace ts {
getName(): string;
getDeclarations(): Declaration[] | undefined;
getDocumentationComment(typeChecker: TypeChecker | undefined): SymbolDisplayPart[];
- getJsDocTags(): JSDocTagInfo[];
+ getJsDocTags(checker?: TypeChecker): JSDocTagInfo[];
}
interface Type {
getFlags(): TypeFlags;
@@ -5422,6 +5510,7 @@ declare namespace ts {
isKnownTypesPackageName?(name: string): boolean;
installPackage?(options: InstallPackageOptions): Promise<ApplyCodeActionCommandResult>;
writeFile?(fileName: string, content: string): void;
+ getParsedCommandLine?(fileName: string): ParsedCommandLine | undefined;
}
type WithMetadata<T> = T & {
metadata?: unknown;
@@ -5511,12 +5600,13 @@ declare namespace ts {
*
* @param fileName The path to the file
* @param position A zero based index of the character where you want the entries
- * @param entryName The name from an existing completion which came from `getCompletionsAtPosition`
+ * @param entryName The `name` from an existing completion which came from `getCompletionsAtPosition`
* @param formatOptions How should code samples in the completions be formatted, can be undefined for backwards compatibility
- * @param source Source code for the current file, can be undefined for backwards compatibility
+ * @param source `source` property from the completion entry
* @param preferences User settings, can be undefined for backwards compatibility
+ * @param data `data` property from the completion entry
*/
- getCompletionEntryDetails(fileName: string, position: number, entryName: string, formatOptions: FormatCodeOptions | FormatCodeSettings | undefined, source: string | undefined, preferences: UserPreferences | undefined): CompletionEntryDetails | undefined;
+ getCompletionEntryDetails(fileName: string, position: number, entryName: string, formatOptions: FormatCodeOptions | FormatCodeSettings | undefined, source: string | undefined, preferences: UserPreferences | undefined, data: CompletionEntryData | undefined): CompletionEntryDetails | undefined;
getCompletionEntrySymbol(fileName: string, position: number, name: string, source: string | undefined): Symbol | undefined;
/**
* Gets semantic information about the identifier at a particular position in a
@@ -5577,7 +5667,7 @@ declare namespace ts {
applyCodeActionCommand(fileName: string, action: CodeActionCommand | CodeActionCommand[]): Promise<ApplyCodeActionCommandResult | ApplyCodeActionCommandResult[]>;
getApplicableRefactors(fileName: string, positionOrRange: number | TextRange, preferences: UserPreferences | undefined, triggerReason?: RefactorTriggerReason, kind?: string): ApplicableRefactorInfo[];
getEditsForRefactor(fileName: string, formatOptions: FormatCodeSettings, positionOrRange: number | TextRange, refactorName: string, actionName: string, preferences: UserPreferences | undefined): RefactorEditInfo | undefined;
- organizeImports(scope: OrganizeImportsScope, formatOptions: FormatCodeSettings, preferences: UserPreferences | undefined): readonly FileTextChanges[];
+ organizeImports(args: OrganizeImportsArgs, formatOptions: FormatCodeSettings, preferences: UserPreferences | undefined): readonly FileTextChanges[];
getEditsForFileRename(oldFilePath: string, newFilePath: string, formatOptions: FormatCodeSettings, preferences: UserPreferences | undefined): readonly FileTextChanges[];
getEmitOutput(fileName: string, emitOnlyDtsFiles?: boolean, forceDtsEmit?: boolean): EmitOutput;
getProgram(): Program | undefined;
@@ -5594,8 +5684,10 @@ declare namespace ts {
type: "file";
fileName: string;
}
- type OrganizeImportsScope = CombinedCodeFixScope;
- type CompletionsTriggerCharacter = "." | '"' | "'" | "`" | "/" | "@" | "<" | "#";
+ interface OrganizeImportsArgs extends CombinedCodeFixScope {
+ skipDestructiveCodeActions?: boolean;
+ }
+ type CompletionsTriggerCharacter = "." | '"' | "'" | "`" | "/" | "@" | "<" | "#" | " ";
interface GetCompletionsAtPositionOptions extends UserPreferences {
/**
* If the editor is asking for completions because a certain character was typed
@@ -5947,6 +6039,7 @@ declare namespace ts {
name: string;
containerKind: ScriptElementKind;
containerName: string;
+ unverified?: boolean;
}
interface DefinitionInfoAndBoundSpan {
definitions?: readonly DefinitionInfo[];
@@ -5981,15 +6074,21 @@ declare namespace ts {
typeParameterName = 18,
enumMemberName = 19,
functionName = 20,
- regularExpressionLiteral = 21
+ regularExpressionLiteral = 21,
+ link = 22,
+ linkName = 23,
+ linkText = 24
}
interface SymbolDisplayPart {
text: string;
kind: string;
}
+ interface JSDocLinkDisplayPart extends SymbolDisplayPart {
+ target: DocumentSpan;
+ }
interface JSDocTagInfo {
name: string;
- text?: string;
+ text?: SymbolDisplayPart[];
}
interface QuickInfo {
kind: ScriptElementKind;
@@ -6074,14 +6173,36 @@ declare namespace ts {
* true when the current location also allows for a new identifier
*/
isNewIdentifierLocation: boolean;
+ /**
+ * Indicates to client to continue requesting completions on subsequent keystrokes.
+ */
+ isIncomplete?: true;
entries: CompletionEntry[];
}
+ interface CompletionEntryData {
+ /** The file name declaring the export's module symbol, if it was an external module */
+ fileName?: string;
+ /** The module name (with quotes stripped) of the export's module symbol, if it was an ambient module */
+ ambientModuleName?: string;
+ /** True if the export was found in the package.json AutoImportProvider */
+ isPackageJsonImport?: true;
+ /**
+ * The name of the property or export in the module's symbol table. Differs from the completion name
+ * in the case of InternalSymbolName.ExportEquals and InternalSymbolName.Default.
+ */
+ exportName: string;
+ /**
+ * Set for auto imports with eagerly resolved module specifiers.
+ */
+ moduleSpecifier?: string;
+ }
interface CompletionEntry {
name: string;
kind: ScriptElementKind;
kindModifiers?: string;
sortText: string;
insertText?: string;
+ isSnippet?: true;
/**
* An optional span that indicates the text to be replaced by this completion item.
* If present, this span should be used instead of the default one.
@@ -6090,9 +6211,20 @@ declare namespace ts {
replacementSpan?: TextSpan;
hasAction?: true;
source?: string;
+ sourceDisplay?: SymbolDisplayPart[];
isRecommended?: true;
isFromUncheckedFile?: true;
isPackageJsonImport?: true;
+ isImportStatementCompletion?: true;
+ /**
+ * A property to be sent back to TS Server in the CompletionDetailsRequest, along with `name`,
+ * that allows TS Server to look up the symbol represented by the completion item, disambiguating
+ * items with the same name. Currently only defined for auto-import completions, but the type is
+ * `unknown` in the protocol, so it can be changed as needed to support other kinds of completions.
+ * The presence of this property should generally not be used to assume that this completion entry
+ * is an auto-import.
+ */
+ data?: CompletionEntryData;
}
interface CompletionEntryDetails {
name: string;
@@ -6102,7 +6234,9 @@ declare namespace ts {
documentation?: SymbolDisplayPart[];
tags?: JSDocTagInfo[];
codeActions?: CodeAction[];
+ /** @deprecated Use `sourceDisplay` instead. */
source?: SymbolDisplayPart[];
+ sourceDisplay?: SymbolDisplayPart[];
}
interface OutliningSpan {
/** The span of the document to actually collapse. */
@@ -6256,7 +6390,13 @@ declare namespace ts {
*/
jsxAttribute = "JSX attribute",
/** String literal */
- string = "string"
+ string = "string",
+ /** Jsdoc @link: in `{@link C link text}`, the before and after text "{@link " and "}" */
+ link = "link",
+ /** Jsdoc @link: in `{@link C link text}`, the entity name "C" */
+ linkName = "link name",
+ /** Jsdoc @link: in `{@link C link text}`, the link text "link text" */
+ linkText = "link text"
}
enum ScriptElementKindModifier {
none = "",
@@ -6397,8 +6537,23 @@ declare namespace ts {
* @param fileName The name of the file to be released
* @param compilationSettings The compilation settings used to acquire the file
*/
+ /**@deprecated pass scriptKind for correctness */
releaseDocument(fileName: string, compilationSettings: CompilerOptions): void;
+ /**
+ * Informs the DocumentRegistry that a file is not needed any longer.
+ *
+ * Note: It is not allowed to call release on a SourceFile that was not acquired from
+ * this registry originally.
+ *
+ * @param fileName The name of the file to be released
+ * @param compilationSettings The compilation settings used to acquire the file
+ * @param scriptKind The script kind of the file to be released
+ */
+ releaseDocument(fileName: string, compilationSettings: CompilerOptions, scriptKind: ScriptKind): void;
+ /**
+ * @deprecated pass scriptKind for correctness */
releaseDocumentWithKey(path: Path, key: DocumentRegistryBucketKey): void;
+ releaseDocumentWithKey(path: Path, key: DocumentRegistryBucketKey, scriptKind: ScriptKind): void;
reportStats(): string;
}
type DocumentRegistryBucketKey = string & {
@@ -6469,7 +6624,7 @@ declare namespace ts {
/** @deprecated Use `factory.createRegularExpressionLiteral` or the factory supplied by your transformation context instead. */
const createRegularExpressionLiteral: (text: string) => RegularExpressionLiteral;
/** @deprecated Use `factory.createLoopVariable` or the factory supplied by your transformation context instead. */
- const createLoopVariable: () => Identifier;
+ const createLoopVariable: (reservedInNestedScopes?: boolean | undefined) => Identifier;
/** @deprecated Use `factory.createUniqueName` or the factory supplied by your transformation context instead. */
const createUniqueName: (text: string, flags?: GeneratedIdentifierFlags | undefined) => Identifier;
/** @deprecated Use `factory.createPrivateIdentifier` or the factory supplied by your transformation context instead. */
@@ -6641,13 +6796,13 @@ declare namespace ts {
/** @deprecated Use `factory.updateObjectLiteralExpression` or the factory supplied by your transformation context instead. */
const updateObjectLiteral: (node: ObjectLiteralExpression, properties: readonly ObjectLiteralElementLike[]) => ObjectLiteralExpression;
/** @deprecated Use `factory.createPropertyAccessExpression` or the factory supplied by your transformation context instead. */
- const createPropertyAccess: (expression: Expression, name: string | Identifier | PrivateIdentifier) => PropertyAccessExpression;
+ const createPropertyAccess: (expression: Expression, name: string | MemberName) => PropertyAccessExpression;
/** @deprecated Use `factory.updatePropertyAccessExpression` or the factory supplied by your transformation context instead. */
- const updatePropertyAccess: (node: PropertyAccessExpression, expression: Expression, name: Identifier | PrivateIdentifier) => PropertyAccessExpression;
+ const updatePropertyAccess: (node: PropertyAccessExpression, expression: Expression, name: MemberName) => PropertyAccessExpression;
/** @deprecated Use `factory.createPropertyAccessChain` or the factory supplied by your transformation context instead. */
- const createPropertyAccessChain: (expression: Expression, questionDotToken: QuestionDotToken | undefined, name: string | Identifier | PrivateIdentifier) => PropertyAccessChain;
+ const createPropertyAccessChain: (expression: Expression, questionDotToken: QuestionDotToken | undefined, name: string | MemberName) => PropertyAccessChain;
/** @deprecated Use `factory.updatePropertyAccessChain` or the factory supplied by your transformation context instead. */
- const updatePropertyAccessChain: (node: PropertyAccessChain, expression: Expression, questionDotToken: QuestionDotToken | undefined, name: Identifier | PrivateIdentifier) => PropertyAccessChain;
+ const updatePropertyAccessChain: (node: PropertyAccessChain, expression: Expression, questionDotToken: QuestionDotToken | undefined, name: MemberName) => PropertyAccessChain;
/** @deprecated Use `factory.createElementAccessExpression` or the factory supplied by your transformation context instead. */
const createElementAccess: (expression: Expression, index: number | Expression) => ElementAccessExpression;
/** @deprecated Use `factory.updateElementAccessExpression` or the factory supplied by your transformation context instead. */
@@ -6917,51 +7072,51 @@ declare namespace ts {
/** @deprecated Use `factory.createJSDocTypeExpression` or the factory supplied by your transformation context instead. */
const createJSDocTypeExpression: (type: TypeNode) => JSDocTypeExpression;
/** @deprecated Use `factory.createJSDocTypeTag` or the factory supplied by your transformation context instead. */
- const createJSDocTypeTag: (tagName: Identifier | undefined, typeExpression: JSDocTypeExpression, comment?: string | undefined) => JSDocTypeTag;
+ const createJSDocTypeTag: (tagName: Identifier | undefined, typeExpression: JSDocTypeExpression, comment?: string | NodeArray<JSDocText | JSDocLink> | undefined) => JSDocTypeTag;
/** @deprecated Use `factory.createJSDocReturnTag` or the factory supplied by your transformation context instead. */
- const createJSDocReturnTag: (tagName: Identifier | undefined, typeExpression?: JSDocTypeExpression | undefined, comment?: string | undefined) => JSDocReturnTag;
+ const createJSDocReturnTag: (tagName: Identifier | undefined, typeExpression?: JSDocTypeExpression | undefined, comment?: string | NodeArray<JSDocText | JSDocLink> | undefined) => JSDocReturnTag;
/** @deprecated Use `factory.createJSDocThisTag` or the factory supplied by your transformation context instead. */
- const createJSDocThisTag: (tagName: Identifier | undefined, typeExpression: JSDocTypeExpression, comment?: string | undefined) => JSDocThisTag;
+ const createJSDocThisTag: (tagName: Identifier | undefined, typeExpression: JSDocTypeExpression, comment?: string | NodeArray<JSDocText | JSDocLink> | undefined) => JSDocThisTag;
/** @deprecated Use `factory.createJSDocComment` or the factory supplied by your transformation context instead. */
- const createJSDocComment: (comment?: string | undefined, tags?: readonly JSDocTag[] | undefined) => JSDoc;
+ const createJSDocComment: (comment?: string | NodeArray<JSDocText | JSDocLink> | undefined, tags?: readonly JSDocTag[] | undefined) => JSDoc;
/** @deprecated Use `factory.createJSDocParameterTag` or the factory supplied by your transformation context instead. */
- const createJSDocParameterTag: (tagName: Identifier | undefined, name: EntityName, isBracketed: boolean, typeExpression?: JSDocTypeExpression | undefined, isNameFirst?: boolean | undefined, comment?: string | undefined) => JSDocParameterTag;
+ const createJSDocParameterTag: (tagName: Identifier | undefined, name: EntityName, isBracketed: boolean, typeExpression?: JSDocTypeExpression | undefined, isNameFirst?: boolean | undefined, comment?: string | NodeArray<JSDocText | JSDocLink> | undefined) => JSDocParameterTag;
/** @deprecated Use `factory.createJSDocClassTag` or the factory supplied by your transformation context instead. */
- const createJSDocClassTag: (tagName: Identifier | undefined, comment?: string | undefined) => JSDocClassTag;
+ const createJSDocClassTag: (tagName: Identifier | undefined, comment?: string | NodeArray<JSDocText | JSDocLink> | undefined) => JSDocClassTag;
/** @deprecated Use `factory.createJSDocAugmentsTag` or the factory supplied by your transformation context instead. */
const createJSDocAugmentsTag: (tagName: Identifier | undefined, className: ExpressionWithTypeArguments & {
readonly expression: Identifier | PropertyAccessEntityNameExpression;
- }, comment?: string | undefined) => JSDocAugmentsTag;
+ }, comment?: string | NodeArray<JSDocText | JSDocLink> | undefined) => JSDocAugmentsTag;
/** @deprecated Use `factory.createJSDocEnumTag` or the factory supplied by your transformation context instead. */
- const createJSDocEnumTag: (tagName: Identifier | undefined, typeExpression: JSDocTypeExpression, comment?: string | undefined) => JSDocEnumTag;
+ const createJSDocEnumTag: (tagName: Identifier | undefined, typeExpression: JSDocTypeExpression, comment?: string | NodeArray<JSDocText | JSDocLink> | undefined) => JSDocEnumTag;
/** @deprecated Use `factory.createJSDocTemplateTag` or the factory supplied by your transformation context instead. */
- const createJSDocTemplateTag: (tagName: Identifier | undefined, constraint: JSDocTypeExpression | undefined, typeParameters: readonly TypeParameterDeclaration[], comment?: string | undefined) => JSDocTemplateTag;
+ const createJSDocTemplateTag: (tagName: Identifier | undefined, constraint: JSDocTypeExpression | undefined, typeParameters: readonly TypeParameterDeclaration[], comment?: string | NodeArray<JSDocText | JSDocLink> | undefined) => JSDocTemplateTag;
/** @deprecated Use `factory.createJSDocTypedefTag` or the factory supplied by your transformation context instead. */
- const createJSDocTypedefTag: (tagName: Identifier | undefined, typeExpression?: JSDocTypeLiteral | JSDocTypeExpression | undefined, fullName?: Identifier | JSDocNamespaceDeclaration | undefined, comment?: string | undefined) => JSDocTypedefTag;
+ const createJSDocTypedefTag: (tagName: Identifier | undefined, typeExpression?: JSDocTypeLiteral | JSDocTypeExpression | undefined, fullName?: Identifier | JSDocNamespaceDeclaration | undefined, comment?: string | NodeArray<JSDocText | JSDocLink> | undefined) => JSDocTypedefTag;
/** @deprecated Use `factory.createJSDocCallbackTag` or the factory supplied by your transformation context instead. */
- const createJSDocCallbackTag: (tagName: Identifier | undefined, typeExpression: JSDocSignature, fullName?: Identifier | JSDocNamespaceDeclaration | undefined, comment?: string | undefined) => JSDocCallbackTag;
+ const createJSDocCallbackTag: (tagName: Identifier | undefined, typeExpression: JSDocSignature, fullName?: Identifier | JSDocNamespaceDeclaration | undefined, comment?: string | NodeArray<JSDocText | JSDocLink> | undefined) => JSDocCallbackTag;
/** @deprecated Use `factory.createJSDocSignature` or the factory supplied by your transformation context instead. */
const createJSDocSignature: (typeParameters: readonly JSDocTemplateTag[] | undefined, parameters: readonly JSDocParameterTag[], type?: JSDocReturnTag | undefined) => JSDocSignature;
/** @deprecated Use `factory.createJSDocPropertyTag` or the factory supplied by your transformation context instead. */
- const createJSDocPropertyTag: (tagName: Identifier | undefined, name: EntityName, isBracketed: boolean, typeExpression?: JSDocTypeExpression | undefined, isNameFirst?: boolean | undefined, comment?: string | undefined) => JSDocPropertyTag;
+ const createJSDocPropertyTag: (tagName: Identifier | undefined, name: EntityName, isBracketed: boolean, typeExpression?: JSDocTypeExpression | undefined, isNameFirst?: boolean | undefined, comment?: string | NodeArray<JSDocText | JSDocLink> | undefined) => JSDocPropertyTag;
/** @deprecated Use `factory.createJSDocTypeLiteral` or the factory supplied by your transformation context instead. */
const createJSDocTypeLiteral: (jsDocPropertyTags?: readonly JSDocPropertyLikeTag[] | undefined, isArrayType?: boolean | undefined) => JSDocTypeLiteral;
/** @deprecated Use `factory.createJSDocImplementsTag` or the factory supplied by your transformation context instead. */
const createJSDocImplementsTag: (tagName: Identifier | undefined, className: ExpressionWithTypeArguments & {
readonly expression: Identifier | PropertyAccessEntityNameExpression;
- }, comment?: string | undefined) => JSDocImplementsTag;
+ }, comment?: string | NodeArray<JSDocText | JSDocLink> | undefined) => JSDocImplementsTag;
/** @deprecated Use `factory.createJSDocAuthorTag` or the factory supplied by your transformation context instead. */
- const createJSDocAuthorTag: (tagName: Identifier | undefined, comment?: string | undefined) => JSDocAuthorTag;
+ const createJSDocAuthorTag: (tagName: Identifier | undefined, comment?: string | NodeArray<JSDocText | JSDocLink> | undefined) => JSDocAuthorTag;
/** @deprecated Use `factory.createJSDocPublicTag` or the factory supplied by your transformation context instead. */
- const createJSDocPublicTag: (tagName: Identifier | undefined, comment?: string | undefined) => JSDocPublicTag;
+ const createJSDocPublicTag: (tagName: Identifier | undefined, comment?: string | NodeArray<JSDocText | JSDocLink> | undefined) => JSDocPublicTag;
/** @deprecated Use `factory.createJSDocPrivateTag` or the factory supplied by your transformation context instead. */
- const createJSDocPrivateTag: (tagName: Identifier | undefined, comment?: string | undefined) => JSDocPrivateTag;
+ const createJSDocPrivateTag: (tagName: Identifier | undefined, comment?: string | NodeArray<JSDocText | JSDocLink> | undefined) => JSDocPrivateTag;
/** @deprecated Use `factory.createJSDocProtectedTag` or the factory supplied by your transformation context instead. */
- const createJSDocProtectedTag: (tagName: Identifier | undefined, comment?: string | undefined) => JSDocProtectedTag;
+ const createJSDocProtectedTag: (tagName: Identifier | undefined, comment?: string | NodeArray<JSDocText | JSDocLink> | undefined) => JSDocProtectedTag;
/** @deprecated Use `factory.createJSDocReadonlyTag` or the factory supplied by your transformation context instead. */
- const createJSDocReadonlyTag: (tagName: Identifier | undefined, comment?: string | undefined) => JSDocReadonlyTag;
+ const createJSDocReadonlyTag: (tagName: Identifier | undefined, comment?: string | NodeArray<JSDocText | JSDocLink> | undefined) => JSDocReadonlyTag;
/** @deprecated Use `factory.createJSDocUnknownTag` or the factory supplied by your transformation context instead. */
- const createJSDocTag: (tagName: Identifier, comment?: string | undefined) => JSDocUnknownTag;
+ const createJSDocTag: (tagName: Identifier, comment?: string | NodeArray<JSDocText | JSDocLink> | undefined) => JSDocUnknownTag;
/** @deprecated Use `factory.createJsxElement` or the factory supplied by your transformation context instead. */
const createJsxElement: (openingElement: JsxOpeningElement, children: readonly JsxChild[], closingElement: JsxClosingElement) => JsxElement;
/** @deprecated Use `factory.updateJsxElement` or the factory supplied by your transformation context instead. */
@@ -7217,6 +7372,10 @@ declare namespace ts {
*/
interface Map<T> extends ESMap<string, T> {
}
+ /**
+ * @deprecated Use `isMemberName` instead.
+ */
+ const isIdentifierOrPrivateIdentifier: (node: Node) => node is MemberName;
}
export = ts; \ No newline at end of file