mirror of
https://github.com/denoland/deno.git
synced 2025-09-26 20:29:11 +00:00
feat: Upgrade to TypeScript 5.5.2 (#24326)
This commit upgrades TypeScript to 5.5.2. https://devblogs.microsoft.com/typescript/announcing-typescript-5-5/
This commit is contained in:
parent
496ea5903b
commit
3242e2718f
27 changed files with 191233 additions and 187186 deletions
|
@ -235,6 +235,7 @@ mod ts {
|
||||||
"es2023",
|
"es2023",
|
||||||
"es2023.array",
|
"es2023.array",
|
||||||
"es2023.collection",
|
"es2023.collection",
|
||||||
|
"es2023.intl",
|
||||||
"esnext",
|
"esnext",
|
||||||
"esnext.array",
|
"esnext.array",
|
||||||
"esnext.collection",
|
"esnext.collection",
|
||||||
|
@ -243,6 +244,8 @@ mod ts {
|
||||||
"esnext.intl",
|
"esnext.intl",
|
||||||
"esnext.object",
|
"esnext.object",
|
||||||
"esnext.promise",
|
"esnext.promise",
|
||||||
|
"esnext.regexp",
|
||||||
|
"esnext.string",
|
||||||
];
|
];
|
||||||
|
|
||||||
let path_dts = cwd.join("tsc/dts");
|
let path_dts = cwd.join("tsc/dts");
|
||||||
|
@ -311,7 +314,7 @@ mod ts {
|
||||||
|
|
||||||
pub(crate) fn version() -> String {
|
pub(crate) fn version() -> String {
|
||||||
let file_text = std::fs::read_to_string("tsc/00_typescript.js").unwrap();
|
let file_text = std::fs::read_to_string("tsc/00_typescript.js").unwrap();
|
||||||
let version_text = " version = \"";
|
let version_text = " version = \"";
|
||||||
for line in file_text.lines() {
|
for line in file_text.lines() {
|
||||||
if let Some(index) = line.find(version_text) {
|
if let Some(index) = line.find(version_text) {
|
||||||
let remaining_line = &line[index + version_text.len()..];
|
let remaining_line = &line[index + version_text.len()..];
|
||||||
|
@ -453,7 +456,7 @@ fn main() {
|
||||||
);
|
);
|
||||||
|
|
||||||
let ts_version = ts::version();
|
let ts_version = ts::version();
|
||||||
debug_assert_eq!(ts_version, "5.4.5"); // bump this assertion when it changes
|
debug_assert_eq!(ts_version, "5.5.2"); // bump this assertion when it changes
|
||||||
println!("cargo:rustc-env=TS_VERSION={}", ts_version);
|
println!("cargo:rustc-env=TS_VERSION={}", ts_version);
|
||||||
println!("cargo:rerun-if-env-changed=TS_VERSION");
|
println!("cargo:rerun-if-env-changed=TS_VERSION");
|
||||||
|
|
||||||
|
|
371596
cli/tsc/00_typescript.js
vendored
371596
cli/tsc/00_typescript.js
vendored
File diff suppressed because one or more lines are too long
5
cli/tsc/dts/lib.dom.asynciterable.d.ts
vendored
5
cli/tsc/dts/lib.dom.asynciterable.d.ts
vendored
|
@ -28,7 +28,6 @@ interface FileSystemDirectoryHandle {
|
||||||
}
|
}
|
||||||
|
|
||||||
interface ReadableStream<R = any> {
|
interface ReadableStream<R = any> {
|
||||||
[Symbol.asyncIterator](options?: {
|
[Symbol.asyncIterator](options?: ReadableStreamIteratorOptions): AsyncIterableIterator<R>;
|
||||||
preventCancel?: boolean;
|
values(options?: ReadableStreamIteratorOptions): AsyncIterableIterator<R>;
|
||||||
}): AsyncIterableIterator<R>;
|
|
||||||
}
|
}
|
||||||
|
|
245
cli/tsc/dts/lib.dom.d.ts
vendored
245
cli/tsc/dts/lib.dom.d.ts
vendored
|
@ -15,7 +15,6 @@ and limitations under the License.
|
||||||
|
|
||||||
|
|
||||||
/// <reference no-default-lib="true"/>
|
/// <reference no-default-lib="true"/>
|
||||||
/// <reference lib="dom.extras" />
|
|
||||||
|
|
||||||
/////////////////////////////
|
/////////////////////////////
|
||||||
/// Window APIs
|
/// Window APIs
|
||||||
|
@ -220,6 +219,9 @@ interface ChannelSplitterOptions extends AudioNodeOptions {
|
||||||
interface CheckVisibilityOptions {
|
interface CheckVisibilityOptions {
|
||||||
checkOpacity?: boolean;
|
checkOpacity?: boolean;
|
||||||
checkVisibilityCSS?: boolean;
|
checkVisibilityCSS?: boolean;
|
||||||
|
contentVisibilityAuto?: boolean;
|
||||||
|
opacityProperty?: boolean;
|
||||||
|
visibilityProperty?: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface ClientQueryOptions {
|
interface ClientQueryOptions {
|
||||||
|
@ -286,6 +288,10 @@ interface ConstrainULongRange extends ULongRange {
|
||||||
ideal?: number;
|
ideal?: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
interface ContentVisibilityAutoStateChangeEventInit extends EventInit {
|
||||||
|
skipped?: boolean;
|
||||||
|
}
|
||||||
|
|
||||||
interface ConvolverOptions extends AudioNodeOptions {
|
interface ConvolverOptions extends AudioNodeOptions {
|
||||||
buffer?: AudioBuffer | null;
|
buffer?: AudioBuffer | null;
|
||||||
disableNormalization?: boolean;
|
disableNormalization?: boolean;
|
||||||
|
@ -575,6 +581,8 @@ interface GainOptions extends AudioNodeOptions {
|
||||||
|
|
||||||
interface GamepadEffectParameters {
|
interface GamepadEffectParameters {
|
||||||
duration?: number;
|
duration?: number;
|
||||||
|
leftTrigger?: number;
|
||||||
|
rightTrigger?: number;
|
||||||
startDelay?: number;
|
startDelay?: number;
|
||||||
strongMagnitude?: number;
|
strongMagnitude?: number;
|
||||||
weakMagnitude?: number;
|
weakMagnitude?: number;
|
||||||
|
@ -1377,8 +1385,8 @@ interface RTCIceCandidateInit {
|
||||||
}
|
}
|
||||||
|
|
||||||
interface RTCIceCandidatePair {
|
interface RTCIceCandidatePair {
|
||||||
local?: RTCIceCandidate;
|
local: RTCIceCandidate;
|
||||||
remote?: RTCIceCandidate;
|
remote: RTCIceCandidate;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface RTCIceCandidatePairStats extends RTCStats {
|
interface RTCIceCandidatePairStats extends RTCStats {
|
||||||
|
@ -1638,6 +1646,17 @@ interface ReadableStreamGetReaderOptions {
|
||||||
mode?: ReadableStreamReaderMode;
|
mode?: ReadableStreamReaderMode;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
interface ReadableStreamIteratorOptions {
|
||||||
|
/**
|
||||||
|
* Asynchronously iterates over the chunks in the stream's internal queue.
|
||||||
|
*
|
||||||
|
* Asynchronously iterating over the stream will lock it, preventing any other consumer from acquiring a reader. The lock will be released if the async iterator's return() method is called, e.g. by breaking out of the loop.
|
||||||
|
*
|
||||||
|
* By default, calling the async iterator's return() method will also cancel the stream. To prevent this, use the stream's values() method, passing true for the preventCancel option.
|
||||||
|
*/
|
||||||
|
preventCancel?: boolean;
|
||||||
|
}
|
||||||
|
|
||||||
interface ReadableStreamReadDoneResult<T> {
|
interface ReadableStreamReadDoneResult<T> {
|
||||||
done: true;
|
done: true;
|
||||||
value?: T;
|
value?: T;
|
||||||
|
@ -1769,21 +1788,22 @@ interface ScrollToOptions extends ScrollOptions {
|
||||||
interface SecurityPolicyViolationEventInit extends EventInit {
|
interface SecurityPolicyViolationEventInit extends EventInit {
|
||||||
blockedURI?: string;
|
blockedURI?: string;
|
||||||
columnNumber?: number;
|
columnNumber?: number;
|
||||||
disposition: SecurityPolicyViolationEventDisposition;
|
disposition?: SecurityPolicyViolationEventDisposition;
|
||||||
documentURI: string;
|
documentURI?: string;
|
||||||
effectiveDirective: string;
|
effectiveDirective?: string;
|
||||||
lineNumber?: number;
|
lineNumber?: number;
|
||||||
originalPolicy: string;
|
originalPolicy?: string;
|
||||||
referrer?: string;
|
referrer?: string;
|
||||||
sample?: string;
|
sample?: string;
|
||||||
sourceFile?: string;
|
sourceFile?: string;
|
||||||
statusCode: number;
|
statusCode?: number;
|
||||||
violatedDirective: string;
|
violatedDirective?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface ShadowRootInit {
|
interface ShadowRootInit {
|
||||||
delegatesFocus?: boolean;
|
delegatesFocus?: boolean;
|
||||||
mode: ShadowRootMode;
|
mode: ShadowRootMode;
|
||||||
|
serializable?: boolean;
|
||||||
slotAssignment?: SlotAssignmentMode;
|
slotAssignment?: SlotAssignmentMode;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2208,6 +2228,8 @@ interface ARIAMixin {
|
||||||
ariaAtomic: string | null;
|
ariaAtomic: string | null;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaAutoComplete) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaAutoComplete) */
|
||||||
ariaAutoComplete: string | null;
|
ariaAutoComplete: string | null;
|
||||||
|
ariaBrailleLabel: string | null;
|
||||||
|
ariaBrailleRoleDescription: string | null;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaBusy) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaBusy) */
|
||||||
ariaBusy: string | null;
|
ariaBusy: string | null;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaChecked) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaChecked) */
|
||||||
|
@ -2340,6 +2362,8 @@ declare var AbortSignal: {
|
||||||
new(): AbortSignal;
|
new(): AbortSignal;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/abort_static) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/abort_static) */
|
||||||
abort(reason?: any): AbortSignal;
|
abort(reason?: any): AbortSignal;
|
||||||
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/any_static) */
|
||||||
|
any(signals: AbortSignal[]): AbortSignal;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/timeout_static) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/timeout_static) */
|
||||||
timeout(milliseconds: number): AbortSignal;
|
timeout(milliseconds: number): AbortSignal;
|
||||||
};
|
};
|
||||||
|
@ -3793,6 +3817,16 @@ declare var CSSScale: {
|
||||||
new(x: CSSNumberish, y: CSSNumberish, z?: CSSNumberish): CSSScale;
|
new(x: CSSNumberish, y: CSSNumberish, z?: CSSNumberish): CSSScale;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
interface CSSScopeRule extends CSSGroupingRule {
|
||||||
|
readonly end: string | null;
|
||||||
|
readonly start: string | null;
|
||||||
|
}
|
||||||
|
|
||||||
|
declare var CSSScopeRule: {
|
||||||
|
prototype: CSSScopeRule;
|
||||||
|
new(): CSSScopeRule;
|
||||||
|
};
|
||||||
|
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSkew) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSkew) */
|
||||||
interface CSSSkew extends CSSTransformComponent {
|
interface CSSSkew extends CSSTransformComponent {
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSkew/ax) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSkew/ax) */
|
||||||
|
@ -3828,6 +3862,15 @@ declare var CSSSkewY: {
|
||||||
new(ay: CSSNumericValue): CSSSkewY;
|
new(ay: CSSNumericValue): CSSSkewY;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStartingStyleRule) */
|
||||||
|
interface CSSStartingStyleRule extends CSSGroupingRule {
|
||||||
|
}
|
||||||
|
|
||||||
|
declare var CSSStartingStyleRule: {
|
||||||
|
prototype: CSSStartingStyleRule;
|
||||||
|
new(): CSSStartingStyleRule;
|
||||||
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* An object that is a CSS declaration block, and exposes style information and various style-related methods and properties.
|
* An object that is a CSS declaration block, and exposes style information and various style-related methods and properties.
|
||||||
*
|
*
|
||||||
|
@ -4053,6 +4096,7 @@ interface CSSStyleDeclaration {
|
||||||
clipRule: string;
|
clipRule: string;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/color) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/color) */
|
||||||
color: string;
|
color: string;
|
||||||
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/color-interpolation) */
|
||||||
colorInterpolation: string;
|
colorInterpolation: string;
|
||||||
colorInterpolationFilters: string;
|
colorInterpolationFilters: string;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/color-scheme) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/color-scheme) */
|
||||||
|
@ -4097,6 +4141,8 @@ interface CSSStyleDeclaration {
|
||||||
containerType: string;
|
containerType: string;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/content) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/content) */
|
||||||
content: string;
|
content: string;
|
||||||
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/content-visibility) */
|
||||||
|
contentVisibility: string;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/counter-increment) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/counter-increment) */
|
||||||
counterIncrement: string;
|
counterIncrement: string;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/counter-reset) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/counter-reset) */
|
||||||
|
@ -4598,6 +4644,8 @@ interface CSSStyleDeclaration {
|
||||||
textUnderlinePosition: string;
|
textUnderlinePosition: string;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-wrap) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-wrap) */
|
||||||
textWrap: string;
|
textWrap: string;
|
||||||
|
textWrapMode: string;
|
||||||
|
textWrapStyle: string;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/top) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/top) */
|
||||||
top: string;
|
top: string;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/touch-action) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/touch-action) */
|
||||||
|
@ -4612,6 +4660,8 @@ interface CSSStyleDeclaration {
|
||||||
transformStyle: string;
|
transformStyle: string;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transition) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transition) */
|
||||||
transition: string;
|
transition: string;
|
||||||
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transition-behavior) */
|
||||||
|
transitionBehavior: string;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transition-delay) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transition-delay) */
|
||||||
transitionDelay: string;
|
transitionDelay: string;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transition-duration) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transition-duration) */
|
||||||
|
@ -5033,6 +5083,8 @@ interface CSSStyleDeclaration {
|
||||||
webkitUserSelect: string;
|
webkitUserSelect: string;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/white-space) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/white-space) */
|
||||||
whiteSpace: string;
|
whiteSpace: string;
|
||||||
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/white-space-collapse) */
|
||||||
|
whiteSpaceCollapse: string;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/widows) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/widows) */
|
||||||
widows: string;
|
widows: string;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/width) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/width) */
|
||||||
|
@ -5051,6 +5103,8 @@ interface CSSStyleDeclaration {
|
||||||
y: string;
|
y: string;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/z-index) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/z-index) */
|
||||||
zIndex: string;
|
zIndex: string;
|
||||||
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/zoom) */
|
||||||
|
zoom: string;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/getPropertyPriority) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/getPropertyPriority) */
|
||||||
getPropertyPriority(property: string): string;
|
getPropertyPriority(property: string): string;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/getPropertyValue) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/getPropertyValue) */
|
||||||
|
@ -5814,6 +5868,17 @@ declare var ConstantSourceNode: {
|
||||||
new(context: BaseAudioContext, options?: ConstantSourceOptions): ConstantSourceNode;
|
new(context: BaseAudioContext, options?: ConstantSourceOptions): ConstantSourceNode;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ContentVisibilityAutoStateChangeEvent) */
|
||||||
|
interface ContentVisibilityAutoStateChangeEvent extends Event {
|
||||||
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ContentVisibilityAutoStateChangeEvent/skipped) */
|
||||||
|
readonly skipped: boolean;
|
||||||
|
}
|
||||||
|
|
||||||
|
declare var ContentVisibilityAutoStateChangeEvent: {
|
||||||
|
prototype: ContentVisibilityAutoStateChangeEvent;
|
||||||
|
new(type: string, eventInitDict?: ContentVisibilityAutoStateChangeEventInit): ContentVisibilityAutoStateChangeEvent;
|
||||||
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* An AudioNode that performs a Linear Convolution on a given AudioBuffer, often used to achieve a reverb effect. A ConvolverNode always has exactly one input and one output.
|
* An AudioNode that performs a Linear Convolution on a given AudioBuffer, often used to achieve a reverb effect. A ConvolverNode always has exactly one input and one output.
|
||||||
*
|
*
|
||||||
|
@ -5975,6 +6040,16 @@ declare var CustomEvent: {
|
||||||
new<T>(type: string, eventInitDict?: CustomEventInit<T>): CustomEvent<T>;
|
new<T>(type: string, eventInitDict?: CustomEventInit<T>): CustomEvent<T>;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomStateSet) */
|
||||||
|
interface CustomStateSet {
|
||||||
|
forEach(callbackfn: (value: string, key: string, parent: CustomStateSet) => void, thisArg?: any): void;
|
||||||
|
}
|
||||||
|
|
||||||
|
declare var CustomStateSet: {
|
||||||
|
prototype: CustomStateSet;
|
||||||
|
new(): CustomStateSet;
|
||||||
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* An abnormal event (called an exception) which occurs as a result of calling a method or accessing a property of a web API.
|
* An abnormal event (called an exception) which occurs as a result of calling a method or accessing a property of a web API.
|
||||||
*
|
*
|
||||||
|
@ -7163,6 +7238,7 @@ interface Document extends Node, DocumentOrShadowRoot, FontFaceSource, GlobalEve
|
||||||
createEvent(eventInterface: "ClipboardEvent"): ClipboardEvent;
|
createEvent(eventInterface: "ClipboardEvent"): ClipboardEvent;
|
||||||
createEvent(eventInterface: "CloseEvent"): CloseEvent;
|
createEvent(eventInterface: "CloseEvent"): CloseEvent;
|
||||||
createEvent(eventInterface: "CompositionEvent"): CompositionEvent;
|
createEvent(eventInterface: "CompositionEvent"): CompositionEvent;
|
||||||
|
createEvent(eventInterface: "ContentVisibilityAutoStateChangeEvent"): ContentVisibilityAutoStateChangeEvent;
|
||||||
createEvent(eventInterface: "CustomEvent"): CustomEvent;
|
createEvent(eventInterface: "CustomEvent"): CustomEvent;
|
||||||
createEvent(eventInterface: "DeviceMotionEvent"): DeviceMotionEvent;
|
createEvent(eventInterface: "DeviceMotionEvent"): DeviceMotionEvent;
|
||||||
createEvent(eventInterface: "DeviceOrientationEvent"): DeviceOrientationEvent;
|
createEvent(eventInterface: "DeviceOrientationEvent"): DeviceOrientationEvent;
|
||||||
|
@ -7424,6 +7500,7 @@ interface Document extends Node, DocumentOrShadowRoot, FontFaceSource, GlobalEve
|
||||||
declare var Document: {
|
declare var Document: {
|
||||||
prototype: Document;
|
prototype: Document;
|
||||||
new(): Document;
|
new(): Document;
|
||||||
|
parseHTMLUnsafe(html: string): Document;
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -7874,6 +7951,7 @@ interface Element extends Node, ARIAMixin, Animatable, ChildNode, InnerHTML, Non
|
||||||
setAttributeNode(attr: Attr): Attr | null;
|
setAttributeNode(attr: Attr): Attr | null;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/setAttributeNodeNS) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/setAttributeNodeNS) */
|
||||||
setAttributeNodeNS(attr: Attr): Attr | null;
|
setAttributeNodeNS(attr: Attr): Attr | null;
|
||||||
|
setHTMLUnsafe(html: string): void;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/setPointerCapture) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/setPointerCapture) */
|
||||||
setPointerCapture(pointerId: number): void;
|
setPointerCapture(pointerId: number): void;
|
||||||
/**
|
/**
|
||||||
|
@ -7938,6 +8016,8 @@ interface ElementInternals extends ARIAMixin {
|
||||||
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals/shadowRoot)
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals/shadowRoot)
|
||||||
*/
|
*/
|
||||||
readonly shadowRoot: ShadowRoot | null;
|
readonly shadowRoot: ShadowRoot | null;
|
||||||
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals/states) */
|
||||||
|
readonly states: CustomStateSet;
|
||||||
/**
|
/**
|
||||||
* Returns the error message that would be shown to the user if internals's target element was to be checked for validity.
|
* Returns the error message that would be shown to the user if internals's target element was to be checked for validity.
|
||||||
*
|
*
|
||||||
|
@ -8716,7 +8796,6 @@ declare var GainNode: {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This Gamepad API interface defines an individual gamepad or other controller, allowing access to information such as button presses, axis positions, and id.
|
* This Gamepad API interface defines an individual gamepad or other controller, allowing access to information such as button presses, axis positions, and id.
|
||||||
* Available only in secure contexts.
|
|
||||||
*
|
*
|
||||||
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Gamepad)
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Gamepad)
|
||||||
*/
|
*/
|
||||||
|
@ -8735,7 +8814,7 @@ interface Gamepad {
|
||||||
readonly mapping: GamepadMappingType;
|
readonly mapping: GamepadMappingType;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Gamepad/timestamp) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Gamepad/timestamp) */
|
||||||
readonly timestamp: DOMHighResTimeStamp;
|
readonly timestamp: DOMHighResTimeStamp;
|
||||||
readonly vibrationActuator: GamepadHapticActuator | null;
|
readonly vibrationActuator: GamepadHapticActuator;
|
||||||
}
|
}
|
||||||
|
|
||||||
declare var Gamepad: {
|
declare var Gamepad: {
|
||||||
|
@ -8745,7 +8824,6 @@ declare var Gamepad: {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* An individual button of a gamepad or other controller, allowing access to the current state of different types of buttons available on the control device.
|
* An individual button of a gamepad or other controller, allowing access to the current state of different types of buttons available on the control device.
|
||||||
* Available only in secure contexts.
|
|
||||||
*
|
*
|
||||||
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GamepadButton)
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GamepadButton)
|
||||||
*/
|
*/
|
||||||
|
@ -8765,7 +8843,6 @@ declare var GamepadButton: {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This Gamepad API interface contains references to gamepads connected to the system, which is what the gamepad events Window.gamepadconnected and Window.gamepaddisconnected are fired in response to.
|
* This Gamepad API interface contains references to gamepads connected to the system, which is what the gamepad events Window.gamepadconnected and Window.gamepaddisconnected are fired in response to.
|
||||||
* Available only in secure contexts.
|
|
||||||
*
|
*
|
||||||
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GamepadEvent)
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GamepadEvent)
|
||||||
*/
|
*/
|
||||||
|
@ -8785,8 +8862,6 @@ declare var GamepadEvent: {
|
||||||
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GamepadHapticActuator)
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GamepadHapticActuator)
|
||||||
*/
|
*/
|
||||||
interface GamepadHapticActuator {
|
interface GamepadHapticActuator {
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GamepadHapticActuator/type) */
|
|
||||||
readonly type: GamepadHapticActuatorType;
|
|
||||||
playEffect(type: GamepadHapticEffectType, params?: GamepadEffectParameters): Promise<GamepadHapticsResult>;
|
playEffect(type: GamepadHapticEffectType, params?: GamepadEffectParameters): Promise<GamepadHapticsResult>;
|
||||||
reset(): Promise<GamepadHapticsResult>;
|
reset(): Promise<GamepadHapticsResult>;
|
||||||
}
|
}
|
||||||
|
@ -9497,6 +9572,7 @@ interface HTMLAnchorElement extends HTMLElement, HTMLHyperlinkElementUtils {
|
||||||
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/name)
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/name)
|
||||||
*/
|
*/
|
||||||
name: string;
|
name: string;
|
||||||
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/ping) */
|
||||||
ping: string;
|
ping: string;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/referrerPolicy) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/referrerPolicy) */
|
||||||
referrerPolicy: string;
|
referrerPolicy: string;
|
||||||
|
@ -9574,6 +9650,7 @@ interface HTMLAreaElement extends HTMLElement, HTMLHyperlinkElementUtils {
|
||||||
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement/noHref)
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement/noHref)
|
||||||
*/
|
*/
|
||||||
noHref: boolean;
|
noHref: boolean;
|
||||||
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement/ping) */
|
||||||
ping: string;
|
ping: string;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement/referrerPolicy) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement/referrerPolicy) */
|
||||||
referrerPolicy: string;
|
referrerPolicy: string;
|
||||||
|
@ -10169,7 +10246,11 @@ declare var HTMLElement: {
|
||||||
interface HTMLEmbedElement extends HTMLElement {
|
interface HTMLEmbedElement extends HTMLElement {
|
||||||
/** @deprecated */
|
/** @deprecated */
|
||||||
align: string;
|
align: string;
|
||||||
/** Sets or retrieves the height of the object. */
|
/**
|
||||||
|
* Sets or retrieves the height of the object.
|
||||||
|
*
|
||||||
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLEmbedElement/height)
|
||||||
|
*/
|
||||||
height: string;
|
height: string;
|
||||||
/**
|
/**
|
||||||
* Sets or retrieves the name of the object.
|
* Sets or retrieves the name of the object.
|
||||||
|
@ -10179,7 +10260,11 @@ interface HTMLEmbedElement extends HTMLElement {
|
||||||
/** Sets or retrieves a URL to be loaded by the object. */
|
/** Sets or retrieves a URL to be loaded by the object. */
|
||||||
src: string;
|
src: string;
|
||||||
type: string;
|
type: string;
|
||||||
/** Sets or retrieves the width of the object. */
|
/**
|
||||||
|
* Sets or retrieves the width of the object.
|
||||||
|
*
|
||||||
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLEmbedElement/width)
|
||||||
|
*/
|
||||||
width: string;
|
width: string;
|
||||||
getSVGDocument(): Document | null;
|
getSVGDocument(): Document | null;
|
||||||
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLEmbedElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLEmbedElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
||||||
|
@ -10752,6 +10837,7 @@ interface HTMLIFrameElement extends HTMLElement {
|
||||||
*/
|
*/
|
||||||
align: string;
|
align: string;
|
||||||
allow: string;
|
allow: string;
|
||||||
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement/allowFullscreen) */
|
||||||
allowFullscreen: boolean;
|
allowFullscreen: boolean;
|
||||||
/**
|
/**
|
||||||
* Retrieves the document object of the page or frame.
|
* Retrieves the document object of the page or frame.
|
||||||
|
@ -10778,6 +10864,7 @@ interface HTMLIFrameElement extends HTMLElement {
|
||||||
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement/height)
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement/height)
|
||||||
*/
|
*/
|
||||||
height: string;
|
height: string;
|
||||||
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement/loading) */
|
||||||
loading: string;
|
loading: string;
|
||||||
/**
|
/**
|
||||||
* Sets or retrieves a URI to a long description of the object.
|
* Sets or retrieves a URI to a long description of the object.
|
||||||
|
@ -11017,7 +11104,11 @@ interface HTMLInputElement extends HTMLElement, PopoverInvokerElement {
|
||||||
checked: boolean;
|
checked: boolean;
|
||||||
/** Sets or retrieves the state of the check box or radio button. */
|
/** Sets or retrieves the state of the check box or radio button. */
|
||||||
defaultChecked: boolean;
|
defaultChecked: boolean;
|
||||||
/** Sets or retrieves the initial contents of the object. */
|
/**
|
||||||
|
* Sets or retrieves the initial contents of the object.
|
||||||
|
*
|
||||||
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/defaultValue)
|
||||||
|
*/
|
||||||
defaultValue: string;
|
defaultValue: string;
|
||||||
dirName: string;
|
dirName: string;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/disabled) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/disabled) */
|
||||||
|
@ -11076,12 +11167,25 @@ interface HTMLInputElement extends HTMLElement, PopoverInvokerElement {
|
||||||
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/list)
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/list)
|
||||||
*/
|
*/
|
||||||
readonly list: HTMLDataListElement | null;
|
readonly list: HTMLDataListElement | null;
|
||||||
/** Defines the maximum acceptable value for an input element with type="number".When used with the min and step attributes, lets you control the range and increment (such as only even numbers) that the user can enter into an input field. */
|
/**
|
||||||
|
* Defines the maximum acceptable value for an input element with type="number".When used with the min and step attributes, lets you control the range and increment (such as only even numbers) that the user can enter into an input field.
|
||||||
|
*
|
||||||
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/max)
|
||||||
|
*/
|
||||||
max: string;
|
max: string;
|
||||||
/** Sets or retrieves the maximum number of characters that the user can enter in a text control. */
|
/**
|
||||||
|
* Sets or retrieves the maximum number of characters that the user can enter in a text control.
|
||||||
|
*
|
||||||
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/maxLength)
|
||||||
|
*/
|
||||||
maxLength: number;
|
maxLength: number;
|
||||||
/** Defines the minimum acceptable value for an input element with type="number". When used with the max and step attributes, lets you control the range and increment (such as even numbers only) that the user can enter into an input field. */
|
/**
|
||||||
|
* Defines the minimum acceptable value for an input element with type="number". When used with the max and step attributes, lets you control the range and increment (such as even numbers only) that the user can enter into an input field.
|
||||||
|
*
|
||||||
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/min)
|
||||||
|
*/
|
||||||
min: string;
|
min: string;
|
||||||
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/minLength) */
|
||||||
minLength: number;
|
minLength: number;
|
||||||
/**
|
/**
|
||||||
* Sets or retrieves the Boolean value indicating whether multiple items can be selected from a list.
|
* Sets or retrieves the Boolean value indicating whether multiple items can be selected from a list.
|
||||||
|
@ -11112,16 +11216,28 @@ interface HTMLInputElement extends HTMLElement, PopoverInvokerElement {
|
||||||
required: boolean;
|
required: boolean;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/selectionDirection) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/selectionDirection) */
|
||||||
selectionDirection: "forward" | "backward" | "none" | null;
|
selectionDirection: "forward" | "backward" | "none" | null;
|
||||||
/** Gets or sets the end position or offset of a text selection. */
|
/**
|
||||||
|
* Gets or sets the end position or offset of a text selection.
|
||||||
|
*
|
||||||
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/selectionEnd)
|
||||||
|
*/
|
||||||
selectionEnd: number | null;
|
selectionEnd: number | null;
|
||||||
/** Gets or sets the starting position or offset of a text selection. */
|
/**
|
||||||
|
* Gets or sets the starting position or offset of a text selection.
|
||||||
|
*
|
||||||
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/selectionStart)
|
||||||
|
*/
|
||||||
selectionStart: number | null;
|
selectionStart: number | null;
|
||||||
size: number;
|
size: number;
|
||||||
/** The address or URL of the a media resource that is to be considered. */
|
/** The address or URL of the a media resource that is to be considered. */
|
||||||
src: string;
|
src: string;
|
||||||
/** Defines an increment or jump between values that you want to allow the user to enter. When used with the max and min attributes, lets you control the range and increment (for example, allow only even numbers) that the user can enter into an input field. */
|
/** Defines an increment or jump between values that you want to allow the user to enter. When used with the max and min attributes, lets you control the range and increment (for example, allow only even numbers) that the user can enter into an input field. */
|
||||||
step: string;
|
step: string;
|
||||||
/** Returns the content type of the object. */
|
/**
|
||||||
|
* Returns the content type of the object.
|
||||||
|
*
|
||||||
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/type)
|
||||||
|
*/
|
||||||
type: string;
|
type: string;
|
||||||
/**
|
/**
|
||||||
* Sets or retrieves the URL, often with a bookmark extension (#name), to use as a client-side image map.
|
* Sets or retrieves the URL, often with a bookmark extension (#name), to use as a client-side image map.
|
||||||
|
@ -11140,7 +11256,11 @@ interface HTMLInputElement extends HTMLElement, PopoverInvokerElement {
|
||||||
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/validity)
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/validity)
|
||||||
*/
|
*/
|
||||||
readonly validity: ValidityState;
|
readonly validity: ValidityState;
|
||||||
/** Returns the value of the data at the cursor's current position. */
|
/**
|
||||||
|
* Returns the value of the data at the cursor's current position.
|
||||||
|
*
|
||||||
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/value)
|
||||||
|
*/
|
||||||
value: string;
|
value: string;
|
||||||
/** Returns a Date object representing the form control's value, if applicable; otherwise, returns null. Can be set, to change the value. Throws an "InvalidStateError" DOMException if the control isn't date- or time-based. */
|
/** Returns a Date object representing the form control's value, if applicable; otherwise, returns null. Can be set, to change the value. Throws an "InvalidStateError" DOMException if the control isn't date- or time-based. */
|
||||||
valueAsDate: Date | null;
|
valueAsDate: Date | null;
|
||||||
|
@ -11700,16 +11820,31 @@ declare var HTMLMenuElement: {
|
||||||
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMetaElement)
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMetaElement)
|
||||||
*/
|
*/
|
||||||
interface HTMLMetaElement extends HTMLElement {
|
interface HTMLMetaElement extends HTMLElement {
|
||||||
/** Gets or sets meta-information to associate with httpEquiv or name. */
|
/**
|
||||||
|
* Gets or sets meta-information to associate with httpEquiv or name.
|
||||||
|
*
|
||||||
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMetaElement/content)
|
||||||
|
*/
|
||||||
content: string;
|
content: string;
|
||||||
/** Gets or sets information used to bind the value of a content attribute of a meta element to an HTTP response header. */
|
/**
|
||||||
|
* Gets or sets information used to bind the value of a content attribute of a meta element to an HTTP response header.
|
||||||
|
*
|
||||||
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMetaElement/httpEquiv)
|
||||||
|
*/
|
||||||
httpEquiv: string;
|
httpEquiv: string;
|
||||||
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMetaElement/media) */
|
||||||
media: string;
|
media: string;
|
||||||
/** Sets or retrieves the value specified in the content attribute of the meta object. */
|
/**
|
||||||
|
* Sets or retrieves the value specified in the content attribute of the meta object.
|
||||||
|
*
|
||||||
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMetaElement/name)
|
||||||
|
*/
|
||||||
name: string;
|
name: string;
|
||||||
/**
|
/**
|
||||||
* Sets or retrieves a scheme to be used in interpreting the value of a property specified for the object.
|
* Sets or retrieves a scheme to be used in interpreting the value of a property specified for the object.
|
||||||
* @deprecated
|
* @deprecated
|
||||||
|
*
|
||||||
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMetaElement/scheme)
|
||||||
*/
|
*/
|
||||||
scheme: string;
|
scheme: string;
|
||||||
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMetaElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMetaElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
||||||
|
@ -11921,6 +12056,7 @@ interface HTMLObjectElement extends HTMLElement {
|
||||||
type: string;
|
type: string;
|
||||||
/**
|
/**
|
||||||
* Sets or retrieves the URL, often with a bookmark extension (#name), to use as a client-side image map.
|
* Sets or retrieves the URL, often with a bookmark extension (#name), to use as a client-side image map.
|
||||||
|
* @deprecated
|
||||||
*
|
*
|
||||||
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/useMap)
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/useMap)
|
||||||
*/
|
*/
|
||||||
|
@ -12475,7 +12611,7 @@ interface HTMLSelectElement extends HTMLElement {
|
||||||
*
|
*
|
||||||
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/type)
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/type)
|
||||||
*/
|
*/
|
||||||
readonly type: string;
|
readonly type: "select-one" | "select-multiple";
|
||||||
/**
|
/**
|
||||||
* Returns the error message that would be displayed if the user submits the form, or an empty string if no error message. It also triggers the standard error message, such as "this is a required field". The result is that the user sees validation messages without actually submitting.
|
* Returns the error message that would be displayed if the user submits the form, or an empty string if no error message. It also triggers the standard error message, such as "this is a required field". The result is that the user sees validation messages without actually submitting.
|
||||||
*
|
*
|
||||||
|
@ -12587,6 +12723,7 @@ declare var HTMLSlotElement: {
|
||||||
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSourceElement)
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSourceElement)
|
||||||
*/
|
*/
|
||||||
interface HTMLSourceElement extends HTMLElement {
|
interface HTMLSourceElement extends HTMLElement {
|
||||||
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSourceElement/height) */
|
||||||
height: number;
|
height: number;
|
||||||
/**
|
/**
|
||||||
* Gets or sets the intended media type of the media source.
|
* Gets or sets the intended media type of the media source.
|
||||||
|
@ -12610,6 +12747,7 @@ interface HTMLSourceElement extends HTMLElement {
|
||||||
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSourceElement/type)
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSourceElement/type)
|
||||||
*/
|
*/
|
||||||
type: string;
|
type: string;
|
||||||
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSourceElement/width) */
|
||||||
width: number;
|
width: number;
|
||||||
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLSourceElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLSourceElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
||||||
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
||||||
|
@ -13251,7 +13389,11 @@ interface HTMLTextAreaElement extends HTMLElement {
|
||||||
selectionStart: number;
|
selectionStart: number;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/textLength) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/textLength) */
|
||||||
readonly textLength: number;
|
readonly textLength: number;
|
||||||
/** Retrieves the type of control. */
|
/**
|
||||||
|
* Retrieves the type of control.
|
||||||
|
*
|
||||||
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/type)
|
||||||
|
*/
|
||||||
readonly type: string;
|
readonly type: string;
|
||||||
/** Returns the error message that would be displayed if the user submits the form, or an empty string if no error message. It also triggers the standard error message, such as "this is a required field". The result is that the user sees validation messages without actually submitting. */
|
/** Returns the error message that would be displayed if the user submits the form, or an empty string if no error message. It also triggers the standard error message, such as "this is a required field". The result is that the user sees validation messages without actually submitting. */
|
||||||
readonly validationMessage: string;
|
readonly validationMessage: string;
|
||||||
|
@ -13474,11 +13616,13 @@ interface HTMLVideoElement extends HTMLMediaElement {
|
||||||
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLVideoElement/width)
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLVideoElement/width)
|
||||||
*/
|
*/
|
||||||
width: number;
|
width: number;
|
||||||
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLVideoElement/cancelVideoFrameCallback) */
|
||||||
cancelVideoFrameCallback(handle: number): void;
|
cancelVideoFrameCallback(handle: number): void;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLVideoElement/getVideoPlaybackQuality) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLVideoElement/getVideoPlaybackQuality) */
|
||||||
getVideoPlaybackQuality(): VideoPlaybackQuality;
|
getVideoPlaybackQuality(): VideoPlaybackQuality;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLVideoElement/requestPictureInPicture) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLVideoElement/requestPictureInPicture) */
|
||||||
requestPictureInPicture(): Promise<PictureInPictureWindow>;
|
requestPictureInPicture(): Promise<PictureInPictureWindow>;
|
||||||
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLVideoElement/requestVideoFrameCallback) */
|
||||||
requestVideoFrameCallback(callback: VideoFrameRequestCallback): number;
|
requestVideoFrameCallback(callback: VideoFrameRequestCallback): number;
|
||||||
addEventListener<K extends keyof HTMLVideoElementEventMap>(type: K, listener: (this: HTMLVideoElement, ev: HTMLVideoElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
addEventListener<K extends keyof HTMLVideoElementEventMap>(type: K, listener: (this: HTMLVideoElement, ev: HTMLVideoElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
||||||
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
||||||
|
@ -14560,6 +14704,29 @@ declare var KeyframeEffect: {
|
||||||
new(source: KeyframeEffect): KeyframeEffect;
|
new(source: KeyframeEffect): KeyframeEffect;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/LargestContentfulPaint) */
|
||||||
|
interface LargestContentfulPaint extends PerformanceEntry {
|
||||||
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/LargestContentfulPaint/element) */
|
||||||
|
readonly element: Element | null;
|
||||||
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/LargestContentfulPaint/id) */
|
||||||
|
readonly id: string;
|
||||||
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/LargestContentfulPaint/loadTime) */
|
||||||
|
readonly loadTime: DOMHighResTimeStamp;
|
||||||
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/LargestContentfulPaint/renderTime) */
|
||||||
|
readonly renderTime: DOMHighResTimeStamp;
|
||||||
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/LargestContentfulPaint/size) */
|
||||||
|
readonly size: number;
|
||||||
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/LargestContentfulPaint/url) */
|
||||||
|
readonly url: string;
|
||||||
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/LargestContentfulPaint/toJSON) */
|
||||||
|
toJSON(): any;
|
||||||
|
}
|
||||||
|
|
||||||
|
declare var LargestContentfulPaint: {
|
||||||
|
prototype: LargestContentfulPaint;
|
||||||
|
new(): LargestContentfulPaint;
|
||||||
|
};
|
||||||
|
|
||||||
interface LinkStyle {
|
interface LinkStyle {
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement/sheet) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement/sheet) */
|
||||||
readonly sheet: CSSStyleSheet | null;
|
readonly sheet: CSSStyleSheet | null;
|
||||||
|
@ -21397,6 +21564,8 @@ interface ShadowRootEventMap {
|
||||||
|
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ShadowRoot) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ShadowRoot) */
|
||||||
interface ShadowRoot extends DocumentFragment, DocumentOrShadowRoot, InnerHTML {
|
interface ShadowRoot extends DocumentFragment, DocumentOrShadowRoot, InnerHTML {
|
||||||
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ShadowRoot/clonable) */
|
||||||
|
readonly clonable: boolean;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ShadowRoot/delegatesFocus) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ShadowRoot/delegatesFocus) */
|
||||||
readonly delegatesFocus: boolean;
|
readonly delegatesFocus: boolean;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ShadowRoot/host) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ShadowRoot/host) */
|
||||||
|
@ -21406,6 +21575,7 @@ interface ShadowRoot extends DocumentFragment, DocumentOrShadowRoot, InnerHTML {
|
||||||
onslotchange: ((this: ShadowRoot, ev: Event) => any) | null;
|
onslotchange: ((this: ShadowRoot, ev: Event) => any) | null;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ShadowRoot/slotAssignment) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ShadowRoot/slotAssignment) */
|
||||||
readonly slotAssignment: SlotAssignmentMode;
|
readonly slotAssignment: SlotAssignmentMode;
|
||||||
|
setHTMLUnsafe(html: string): void;
|
||||||
/** Throws a "NotSupportedError" DOMException if context object is a shadow root. */
|
/** Throws a "NotSupportedError" DOMException if context object is a shadow root. */
|
||||||
addEventListener<K extends keyof ShadowRootEventMap>(type: K, listener: (this: ShadowRoot, ev: ShadowRootEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
addEventListener<K extends keyof ShadowRootEventMap>(type: K, listener: (this: ShadowRoot, ev: ShadowRootEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
||||||
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
||||||
|
@ -25928,7 +26098,11 @@ interface Window extends EventTarget, AnimationFrameProvider, GlobalEventHandler
|
||||||
readonly window: Window & typeof globalThis;
|
readonly window: Window & typeof globalThis;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/alert) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/alert) */
|
||||||
alert(message?: any): void;
|
alert(message?: any): void;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/blur) */
|
/**
|
||||||
|
* @deprecated
|
||||||
|
*
|
||||||
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/blur)
|
||||||
|
*/
|
||||||
blur(): void;
|
blur(): void;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/cancelIdleCallback) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/cancelIdleCallback) */
|
||||||
cancelIdleCallback(handle: number): void;
|
cancelIdleCallback(handle: number): void;
|
||||||
|
@ -27553,7 +27727,11 @@ declare var visualViewport: VisualViewport | null;
|
||||||
declare var window: Window & typeof globalThis;
|
declare var window: Window & typeof globalThis;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/alert) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/alert) */
|
||||||
declare function alert(message?: any): void;
|
declare function alert(message?: any): void;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/blur) */
|
/**
|
||||||
|
* @deprecated
|
||||||
|
*
|
||||||
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/blur)
|
||||||
|
*/
|
||||||
declare function blur(): void;
|
declare function blur(): void;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/cancelIdleCallback) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/cancelIdleCallback) */
|
||||||
declare function cancelIdleCallback(handle: number): void;
|
declare function cancelIdleCallback(handle: number): void;
|
||||||
|
@ -28300,8 +28478,7 @@ type FontDisplay = "auto" | "block" | "fallback" | "optional" | "swap";
|
||||||
type FontFaceLoadStatus = "error" | "loaded" | "loading" | "unloaded";
|
type FontFaceLoadStatus = "error" | "loaded" | "loading" | "unloaded";
|
||||||
type FontFaceSetLoadStatus = "loaded" | "loading";
|
type FontFaceSetLoadStatus = "loaded" | "loading";
|
||||||
type FullscreenNavigationUI = "auto" | "hide" | "show";
|
type FullscreenNavigationUI = "auto" | "hide" | "show";
|
||||||
type GamepadHapticActuatorType = "vibration";
|
type GamepadHapticEffectType = "dual-rumble" | "trigger-rumble";
|
||||||
type GamepadHapticEffectType = "dual-rumble";
|
|
||||||
type GamepadHapticsResult = "complete" | "preempted";
|
type GamepadHapticsResult = "complete" | "preempted";
|
||||||
type GamepadMappingType = "" | "standard" | "xr-standard";
|
type GamepadMappingType = "" | "standard" | "xr-standard";
|
||||||
type GlobalCompositeOperation = "color" | "color-burn" | "color-dodge" | "copy" | "darken" | "destination-atop" | "destination-in" | "destination-out" | "destination-over" | "difference" | "exclusion" | "hard-light" | "hue" | "lighten" | "lighter" | "luminosity" | "multiply" | "overlay" | "saturation" | "screen" | "soft-light" | "source-atop" | "source-in" | "source-out" | "source-over" | "xor";
|
type GlobalCompositeOperation = "color" | "color-burn" | "color-dodge" | "copy" | "darken" | "destination-atop" | "destination-in" | "destination-out" | "destination-over" | "difference" | "exclusion" | "hard-light" | "hue" | "lighten" | "lighter" | "luminosity" | "multiply" | "overlay" | "saturation" | "screen" | "soft-light" | "source-atop" | "source-in" | "source-out" | "source-over" | "xor";
|
||||||
|
|
8
cli/tsc/dts/lib.dom.iterable.d.ts
vendored
8
cli/tsc/dts/lib.dom.iterable.d.ts
vendored
|
@ -20,6 +20,11 @@ and limitations under the License.
|
||||||
/// Window Iterable APIs
|
/// Window Iterable APIs
|
||||||
/////////////////////////////
|
/////////////////////////////
|
||||||
|
|
||||||
|
interface AbortSignal {
|
||||||
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/any_static) */
|
||||||
|
any(signals: Iterable<AbortSignal>): AbortSignal;
|
||||||
|
}
|
||||||
|
|
||||||
interface AudioParam {
|
interface AudioParam {
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/setValueCurveAtTime) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/setValueCurveAtTime) */
|
||||||
setValueCurveAtTime(values: Iterable<number>, startTime: number, duration: number): AudioParam;
|
setValueCurveAtTime(values: Iterable<number>, startTime: number, duration: number): AudioParam;
|
||||||
|
@ -83,6 +88,9 @@ interface CanvasPathDrawingStyles {
|
||||||
setLineDash(segments: Iterable<number>): void;
|
setLineDash(segments: Iterable<number>): void;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
interface CustomStateSet extends Set<string> {
|
||||||
|
}
|
||||||
|
|
||||||
interface DOMRectList {
|
interface DOMRectList {
|
||||||
[Symbol.iterator](): IterableIterator<DOMRect>;
|
[Symbol.iterator](): IterableIterator<DOMRect>;
|
||||||
}
|
}
|
||||||
|
|
40
cli/tsc/dts/lib.es2015.core.d.ts
vendored
40
cli/tsc/dts/lib.es2015.core.d.ts
vendored
|
@ -60,6 +60,8 @@ interface Array<T> {
|
||||||
* @param end If not specified, length of the this object is used as its default value.
|
* @param end If not specified, length of the this object is used as its default value.
|
||||||
*/
|
*/
|
||||||
copyWithin(target: number, start: number, end?: number): this;
|
copyWithin(target: number, start: number, end?: number): this;
|
||||||
|
|
||||||
|
toLocaleString(locales: string | string[], options?: Intl.NumberFormatOptions & Intl.DateTimeFormatOptions): string;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface ArrayConstructor {
|
interface ArrayConstructor {
|
||||||
|
@ -360,6 +362,8 @@ interface ReadonlyArray<T> {
|
||||||
* predicate. If it is not provided, undefined is used instead.
|
* predicate. If it is not provided, undefined is used instead.
|
||||||
*/
|
*/
|
||||||
findIndex(predicate: (value: T, index: number, obj: readonly T[]) => unknown, thisArg?: any): number;
|
findIndex(predicate: (value: T, index: number, obj: readonly T[]) => unknown, thisArg?: any): number;
|
||||||
|
|
||||||
|
toLocaleString(locales: string | string[], options?: Intl.NumberFormatOptions & Intl.DateTimeFormatOptions): string;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface RegExp {
|
interface RegExp {
|
||||||
|
@ -555,3 +559,39 @@ interface StringConstructor {
|
||||||
*/
|
*/
|
||||||
raw(template: { raw: readonly string[] | ArrayLike<string>; }, ...substitutions: any[]): string;
|
raw(template: { raw: readonly string[] | ArrayLike<string>; }, ...substitutions: any[]): string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
interface Int8Array {
|
||||||
|
toLocaleString(locales: string | string[], options?: Intl.NumberFormatOptions): string;
|
||||||
|
}
|
||||||
|
|
||||||
|
interface Uint8Array {
|
||||||
|
toLocaleString(locales: string | string[], options?: Intl.NumberFormatOptions): string;
|
||||||
|
}
|
||||||
|
|
||||||
|
interface Uint8ClampedArray {
|
||||||
|
toLocaleString(locales: string | string[], options?: Intl.NumberFormatOptions): string;
|
||||||
|
}
|
||||||
|
|
||||||
|
interface Int16Array {
|
||||||
|
toLocaleString(locales: string | string[], options?: Intl.NumberFormatOptions): string;
|
||||||
|
}
|
||||||
|
|
||||||
|
interface Uint16Array {
|
||||||
|
toLocaleString(locales: string | string[], options?: Intl.NumberFormatOptions): string;
|
||||||
|
}
|
||||||
|
|
||||||
|
interface Int32Array {
|
||||||
|
toLocaleString(locales: string | string[], options?: Intl.NumberFormatOptions): string;
|
||||||
|
}
|
||||||
|
|
||||||
|
interface Uint32Array {
|
||||||
|
toLocaleString(locales: string | string[], options?: Intl.NumberFormatOptions): string;
|
||||||
|
}
|
||||||
|
|
||||||
|
interface Float32Array {
|
||||||
|
toLocaleString(locales: string | string[], options?: Intl.NumberFormatOptions): string;
|
||||||
|
}
|
||||||
|
|
||||||
|
interface Float64Array {
|
||||||
|
toLocaleString(locales: string | string[], options?: Intl.NumberFormatOptions): string;
|
||||||
|
}
|
||||||
|
|
20
cli/tsc/dts/lib.es2018.intl.d.ts
vendored
20
cli/tsc/dts/lib.es2018.intl.d.ts
vendored
|
@ -55,10 +55,22 @@ declare namespace Intl {
|
||||||
|
|
||||||
const PluralRules: PluralRulesConstructor;
|
const PluralRules: PluralRulesConstructor;
|
||||||
|
|
||||||
// We can only have one definition for 'type' in TypeScript, and so you can learn where the keys come from here:
|
interface NumberFormatPartTypeRegistry {
|
||||||
type ES2018NumberFormatPartType = "literal" | "nan" | "infinity" | "percent" | "integer" | "group" | "decimal" | "fraction" | "plusSign" | "minusSign" | "percentSign" | "currency" | "code" | "symbol" | "name";
|
literal: never;
|
||||||
type ES2020NumberFormatPartType = "compact" | "exponentInteger" | "exponentMinusSign" | "exponentSeparator" | "unit" | "unknown";
|
nan: never;
|
||||||
type NumberFormatPartTypes = ES2018NumberFormatPartType | ES2020NumberFormatPartType;
|
infinity: never;
|
||||||
|
percent: never;
|
||||||
|
integer: never;
|
||||||
|
group: never;
|
||||||
|
decimal: never;
|
||||||
|
fraction: never;
|
||||||
|
plusSign: never;
|
||||||
|
minusSign: never;
|
||||||
|
percentSign: never;
|
||||||
|
currency: never;
|
||||||
|
}
|
||||||
|
|
||||||
|
type NumberFormatPartTypes = keyof NumberFormatPartTypeRegistry;
|
||||||
|
|
||||||
interface NumberFormatPart {
|
interface NumberFormatPart {
|
||||||
type: NumberFormatPartTypes;
|
type: NumberFormatPartTypes;
|
||||||
|
|
2
cli/tsc/dts/lib.es2019.intl.d.ts
vendored
2
cli/tsc/dts/lib.es2019.intl.d.ts
vendored
|
@ -18,6 +18,6 @@ and limitations under the License.
|
||||||
|
|
||||||
declare namespace Intl {
|
declare namespace Intl {
|
||||||
interface DateTimeFormatPartTypesRegistry {
|
interface DateTimeFormatPartTypesRegistry {
|
||||||
unknown: any;
|
unknown: never;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
5
cli/tsc/dts/lib.es2020.bigint.d.ts
vendored
5
cli/tsc/dts/lib.es2020.bigint.d.ts
vendored
|
@ -369,7 +369,7 @@ interface BigInt64Array {
|
||||||
subarray(begin?: number, end?: number): BigInt64Array;
|
subarray(begin?: number, end?: number): BigInt64Array;
|
||||||
|
|
||||||
/** Converts the array to a string by using the current locale. */
|
/** Converts the array to a string by using the current locale. */
|
||||||
toLocaleString(): string;
|
toLocaleString(locales?: string | string[], options?: Intl.NumberFormatOptions): string;
|
||||||
|
|
||||||
/** Returns a string representation of the array. */
|
/** Returns a string representation of the array. */
|
||||||
toString(): string;
|
toString(): string;
|
||||||
|
@ -641,7 +641,7 @@ interface BigUint64Array {
|
||||||
subarray(begin?: number, end?: number): BigUint64Array;
|
subarray(begin?: number, end?: number): BigUint64Array;
|
||||||
|
|
||||||
/** Converts the array to a string by using the current locale. */
|
/** Converts the array to a string by using the current locale. */
|
||||||
toLocaleString(): string;
|
toLocaleString(locales?: string | string[], options?: Intl.NumberFormatOptions): string;
|
||||||
|
|
||||||
/** Returns a string representation of the array. */
|
/** Returns a string representation of the array. */
|
||||||
toString(): string;
|
toString(): string;
|
||||||
|
@ -723,6 +723,5 @@ interface DataView {
|
||||||
declare namespace Intl {
|
declare namespace Intl {
|
||||||
interface NumberFormat {
|
interface NumberFormat {
|
||||||
format(value: number | bigint): string;
|
format(value: number | bigint): string;
|
||||||
resolvedOptions(): ResolvedNumberFormatOptions;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
39
cli/tsc/dts/lib.es2020.intl.d.ts
vendored
39
cli/tsc/dts/lib.es2020.intl.d.ts
vendored
|
@ -241,24 +241,49 @@ declare namespace Intl {
|
||||||
): UnicodeBCP47LocaleIdentifier[];
|
): UnicodeBCP47LocaleIdentifier[];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
interface NumberFormatOptionsStyleRegistry {
|
||||||
|
unit: never;
|
||||||
|
}
|
||||||
|
|
||||||
|
interface NumberFormatOptionsCurrencyDisplayRegistry {
|
||||||
|
narrowSymbol: never;
|
||||||
|
}
|
||||||
|
|
||||||
|
interface NumberFormatOptionsSignDisplayRegistry {
|
||||||
|
auto: never;
|
||||||
|
never: never;
|
||||||
|
always: never;
|
||||||
|
exceptZero: never;
|
||||||
|
}
|
||||||
|
|
||||||
|
type NumberFormatOptionsSignDisplay = keyof NumberFormatOptionsSignDisplayRegistry;
|
||||||
|
|
||||||
interface NumberFormatOptions {
|
interface NumberFormatOptions {
|
||||||
|
numberingSystem?: string | undefined;
|
||||||
compactDisplay?: "short" | "long" | undefined;
|
compactDisplay?: "short" | "long" | undefined;
|
||||||
notation?: "standard" | "scientific" | "engineering" | "compact" | undefined;
|
notation?: "standard" | "scientific" | "engineering" | "compact" | undefined;
|
||||||
signDisplay?: "auto" | "never" | "always" | "exceptZero" | undefined;
|
signDisplay?: NumberFormatOptionsSignDisplay | undefined;
|
||||||
unit?: string | undefined;
|
unit?: string | undefined;
|
||||||
unitDisplay?: "short" | "long" | "narrow" | undefined;
|
unitDisplay?: "short" | "long" | "narrow" | undefined;
|
||||||
currencyDisplay?: string | undefined;
|
currencySign?: "standard" | "accounting" | undefined;
|
||||||
currencySign?: string | undefined;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
interface ResolvedNumberFormatOptions {
|
interface ResolvedNumberFormatOptions {
|
||||||
compactDisplay?: "short" | "long";
|
compactDisplay?: "short" | "long";
|
||||||
notation?: "standard" | "scientific" | "engineering" | "compact";
|
notation: "standard" | "scientific" | "engineering" | "compact";
|
||||||
signDisplay?: "auto" | "never" | "always" | "exceptZero";
|
signDisplay: NumberFormatOptionsSignDisplay;
|
||||||
unit?: string;
|
unit?: string;
|
||||||
unitDisplay?: "short" | "long" | "narrow";
|
unitDisplay?: "short" | "long" | "narrow";
|
||||||
currencyDisplay?: string;
|
currencySign?: "standard" | "accounting";
|
||||||
currencySign?: string;
|
}
|
||||||
|
|
||||||
|
interface NumberFormatPartTypeRegistry {
|
||||||
|
compact: never;
|
||||||
|
exponentInteger: never;
|
||||||
|
exponentMinusSign: never;
|
||||||
|
exponentSeparator: never;
|
||||||
|
unit: never;
|
||||||
|
unknown: never;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface DateTimeFormatOptions {
|
interface DateTimeFormatOptions {
|
||||||
|
|
2
cli/tsc/dts/lib.es2021.weakref.d.ts
vendored
2
cli/tsc/dts/lib.es2021.weakref.d.ts
vendored
|
@ -60,7 +60,7 @@ interface FinalizationRegistry<T> {
|
||||||
* @param unregisterToken The token that was used as the unregisterToken argument when calling
|
* @param unregisterToken The token that was used as the unregisterToken argument when calling
|
||||||
* register to register the target value.
|
* register to register the target value.
|
||||||
*/
|
*/
|
||||||
unregister(unregisterToken: WeakKey): void;
|
unregister(unregisterToken: WeakKey): boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface FinalizationRegistryConstructor {
|
interface FinalizationRegistryConstructor {
|
||||||
|
|
2
cli/tsc/dts/lib.es2022.regexp.d.ts
vendored
2
cli/tsc/dts/lib.es2022.regexp.d.ts
vendored
|
@ -32,7 +32,7 @@ interface RegExpIndicesArray extends Array<[number, number]> {
|
||||||
|
|
||||||
interface RegExp {
|
interface RegExp {
|
||||||
/**
|
/**
|
||||||
* Returns a Boolean value indicating the state of the hasIndices flag (d) used with with a regular expression.
|
* Returns a Boolean value indicating the state of the hasIndices flag (d) used with a regular expression.
|
||||||
* Default is false. Read-only.
|
* Default is false. Read-only.
|
||||||
*/
|
*/
|
||||||
readonly hasIndices: boolean;
|
readonly hasIndices: boolean;
|
||||||
|
|
1
cli/tsc/dts/lib.es2023.d.ts
vendored
1
cli/tsc/dts/lib.es2023.d.ts
vendored
|
@ -19,3 +19,4 @@ and limitations under the License.
|
||||||
/// <reference lib="es2022" />
|
/// <reference lib="es2022" />
|
||||||
/// <reference lib="es2023.array" />
|
/// <reference lib="es2023.array" />
|
||||||
/// <reference lib="es2023.collection" />
|
/// <reference lib="es2023.collection" />
|
||||||
|
/// <reference lib="es2023.intl" />
|
||||||
|
|
56
cli/tsc/dts/lib.es2023.intl.d.ts
vendored
Normal file
56
cli/tsc/dts/lib.es2023.intl.d.ts
vendored
Normal file
|
@ -0,0 +1,56 @@
|
||||||
|
/*! *****************************************************************************
|
||||||
|
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"/>
|
||||||
|
|
||||||
|
declare namespace Intl {
|
||||||
|
interface NumberFormatOptionsUseGroupingRegistry {
|
||||||
|
min2: never;
|
||||||
|
auto: never;
|
||||||
|
always: never;
|
||||||
|
}
|
||||||
|
|
||||||
|
interface NumberFormatOptionsSignDisplayRegistry {
|
||||||
|
negative: never;
|
||||||
|
}
|
||||||
|
|
||||||
|
interface NumberFormatOptions {
|
||||||
|
roundingPriority?: "auto" | "morePrecision" | "lessPrecision" | undefined;
|
||||||
|
roundingIncrement?: 1 | 2 | 5 | 10 | 20 | 25 | 50 | 100 | 200 | 250 | 500 | 1000 | 2000 | 2500 | 5000 | undefined;
|
||||||
|
roundingMode?: "ceil" | "floor" | "expand" | "trunc" | "halfCeil" | "halfFloor" | "halfExpand" | "halfTrunc" | "halfEven" | undefined;
|
||||||
|
trailingZeroDisplay?: "auto" | "stripIfInteger" | undefined;
|
||||||
|
}
|
||||||
|
|
||||||
|
interface ResolvedNumberFormatOptions {
|
||||||
|
roundingPriority: "auto" | "morePrecision" | "lessPrecision";
|
||||||
|
roundingMode: "ceil" | "floor" | "expand" | "trunc" | "halfCeil" | "halfFloor" | "halfExpand" | "halfTrunc" | "halfEven";
|
||||||
|
roundingIncrement: 1 | 2 | 5 | 10 | 20 | 25 | 50 | 100 | 200 | 250 | 500 | 1000 | 2000 | 2500 | 5000;
|
||||||
|
trailingZeroDisplay: "auto" | "stripIfInteger";
|
||||||
|
}
|
||||||
|
|
||||||
|
interface NumberRangeFormatPart extends NumberFormatPart {
|
||||||
|
source: "startRange" | "endRange" | "shared";
|
||||||
|
}
|
||||||
|
|
||||||
|
type StringNumericLiteral = `${number}` | "Infinity" | "-Infinity" | "+Infinity";
|
||||||
|
|
||||||
|
interface NumberFormat {
|
||||||
|
format(value: number | bigint | StringNumericLiteral): string;
|
||||||
|
formatToParts(value: number | bigint | StringNumericLiteral): NumberFormatPart[];
|
||||||
|
formatRange(start: number | bigint | StringNumericLiteral, end: number | bigint | StringNumericLiteral): string;
|
||||||
|
formatRangeToParts(start: number | bigint | StringNumericLiteral, end: number | bigint | StringNumericLiteral): NumberRangeFormatPart[];
|
||||||
|
}
|
||||||
|
}
|
40
cli/tsc/dts/lib.es5.d.ts
vendored
40
cli/tsc/dts/lib.es5.d.ts
vendored
|
@ -818,7 +818,7 @@ interface Date {
|
||||||
getMilliseconds(): number;
|
getMilliseconds(): number;
|
||||||
/** Gets the milliseconds of a Date object using Universal Coordinated Time (UTC). */
|
/** Gets the milliseconds of a Date object using Universal Coordinated Time (UTC). */
|
||||||
getUTCMilliseconds(): number;
|
getUTCMilliseconds(): number;
|
||||||
/** Gets the difference in minutes between the time on the local computer and Universal Coordinated Time (UTC). */
|
/** Gets the difference in minutes between Universal Coordinated Time (UTC) and the time on the local computer. */
|
||||||
getTimezoneOffset(): number;
|
getTimezoneOffset(): number;
|
||||||
/**
|
/**
|
||||||
* Sets the date and time value in the Date object.
|
* Sets the date and time value in the Date object.
|
||||||
|
@ -4433,12 +4433,33 @@ declare namespace Intl {
|
||||||
|
|
||||||
var Collator: CollatorConstructor;
|
var Collator: CollatorConstructor;
|
||||||
|
|
||||||
|
interface NumberFormatOptionsStyleRegistry {
|
||||||
|
decimal: never;
|
||||||
|
percent: never;
|
||||||
|
currency: never;
|
||||||
|
}
|
||||||
|
|
||||||
|
type NumberFormatOptionsStyle = keyof NumberFormatOptionsStyleRegistry;
|
||||||
|
|
||||||
|
interface NumberFormatOptionsCurrencyDisplayRegistry {
|
||||||
|
code: never;
|
||||||
|
symbol: never;
|
||||||
|
name: never;
|
||||||
|
}
|
||||||
|
|
||||||
|
type NumberFormatOptionsCurrencyDisplay = keyof NumberFormatOptionsCurrencyDisplayRegistry;
|
||||||
|
|
||||||
|
interface NumberFormatOptionsUseGroupingRegistry {}
|
||||||
|
|
||||||
|
type NumberFormatOptionsUseGrouping = {} extends NumberFormatOptionsUseGroupingRegistry ? boolean : keyof NumberFormatOptionsUseGroupingRegistry | "true" | "false" | boolean;
|
||||||
|
type ResolvedNumberFormatOptionsUseGrouping = {} extends NumberFormatOptionsUseGroupingRegistry ? boolean : keyof NumberFormatOptionsUseGroupingRegistry | false;
|
||||||
|
|
||||||
interface NumberFormatOptions {
|
interface NumberFormatOptions {
|
||||||
localeMatcher?: string | undefined;
|
localeMatcher?: "lookup" | "best fit" | undefined;
|
||||||
style?: string | undefined;
|
style?: NumberFormatOptionsStyle | undefined;
|
||||||
currency?: string | undefined;
|
currency?: string | undefined;
|
||||||
currencySign?: string | undefined;
|
currencyDisplay?: NumberFormatOptionsCurrencyDisplay | undefined;
|
||||||
useGrouping?: boolean | undefined;
|
useGrouping?: NumberFormatOptionsUseGrouping | undefined;
|
||||||
minimumIntegerDigits?: number | undefined;
|
minimumIntegerDigits?: number | undefined;
|
||||||
minimumFractionDigits?: number | undefined;
|
minimumFractionDigits?: number | undefined;
|
||||||
maximumFractionDigits?: number | undefined;
|
maximumFractionDigits?: number | undefined;
|
||||||
|
@ -4449,14 +4470,15 @@ declare namespace Intl {
|
||||||
interface ResolvedNumberFormatOptions {
|
interface ResolvedNumberFormatOptions {
|
||||||
locale: string;
|
locale: string;
|
||||||
numberingSystem: string;
|
numberingSystem: string;
|
||||||
style: string;
|
style: NumberFormatOptionsStyle;
|
||||||
currency?: string;
|
currency?: string;
|
||||||
|
currencyDisplay?: NumberFormatOptionsCurrencyDisplay;
|
||||||
minimumIntegerDigits: number;
|
minimumIntegerDigits: number;
|
||||||
minimumFractionDigits: number;
|
minimumFractionDigits?: number;
|
||||||
maximumFractionDigits: number;
|
maximumFractionDigits?: number;
|
||||||
minimumSignificantDigits?: number;
|
minimumSignificantDigits?: number;
|
||||||
maximumSignificantDigits?: number;
|
maximumSignificantDigits?: number;
|
||||||
useGrouping: boolean;
|
useGrouping: ResolvedNumberFormatOptionsUseGrouping;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface NumberFormat {
|
interface NumberFormat {
|
||||||
|
|
27
cli/tsc/dts/lib.esnext.array.d.ts
vendored
27
cli/tsc/dts/lib.esnext.array.d.ts
vendored
|
@ -13,18 +13,23 @@ See the Apache Version 2.0 License for specific language governing permissions
|
||||||
and limitations under the License.
|
and limitations under the License.
|
||||||
***************************************************************************** */
|
***************************************************************************** */
|
||||||
|
|
||||||
|
|
||||||
/// <reference no-default-lib="true"/>
|
/// <reference no-default-lib="true"/>
|
||||||
|
|
||||||
// NOTE(bartlomieju): taken from https://github.com/microsoft/TypeScript/issues/50803#issuecomment-1249030430
|
|
||||||
// while we wait for these types to officially ship
|
|
||||||
interface ArrayConstructor {
|
interface ArrayConstructor {
|
||||||
fromAsync<T>(
|
/**
|
||||||
iterableOrArrayLike: AsyncIterable<T> | Iterable<T | Promise<T>> | ArrayLike<T | Promise<T>>,
|
* Creates an array from an async iterator or iterable object.
|
||||||
): Promise<T[]>;
|
* @param iterableOrArrayLike An async iterator or array-like object to convert to an array.
|
||||||
|
*/
|
||||||
fromAsync<T, U>(
|
fromAsync<T>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T | PromiseLike<T>> | ArrayLike<T | PromiseLike<T>>): Promise<T[]>;
|
||||||
iterableOrArrayLike: AsyncIterable<T> | Iterable<T> | ArrayLike<T>,
|
|
||||||
mapFn: (value: Awaited<T>) => U,
|
/**
|
||||||
thisArg?: any,
|
* Creates an array from an async iterator or iterable object.
|
||||||
): Promise<Awaited<U>[]>;
|
*
|
||||||
|
* @param iterableOrArrayLike An async iterator or array-like object to convert to an array.
|
||||||
|
* @param mapfn A mapping function to call on every element of itarableOrArrayLike.
|
||||||
|
* Each return value is awaited before being added to result array.
|
||||||
|
* @param thisArg Value of 'this' used when executing mapfn.
|
||||||
|
*/
|
||||||
|
fromAsync<T, U>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T> | ArrayLike<T>, mapFn: (value: Awaited<T>) => U, thisArg?: any): Promise<Awaited<U>[]>;
|
||||||
}
|
}
|
||||||
|
|
60
cli/tsc/dts/lib.esnext.collection.d.ts
vendored
60
cli/tsc/dts/lib.esnext.collection.d.ts
vendored
|
@ -28,33 +28,79 @@ interface MapConstructor {
|
||||||
): Map<K, T[]>;
|
): Map<K, T[]>;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
interface ReadonlySetLike<T> {
|
||||||
|
/**
|
||||||
|
* Despite its name, returns an iterator of the values in the set-like.
|
||||||
|
*/
|
||||||
|
keys(): Iterator<T>;
|
||||||
|
/**
|
||||||
|
* @returns a boolean indicating whether an element with the specified value exists in the set-like or not.
|
||||||
|
*/
|
||||||
|
has(value: T): boolean;
|
||||||
|
/**
|
||||||
|
* @returns the number of (unique) elements in the set-like.
|
||||||
|
*/
|
||||||
|
readonly size: number;
|
||||||
|
}
|
||||||
|
|
||||||
interface Set<T> {
|
interface Set<T> {
|
||||||
/**
|
/**
|
||||||
* @returns a new Set containing all the elements in this Set and also all the elements in the argument.
|
* @returns a new Set containing all the elements in this Set and also all the elements in the argument.
|
||||||
*/
|
*/
|
||||||
union<U>(other: Set<U>): Set<T | U>;
|
union<U>(other: ReadonlySetLike<U>): Set<T | U>;
|
||||||
/**
|
/**
|
||||||
* @returns a new Set containing all the elements which are both in this Set and in the argument.
|
* @returns a new Set containing all the elements which are both in this Set and in the argument.
|
||||||
*/
|
*/
|
||||||
intersection<U>(other: Set<U>): Set<T & U>;
|
intersection<U>(other: ReadonlySetLike<U>): Set<T & U>;
|
||||||
/**
|
/**
|
||||||
* @returns a new Set containing all the elements in this Set which are not also in the argument.
|
* @returns a new Set containing all the elements in this Set which are not also in the argument.
|
||||||
*/
|
*/
|
||||||
difference<U>(other: Set<U>): Set<T>;
|
difference<U>(other: ReadonlySetLike<U>): Set<T>;
|
||||||
/**
|
/**
|
||||||
* @returns a new Set containing all the elements which are in either this Set or in the argument, but not in both.
|
* @returns a new Set containing all the elements which are in either this Set or in the argument, but not in both.
|
||||||
*/
|
*/
|
||||||
symmetricDifference<U>(other: Set<U>): Set<T | U>;
|
symmetricDifference<U>(other: ReadonlySetLike<U>): Set<T | U>;
|
||||||
/**
|
/**
|
||||||
* @returns a boolean indicating whether all the elements in this Set are also in the argument.
|
* @returns a boolean indicating whether all the elements in this Set are also in the argument.
|
||||||
*/
|
*/
|
||||||
isSubsetOf(other: Set<unknown>): boolean;
|
isSubsetOf(other: ReadonlySetLike<unknown>): boolean;
|
||||||
/**
|
/**
|
||||||
* @returns a boolean indicating whether all the elements in the argument are also in this Set.
|
* @returns a boolean indicating whether all the elements in the argument are also in this Set.
|
||||||
*/
|
*/
|
||||||
isSupersetOf(other: Set<unknown>): boolean;
|
isSupersetOf(other: ReadonlySetLike<unknown>): boolean;
|
||||||
/**
|
/**
|
||||||
* @returns a boolean indicating whether this Set has no elements in common with the argument.
|
* @returns a boolean indicating whether this Set has no elements in common with the argument.
|
||||||
*/
|
*/
|
||||||
isDisjointFrom(other: Set<unknown>): boolean;
|
isDisjointFrom(other: ReadonlySetLike<unknown>): boolean;
|
||||||
|
}
|
||||||
|
|
||||||
|
interface ReadonlySet<T> {
|
||||||
|
/**
|
||||||
|
* @returns a new Set containing all the elements in this Set and also all the elements in the argument.
|
||||||
|
*/
|
||||||
|
union<U>(other: ReadonlySetLike<U>): Set<T | U>;
|
||||||
|
/**
|
||||||
|
* @returns a new Set containing all the elements which are both in this Set and in the argument.
|
||||||
|
*/
|
||||||
|
intersection<U>(other: ReadonlySetLike<U>): Set<T & U>;
|
||||||
|
/**
|
||||||
|
* @returns a new Set containing all the elements in this Set which are not also in the argument.
|
||||||
|
*/
|
||||||
|
difference<U>(other: ReadonlySetLike<U>): Set<T>;
|
||||||
|
/**
|
||||||
|
* @returns a new Set containing all the elements which are in either this Set or in the argument, but not in both.
|
||||||
|
*/
|
||||||
|
symmetricDifference<U>(other: ReadonlySetLike<U>): Set<T | U>;
|
||||||
|
/**
|
||||||
|
* @returns a boolean indicating whether all the elements in this Set are also in the argument.
|
||||||
|
*/
|
||||||
|
isSubsetOf(other: ReadonlySetLike<unknown>): boolean;
|
||||||
|
/**
|
||||||
|
* @returns a boolean indicating whether all the elements in the argument are also in this Set.
|
||||||
|
*/
|
||||||
|
isSupersetOf(other: ReadonlySetLike<unknown>): boolean;
|
||||||
|
/**
|
||||||
|
* @returns a boolean indicating whether this Set has no elements in common with the argument.
|
||||||
|
*/
|
||||||
|
isDisjointFrom(other: ReadonlySetLike<unknown>): boolean;
|
||||||
}
|
}
|
||||||
|
|
5
cli/tsc/dts/lib.esnext.d.ts
vendored
5
cli/tsc/dts/lib.esnext.d.ts
vendored
|
@ -17,11 +17,12 @@ and limitations under the License.
|
||||||
/// <reference no-default-lib="true"/>
|
/// <reference no-default-lib="true"/>
|
||||||
|
|
||||||
/// <reference lib="es2023" />
|
/// <reference lib="es2023" />
|
||||||
/// <reference lib="esnext.array" />
|
|
||||||
/// <reference lib="esnext.intl" />
|
/// <reference lib="esnext.intl" />
|
||||||
/// <reference lib="esnext.object" />
|
|
||||||
/// <reference lib="esnext.decorators" />
|
/// <reference lib="esnext.decorators" />
|
||||||
/// <reference lib="esnext.disposable" />
|
/// <reference lib="esnext.disposable" />
|
||||||
/// <reference lib="esnext.promise" />
|
/// <reference lib="esnext.promise" />
|
||||||
/// <reference lib="esnext.object" />
|
/// <reference lib="esnext.object" />
|
||||||
/// <reference lib="esnext.collection" />
|
/// <reference lib="esnext.collection" />
|
||||||
|
/// <reference lib="esnext.array" />
|
||||||
|
/// <reference lib="esnext.regexp" />
|
||||||
|
/// <reference lib="esnext.string" />
|
||||||
|
|
9
cli/tsc/dts/lib.esnext.intl.d.ts
vendored
9
cli/tsc/dts/lib.esnext.intl.d.ts
vendored
|
@ -17,12 +17,5 @@ and limitations under the License.
|
||||||
/// <reference no-default-lib="true"/>
|
/// <reference no-default-lib="true"/>
|
||||||
|
|
||||||
declare namespace Intl {
|
declare namespace Intl {
|
||||||
interface NumberRangeFormatPart extends NumberFormatPart {
|
// Empty
|
||||||
source: "startRange" | "endRange" | "shared";
|
|
||||||
}
|
|
||||||
|
|
||||||
interface NumberFormat {
|
|
||||||
formatRange(start: number | bigint, end: number | bigint): string;
|
|
||||||
formatRangeToParts(start: number | bigint, end: number | bigint): NumberRangeFormatPart[];
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
25
cli/tsc/dts/lib.esnext.regexp.d.ts
vendored
Normal file
25
cli/tsc/dts/lib.esnext.regexp.d.ts
vendored
Normal file
|
@ -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"/>
|
||||||
|
|
||||||
|
interface RegExp {
|
||||||
|
/**
|
||||||
|
* Returns a Boolean value indicating the state of the unicodeSets flag (v) used with a regular expression.
|
||||||
|
* Default is false. Read-only.
|
||||||
|
*/
|
||||||
|
readonly unicodeSets: boolean;
|
||||||
|
}
|
29
cli/tsc/dts/lib.esnext.string.d.ts
vendored
Normal file
29
cli/tsc/dts/lib.esnext.string.d.ts
vendored
Normal file
|
@ -0,0 +1,29 @@
|
||||||
|
/*! *****************************************************************************
|
||||||
|
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 {
|
||||||
|
/**
|
||||||
|
* Returns true if all leading surrogates and trailing surrogates appear paired and in order.
|
||||||
|
*/
|
||||||
|
isWellFormed(): boolean;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns a string where all lone or out-of-order surrogates have been replaced by the Unicode replacement character (U+FFFD).
|
||||||
|
*/
|
||||||
|
toWellFormed(): string;
|
||||||
|
}
|
5
cli/tsc/dts/lib.webworker.asynciterable.d.ts
vendored
5
cli/tsc/dts/lib.webworker.asynciterable.d.ts
vendored
|
@ -26,3 +26,8 @@ interface FileSystemDirectoryHandle {
|
||||||
keys(): AsyncIterableIterator<string>;
|
keys(): AsyncIterableIterator<string>;
|
||||||
values(): AsyncIterableIterator<FileSystemHandle>;
|
values(): AsyncIterableIterator<FileSystemHandle>;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
interface ReadableStream<R = any> {
|
||||||
|
[Symbol.asyncIterator](options?: ReadableStreamIteratorOptions): AsyncIterableIterator<R>;
|
||||||
|
values(options?: ReadableStreamIteratorOptions): AsyncIterableIterator<R>;
|
||||||
|
}
|
||||||
|
|
26
cli/tsc/dts/lib.webworker.d.ts
vendored
26
cli/tsc/dts/lib.webworker.d.ts
vendored
|
@ -550,6 +550,17 @@ interface ReadableStreamGetReaderOptions {
|
||||||
mode?: ReadableStreamReaderMode;
|
mode?: ReadableStreamReaderMode;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
interface ReadableStreamIteratorOptions {
|
||||||
|
/**
|
||||||
|
* Asynchronously iterates over the chunks in the stream's internal queue.
|
||||||
|
*
|
||||||
|
* Asynchronously iterating over the stream will lock it, preventing any other consumer from acquiring a reader. The lock will be released if the async iterator's return() method is called, e.g. by breaking out of the loop.
|
||||||
|
*
|
||||||
|
* By default, calling the async iterator's return() method will also cancel the stream. To prevent this, use the stream's values() method, passing true for the preventCancel option.
|
||||||
|
*/
|
||||||
|
preventCancel?: boolean;
|
||||||
|
}
|
||||||
|
|
||||||
interface ReadableStreamReadDoneResult<T> {
|
interface ReadableStreamReadDoneResult<T> {
|
||||||
done: true;
|
done: true;
|
||||||
value?: T;
|
value?: T;
|
||||||
|
@ -647,16 +658,16 @@ interface RsaPssParams extends Algorithm {
|
||||||
interface SecurityPolicyViolationEventInit extends EventInit {
|
interface SecurityPolicyViolationEventInit extends EventInit {
|
||||||
blockedURI?: string;
|
blockedURI?: string;
|
||||||
columnNumber?: number;
|
columnNumber?: number;
|
||||||
disposition: SecurityPolicyViolationEventDisposition;
|
disposition?: SecurityPolicyViolationEventDisposition;
|
||||||
documentURI: string;
|
documentURI?: string;
|
||||||
effectiveDirective: string;
|
effectiveDirective?: string;
|
||||||
lineNumber?: number;
|
lineNumber?: number;
|
||||||
originalPolicy: string;
|
originalPolicy?: string;
|
||||||
referrer?: string;
|
referrer?: string;
|
||||||
sample?: string;
|
sample?: string;
|
||||||
sourceFile?: string;
|
sourceFile?: string;
|
||||||
statusCode: number;
|
statusCode?: number;
|
||||||
violatedDirective: string;
|
violatedDirective?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface StorageEstimate {
|
interface StorageEstimate {
|
||||||
|
@ -971,6 +982,8 @@ declare var AbortSignal: {
|
||||||
new(): AbortSignal;
|
new(): AbortSignal;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/abort_static) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/abort_static) */
|
||||||
abort(reason?: any): AbortSignal;
|
abort(reason?: any): AbortSignal;
|
||||||
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/any_static) */
|
||||||
|
any(signals: AbortSignal[]): AbortSignal;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/timeout_static) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/timeout_static) */
|
||||||
timeout(milliseconds: number): AbortSignal;
|
timeout(milliseconds: number): AbortSignal;
|
||||||
};
|
};
|
||||||
|
@ -5225,6 +5238,7 @@ interface ServiceWorkerGlobalScopeEventMap extends WorkerGlobalScopeEventMap {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This ServiceWorker API interface represents the global execution context of a service worker.
|
* This ServiceWorker API interface represents the global execution context of a service worker.
|
||||||
|
* Available only in secure contexts.
|
||||||
*
|
*
|
||||||
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope)
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope)
|
||||||
*/
|
*/
|
||||||
|
|
5
cli/tsc/dts/lib.webworker.iterable.d.ts
vendored
5
cli/tsc/dts/lib.webworker.iterable.d.ts
vendored
|
@ -20,6 +20,11 @@ and limitations under the License.
|
||||||
/// Worker Iterable APIs
|
/// Worker Iterable APIs
|
||||||
/////////////////////////////
|
/////////////////////////////
|
||||||
|
|
||||||
|
interface AbortSignal {
|
||||||
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/any_static) */
|
||||||
|
any(signals: Iterable<AbortSignal>): AbortSignal;
|
||||||
|
}
|
||||||
|
|
||||||
interface CSSNumericArray {
|
interface CSSNumericArray {
|
||||||
[Symbol.iterator](): IterableIterator<CSSNumericValue>;
|
[Symbol.iterator](): IterableIterator<CSSNumericValue>;
|
||||||
entries(): IterableIterator<[number, CSSNumericValue]>;
|
entries(): IterableIterator<[number, CSSNumericValue]>;
|
||||||
|
|
6156
cli/tsc/dts/typescript.d.ts
vendored
6156
cli/tsc/dts/typescript.d.ts
vendored
File diff suppressed because it is too large
Load diff
|
@ -6900,7 +6900,7 @@ fn lsp_completions() {
|
||||||
json!({
|
json!({
|
||||||
"label": "build",
|
"label": "build",
|
||||||
"kind": 6,
|
"kind": 6,
|
||||||
"detail": "const Deno.build: {\n target: string;\n arch: \"x86_64\" | \"aarch64\";\n os: \"darwin\" | \"linux\" | \"android\" | \"windows\" | \"freebsd\" | \"netbsd\" | \"aix\" | \"solaris\" | \"illumos\";\n vendor: string;\n env?: string | undefined;\n}",
|
"detail": "const Deno.build: {\n target: string;\n arch: \"x86_64\" | \"aarch64\";\n os: \"darwin\" | \"linux\" | \"android\" | \"windows\" | \"freebsd\" | \"netbsd\" | \"aix\" | \"solaris\" | \"illumos\";\n vendor: string;\n env?: string;\n}",
|
||||||
"documentation": {
|
"documentation": {
|
||||||
"kind": "markdown",
|
"kind": "markdown",
|
||||||
"value": "Information related to the build of the current Deno runtime.\n\nUsers are discouraged from code branching based on this information, as\nassumptions about what is available in what build environment might change\nover time. Developers should specifically sniff out the features they\nintend to use.\n\nThe intended use for the information is for logging and debugging purposes.\n\n*@category* - Runtime"
|
"value": "Information related to the build of the current Deno runtime.\n\nUsers are discouraged from code branching based on this information, as\nassumptions about what is available in what build environment might change\nover time. Developers should specifically sniff out the features they\nintend to use.\n\nThe intended use for the information is for logging and debugging purposes.\n\n*@category* - Runtime"
|
||||||
|
|
|
@ -6,5 +6,5 @@ Deno.test(function version() {
|
||||||
const pattern = /^\d+\.\d+\.\d+/;
|
const pattern = /^\d+\.\d+\.\d+/;
|
||||||
assert(pattern.test(Deno.version.deno));
|
assert(pattern.test(Deno.version.deno));
|
||||||
assert(pattern.test(Deno.version.v8));
|
assert(pattern.test(Deno.version.v8));
|
||||||
assertEquals(Deno.version.typescript, "5.4.5");
|
assertEquals(Deno.version.typescript, "5.5.2");
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue