mirror of
https://github.com/denoland/deno.git
synced 2024-11-21 15:04:11 -05:00
feat: TypeScript 5.2 (#20425)
Without `using` declarations or decorator metadata (waiting for that in v8).
This commit is contained in:
parent
f75a17521d
commit
c228adc27d
23 changed files with 13418 additions and 9704 deletions
|
@ -170,6 +170,7 @@ mod ts {
|
||||||
"es2016.array.include",
|
"es2016.array.include",
|
||||||
"es2016",
|
"es2016",
|
||||||
"es2017",
|
"es2017",
|
||||||
|
"es2017.date",
|
||||||
"es2017.intl",
|
"es2017.intl",
|
||||||
"es2017.object",
|
"es2017.object",
|
||||||
"es2017.sharedmemory",
|
"es2017.sharedmemory",
|
||||||
|
@ -211,8 +212,11 @@ mod ts {
|
||||||
"es2022.string",
|
"es2022.string",
|
||||||
"es2023",
|
"es2023",
|
||||||
"es2023.array",
|
"es2023.array",
|
||||||
|
"es2023.collection",
|
||||||
"esnext",
|
"esnext",
|
||||||
"esnext.array",
|
"esnext.array",
|
||||||
|
"esnext.decorators",
|
||||||
|
"esnext.disposable",
|
||||||
"esnext.intl",
|
"esnext.intl",
|
||||||
];
|
];
|
||||||
|
|
||||||
|
@ -459,7 +463,7 @@ fn main() {
|
||||||
);
|
);
|
||||||
|
|
||||||
let ts_version = ts::version();
|
let ts_version = ts::version();
|
||||||
debug_assert_eq!(ts_version, "5.1.6"); // bump this assertion when it changes
|
debug_assert_eq!(ts_version, "5.2.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");
|
||||||
|
|
||||||
|
|
|
@ -7960,11 +7960,11 @@ fn lsp_workspace_symbol() {
|
||||||
"uri": "deno:/asset/lib.decorators.d.ts",
|
"uri": "deno:/asset/lib.decorators.d.ts",
|
||||||
"range": {
|
"range": {
|
||||||
"start": {
|
"start": {
|
||||||
"line": 331,
|
"line": 346,
|
||||||
"character": 0,
|
"character": 0,
|
||||||
},
|
},
|
||||||
"end": {
|
"end": {
|
||||||
"line": 371,
|
"line": 388,
|
||||||
"character": 1,
|
"character": 1,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
|
@ -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.1.6");
|
assertEquals(Deno.version.typescript, "5.2.2");
|
||||||
});
|
});
|
||||||
|
|
20917
cli/tsc/00_typescript.js
vendored
20917
cli/tsc/00_typescript.js
vendored
File diff suppressed because it is too large
Load diff
17
cli/tsc/dts/lib.decorators.d.ts
vendored
17
cli/tsc/dts/lib.decorators.d.ts
vendored
|
@ -35,6 +35,11 @@ type DecoratorContext =
|
||||||
| ClassMemberDecoratorContext
|
| ClassMemberDecoratorContext
|
||||||
;
|
;
|
||||||
|
|
||||||
|
type DecoratorMetadataObject = Record<PropertyKey, unknown> & object;
|
||||||
|
|
||||||
|
type DecoratorMetadata =
|
||||||
|
typeof globalThis extends { Symbol: { readonly metadata: symbol } } ? DecoratorMetadataObject : DecoratorMetadataObject | undefined;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Context provided to a class decorator.
|
* Context provided to a class decorator.
|
||||||
* @template Class The type of the decorated class associated with this context.
|
* @template Class The type of the decorated class associated with this context.
|
||||||
|
@ -66,6 +71,8 @@ interface ClassDecoratorContext<
|
||||||
* ```
|
* ```
|
||||||
*/
|
*/
|
||||||
addInitializer(initializer: (this: Class) => void): void;
|
addInitializer(initializer: (this: Class) => void): void;
|
||||||
|
|
||||||
|
readonly metadata: DecoratorMetadata;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -130,6 +137,8 @@ interface ClassMethodDecoratorContext<
|
||||||
* ```
|
* ```
|
||||||
*/
|
*/
|
||||||
addInitializer(initializer: (this: This) => void): void;
|
addInitializer(initializer: (this: This) => void): void;
|
||||||
|
|
||||||
|
readonly metadata: DecoratorMetadata;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -175,6 +184,8 @@ interface ClassGetterDecoratorContext<
|
||||||
* decorating a non-`static` element).
|
* decorating a non-`static` element).
|
||||||
*/
|
*/
|
||||||
addInitializer(initializer: (this: This) => void): void;
|
addInitializer(initializer: (this: This) => void): void;
|
||||||
|
|
||||||
|
readonly metadata: DecoratorMetadata;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -220,6 +231,8 @@ interface ClassSetterDecoratorContext<
|
||||||
* decorating a non-`static` element).
|
* decorating a non-`static` element).
|
||||||
*/
|
*/
|
||||||
addInitializer(initializer: (this: This) => void): void;
|
addInitializer(initializer: (this: This) => void): void;
|
||||||
|
|
||||||
|
readonly metadata: DecoratorMetadata;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -274,6 +287,8 @@ interface ClassAccessorDecoratorContext<
|
||||||
* decorating a non-`static` element).
|
* decorating a non-`static` element).
|
||||||
*/
|
*/
|
||||||
addInitializer(initializer: (this: This) => void): void;
|
addInitializer(initializer: (this: This) => void): void;
|
||||||
|
|
||||||
|
readonly metadata: DecoratorMetadata;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -369,4 +384,6 @@ interface ClassFieldDecoratorContext<
|
||||||
* decorating a non-`static` element).
|
* decorating a non-`static` element).
|
||||||
*/
|
*/
|
||||||
addInitializer(initializer: (this: This) => void): void;
|
addInitializer(initializer: (this: This) => void): void;
|
||||||
|
|
||||||
|
readonly metadata: DecoratorMetadata;
|
||||||
}
|
}
|
||||||
|
|
404
cli/tsc/dts/lib.dom.d.ts
vendored
404
cli/tsc/dts/lib.dom.d.ts
vendored
|
@ -751,6 +751,7 @@ interface Keyframe {
|
||||||
|
|
||||||
interface KeyframeAnimationOptions extends KeyframeEffectOptions {
|
interface KeyframeAnimationOptions extends KeyframeEffectOptions {
|
||||||
id?: string;
|
id?: string;
|
||||||
|
timeline?: AnimationTimeline | null;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface KeyframeEffectOptions extends EffectTiming {
|
interface KeyframeEffectOptions extends EffectTiming {
|
||||||
|
@ -1035,7 +1036,7 @@ interface NotificationOptions {
|
||||||
lang?: string;
|
lang?: string;
|
||||||
renotify?: boolean;
|
renotify?: boolean;
|
||||||
requireInteraction?: boolean;
|
requireInteraction?: boolean;
|
||||||
silent?: boolean;
|
silent?: boolean | null;
|
||||||
tag?: string;
|
tag?: string;
|
||||||
timestamp?: EpochTimeStamp;
|
timestamp?: EpochTimeStamp;
|
||||||
vibrate?: VibratePattern;
|
vibrate?: VibratePattern;
|
||||||
|
@ -1352,7 +1353,6 @@ interface RTCEncodedAudioFrameMetadata {
|
||||||
}
|
}
|
||||||
|
|
||||||
interface RTCEncodedVideoFrameMetadata {
|
interface RTCEncodedVideoFrameMetadata {
|
||||||
contributingSources?: number[];
|
|
||||||
dependencies?: number[];
|
dependencies?: number[];
|
||||||
frameId?: number;
|
frameId?: number;
|
||||||
height?: number;
|
height?: number;
|
||||||
|
@ -1872,8 +1872,13 @@ interface TextDecoderOptions {
|
||||||
}
|
}
|
||||||
|
|
||||||
interface TextEncoderEncodeIntoResult {
|
interface TextEncoderEncodeIntoResult {
|
||||||
read?: number;
|
read: number;
|
||||||
written?: number;
|
written: number;
|
||||||
|
}
|
||||||
|
|
||||||
|
interface ToggleEventInit extends EventInit {
|
||||||
|
newState?: string;
|
||||||
|
oldState?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface TouchEventInit extends EventModifierInit {
|
interface TouchEventInit extends EventModifierInit {
|
||||||
|
@ -2106,6 +2111,32 @@ interface WebGLContextEventInit extends EventInit {
|
||||||
statusMessage?: string;
|
statusMessage?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
interface WebTransportCloseInfo {
|
||||||
|
closeCode?: number;
|
||||||
|
reason?: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
interface WebTransportErrorOptions {
|
||||||
|
source?: WebTransportErrorSource;
|
||||||
|
streamErrorCode?: number | null;
|
||||||
|
}
|
||||||
|
|
||||||
|
interface WebTransportHash {
|
||||||
|
algorithm?: string;
|
||||||
|
value?: BufferSource;
|
||||||
|
}
|
||||||
|
|
||||||
|
interface WebTransportOptions {
|
||||||
|
allowPooling?: boolean;
|
||||||
|
congestionControl?: WebTransportCongestionControl;
|
||||||
|
requireUnreliable?: boolean;
|
||||||
|
serverCertificateHashes?: WebTransportHash[];
|
||||||
|
}
|
||||||
|
|
||||||
|
interface WebTransportSendStreamOptions {
|
||||||
|
sendOrder?: number | null;
|
||||||
|
}
|
||||||
|
|
||||||
interface WheelEventInit extends MouseEventInit {
|
interface WheelEventInit extends MouseEventInit {
|
||||||
deltaMode?: number;
|
deltaMode?: number;
|
||||||
deltaX?: number;
|
deltaX?: number;
|
||||||
|
@ -2305,9 +2336,9 @@ interface AbortSignal extends EventTarget {
|
||||||
declare var AbortSignal: {
|
declare var AbortSignal: {
|
||||||
prototype: AbortSignal;
|
prototype: AbortSignal;
|
||||||
new(): AbortSignal;
|
new(): AbortSignal;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/abort) */
|
/** [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/timeout) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/timeout_static) */
|
||||||
timeout(milliseconds: number): AbortSignal;
|
timeout(milliseconds: number): AbortSignal;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -3345,7 +3376,7 @@ interface CSSImportRule extends CSSRule {
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSImportRule/media) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSImportRule/media) */
|
||||||
readonly media: MediaList;
|
readonly media: MediaList;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSImportRule/styleSheet) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSImportRule/styleSheet) */
|
||||||
readonly styleSheet: CSSStyleSheet;
|
readonly styleSheet: CSSStyleSheet | null;
|
||||||
}
|
}
|
||||||
|
|
||||||
declare var CSSImportRule: {
|
declare var CSSImportRule: {
|
||||||
|
@ -3378,6 +3409,7 @@ declare var CSSKeyframeRule: {
|
||||||
interface CSSKeyframesRule extends CSSRule {
|
interface CSSKeyframesRule extends CSSRule {
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframesRule/cssRules) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframesRule/cssRules) */
|
||||||
readonly cssRules: CSSRuleList;
|
readonly cssRules: CSSRuleList;
|
||||||
|
readonly length: number;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframesRule/name) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframesRule/name) */
|
||||||
name: string;
|
name: string;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframesRule/appendRule) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframesRule/appendRule) */
|
||||||
|
@ -3598,7 +3630,7 @@ interface CSSNumericValue extends CSSStyleValue {
|
||||||
declare var CSSNumericValue: {
|
declare var CSSNumericValue: {
|
||||||
prototype: CSSNumericValue;
|
prototype: CSSNumericValue;
|
||||||
new(): CSSNumericValue;
|
new(): CSSNumericValue;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/parse) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/parse_static) */
|
||||||
parse(cssText: string): CSSNumericValue;
|
parse(cssText: string): CSSNumericValue;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -4109,8 +4141,11 @@ interface CSSStyleDeclaration {
|
||||||
fontStyle: string;
|
fontStyle: string;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-synthesis) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-synthesis) */
|
||||||
fontSynthesis: string;
|
fontSynthesis: string;
|
||||||
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-synthesis-small-caps) */
|
||||||
fontSynthesisSmallCaps: string;
|
fontSynthesisSmallCaps: string;
|
||||||
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-synthesis-style) */
|
||||||
fontSynthesisStyle: string;
|
fontSynthesisStyle: string;
|
||||||
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-synthesis-weight) */
|
||||||
fontSynthesisWeight: string;
|
fontSynthesisWeight: string;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-variant) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-variant) */
|
||||||
fontVariant: string;
|
fontVariant: string;
|
||||||
|
@ -4130,6 +4165,8 @@ interface CSSStyleDeclaration {
|
||||||
fontVariationSettings: string;
|
fontVariationSettings: string;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-weight) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-weight) */
|
||||||
fontWeight: string;
|
fontWeight: string;
|
||||||
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/forced-color-adjust) */
|
||||||
|
forcedColorAdjust: string;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/gap) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/gap) */
|
||||||
gap: string;
|
gap: string;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid) */
|
||||||
|
@ -4997,12 +5034,15 @@ declare var CSSStyleDeclaration: {
|
||||||
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleRule)
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleRule)
|
||||||
*/
|
*/
|
||||||
interface CSSStyleRule extends CSSRule {
|
interface CSSStyleRule extends CSSRule {
|
||||||
|
readonly cssRules: CSSRuleList;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleRule/selectorText) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleRule/selectorText) */
|
||||||
selectorText: string;
|
selectorText: string;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleRule/style) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleRule/style) */
|
||||||
readonly style: CSSStyleDeclaration;
|
readonly style: CSSStyleDeclaration;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleRule/styleMap) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleRule/styleMap) */
|
||||||
readonly styleMap: StylePropertyMap;
|
readonly styleMap: StylePropertyMap;
|
||||||
|
deleteRule(index: number): void;
|
||||||
|
insertRule(rule: string, index?: number): number;
|
||||||
}
|
}
|
||||||
|
|
||||||
declare var CSSStyleRule: {
|
declare var CSSStyleRule: {
|
||||||
|
@ -5061,9 +5101,9 @@ interface CSSStyleValue {
|
||||||
declare var CSSStyleValue: {
|
declare var CSSStyleValue: {
|
||||||
prototype: CSSStyleValue;
|
prototype: CSSStyleValue;
|
||||||
new(): CSSStyleValue;
|
new(): CSSStyleValue;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleValue/parse) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleValue/parse_static) */
|
||||||
parse(property: string, cssText: string): CSSStyleValue;
|
parse(property: string, cssText: string): CSSStyleValue;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleValue/parseAll) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleValue/parseAll_static) */
|
||||||
parseAll(property: string, cssText: string): CSSStyleValue[];
|
parseAll(property: string, cssText: string): CSSStyleValue[];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -5439,6 +5479,8 @@ interface CanvasShadowStyles {
|
||||||
}
|
}
|
||||||
|
|
||||||
interface CanvasState {
|
interface CanvasState {
|
||||||
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/reset) */
|
||||||
|
reset(): void;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/restore) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/restore) */
|
||||||
restore(): void;
|
restore(): void;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/save) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/save) */
|
||||||
|
@ -5624,8 +5666,6 @@ declare var ClipboardEvent: {
|
||||||
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ClipboardItem)
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ClipboardItem)
|
||||||
*/
|
*/
|
||||||
interface ClipboardItem {
|
interface ClipboardItem {
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ClipboardItem/presentationStyle) */
|
|
||||||
readonly presentationStyle: PresentationStyle;
|
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ClipboardItem/types) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ClipboardItem/types) */
|
||||||
readonly types: ReadonlyArray<string>;
|
readonly types: ReadonlyArray<string>;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ClipboardItem/getType) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ClipboardItem/getType) */
|
||||||
|
@ -6175,7 +6215,7 @@ interface DOMPoint extends DOMPointReadOnly {
|
||||||
declare var DOMPoint: {
|
declare var DOMPoint: {
|
||||||
prototype: DOMPoint;
|
prototype: DOMPoint;
|
||||||
new(x?: number, y?: number, z?: number, w?: number): DOMPoint;
|
new(x?: number, y?: number, z?: number, w?: number): DOMPoint;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPoint/fromPoint) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPoint/fromPoint_static) */
|
||||||
fromPoint(other?: DOMPointInit): DOMPoint;
|
fromPoint(other?: DOMPointInit): DOMPoint;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -6201,7 +6241,7 @@ interface DOMPointReadOnly {
|
||||||
declare var DOMPointReadOnly: {
|
declare var DOMPointReadOnly: {
|
||||||
prototype: DOMPointReadOnly;
|
prototype: DOMPointReadOnly;
|
||||||
new(x?: number, y?: number, z?: number, w?: number): DOMPointReadOnly;
|
new(x?: number, y?: number, z?: number, w?: number): DOMPointReadOnly;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/fromPoint) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/fromPoint_static) */
|
||||||
fromPoint(other?: DOMPointInit): DOMPointReadOnly;
|
fromPoint(other?: DOMPointInit): DOMPointReadOnly;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -6279,7 +6319,7 @@ interface DOMRectReadOnly {
|
||||||
declare var DOMRectReadOnly: {
|
declare var DOMRectReadOnly: {
|
||||||
prototype: DOMRectReadOnly;
|
prototype: DOMRectReadOnly;
|
||||||
new(x?: number, y?: number, width?: number, height?: number): DOMRectReadOnly;
|
new(x?: number, y?: number, width?: number, height?: number): DOMRectReadOnly;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/fromRect) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/fromRect_static) */
|
||||||
fromRect(other?: DOMRectInit): DOMRectReadOnly;
|
fromRect(other?: DOMRectInit): DOMRectReadOnly;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -7119,6 +7159,7 @@ interface Document extends Node, DocumentOrShadowRoot, FontFaceSource, GlobalEve
|
||||||
createEvent(eventInterface: "SpeechSynthesisEvent"): SpeechSynthesisEvent;
|
createEvent(eventInterface: "SpeechSynthesisEvent"): SpeechSynthesisEvent;
|
||||||
createEvent(eventInterface: "StorageEvent"): StorageEvent;
|
createEvent(eventInterface: "StorageEvent"): StorageEvent;
|
||||||
createEvent(eventInterface: "SubmitEvent"): SubmitEvent;
|
createEvent(eventInterface: "SubmitEvent"): SubmitEvent;
|
||||||
|
createEvent(eventInterface: "ToggleEvent"): ToggleEvent;
|
||||||
createEvent(eventInterface: "TouchEvent"): TouchEvent;
|
createEvent(eventInterface: "TouchEvent"): TouchEvent;
|
||||||
createEvent(eventInterface: "TrackEvent"): TrackEvent;
|
createEvent(eventInterface: "TrackEvent"): TrackEvent;
|
||||||
createEvent(eventInterface: "TransitionEvent"): TransitionEvent;
|
createEvent(eventInterface: "TransitionEvent"): TransitionEvent;
|
||||||
|
@ -8866,6 +8907,7 @@ interface GlobalEventHandlersEventMap {
|
||||||
"reset": Event;
|
"reset": Event;
|
||||||
"resize": UIEvent;
|
"resize": UIEvent;
|
||||||
"scroll": Event;
|
"scroll": Event;
|
||||||
|
"scrollend": Event;
|
||||||
"securitypolicyviolation": SecurityPolicyViolationEvent;
|
"securitypolicyviolation": SecurityPolicyViolationEvent;
|
||||||
"seeked": Event;
|
"seeked": Event;
|
||||||
"seeking": Event;
|
"seeking": Event;
|
||||||
|
@ -9038,7 +9080,7 @@ interface GlobalEventHandlers {
|
||||||
* Fires when an error occurs during object loading.
|
* Fires when an error occurs during object loading.
|
||||||
* @param ev The event.
|
* @param ev The event.
|
||||||
*
|
*
|
||||||
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/error_event)
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/error_event)
|
||||||
*/
|
*/
|
||||||
onerror: OnErrorEventHandler;
|
onerror: OnErrorEventHandler;
|
||||||
/**
|
/**
|
||||||
|
@ -9216,6 +9258,8 @@ interface GlobalEventHandlers {
|
||||||
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/scroll_event)
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/scroll_event)
|
||||||
*/
|
*/
|
||||||
onscroll: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
onscroll: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
||||||
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/scrollend_event) */
|
||||||
|
onscrollend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/securitypolicyviolation_event) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/securitypolicyviolation_event) */
|
||||||
onsecuritypolicyviolation: ((this: GlobalEventHandlers, ev: SecurityPolicyViolationEvent) => any) | null;
|
onsecuritypolicyviolation: ((this: GlobalEventHandlers, ev: SecurityPolicyViolationEvent) => any) | null;
|
||||||
/**
|
/**
|
||||||
|
@ -9637,7 +9681,7 @@ declare var HTMLBodyElement: {
|
||||||
*
|
*
|
||||||
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement)
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement)
|
||||||
*/
|
*/
|
||||||
interface HTMLButtonElement extends HTMLElement {
|
interface HTMLButtonElement extends HTMLElement, PopoverInvokerElement {
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/disabled) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/disabled) */
|
||||||
disabled: boolean;
|
disabled: boolean;
|
||||||
/**
|
/**
|
||||||
|
@ -10033,6 +10077,8 @@ interface HTMLElement extends Element, ElementCSSInlineStyle, ElementContentEdit
|
||||||
readonly offsetWidth: number;
|
readonly offsetWidth: number;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/outerText) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/outerText) */
|
||||||
outerText: string;
|
outerText: string;
|
||||||
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/popover) */
|
||||||
|
popover: string | null;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/spellcheck) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/spellcheck) */
|
||||||
spellcheck: boolean;
|
spellcheck: boolean;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/title) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/title) */
|
||||||
|
@ -10042,6 +10088,12 @@ interface HTMLElement extends Element, ElementCSSInlineStyle, ElementContentEdit
|
||||||
attachInternals(): ElementInternals;
|
attachInternals(): ElementInternals;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/click) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/click) */
|
||||||
click(): void;
|
click(): void;
|
||||||
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/hidePopover) */
|
||||||
|
hidePopover(): void;
|
||||||
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/showPopover) */
|
||||||
|
showPopover(): void;
|
||||||
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/togglePopover) */
|
||||||
|
togglePopover(force?: boolean): void;
|
||||||
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, 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;
|
||||||
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
||||||
|
@ -10233,7 +10285,7 @@ interface HTMLFormElement extends HTMLElement {
|
||||||
*
|
*
|
||||||
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/autocomplete)
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/autocomplete)
|
||||||
*/
|
*/
|
||||||
autocomplete: string;
|
autocomplete: AutoFillBase;
|
||||||
/**
|
/**
|
||||||
* Retrieves a collection, in source order, of all controls in a given form.
|
* Retrieves a collection, in source order, of all controls in a given form.
|
||||||
*
|
*
|
||||||
|
@ -10886,7 +10938,7 @@ declare var HTMLImageElement: {
|
||||||
*
|
*
|
||||||
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement)
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement)
|
||||||
*/
|
*/
|
||||||
interface HTMLInputElement extends HTMLElement {
|
interface HTMLInputElement extends HTMLElement, PopoverInvokerElement {
|
||||||
/** Sets or retrieves a comma-separated list of content types. */
|
/** Sets or retrieves a comma-separated list of content types. */
|
||||||
accept: string;
|
accept: string;
|
||||||
/**
|
/**
|
||||||
|
@ -10901,7 +10953,7 @@ interface HTMLInputElement extends HTMLElement {
|
||||||
*
|
*
|
||||||
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/autocomplete)
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/autocomplete)
|
||||||
*/
|
*/
|
||||||
autocomplete: string;
|
autocomplete: AutoFill;
|
||||||
capture: string;
|
capture: string;
|
||||||
/** Sets or retrieves the state of the check box or radio button. */
|
/** Sets or retrieves the state of the check box or radio button. */
|
||||||
checked: boolean;
|
checked: boolean;
|
||||||
|
@ -12271,7 +12323,7 @@ interface HTMLScriptElement extends HTMLElement {
|
||||||
declare var HTMLScriptElement: {
|
declare var HTMLScriptElement: {
|
||||||
prototype: HTMLScriptElement;
|
prototype: HTMLScriptElement;
|
||||||
new(): HTMLScriptElement;
|
new(): HTMLScriptElement;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLScriptElement/supports) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLScriptElement/supports_static) */
|
||||||
supports(type: string): boolean;
|
supports(type: string): boolean;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -12282,7 +12334,7 @@ declare var HTMLScriptElement: {
|
||||||
*/
|
*/
|
||||||
interface HTMLSelectElement extends HTMLElement {
|
interface HTMLSelectElement extends HTMLElement {
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/autocomplete) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/autocomplete) */
|
||||||
autocomplete: string;
|
autocomplete: AutoFill;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/disabled) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/disabled) */
|
||||||
disabled: boolean;
|
disabled: boolean;
|
||||||
/**
|
/**
|
||||||
|
@ -13084,7 +13136,7 @@ declare var HTMLTemplateElement: {
|
||||||
*/
|
*/
|
||||||
interface HTMLTextAreaElement extends HTMLElement {
|
interface HTMLTextAreaElement extends HTMLElement {
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/autocomplete) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/autocomplete) */
|
||||||
autocomplete: string;
|
autocomplete: AutoFill;
|
||||||
/** Sets or retrieves the width of the object. */
|
/** Sets or retrieves the width of the object. */
|
||||||
cols: number;
|
cols: number;
|
||||||
/** Sets or retrieves the initial contents of the object. */
|
/** Sets or retrieves the initial contents of the object. */
|
||||||
|
@ -13392,6 +13444,8 @@ interface Headers {
|
||||||
delete(name: string): void;
|
delete(name: string): void;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers/get) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers/get) */
|
||||||
get(name: string): string | null;
|
get(name: string): string | null;
|
||||||
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers/getSetCookie) */
|
||||||
|
getSetCookie(): string[];
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers/has) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers/has) */
|
||||||
has(name: string): boolean;
|
has(name: string): boolean;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers/set) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers/set) */
|
||||||
|
@ -13769,25 +13823,25 @@ declare var IDBKeyRange: {
|
||||||
/**
|
/**
|
||||||
* Returns a new IDBKeyRange spanning from lower to upper. If lowerOpen is true, lower is not included in the range. If upperOpen is true, upper is not included in the range.
|
* Returns a new IDBKeyRange spanning from lower to upper. If lowerOpen is true, lower is not included in the range. If upperOpen is true, upper is not included in the range.
|
||||||
*
|
*
|
||||||
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/bound)
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/bound_static)
|
||||||
*/
|
*/
|
||||||
bound(lower: any, upper: any, lowerOpen?: boolean, upperOpen?: boolean): IDBKeyRange;
|
bound(lower: any, upper: any, lowerOpen?: boolean, upperOpen?: boolean): IDBKeyRange;
|
||||||
/**
|
/**
|
||||||
* Returns a new IDBKeyRange starting at key with no upper bound. If open is true, key is not included in the range.
|
* Returns a new IDBKeyRange starting at key with no upper bound. If open is true, key is not included in the range.
|
||||||
*
|
*
|
||||||
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/lowerBound)
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/lowerBound_static)
|
||||||
*/
|
*/
|
||||||
lowerBound(lower: any, open?: boolean): IDBKeyRange;
|
lowerBound(lower: any, open?: boolean): IDBKeyRange;
|
||||||
/**
|
/**
|
||||||
* Returns a new IDBKeyRange spanning only key.
|
* Returns a new IDBKeyRange spanning only key.
|
||||||
*
|
*
|
||||||
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/only)
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/only_static)
|
||||||
*/
|
*/
|
||||||
only(value: any): IDBKeyRange;
|
only(value: any): IDBKeyRange;
|
||||||
/**
|
/**
|
||||||
* Returns a new IDBKeyRange with no lower bound and ending at key. If open is true, key is not included in the range.
|
* Returns a new IDBKeyRange with no lower bound and ending at key. If open is true, key is not included in the range.
|
||||||
*
|
*
|
||||||
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/upperBound)
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/upperBound_static)
|
||||||
*/
|
*/
|
||||||
upperBound(upper: any, open?: boolean): IDBKeyRange;
|
upperBound(upper: any, open?: boolean): IDBKeyRange;
|
||||||
};
|
};
|
||||||
|
@ -14230,6 +14284,8 @@ interface InnerHTML {
|
||||||
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/InputDeviceInfo)
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/InputDeviceInfo)
|
||||||
*/
|
*/
|
||||||
interface InputDeviceInfo extends MediaDeviceInfo {
|
interface InputDeviceInfo extends MediaDeviceInfo {
|
||||||
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/InputDeviceInfo/getCapabilities) */
|
||||||
|
getCapabilities(): MediaTrackCapabilities;
|
||||||
}
|
}
|
||||||
|
|
||||||
declare var InputDeviceInfo: {
|
declare var InputDeviceInfo: {
|
||||||
|
@ -15112,7 +15168,7 @@ interface MediaRecorder extends EventTarget {
|
||||||
declare var MediaRecorder: {
|
declare var MediaRecorder: {
|
||||||
prototype: MediaRecorder;
|
prototype: MediaRecorder;
|
||||||
new(stream: MediaStream, options?: MediaRecorderOptions): MediaRecorder;
|
new(stream: MediaStream, options?: MediaRecorderOptions): MediaRecorder;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaRecorder/isTypeSupported) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaRecorder/isTypeSupported_static) */
|
||||||
isTypeSupported(type: string): boolean;
|
isTypeSupported(type: string): boolean;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -15178,7 +15234,7 @@ interface MediaSource extends EventTarget {
|
||||||
declare var MediaSource: {
|
declare var MediaSource: {
|
||||||
prototype: MediaSource;
|
prototype: MediaSource;
|
||||||
new(): MediaSource;
|
new(): MediaSource;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSource/isTypeSupported) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSource/isTypeSupported_static) */
|
||||||
isTypeSupported(type: string): boolean;
|
isTypeSupported(type: string): boolean;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -16343,6 +16399,8 @@ interface Notification extends EventTarget {
|
||||||
onerror: ((this: Notification, ev: Event) => any) | null;
|
onerror: ((this: Notification, ev: Event) => any) | null;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/show_event) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/show_event) */
|
||||||
onshow: ((this: Notification, ev: Event) => any) | null;
|
onshow: ((this: Notification, ev: Event) => any) | null;
|
||||||
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/silent) */
|
||||||
|
readonly silent: boolean | null;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/tag) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/tag) */
|
||||||
readonly tag: string;
|
readonly tag: string;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/title) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/title) */
|
||||||
|
@ -16358,9 +16416,9 @@ interface Notification extends EventTarget {
|
||||||
declare var Notification: {
|
declare var Notification: {
|
||||||
prototype: Notification;
|
prototype: Notification;
|
||||||
new(title: string, options?: NotificationOptions): Notification;
|
new(title: string, options?: NotificationOptions): Notification;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/permission) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/permission_static) */
|
||||||
readonly permission: NotificationPermission;
|
readonly permission: NotificationPermission;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/requestPermission) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/requestPermission_static) */
|
||||||
requestPermission(deprecatedCallback?: NotificationPermissionCallback): Promise<NotificationPermission>;
|
requestPermission(deprecatedCallback?: NotificationPermissionCallback): Promise<NotificationPermission>;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -17100,7 +17158,7 @@ interface PerformanceObserver {
|
||||||
declare var PerformanceObserver: {
|
declare var PerformanceObserver: {
|
||||||
prototype: PerformanceObserver;
|
prototype: PerformanceObserver;
|
||||||
new(callback: PerformanceObserverCallback): PerformanceObserver;
|
new(callback: PerformanceObserverCallback): PerformanceObserver;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserver/supportedEntryTypes) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserver/supportedEntryTypes_static) */
|
||||||
readonly supportedEntryTypes: ReadonlyArray<string>;
|
readonly supportedEntryTypes: ReadonlyArray<string>;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -17578,6 +17636,13 @@ declare var PopStateEvent: {
|
||||||
new(type: string, eventInitDict?: PopStateEventInit): PopStateEvent;
|
new(type: string, eventInitDict?: PopStateEventInit): PopStateEvent;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
interface PopoverInvokerElement {
|
||||||
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/popoverTargetAction) */
|
||||||
|
popoverTargetAction: string;
|
||||||
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/popoverTargetElement) */
|
||||||
|
popoverTargetElement: Element | null;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A processing instruction embeds application-specific instructions in XML which can be ignored by other applications that don't recognize them.
|
* A processing instruction embeds application-specific instructions in XML which can be ignored by other applications that don't recognize them.
|
||||||
*
|
*
|
||||||
|
@ -17646,7 +17711,7 @@ declare var PublicKeyCredential: {
|
||||||
prototype: PublicKeyCredential;
|
prototype: PublicKeyCredential;
|
||||||
new(): PublicKeyCredential;
|
new(): PublicKeyCredential;
|
||||||
isConditionalMediationAvailable(): Promise<boolean>;
|
isConditionalMediationAvailable(): Promise<boolean>;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PublicKeyCredential/isUserVerifyingPlatformAuthenticatorAvailable) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PublicKeyCredential/isUserVerifyingPlatformAuthenticatorAvailable_static) */
|
||||||
isUserVerifyingPlatformAuthenticatorAvailable(): Promise<boolean>;
|
isUserVerifyingPlatformAuthenticatorAvailable(): Promise<boolean>;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -17668,7 +17733,7 @@ interface PushManager {
|
||||||
declare var PushManager: {
|
declare var PushManager: {
|
||||||
prototype: PushManager;
|
prototype: PushManager;
|
||||||
new(): PushManager;
|
new(): PushManager;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushManager/supportedContentEncodings) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushManager/supportedContentEncodings_static) */
|
||||||
readonly supportedContentEncodings: ReadonlyArray<string>;
|
readonly supportedContentEncodings: ReadonlyArray<string>;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -18113,7 +18178,7 @@ interface RTCPeerConnection extends EventTarget {
|
||||||
declare var RTCPeerConnection: {
|
declare var RTCPeerConnection: {
|
||||||
prototype: RTCPeerConnection;
|
prototype: RTCPeerConnection;
|
||||||
new(configuration?: RTCConfiguration): RTCPeerConnection;
|
new(configuration?: RTCConfiguration): RTCPeerConnection;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/generateCertificate) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/generateCertificate_static) */
|
||||||
generateCertificate(keygenAlgorithm: AlgorithmIdentifier): Promise<RTCCertificate>;
|
generateCertificate(keygenAlgorithm: AlgorithmIdentifier): Promise<RTCCertificate>;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -18173,7 +18238,7 @@ interface RTCRtpReceiver {
|
||||||
declare var RTCRtpReceiver: {
|
declare var RTCRtpReceiver: {
|
||||||
prototype: RTCRtpReceiver;
|
prototype: RTCRtpReceiver;
|
||||||
new(): RTCRtpReceiver;
|
new(): RTCRtpReceiver;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpReceiver/getCapabilities) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpReceiver/getCapabilities_static) */
|
||||||
getCapabilities(kind: string): RTCRtpCapabilities | null;
|
getCapabilities(kind: string): RTCRtpCapabilities | null;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -18204,7 +18269,7 @@ interface RTCRtpSender {
|
||||||
declare var RTCRtpSender: {
|
declare var RTCRtpSender: {
|
||||||
prototype: RTCRtpSender;
|
prototype: RTCRtpSender;
|
||||||
new(): RTCRtpSender;
|
new(): RTCRtpSender;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpSender/getCapabilities) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpSender/getCapabilities_static) */
|
||||||
getCapabilities(kind: string): RTCRtpCapabilities | null;
|
getCapabilities(kind: string): RTCRtpCapabilities | null;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -18749,10 +18814,11 @@ interface Response extends Body {
|
||||||
declare var Response: {
|
declare var Response: {
|
||||||
prototype: Response;
|
prototype: Response;
|
||||||
new(body?: BodyInit | null, init?: ResponseInit): Response;
|
new(body?: BodyInit | null, init?: ResponseInit): Response;
|
||||||
json(data: unknown, init?: ResponseInit): Response;
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/error_static) */
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/error) */
|
|
||||||
error(): Response;
|
error(): Response;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/redirect) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/json_static) */
|
||||||
|
json(data: any, init?: ResponseInit): Response;
|
||||||
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/redirect_static) */
|
||||||
redirect(url: string | URL, status?: number): Response;
|
redirect(url: string | URL, status?: number): Response;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -20917,8 +20983,6 @@ interface ScreenOrientation extends EventTarget {
|
||||||
onchange: ((this: ScreenOrientation, ev: Event) => any) | null;
|
onchange: ((this: ScreenOrientation, ev: Event) => any) | null;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ScreenOrientation/type) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ScreenOrientation/type) */
|
||||||
readonly type: OrientationType;
|
readonly type: OrientationType;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ScreenOrientation/lock) */
|
|
||||||
lock(orientation: OrientationLockType): Promise<void>;
|
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ScreenOrientation/unlock) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ScreenOrientation/unlock) */
|
||||||
unlock(): void;
|
unlock(): void;
|
||||||
addEventListener<K extends keyof ScreenOrientationEventMap>(type: K, listener: (this: ScreenOrientation, ev: ScreenOrientationEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
addEventListener<K extends keyof ScreenOrientationEventMap>(type: K, listener: (this: ScreenOrientation, ev: ScreenOrientationEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
||||||
|
@ -21112,7 +21176,6 @@ interface ServiceWorkerContainer extends EventTarget {
|
||||||
oncontrollerchange: ((this: ServiceWorkerContainer, ev: Event) => any) | null;
|
oncontrollerchange: ((this: ServiceWorkerContainer, ev: Event) => any) | null;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/message_event) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/message_event) */
|
||||||
onmessage: ((this: ServiceWorkerContainer, ev: MessageEvent) => any) | null;
|
onmessage: ((this: ServiceWorkerContainer, ev: MessageEvent) => any) | null;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/messageerror_event) */
|
|
||||||
onmessageerror: ((this: ServiceWorkerContainer, ev: MessageEvent) => any) | null;
|
onmessageerror: ((this: ServiceWorkerContainer, ev: MessageEvent) => any) | null;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/ready) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/ready) */
|
||||||
readonly ready: Promise<ServiceWorkerRegistration>;
|
readonly ready: Promise<ServiceWorkerRegistration>;
|
||||||
|
@ -21849,7 +21912,7 @@ interface TextDecoder extends TextDecoderCommon {
|
||||||
*
|
*
|
||||||
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextDecoder/decode)
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextDecoder/decode)
|
||||||
*/
|
*/
|
||||||
decode(input?: BufferSource, options?: TextDecodeOptions): string;
|
decode(input?: AllowSharedBufferSource, options?: TextDecodeOptions): string;
|
||||||
}
|
}
|
||||||
|
|
||||||
declare var TextDecoder: {
|
declare var TextDecoder: {
|
||||||
|
@ -22231,6 +22294,19 @@ declare var TimeRanges: {
|
||||||
new(): TimeRanges;
|
new(): TimeRanges;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ToggleEvent) */
|
||||||
|
interface ToggleEvent extends Event {
|
||||||
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ToggleEvent/newState) */
|
||||||
|
readonly newState: string;
|
||||||
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ToggleEvent/oldState) */
|
||||||
|
readonly oldState: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
declare var ToggleEvent: {
|
||||||
|
prototype: ToggleEvent;
|
||||||
|
new(type: string, eventInitDict?: ToggleEventInit): ToggleEvent;
|
||||||
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A single contact point on a touch-sensitive device. The contact point is commonly a finger or stylus and the device may be a touchscreen or trackpad.
|
* A single contact point on a touch-sensitive device. The contact point is commonly a finger or stylus and the device may be a touchscreen or trackpad.
|
||||||
*
|
*
|
||||||
|
@ -22484,10 +22560,10 @@ declare var URL: {
|
||||||
prototype: URL;
|
prototype: URL;
|
||||||
new(url: string | URL, base?: string | URL): URL;
|
new(url: string | URL, base?: string | URL): URL;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/canParse_static) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/canParse_static) */
|
||||||
canParse(url: string | URL, base?: string | URL): boolean;
|
canParse(url: string | URL, base?: string): boolean;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/createObjectURL) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/createObjectURL_static) */
|
||||||
createObjectURL(obj: Blob | MediaSource): string;
|
createObjectURL(obj: Blob | MediaSource): string;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/revokeObjectURL) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/revokeObjectURL_static) */
|
||||||
revokeObjectURL(url: string): void;
|
revokeObjectURL(url: string): void;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -22496,6 +22572,8 @@ declare var webkitURL: typeof URL;
|
||||||
|
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams) */
|
||||||
interface URLSearchParams {
|
interface URLSearchParams {
|
||||||
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/size) */
|
||||||
|
readonly size: number;
|
||||||
/**
|
/**
|
||||||
* Appends a specified key/value pair as a new search parameter.
|
* Appends a specified key/value pair as a new search parameter.
|
||||||
*
|
*
|
||||||
|
@ -22507,7 +22585,7 @@ interface URLSearchParams {
|
||||||
*
|
*
|
||||||
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/delete)
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/delete)
|
||||||
*/
|
*/
|
||||||
delete(name: string): void;
|
delete(name: string, value?: string): void;
|
||||||
/**
|
/**
|
||||||
* Returns the first value associated to the given search parameter.
|
* Returns the first value associated to the given search parameter.
|
||||||
*
|
*
|
||||||
|
@ -22525,7 +22603,7 @@ interface URLSearchParams {
|
||||||
*
|
*
|
||||||
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/has)
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/has)
|
||||||
*/
|
*/
|
||||||
has(name: string): boolean;
|
has(name: string, value?: string): boolean;
|
||||||
/**
|
/**
|
||||||
* Sets the value associated to a given search parameter to the given value. If there were several values, delete the others.
|
* Sets the value associated to a given search parameter to the given value. If there were several values, delete the others.
|
||||||
*
|
*
|
||||||
|
@ -22625,6 +22703,7 @@ declare var VTTRegion: {
|
||||||
interface ValidityState {
|
interface ValidityState {
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ValidityState/badInput) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ValidityState/badInput) */
|
||||||
readonly badInput: boolean;
|
readonly badInput: boolean;
|
||||||
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ValidityState/customError) */
|
||||||
readonly customError: boolean;
|
readonly customError: boolean;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ValidityState/patternMismatch) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ValidityState/patternMismatch) */
|
||||||
readonly patternMismatch: boolean;
|
readonly patternMismatch: boolean;
|
||||||
|
@ -22640,7 +22719,9 @@ interface ValidityState {
|
||||||
readonly tooShort: boolean;
|
readonly tooShort: boolean;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ValidityState/typeMismatch) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ValidityState/typeMismatch) */
|
||||||
readonly typeMismatch: boolean;
|
readonly typeMismatch: boolean;
|
||||||
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ValidityState/valid) */
|
||||||
readonly valid: boolean;
|
readonly valid: boolean;
|
||||||
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ValidityState/valueMissing) */
|
||||||
readonly valueMissing: boolean;
|
readonly valueMissing: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -25355,6 +25436,96 @@ declare var WebSocket: {
|
||||||
readonly CLOSED: 3;
|
readonly CLOSED: 3;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Available only in secure contexts.
|
||||||
|
*
|
||||||
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport)
|
||||||
|
*/
|
||||||
|
interface WebTransport {
|
||||||
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/closed) */
|
||||||
|
readonly closed: Promise<WebTransportCloseInfo>;
|
||||||
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/datagrams) */
|
||||||
|
readonly datagrams: WebTransportDatagramDuplexStream;
|
||||||
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/incomingBidirectionalStreams) */
|
||||||
|
readonly incomingBidirectionalStreams: ReadableStream;
|
||||||
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/incomingUnidirectionalStreams) */
|
||||||
|
readonly incomingUnidirectionalStreams: ReadableStream;
|
||||||
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/ready) */
|
||||||
|
readonly ready: Promise<undefined>;
|
||||||
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/close) */
|
||||||
|
close(closeInfo?: WebTransportCloseInfo): void;
|
||||||
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/createBidirectionalStream) */
|
||||||
|
createBidirectionalStream(options?: WebTransportSendStreamOptions): Promise<WebTransportBidirectionalStream>;
|
||||||
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/createUnidirectionalStream) */
|
||||||
|
createUnidirectionalStream(options?: WebTransportSendStreamOptions): Promise<WritableStream>;
|
||||||
|
}
|
||||||
|
|
||||||
|
declare var WebTransport: {
|
||||||
|
prototype: WebTransport;
|
||||||
|
new(url: string | URL, options?: WebTransportOptions): WebTransport;
|
||||||
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Available only in secure contexts.
|
||||||
|
*
|
||||||
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportBidirectionalStream)
|
||||||
|
*/
|
||||||
|
interface WebTransportBidirectionalStream {
|
||||||
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportBidirectionalStream/readable) */
|
||||||
|
readonly readable: ReadableStream;
|
||||||
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportBidirectionalStream/writable) */
|
||||||
|
readonly writable: WritableStream;
|
||||||
|
}
|
||||||
|
|
||||||
|
declare var WebTransportBidirectionalStream: {
|
||||||
|
prototype: WebTransportBidirectionalStream;
|
||||||
|
new(): WebTransportBidirectionalStream;
|
||||||
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Available only in secure contexts.
|
||||||
|
*
|
||||||
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream)
|
||||||
|
*/
|
||||||
|
interface WebTransportDatagramDuplexStream {
|
||||||
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/incomingHighWaterMark) */
|
||||||
|
incomingHighWaterMark: number;
|
||||||
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/incomingMaxAge) */
|
||||||
|
incomingMaxAge: number;
|
||||||
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/maxDatagramSize) */
|
||||||
|
readonly maxDatagramSize: number;
|
||||||
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/outgoingHighWaterMark) */
|
||||||
|
outgoingHighWaterMark: number;
|
||||||
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/outgoingMaxAge) */
|
||||||
|
outgoingMaxAge: number;
|
||||||
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/readable) */
|
||||||
|
readonly readable: ReadableStream;
|
||||||
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/writable) */
|
||||||
|
readonly writable: WritableStream;
|
||||||
|
}
|
||||||
|
|
||||||
|
declare var WebTransportDatagramDuplexStream: {
|
||||||
|
prototype: WebTransportDatagramDuplexStream;
|
||||||
|
new(): WebTransportDatagramDuplexStream;
|
||||||
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Available only in secure contexts.
|
||||||
|
*
|
||||||
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportError)
|
||||||
|
*/
|
||||||
|
interface WebTransportError extends DOMException {
|
||||||
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportError/source) */
|
||||||
|
readonly source: WebTransportErrorSource;
|
||||||
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportError/streamErrorCode) */
|
||||||
|
readonly streamErrorCode: number | null;
|
||||||
|
}
|
||||||
|
|
||||||
|
declare var WebTransportError: {
|
||||||
|
prototype: WebTransportError;
|
||||||
|
new(message?: string, options?: WebTransportErrorOptions): WebTransportError;
|
||||||
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Events that occur due to the user moving a mouse wheel or similar input device.
|
* Events that occur due to the user moving a mouse wheel or similar input device.
|
||||||
*
|
*
|
||||||
|
@ -26298,96 +26469,120 @@ declare var console: Console;
|
||||||
|
|
||||||
/** Holds useful CSS-related methods. No object with this interface are implemented: it contains only static methods and therefore is a utilitarian interface. */
|
/** Holds useful CSS-related methods. No object with this interface are implemented: it contains only static methods and therefore is a utilitarian interface. */
|
||||||
declare namespace CSS {
|
declare namespace CSS {
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/Hz) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
|
||||||
function Hz(value: number): CSSUnitValue;
|
function Hz(value: number): CSSUnitValue;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/Q) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
|
||||||
function Q(value: number): CSSUnitValue;
|
function Q(value: number): CSSUnitValue;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/ch) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
|
||||||
function ch(value: number): CSSUnitValue;
|
function ch(value: number): CSSUnitValue;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/cm) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
|
||||||
function cm(value: number): CSSUnitValue;
|
function cm(value: number): CSSUnitValue;
|
||||||
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
|
||||||
function cqb(value: number): CSSUnitValue;
|
function cqb(value: number): CSSUnitValue;
|
||||||
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
|
||||||
function cqh(value: number): CSSUnitValue;
|
function cqh(value: number): CSSUnitValue;
|
||||||
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
|
||||||
function cqi(value: number): CSSUnitValue;
|
function cqi(value: number): CSSUnitValue;
|
||||||
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
|
||||||
function cqmax(value: number): CSSUnitValue;
|
function cqmax(value: number): CSSUnitValue;
|
||||||
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
|
||||||
function cqmin(value: number): CSSUnitValue;
|
function cqmin(value: number): CSSUnitValue;
|
||||||
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
|
||||||
function cqw(value: number): CSSUnitValue;
|
function cqw(value: number): CSSUnitValue;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/deg) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
|
||||||
function deg(value: number): CSSUnitValue;
|
function deg(value: number): CSSUnitValue;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/dpcm) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
|
||||||
function dpcm(value: number): CSSUnitValue;
|
function dpcm(value: number): CSSUnitValue;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/dpi) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
|
||||||
function dpi(value: number): CSSUnitValue;
|
function dpi(value: number): CSSUnitValue;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/dppx) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
|
||||||
function dppx(value: number): CSSUnitValue;
|
function dppx(value: number): CSSUnitValue;
|
||||||
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
|
||||||
function dvb(value: number): CSSUnitValue;
|
function dvb(value: number): CSSUnitValue;
|
||||||
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
|
||||||
function dvh(value: number): CSSUnitValue;
|
function dvh(value: number): CSSUnitValue;
|
||||||
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
|
||||||
function dvi(value: number): CSSUnitValue;
|
function dvi(value: number): CSSUnitValue;
|
||||||
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
|
||||||
function dvmax(value: number): CSSUnitValue;
|
function dvmax(value: number): CSSUnitValue;
|
||||||
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
|
||||||
function dvmin(value: number): CSSUnitValue;
|
function dvmin(value: number): CSSUnitValue;
|
||||||
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
|
||||||
function dvw(value: number): CSSUnitValue;
|
function dvw(value: number): CSSUnitValue;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/em) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
|
||||||
function em(value: number): CSSUnitValue;
|
function em(value: number): CSSUnitValue;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/escape) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/escape_static) */
|
||||||
function escape(ident: string): string;
|
function escape(ident: string): string;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/ex) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
|
||||||
function ex(value: number): CSSUnitValue;
|
function ex(value: number): CSSUnitValue;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/fr) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
|
||||||
function fr(value: number): CSSUnitValue;
|
function fr(value: number): CSSUnitValue;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/grad) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
|
||||||
function grad(value: number): CSSUnitValue;
|
function grad(value: number): CSSUnitValue;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/kHz) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
|
||||||
function kHz(value: number): CSSUnitValue;
|
function kHz(value: number): CSSUnitValue;
|
||||||
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
|
||||||
function lvb(value: number): CSSUnitValue;
|
function lvb(value: number): CSSUnitValue;
|
||||||
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
|
||||||
function lvh(value: number): CSSUnitValue;
|
function lvh(value: number): CSSUnitValue;
|
||||||
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
|
||||||
function lvi(value: number): CSSUnitValue;
|
function lvi(value: number): CSSUnitValue;
|
||||||
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
|
||||||
function lvmax(value: number): CSSUnitValue;
|
function lvmax(value: number): CSSUnitValue;
|
||||||
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
|
||||||
function lvmin(value: number): CSSUnitValue;
|
function lvmin(value: number): CSSUnitValue;
|
||||||
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
|
||||||
function lvw(value: number): CSSUnitValue;
|
function lvw(value: number): CSSUnitValue;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/mm) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
|
||||||
function mm(value: number): CSSUnitValue;
|
function mm(value: number): CSSUnitValue;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/ms) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
|
||||||
function ms(value: number): CSSUnitValue;
|
function ms(value: number): CSSUnitValue;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/number) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
|
||||||
function number(value: number): CSSUnitValue;
|
function number(value: number): CSSUnitValue;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/pc) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
|
||||||
function pc(value: number): CSSUnitValue;
|
function pc(value: number): CSSUnitValue;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/percent) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
|
||||||
function percent(value: number): CSSUnitValue;
|
function percent(value: number): CSSUnitValue;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/pt) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
|
||||||
function pt(value: number): CSSUnitValue;
|
function pt(value: number): CSSUnitValue;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/px) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
|
||||||
function px(value: number): CSSUnitValue;
|
function px(value: number): CSSUnitValue;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/rad) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
|
||||||
function rad(value: number): CSSUnitValue;
|
function rad(value: number): CSSUnitValue;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/registerProperty) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/registerProperty_static) */
|
||||||
function registerProperty(definition: PropertyDefinition): void;
|
function registerProperty(definition: PropertyDefinition): void;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/rem) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
|
||||||
function rem(value: number): CSSUnitValue;
|
function rem(value: number): CSSUnitValue;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/s) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
|
||||||
function s(value: number): CSSUnitValue;
|
function s(value: number): CSSUnitValue;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/supports) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/supports_static) */
|
||||||
function supports(property: string, value: string): boolean;
|
function supports(property: string, value: string): boolean;
|
||||||
function supports(conditionText: string): boolean;
|
function supports(conditionText: string): boolean;
|
||||||
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
|
||||||
function svb(value: number): CSSUnitValue;
|
function svb(value: number): CSSUnitValue;
|
||||||
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
|
||||||
function svh(value: number): CSSUnitValue;
|
function svh(value: number): CSSUnitValue;
|
||||||
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
|
||||||
function svi(value: number): CSSUnitValue;
|
function svi(value: number): CSSUnitValue;
|
||||||
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
|
||||||
function svmax(value: number): CSSUnitValue;
|
function svmax(value: number): CSSUnitValue;
|
||||||
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
|
||||||
function svmin(value: number): CSSUnitValue;
|
function svmin(value: number): CSSUnitValue;
|
||||||
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
|
||||||
function svw(value: number): CSSUnitValue;
|
function svw(value: number): CSSUnitValue;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/turn) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
|
||||||
function turn(value: number): CSSUnitValue;
|
function turn(value: number): CSSUnitValue;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/vb) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
|
||||||
function vb(value: number): CSSUnitValue;
|
function vb(value: number): CSSUnitValue;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/vh) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
|
||||||
function vh(value: number): CSSUnitValue;
|
function vh(value: number): CSSUnitValue;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/vi) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
|
||||||
function vi(value: number): CSSUnitValue;
|
function vi(value: number): CSSUnitValue;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/vmax) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
|
||||||
function vmax(value: number): CSSUnitValue;
|
function vmax(value: number): CSSUnitValue;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/vmin) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
|
||||||
function vmin(value: number): CSSUnitValue;
|
function vmin(value: number): CSSUnitValue;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/vw) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
|
||||||
function vw(value: number): CSSUnitValue;
|
function vw(value: number): CSSUnitValue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -26402,16 +26597,16 @@ declare namespace WebAssembly {
|
||||||
};
|
};
|
||||||
|
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Global) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Global) */
|
||||||
interface Global {
|
interface Global<T extends ValueType = ValueType> {
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Global/value) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Global/value) */
|
||||||
value: any;
|
value: ValueTypeMap[T];
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Global/valueOf) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Global/valueOf) */
|
||||||
valueOf(): any;
|
valueOf(): ValueTypeMap[T];
|
||||||
}
|
}
|
||||||
|
|
||||||
var Global: {
|
var Global: {
|
||||||
prototype: Global;
|
prototype: Global;
|
||||||
new(descriptor: GlobalDescriptor, v?: any): Global;
|
new<T extends ValueType = ValueType>(descriptor: GlobalDescriptor<T>, v?: ValueTypeMap[T]): Global<T>;
|
||||||
};
|
};
|
||||||
|
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Instance) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Instance) */
|
||||||
|
@ -26488,9 +26683,9 @@ declare namespace WebAssembly {
|
||||||
new(descriptor: TableDescriptor, value?: any): Table;
|
new(descriptor: TableDescriptor, value?: any): Table;
|
||||||
};
|
};
|
||||||
|
|
||||||
interface GlobalDescriptor {
|
interface GlobalDescriptor<T extends ValueType = ValueType> {
|
||||||
mutable?: boolean;
|
mutable?: boolean;
|
||||||
value: ValueType;
|
value: T;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface MemoryDescriptor {
|
interface MemoryDescriptor {
|
||||||
|
@ -26516,6 +26711,16 @@ declare namespace WebAssembly {
|
||||||
maximum?: number;
|
maximum?: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
interface ValueTypeMap {
|
||||||
|
anyfunc: Function;
|
||||||
|
externref: any;
|
||||||
|
f32: number;
|
||||||
|
f64: number;
|
||||||
|
i32: number;
|
||||||
|
i64: bigint;
|
||||||
|
v128: never;
|
||||||
|
}
|
||||||
|
|
||||||
interface WebAssemblyInstantiatedSource {
|
interface WebAssemblyInstantiatedSource {
|
||||||
instance: Instance;
|
instance: Instance;
|
||||||
module: Module;
|
module: Module;
|
||||||
|
@ -26523,12 +26728,12 @@ declare namespace WebAssembly {
|
||||||
|
|
||||||
type ImportExportKind = "function" | "global" | "memory" | "table";
|
type ImportExportKind = "function" | "global" | "memory" | "table";
|
||||||
type TableKind = "anyfunc" | "externref";
|
type TableKind = "anyfunc" | "externref";
|
||||||
type ValueType = "anyfunc" | "externref" | "f32" | "f64" | "i32" | "i64" | "v128";
|
|
||||||
type ExportValue = Function | Global | Memory | Table;
|
type ExportValue = Function | Global | Memory | Table;
|
||||||
type Exports = Record<string, ExportValue>;
|
type Exports = Record<string, ExportValue>;
|
||||||
type ImportValue = ExportValue | number;
|
type ImportValue = ExportValue | number;
|
||||||
type Imports = Record<string, ModuleImports>;
|
type Imports = Record<string, ModuleImports>;
|
||||||
type ModuleImports = Record<string, ImportValue>;
|
type ModuleImports = Record<string, ImportValue>;
|
||||||
|
type ValueType = keyof ValueTypeMap;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/compile) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/compile) */
|
||||||
function compile(bytes: BufferSource): Promise<Module>;
|
function compile(bytes: BufferSource): Promise<Module>;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/compileStreaming) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/compileStreaming) */
|
||||||
|
@ -27372,7 +27577,7 @@ declare var onended: ((this: Window, ev: Event) => any) | null;
|
||||||
* Fires when an error occurs during object loading.
|
* Fires when an error occurs during object loading.
|
||||||
* @param ev The event.
|
* @param ev The event.
|
||||||
*
|
*
|
||||||
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/error_event)
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/error_event)
|
||||||
*/
|
*/
|
||||||
declare var onerror: OnErrorEventHandler;
|
declare var onerror: OnErrorEventHandler;
|
||||||
/**
|
/**
|
||||||
|
@ -27550,6 +27755,8 @@ declare var onresize: ((this: Window, ev: UIEvent) => any) | null;
|
||||||
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/scroll_event)
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/scroll_event)
|
||||||
*/
|
*/
|
||||||
declare var onscroll: ((this: Window, ev: Event) => any) | null;
|
declare var onscroll: ((this: Window, ev: Event) => any) | null;
|
||||||
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/scrollend_event) */
|
||||||
|
declare var onscrollend: ((this: Window, ev: Event) => any) | null;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/securitypolicyviolation_event) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/securitypolicyviolation_event) */
|
||||||
declare var onsecuritypolicyviolation: ((this: Window, ev: SecurityPolicyViolationEvent) => any) | null;
|
declare var onsecuritypolicyviolation: ((this: Window, ev: SecurityPolicyViolationEvent) => any) | null;
|
||||||
/**
|
/**
|
||||||
|
@ -27746,6 +27953,10 @@ declare function addEventListener(type: string, listener: EventListenerOrEventLi
|
||||||
declare function removeEventListener<K extends keyof WindowEventMap>(type: K, listener: (this: Window, ev: WindowEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
declare function removeEventListener<K extends keyof WindowEventMap>(type: K, listener: (this: Window, ev: WindowEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
||||||
declare function removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
declare function removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
||||||
type AlgorithmIdentifier = Algorithm | string;
|
type AlgorithmIdentifier = Algorithm | string;
|
||||||
|
type AllowSharedBufferSource = ArrayBuffer | ArrayBufferView;
|
||||||
|
type AutoFill = AutoFillBase | `${OptionalPrefixToken<AutoFillSection>}${OptionalPrefixToken<AutoFillAddressKind>}${AutoFillField}${OptionalPostfixToken<AutoFillCredentialField>}`;
|
||||||
|
type AutoFillField = AutoFillNormalField | `${OptionalPrefixToken<AutoFillContactKind>}${AutoFillContactField}`;
|
||||||
|
type AutoFillSection = `section-${string}`;
|
||||||
type BigInteger = Uint8Array;
|
type BigInteger = Uint8Array;
|
||||||
type BinaryData = ArrayBuffer | ArrayBufferView;
|
type BinaryData = ArrayBuffer | ArrayBufferView;
|
||||||
type BlobPart = BufferSource | Blob | string;
|
type BlobPart = BufferSource | Blob | string;
|
||||||
|
@ -27796,6 +28007,8 @@ type NamedCurve = string;
|
||||||
type OffscreenRenderingContext = OffscreenCanvasRenderingContext2D | ImageBitmapRenderingContext | WebGLRenderingContext | WebGL2RenderingContext;
|
type OffscreenRenderingContext = OffscreenCanvasRenderingContext2D | ImageBitmapRenderingContext | WebGLRenderingContext | WebGL2RenderingContext;
|
||||||
type OnBeforeUnloadEventHandler = OnBeforeUnloadEventHandlerNonNull | null;
|
type OnBeforeUnloadEventHandler = OnBeforeUnloadEventHandlerNonNull | null;
|
||||||
type OnErrorEventHandler = OnErrorEventHandlerNonNull | null;
|
type OnErrorEventHandler = OnErrorEventHandlerNonNull | null;
|
||||||
|
type OptionalPostfixToken<T extends string> = ` ${T}` | "";
|
||||||
|
type OptionalPrefixToken<T extends string> = `${T} ` | "";
|
||||||
type PerformanceEntryList = PerformanceEntry[];
|
type PerformanceEntryList = PerformanceEntry[];
|
||||||
type ReadableStreamController<T> = ReadableStreamDefaultController<T> | ReadableByteStreamController;
|
type ReadableStreamController<T> = ReadableStreamDefaultController<T> | ReadableByteStreamController;
|
||||||
type ReadableStreamReadResult<T> = ReadableStreamReadValueResult<T> | ReadableStreamReadDoneResult<T>;
|
type ReadableStreamReadResult<T> = ReadableStreamReadValueResult<T> | ReadableStreamReadDoneResult<T>;
|
||||||
|
@ -27820,6 +28033,12 @@ type AudioContextLatencyCategory = "balanced" | "interactive" | "playback";
|
||||||
type AudioContextState = "closed" | "running" | "suspended";
|
type AudioContextState = "closed" | "running" | "suspended";
|
||||||
type AuthenticatorAttachment = "cross-platform" | "platform";
|
type AuthenticatorAttachment = "cross-platform" | "platform";
|
||||||
type AuthenticatorTransport = "ble" | "hybrid" | "internal" | "nfc" | "usb";
|
type AuthenticatorTransport = "ble" | "hybrid" | "internal" | "nfc" | "usb";
|
||||||
|
type AutoFillAddressKind = "billing" | "shipping";
|
||||||
|
type AutoFillBase = "" | "off" | "on";
|
||||||
|
type AutoFillContactField = "email" | "tel" | "tel-area-code" | "tel-country-code" | "tel-extension" | "tel-local" | "tel-local-prefix" | "tel-local-suffix" | "tel-national";
|
||||||
|
type AutoFillContactKind = "home" | "mobile" | "work";
|
||||||
|
type AutoFillCredentialField = "webauthn";
|
||||||
|
type AutoFillNormalField = "additional-name" | "address-level1" | "address-level2" | "address-level3" | "address-level4" | "address-line1" | "address-line2" | "address-line3" | "bday-day" | "bday-month" | "bday-year" | "cc-csc" | "cc-exp" | "cc-exp-month" | "cc-exp-year" | "cc-family-name" | "cc-given-name" | "cc-name" | "cc-number" | "cc-type" | "country" | "country-name" | "current-password" | "family-name" | "given-name" | "honorific-prefix" | "honorific-suffix" | "name" | "new-password" | "one-time-code" | "organization" | "postal-code" | "street-address" | "transaction-amount" | "transaction-currency" | "username";
|
||||||
type AutoKeyword = "auto";
|
type AutoKeyword = "auto";
|
||||||
type AutomationRate = "a-rate" | "k-rate";
|
type AutomationRate = "a-rate" | "k-rate";
|
||||||
type AvcBitstreamFormat = "annexb" | "avc";
|
type AvcBitstreamFormat = "annexb" | "avc";
|
||||||
|
@ -27902,7 +28121,6 @@ type NavigationTimingType = "back_forward" | "navigate" | "prerender" | "reload"
|
||||||
type NotificationDirection = "auto" | "ltr" | "rtl";
|
type NotificationDirection = "auto" | "ltr" | "rtl";
|
||||||
type NotificationPermission = "default" | "denied" | "granted";
|
type NotificationPermission = "default" | "denied" | "granted";
|
||||||
type OffscreenRenderingContextId = "2d" | "bitmaprenderer" | "webgl" | "webgl2" | "webgpu";
|
type OffscreenRenderingContextId = "2d" | "bitmaprenderer" | "webgl" | "webgl2" | "webgpu";
|
||||||
type OrientationLockType = "any" | "landscape" | "landscape-primary" | "landscape-secondary" | "natural" | "portrait" | "portrait-primary" | "portrait-secondary";
|
|
||||||
type OrientationType = "landscape-primary" | "landscape-secondary" | "portrait-primary" | "portrait-secondary";
|
type OrientationType = "landscape-primary" | "landscape-secondary" | "portrait-primary" | "portrait-secondary";
|
||||||
type OscillatorType = "custom" | "sawtooth" | "sine" | "square" | "triangle";
|
type OscillatorType = "custom" | "sawtooth" | "sine" | "square" | "triangle";
|
||||||
type OverSampleType = "2x" | "4x" | "none";
|
type OverSampleType = "2x" | "4x" | "none";
|
||||||
|
@ -27940,7 +28158,7 @@ type RTCSctpTransportState = "closed" | "connected" | "connecting";
|
||||||
type RTCSdpType = "answer" | "offer" | "pranswer" | "rollback";
|
type RTCSdpType = "answer" | "offer" | "pranswer" | "rollback";
|
||||||
type RTCSignalingState = "closed" | "have-local-offer" | "have-local-pranswer" | "have-remote-offer" | "have-remote-pranswer" | "stable";
|
type RTCSignalingState = "closed" | "have-local-offer" | "have-local-pranswer" | "have-remote-offer" | "have-remote-pranswer" | "stable";
|
||||||
type RTCStatsIceCandidatePairState = "failed" | "frozen" | "in-progress" | "inprogress" | "succeeded" | "waiting";
|
type RTCStatsIceCandidatePairState = "failed" | "frozen" | "in-progress" | "inprogress" | "succeeded" | "waiting";
|
||||||
type RTCStatsType = "candidate-pair" | "certificate" | "codec" | "data-channel" | "inbound-rtp" | "local-candidate" | "media-source" | "outbound-rtp" | "peer-connection" | "remote-candidate" | "remote-inbound-rtp" | "remote-outbound-rtp" | "track" | "transport";
|
type RTCStatsType = "candidate-pair" | "certificate" | "codec" | "data-channel" | "inbound-rtp" | "local-candidate" | "media-source" | "outbound-rtp" | "peer-connection" | "remote-candidate" | "remote-inbound-rtp" | "remote-outbound-rtp" | "transport";
|
||||||
type ReadableStreamReaderMode = "byob";
|
type ReadableStreamReaderMode = "byob";
|
||||||
type ReadableStreamType = "bytes";
|
type ReadableStreamType = "bytes";
|
||||||
type ReadyState = "closed" | "ended" | "open";
|
type ReadyState = "closed" | "ended" | "open";
|
||||||
|
@ -27980,6 +28198,8 @@ type VideoPixelFormat = "BGRA" | "BGRX" | "I420" | "I420A" | "I422" | "I444" | "
|
||||||
type VideoTransferCharacteristics = "bt709" | "iec61966-2-1" | "smpte170m";
|
type VideoTransferCharacteristics = "bt709" | "iec61966-2-1" | "smpte170m";
|
||||||
type WakeLockType = "screen";
|
type WakeLockType = "screen";
|
||||||
type WebGLPowerPreference = "default" | "high-performance" | "low-power";
|
type WebGLPowerPreference = "default" | "high-performance" | "low-power";
|
||||||
|
type WebTransportCongestionControl = "default" | "low-latency" | "throughput";
|
||||||
|
type WebTransportErrorSource = "session" | "stream";
|
||||||
type WorkerType = "classic" | "module";
|
type WorkerType = "classic" | "module";
|
||||||
type WriteCommandType = "seek" | "truncate" | "write";
|
type WriteCommandType = "seek" | "truncate" | "write";
|
||||||
type XMLHttpRequestResponseType = "" | "arraybuffer" | "blob" | "document" | "json" | "text";
|
type XMLHttpRequestResponseType = "" | "arraybuffer" | "blob" | "document" | "json" | "text";
|
||||||
|
|
18
cli/tsc/dts/lib.es2015.collection.d.ts
vendored
18
cli/tsc/dts/lib.es2015.collection.d.ts
vendored
|
@ -60,7 +60,7 @@ interface ReadonlyMap<K, V> {
|
||||||
readonly size: number;
|
readonly size: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface WeakMap<K extends object, V> {
|
interface WeakMap<K extends WeakKey, V> {
|
||||||
/**
|
/**
|
||||||
* Removes the specified element from the WeakMap.
|
* Removes the specified element from the WeakMap.
|
||||||
* @returns true if the element was successfully removed, or false if it was not present.
|
* @returns true if the element was successfully removed, or false if it was not present.
|
||||||
|
@ -76,14 +76,14 @@ interface WeakMap<K extends object, V> {
|
||||||
has(key: K): boolean;
|
has(key: K): boolean;
|
||||||
/**
|
/**
|
||||||
* Adds a new element with a specified key and value.
|
* Adds a new element with a specified key and value.
|
||||||
* @param key Must be an object.
|
* @param key Must be an object or symbol.
|
||||||
*/
|
*/
|
||||||
set(key: K, value: V): this;
|
set(key: K, value: V): this;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface WeakMapConstructor {
|
interface WeakMapConstructor {
|
||||||
new <K extends object = object, V = any>(entries?: readonly (readonly [K, V])[] | null): WeakMap<K, V>;
|
new <K extends WeakKey = WeakKey, V = any>(entries?: readonly (readonly [K, V])[] | null): WeakMap<K, V>;
|
||||||
readonly prototype: WeakMap<object, any>;
|
readonly prototype: WeakMap<WeakKey, any>;
|
||||||
}
|
}
|
||||||
declare var WeakMap: WeakMapConstructor;
|
declare var WeakMap: WeakMapConstructor;
|
||||||
|
|
||||||
|
@ -125,9 +125,9 @@ interface ReadonlySet<T> {
|
||||||
readonly size: number;
|
readonly size: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface WeakSet<T extends object> {
|
interface WeakSet<T extends WeakKey> {
|
||||||
/**
|
/**
|
||||||
* Appends a new object to the end of the WeakSet.
|
* Appends a new value to the end of the WeakSet.
|
||||||
*/
|
*/
|
||||||
add(value: T): this;
|
add(value: T): this;
|
||||||
/**
|
/**
|
||||||
|
@ -136,13 +136,13 @@ interface WeakSet<T extends object> {
|
||||||
*/
|
*/
|
||||||
delete(value: T): boolean;
|
delete(value: T): boolean;
|
||||||
/**
|
/**
|
||||||
* @returns a boolean indicating whether an object exists in the WeakSet or not.
|
* @returns a boolean indicating whether a value exists in the WeakSet or not.
|
||||||
*/
|
*/
|
||||||
has(value: T): boolean;
|
has(value: T): boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface WeakSetConstructor {
|
interface WeakSetConstructor {
|
||||||
new <T extends object = object>(values?: readonly T[] | null): WeakSet<T>;
|
new <T extends WeakKey = WeakKey>(values?: readonly T[] | null): WeakSet<T>;
|
||||||
readonly prototype: WeakSet<object>;
|
readonly prototype: WeakSet<WeakKey>;
|
||||||
}
|
}
|
||||||
declare var WeakSet: WeakSetConstructor;
|
declare var WeakSet: WeakSetConstructor;
|
||||||
|
|
4
cli/tsc/dts/lib.es2015.core.d.ts
vendored
4
cli/tsc/dts/lib.es2015.core.d.ts
vendored
|
@ -56,10 +56,10 @@ interface Array<T> {
|
||||||
* @param target If target is negative, it is treated as length+target where length is the
|
* @param target If target is negative, it is treated as length+target where length is the
|
||||||
* length of the array.
|
* length of the array.
|
||||||
* @param start If start is negative, it is treated as length+start. If end is negative, it
|
* @param start If start is negative, it is treated as length+start. If end is negative, it
|
||||||
* is treated as length+end. If start is omitted, `0` is used.
|
* is treated as length+end.
|
||||||
* @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;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface ArrayConstructor {
|
interface ArrayConstructor {
|
||||||
|
|
8
cli/tsc/dts/lib.es2015.iterable.d.ts
vendored
8
cli/tsc/dts/lib.es2015.iterable.d.ts
vendored
|
@ -159,10 +159,10 @@ interface MapConstructor {
|
||||||
new <K, V>(iterable?: Iterable<readonly [K, V]> | null): Map<K, V>;
|
new <K, V>(iterable?: Iterable<readonly [K, V]> | null): Map<K, V>;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface WeakMap<K extends object, V> { }
|
interface WeakMap<K extends WeakKey, V> { }
|
||||||
|
|
||||||
interface WeakMapConstructor {
|
interface WeakMapConstructor {
|
||||||
new <K extends object, V>(iterable: Iterable<readonly [K, V]>): WeakMap<K, V>;
|
new <K extends WeakKey, V>(iterable: Iterable<readonly [K, V]>): WeakMap<K, V>;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface Set<T> {
|
interface Set<T> {
|
||||||
|
@ -207,10 +207,10 @@ interface SetConstructor {
|
||||||
new <T>(iterable?: Iterable<T> | null): Set<T>;
|
new <T>(iterable?: Iterable<T> | null): Set<T>;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface WeakSet<T extends object> { }
|
interface WeakSet<T extends WeakKey> { }
|
||||||
|
|
||||||
interface WeakSetConstructor {
|
interface WeakSetConstructor {
|
||||||
new <T extends object = object>(iterable: Iterable<T>): WeakSet<T>;
|
new <T extends WeakKey = WeakKey>(iterable: Iterable<T>): WeakSet<T>;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface Promise<T> { }
|
interface Promise<T> { }
|
||||||
|
|
4
cli/tsc/dts/lib.es2015.symbol.wellknown.d.ts
vendored
4
cli/tsc/dts/lib.es2015.symbol.wellknown.d.ts
vendored
|
@ -137,7 +137,7 @@ interface Map<K, V> {
|
||||||
readonly [Symbol.toStringTag]: string;
|
readonly [Symbol.toStringTag]: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface WeakMap<K extends object, V> {
|
interface WeakMap<K extends WeakKey, V> {
|
||||||
readonly [Symbol.toStringTag]: string;
|
readonly [Symbol.toStringTag]: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -145,7 +145,7 @@ interface Set<T> {
|
||||||
readonly [Symbol.toStringTag]: string;
|
readonly [Symbol.toStringTag]: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface WeakSet<T extends object> {
|
interface WeakSet<T extends WeakKey> {
|
||||||
readonly [Symbol.toStringTag]: string;
|
readonly [Symbol.toStringTag]: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
1
cli/tsc/dts/lib.es2017.d.ts
vendored
1
cli/tsc/dts/lib.es2017.d.ts
vendored
|
@ -22,3 +22,4 @@ and limitations under the License.
|
||||||
/// <reference lib="es2017.string" />
|
/// <reference lib="es2017.string" />
|
||||||
/// <reference lib="es2017.intl" />
|
/// <reference lib="es2017.intl" />
|
||||||
/// <reference lib="es2017.typedarrays" />
|
/// <reference lib="es2017.typedarrays" />
|
||||||
|
/// <reference lib="es2017.date" />
|
||||||
|
|
31
cli/tsc/dts/lib.es2017.date.d.ts
vendored
Normal file
31
cli/tsc/dts/lib.es2017.date.d.ts
vendored
Normal file
|
@ -0,0 +1,31 @@
|
||||||
|
/*! *****************************************************************************
|
||||||
|
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 DateConstructor {
|
||||||
|
/**
|
||||||
|
* Returns the number of milliseconds between midnight, January 1, 1970 Universal Coordinated Time (UTC) (or GMT) and the specified date.
|
||||||
|
* @param year The full year designation is required for cross-century date accuracy. If year is between 0 and 99 is used, then year is assumed to be 1900 + year.
|
||||||
|
* @param monthIndex The month as a number between 0 and 11 (January to December).
|
||||||
|
* @param date The date as a number between 1 and 31.
|
||||||
|
* @param hours Must be supplied if minutes is supplied. A number from 0 to 23 (midnight to 11pm) that specifies the hour.
|
||||||
|
* @param minutes Must be supplied if seconds is supplied. A number from 0 to 59 that specifies the minutes.
|
||||||
|
* @param seconds Must be supplied if milliseconds is supplied. A number from 0 to 59 that specifies the seconds.
|
||||||
|
* @param ms A number from 0 to 999 that specifies the milliseconds.
|
||||||
|
*/
|
||||||
|
UTC(year: number, monthIndex?: number, date?: number, hours?: number, minutes?: number, seconds?: number, ms?: number): number;
|
||||||
|
}
|
8
cli/tsc/dts/lib.es2020.bigint.d.ts
vendored
8
cli/tsc/dts/lib.es2020.bigint.d.ts
vendored
|
@ -165,10 +165,10 @@ interface BigInt64Array {
|
||||||
* @param target If target is negative, it is treated as length+target where length is the
|
* @param target If target is negative, it is treated as length+target where length is the
|
||||||
* length of the array.
|
* length of the array.
|
||||||
* @param start If start is negative, it is treated as length+start. If end is negative, it
|
* @param start If start is negative, it is treated as length+start. If end is negative, it
|
||||||
* is treated as length+end. If start is omitted, `0` is used.
|
* is treated as length+end.
|
||||||
* @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;
|
||||||
|
|
||||||
/** Yields index, value pairs for every entry in the array. */
|
/** Yields index, value pairs for every entry in the array. */
|
||||||
entries(): IterableIterator<[number, bigint]>;
|
entries(): IterableIterator<[number, bigint]>;
|
||||||
|
@ -437,10 +437,10 @@ interface BigUint64Array {
|
||||||
* @param target If target is negative, it is treated as length+target where length is the
|
* @param target If target is negative, it is treated as length+target where length is the
|
||||||
* length of the array.
|
* length of the array.
|
||||||
* @param start If start is negative, it is treated as length+start. If end is negative, it
|
* @param start If start is negative, it is treated as length+start. If end is negative, it
|
||||||
* is treated as length+end. If start is omitted, `0` is used.
|
* is treated as length+end.
|
||||||
* @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;
|
||||||
|
|
||||||
/** Yields index, value pairs for every entry in the array. */
|
/** Yields index, value pairs for every entry in the array. */
|
||||||
entries(): IterableIterator<[number, bigint]>;
|
entries(): IterableIterator<[number, bigint]>;
|
||||||
|
|
35
cli/tsc/dts/lib.es2021.weakref.d.ts
vendored
35
cli/tsc/dts/lib.es2021.weakref.d.ts
vendored
|
@ -16,12 +16,13 @@ and limitations under the License.
|
||||||
|
|
||||||
/// <reference no-default-lib="true"/>
|
/// <reference no-default-lib="true"/>
|
||||||
|
|
||||||
interface WeakRef<T extends object> {
|
interface WeakRef<T extends WeakKey> {
|
||||||
readonly [Symbol.toStringTag]: "WeakRef";
|
readonly [Symbol.toStringTag]: "WeakRef";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the WeakRef instance's target object, or undefined if the target object has been
|
* Returns the WeakRef instance's target value, or undefined if the target value has been
|
||||||
* reclaimed.
|
* reclaimed.
|
||||||
|
* In es2023 the value can be either a symbol or an object, in previous versions only object is permissible.
|
||||||
*/
|
*/
|
||||||
deref(): T | undefined;
|
deref(): T | undefined;
|
||||||
}
|
}
|
||||||
|
@ -30,10 +31,11 @@ interface WeakRefConstructor {
|
||||||
readonly prototype: WeakRef<any>;
|
readonly prototype: WeakRef<any>;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates a WeakRef instance for the given target object.
|
* Creates a WeakRef instance for the given target value.
|
||||||
* @param target The target object for the WeakRef instance.
|
* In es2023 the value can be either a symbol or an object, in previous versions only object is permissible.
|
||||||
|
* @param target The target value for the WeakRef instance.
|
||||||
*/
|
*/
|
||||||
new<T extends object>(target: T): WeakRef<T>;
|
new<T extends WeakKey>(target: T): WeakRef<T>;
|
||||||
}
|
}
|
||||||
|
|
||||||
declare var WeakRef: WeakRefConstructor;
|
declare var WeakRef: WeakRefConstructor;
|
||||||
|
@ -42,22 +44,23 @@ interface FinalizationRegistry<T> {
|
||||||
readonly [Symbol.toStringTag]: "FinalizationRegistry";
|
readonly [Symbol.toStringTag]: "FinalizationRegistry";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Registers an object with the registry.
|
* Registers a value with the registry.
|
||||||
* @param target The target object to register.
|
* In es2023 the value can be either a symbol or an object, in previous versions only object is permissible.
|
||||||
* @param heldValue The value to pass to the finalizer for this object. This cannot be the
|
* @param target The target value to register.
|
||||||
* target object.
|
* @param heldValue The value to pass to the finalizer for this value. This cannot be the
|
||||||
|
* target value.
|
||||||
* @param unregisterToken The token to pass to the unregister method to unregister the target
|
* @param unregisterToken The token to pass to the unregister method to unregister the target
|
||||||
* object. If provided (and not undefined), this must be an object. If not provided, the target
|
* value. If not provided, the target cannot be unregistered.
|
||||||
* cannot be unregistered.
|
|
||||||
*/
|
*/
|
||||||
register(target: object, heldValue: T, unregisterToken?: object): void;
|
register(target: WeakKey, heldValue: T, unregisterToken?: WeakKey): void;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Unregisters an object from the registry.
|
* Unregisters a value from the registry.
|
||||||
|
* In es2023 the value can be either a symbol or an object, in previous versions only object is permissible.
|
||||||
* @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 object.
|
* register to register the target value.
|
||||||
*/
|
*/
|
||||||
unregister(unregisterToken: object): void;
|
unregister(unregisterToken: WeakKey): void;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface FinalizationRegistryConstructor {
|
interface FinalizationRegistryConstructor {
|
||||||
|
@ -65,7 +68,7 @@ interface FinalizationRegistryConstructor {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates a finalization registry with an associated cleanup callback
|
* Creates a finalization registry with an associated cleanup callback
|
||||||
* @param cleanupCallback The callback to call after an object in the registry has been reclaimed.
|
* @param cleanupCallback The callback to call after a value in the registry has been reclaimed.
|
||||||
*/
|
*/
|
||||||
new<T>(cleanupCallback: (heldValue: T) => void): FinalizationRegistry<T>;
|
new<T>(cleanupCallback: (heldValue: T) => void): FinalizationRegistry<T>;
|
||||||
}
|
}
|
||||||
|
|
654
cli/tsc/dts/lib.es2023.array.d.ts
vendored
654
cli/tsc/dts/lib.es2023.array.d.ts
vendored
|
@ -39,6 +39,50 @@ interface Array<T> {
|
||||||
* predicate. If it is not provided, undefined is used instead.
|
* predicate. If it is not provided, undefined is used instead.
|
||||||
*/
|
*/
|
||||||
findLastIndex(predicate: (value: T, index: number, array: T[]) => unknown, thisArg?: any): number;
|
findLastIndex(predicate: (value: T, index: number, array: T[]) => unknown, thisArg?: any): number;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns a copy of an array with its elements reversed.
|
||||||
|
*/
|
||||||
|
toReversed(): T[];
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns a copy of an array with its elements sorted.
|
||||||
|
* @param compareFn Function used to determine the order of the elements. It is expected to return
|
||||||
|
* a negative value if the first argument is less than the second argument, zero if they're equal, and a positive
|
||||||
|
* value otherwise. If omitted, the elements are sorted in ascending, ASCII character order.
|
||||||
|
* ```ts
|
||||||
|
* [11, 2, 22, 1].toSorted((a, b) => a - b) // [1, 2, 11, 22]
|
||||||
|
* ```
|
||||||
|
*/
|
||||||
|
toSorted(compareFn?: (a: T, b: T) => number): T[];
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Copies an array and removes elements and, if necessary, inserts new elements in their place. Returns the copied array.
|
||||||
|
* @param start The zero-based location in the array from which to start removing elements.
|
||||||
|
* @param deleteCount The number of elements to remove.
|
||||||
|
* @param items Elements to insert into the copied array in place of the deleted elements.
|
||||||
|
* @returns The copied array.
|
||||||
|
*/
|
||||||
|
toSpliced(start: number, deleteCount: number, ...items: T[]): T[];
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Copies an array and removes elements while returning the remaining elements.
|
||||||
|
* @param start The zero-based location in the array from which to start removing elements.
|
||||||
|
* @param deleteCount The number of elements to remove.
|
||||||
|
* @returns A copy of the original array with the remaining elements.
|
||||||
|
*/
|
||||||
|
toSpliced(start: number, deleteCount?: number): T[];
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Copies an array, then overwrites the value at the provided index with the
|
||||||
|
* given value. If the index is negative, then it replaces from the end
|
||||||
|
* of the array.
|
||||||
|
* @param index The index of the value to overwrite. If the index is
|
||||||
|
* negative, then it replaces from the end of the array.
|
||||||
|
* @param value The value to write into the copied array.
|
||||||
|
* @returns The copied array with the updated value.
|
||||||
|
*/
|
||||||
|
with(index: number, value: T): T[];
|
||||||
}
|
}
|
||||||
|
|
||||||
interface ReadonlyArray<T> {
|
interface ReadonlyArray<T> {
|
||||||
|
@ -51,8 +95,14 @@ interface ReadonlyArray<T> {
|
||||||
* @param thisArg If provided, it will be used as the this value for each invocation of
|
* @param thisArg If provided, it will be used as the this value for each invocation of
|
||||||
* predicate. If it is not provided, undefined is used instead.
|
* predicate. If it is not provided, undefined is used instead.
|
||||||
*/
|
*/
|
||||||
findLast<S extends T>(predicate: (value: T, index: number, array: readonly T[]) => value is S, thisArg?: any): S | undefined;
|
findLast<S extends T>(
|
||||||
findLast(predicate: (value: T, index: number, array: readonly T[]) => unknown, thisArg?: any): T | undefined;
|
predicate: (value: T, index: number, array: readonly T[]) => value is S,
|
||||||
|
thisArg?: any
|
||||||
|
): S | undefined;
|
||||||
|
findLast(
|
||||||
|
predicate: (value: T, index: number, array: readonly T[]) => unknown,
|
||||||
|
thisArg?: any
|
||||||
|
): T | undefined;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the index of the last element in the array where predicate is true, and -1
|
* Returns the index of the last element in the array where predicate is true, and -1
|
||||||
|
@ -63,7 +113,54 @@ interface ReadonlyArray<T> {
|
||||||
* @param thisArg If provided, it will be used as the this value for each invocation of
|
* @param thisArg If provided, it will be used as the this value for each invocation of
|
||||||
* predicate. If it is not provided, undefined is used instead.
|
* predicate. If it is not provided, undefined is used instead.
|
||||||
*/
|
*/
|
||||||
findLastIndex(predicate: (value: T, index: number, array: readonly T[]) => unknown, thisArg?: any): number;
|
findLastIndex(
|
||||||
|
predicate: (value: T, index: number, array: readonly T[]) => unknown,
|
||||||
|
thisArg?: any
|
||||||
|
): number;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Copies the array and returns the copied array with all of its elements reversed.
|
||||||
|
*/
|
||||||
|
toReversed(): T[];
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Copies and sorts the array.
|
||||||
|
* @param compareFn Function used to determine the order of the elements. It is expected to return
|
||||||
|
* a negative value if the first argument is less than the second argument, zero if they're equal, and a positive
|
||||||
|
* value otherwise. If omitted, the elements are sorted in ascending, ASCII character order.
|
||||||
|
* ```ts
|
||||||
|
* [11, 2, 22, 1].toSorted((a, b) => a - b) // [1, 2, 11, 22]
|
||||||
|
* ```
|
||||||
|
*/
|
||||||
|
toSorted(compareFn?: (a: T, b: T) => number): T[];
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Copies an array and removes elements while, if necessary, inserting new elements in their place, returning the remaining elements.
|
||||||
|
* @param start The zero-based location in the array from which to start removing elements.
|
||||||
|
* @param deleteCount The number of elements to remove.
|
||||||
|
* @param items Elements to insert into the copied array in place of the deleted elements.
|
||||||
|
* @returns A copy of the original array with the remaining elements.
|
||||||
|
*/
|
||||||
|
toSpliced(start: number, deleteCount: number, ...items: T[]): T[];
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Copies an array and removes elements while returning the remaining elements.
|
||||||
|
* @param start The zero-based location in the array from which to start removing elements.
|
||||||
|
* @param deleteCount The number of elements to remove.
|
||||||
|
* @returns A copy of the original array with the remaining elements.
|
||||||
|
*/
|
||||||
|
toSpliced(start: number, deleteCount?: number): T[];
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Copies an array, then overwrites the value at the provided index with the
|
||||||
|
* given value. If the index is negative, then it replaces from the end
|
||||||
|
* of the array
|
||||||
|
* @param index The index of the value to overwrite. If the index is
|
||||||
|
* negative, then it replaces from the end of the array.
|
||||||
|
* @param value The value to insert into the copied array.
|
||||||
|
* @returns A copy of the original array with the inserted value.
|
||||||
|
*/
|
||||||
|
with(index: number, value: T): T[];
|
||||||
}
|
}
|
||||||
|
|
||||||
interface Int8Array {
|
interface Int8Array {
|
||||||
|
@ -76,8 +173,18 @@ interface Int8Array {
|
||||||
* @param thisArg If provided, it will be used as the this value for each invocation of
|
* @param thisArg If provided, it will be used as the this value for each invocation of
|
||||||
* predicate. If it is not provided, undefined is used instead.
|
* predicate. If it is not provided, undefined is used instead.
|
||||||
*/
|
*/
|
||||||
findLast<S extends number>(predicate: (value: number, index: number, array: Int8Array) => value is S, thisArg?: any): S | undefined;
|
findLast<S extends number>(
|
||||||
findLast(predicate: (value: number, index: number, array: Int8Array) => unknown, thisArg?: any): number | undefined;
|
predicate: (
|
||||||
|
value: number,
|
||||||
|
index: number,
|
||||||
|
array: Int8Array
|
||||||
|
) => value is S,
|
||||||
|
thisArg?: any
|
||||||
|
): S | undefined;
|
||||||
|
findLast(
|
||||||
|
predicate: (value: number, index: number, array: Int8Array) => unknown,
|
||||||
|
thisArg?: any
|
||||||
|
): number | undefined;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the index of the last element in the array where predicate is true, and -1
|
* Returns the index of the last element in the array where predicate is true, and -1
|
||||||
|
@ -88,7 +195,36 @@ interface Int8Array {
|
||||||
* @param thisArg If provided, it will be used as the this value for each invocation of
|
* @param thisArg If provided, it will be used as the this value for each invocation of
|
||||||
* predicate. If it is not provided, undefined is used instead.
|
* predicate. If it is not provided, undefined is used instead.
|
||||||
*/
|
*/
|
||||||
findLastIndex(predicate: (value: number, index: number, array: Int8Array) => unknown, thisArg?: any): number;
|
findLastIndex(
|
||||||
|
predicate: (value: number, index: number, array: Int8Array) => unknown,
|
||||||
|
thisArg?: any
|
||||||
|
): number;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Copies the array and returns the copy with the elements in reverse order.
|
||||||
|
*/
|
||||||
|
toReversed(): Uint8Array;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Copies and sorts the array.
|
||||||
|
* @param compareFn Function used to determine the order of the elements. It is expected to return
|
||||||
|
* a negative value if the first argument is less than the second argument, zero if they're equal, and a positive
|
||||||
|
* value otherwise. If omitted, the elements are sorted in ascending, ASCII character order.
|
||||||
|
* ```ts
|
||||||
|
* const myNums = Uint8Array.from([11, 2, 22, 1]);
|
||||||
|
* myNums.toSorted((a, b) => a - b) // Uint8Array(4) [1, 2, 11, 22]
|
||||||
|
* ```
|
||||||
|
*/
|
||||||
|
toSorted(compareFn?: (a: number, b: number) => number): Uint8Array;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Copies the array and inserts the given number at the provided index.
|
||||||
|
* @param index The index of the value to overwrite. If the index is
|
||||||
|
* negative, then it replaces from the end of the array.
|
||||||
|
* @param value The value to insert into the copied array.
|
||||||
|
* @returns A copy of the original array with the inserted value.
|
||||||
|
*/
|
||||||
|
with(index: number, value: number): Uint8Array;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface Uint8Array {
|
interface Uint8Array {
|
||||||
|
@ -101,8 +237,18 @@ interface Uint8Array {
|
||||||
* @param thisArg If provided, it will be used as the this value for each invocation of
|
* @param thisArg If provided, it will be used as the this value for each invocation of
|
||||||
* predicate. If it is not provided, undefined is used instead.
|
* predicate. If it is not provided, undefined is used instead.
|
||||||
*/
|
*/
|
||||||
findLast<S extends number>(predicate: (value: number, index: number, array: Uint8Array) => value is S, thisArg?: any): S | undefined;
|
findLast<S extends number>(
|
||||||
findLast(predicate: (value: number, index: number, array: Uint8Array) => unknown, thisArg?: any): number | undefined;
|
predicate: (
|
||||||
|
value: number,
|
||||||
|
index: number,
|
||||||
|
array: Uint8Array
|
||||||
|
) => value is S,
|
||||||
|
thisArg?: any
|
||||||
|
): S | undefined;
|
||||||
|
findLast(
|
||||||
|
predicate: (value: number, index: number, array: Uint8Array) => unknown,
|
||||||
|
thisArg?: any
|
||||||
|
): number | undefined;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the index of the last element in the array where predicate is true, and -1
|
* Returns the index of the last element in the array where predicate is true, and -1
|
||||||
|
@ -113,7 +259,36 @@ interface Uint8Array {
|
||||||
* @param thisArg If provided, it will be used as the this value for each invocation of
|
* @param thisArg If provided, it will be used as the this value for each invocation of
|
||||||
* predicate. If it is not provided, undefined is used instead.
|
* predicate. If it is not provided, undefined is used instead.
|
||||||
*/
|
*/
|
||||||
findLastIndex(predicate: (value: number, index: number, array: Uint8Array) => unknown, thisArg?: any): number;
|
findLastIndex(
|
||||||
|
predicate: (value: number, index: number, array: Uint8Array) => unknown,
|
||||||
|
thisArg?: any
|
||||||
|
): number;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Copies the array and returns the copy with the elements in reverse order.
|
||||||
|
*/
|
||||||
|
toReversed(): Uint8Array;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Copies and sorts the array.
|
||||||
|
* @param compareFn Function used to determine the order of the elements. It is expected to return
|
||||||
|
* a negative value if the first argument is less than the second argument, zero if they're equal, and a positive
|
||||||
|
* value otherwise. If omitted, the elements are sorted in ascending, ASCII character order.
|
||||||
|
* ```ts
|
||||||
|
* const myNums = Uint8Array.from([11, 2, 22, 1]);
|
||||||
|
* myNums.toSorted((a, b) => a - b) // Uint8Array(4) [1, 2, 11, 22]
|
||||||
|
* ```
|
||||||
|
*/
|
||||||
|
toSorted(compareFn?: (a: number, b: number) => number): Uint8Array;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Copies the array and inserts the given number at the provided index.
|
||||||
|
* @param index The index of the value to overwrite. If the index is
|
||||||
|
* negative, then it replaces from the end of the array.
|
||||||
|
* @param value The value to insert into the copied array.
|
||||||
|
* @returns A copy of the original array with the inserted value.
|
||||||
|
*/
|
||||||
|
with(index: number, value: number): Uint8Array;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface Uint8ClampedArray {
|
interface Uint8ClampedArray {
|
||||||
|
@ -126,8 +301,22 @@ interface Uint8ClampedArray {
|
||||||
* @param thisArg If provided, it will be used as the this value for each invocation of
|
* @param thisArg If provided, it will be used as the this value for each invocation of
|
||||||
* predicate. If it is not provided, undefined is used instead.
|
* predicate. If it is not provided, undefined is used instead.
|
||||||
*/
|
*/
|
||||||
findLast<S extends number>(predicate: (value: number, index: number, array: Uint8ClampedArray) => value is S, thisArg?: any): S | undefined;
|
findLast<S extends number>(
|
||||||
findLast(predicate: (value: number, index: number, array: Uint8ClampedArray) => unknown, thisArg?: any): number | undefined;
|
predicate: (
|
||||||
|
value: number,
|
||||||
|
index: number,
|
||||||
|
array: Uint8ClampedArray
|
||||||
|
) => value is S,
|
||||||
|
thisArg?: any
|
||||||
|
): S | undefined;
|
||||||
|
findLast(
|
||||||
|
predicate: (
|
||||||
|
value: number,
|
||||||
|
index: number,
|
||||||
|
array: Uint8ClampedArray
|
||||||
|
) => unknown,
|
||||||
|
thisArg?: any
|
||||||
|
): number | undefined;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the index of the last element in the array where predicate is true, and -1
|
* Returns the index of the last element in the array where predicate is true, and -1
|
||||||
|
@ -138,7 +327,40 @@ interface Uint8ClampedArray {
|
||||||
* @param thisArg If provided, it will be used as the this value for each invocation of
|
* @param thisArg If provided, it will be used as the this value for each invocation of
|
||||||
* predicate. If it is not provided, undefined is used instead.
|
* predicate. If it is not provided, undefined is used instead.
|
||||||
*/
|
*/
|
||||||
findLastIndex(predicate: (value: number, index: number, array: Uint8ClampedArray) => unknown, thisArg?: any): number;
|
findLastIndex(
|
||||||
|
predicate: (
|
||||||
|
value: number,
|
||||||
|
index: number,
|
||||||
|
array: Uint8ClampedArray
|
||||||
|
) => unknown,
|
||||||
|
thisArg?: any
|
||||||
|
): number;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Copies the array and returns the copy with the elements in reverse order.
|
||||||
|
*/
|
||||||
|
toReversed(): Uint8ClampedArray;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Copies and sorts the array.
|
||||||
|
* @param compareFn Function used to determine the order of the elements. It is expected to return
|
||||||
|
* a negative value if the first argument is less than the second argument, zero if they're equal, and a positive
|
||||||
|
* value otherwise. If omitted, the elements are sorted in ascending, ASCII character order.
|
||||||
|
* ```ts
|
||||||
|
* const myNums = Uint8ClampedArray.from([11, 2, 22, 1]);
|
||||||
|
* myNums.toSorted((a, b) => a - b) // Uint8ClampedArray(4) [1, 2, 11, 22]
|
||||||
|
* ```
|
||||||
|
*/
|
||||||
|
toSorted(compareFn?: (a: number, b: number) => number): Uint8ClampedArray;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Copies the array and inserts the given number at the provided index.
|
||||||
|
* @param index The index of the value to overwrite. If the index is
|
||||||
|
* negative, then it replaces from the end of the array.
|
||||||
|
* @param value The value to insert into the copied array.
|
||||||
|
* @returns A copy of the original array with the inserted value.
|
||||||
|
*/
|
||||||
|
with(index: number, value: number): Uint8ClampedArray;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface Int16Array {
|
interface Int16Array {
|
||||||
|
@ -151,8 +373,18 @@ interface Int16Array {
|
||||||
* @param thisArg If provided, it will be used as the this value for each invocation of
|
* @param thisArg If provided, it will be used as the this value for each invocation of
|
||||||
* predicate. If it is not provided, undefined is used instead.
|
* predicate. If it is not provided, undefined is used instead.
|
||||||
*/
|
*/
|
||||||
findLast<S extends number>(predicate: (value: number, index: number, array: Int16Array) => value is S, thisArg?: any): S | undefined;
|
findLast<S extends number>(
|
||||||
findLast(predicate: (value: number, index: number, array: Int16Array) => unknown, thisArg?: any): number | undefined;
|
predicate: (
|
||||||
|
value: number,
|
||||||
|
index: number,
|
||||||
|
array: Int16Array
|
||||||
|
) => value is S,
|
||||||
|
thisArg?: any
|
||||||
|
): S | undefined;
|
||||||
|
findLast(
|
||||||
|
predicate: (value: number, index: number, array: Int16Array) => unknown,
|
||||||
|
thisArg?: any
|
||||||
|
): number | undefined;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the index of the last element in the array where predicate is true, and -1
|
* Returns the index of the last element in the array where predicate is true, and -1
|
||||||
|
@ -163,7 +395,36 @@ interface Int16Array {
|
||||||
* @param thisArg If provided, it will be used as the this value for each invocation of
|
* @param thisArg If provided, it will be used as the this value for each invocation of
|
||||||
* predicate. If it is not provided, undefined is used instead.
|
* predicate. If it is not provided, undefined is used instead.
|
||||||
*/
|
*/
|
||||||
findLastIndex(predicate: (value: number, index: number, array: Int16Array) => unknown, thisArg?: any): number;
|
findLastIndex(
|
||||||
|
predicate: (value: number, index: number, array: Int16Array) => unknown,
|
||||||
|
thisArg?: any
|
||||||
|
): number;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Copies the array and returns the copy with the elements in reverse order.
|
||||||
|
*/
|
||||||
|
toReversed(): Int16Array;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Copies and sorts the array.
|
||||||
|
* @param compareFn Function used to determine the order of the elements. It is expected to return
|
||||||
|
* a negative value if the first argument is less than the second argument, zero if they're equal, and a positive
|
||||||
|
* value otherwise. If omitted, the elements are sorted in ascending, ASCII character order.
|
||||||
|
* ```ts
|
||||||
|
* const myNums = Int16Array.from([11, 2, -22, 1]);
|
||||||
|
* myNums.toSorted((a, b) => a - b) // Int16Array(4) [-22, 1, 2, 11]
|
||||||
|
* ```
|
||||||
|
*/
|
||||||
|
toSorted(compareFn?: (a: number, b: number) => number): Int16Array;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Copies the array and inserts the given number at the provided index.
|
||||||
|
* @param index The index of the value to overwrite. If the index is
|
||||||
|
* negative, then it replaces from the end of the array.
|
||||||
|
* @param value The value to insert into the copied array.
|
||||||
|
* @returns A copy of the original array with the inserted value.
|
||||||
|
*/
|
||||||
|
with(index: number, value: number): Int16Array;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface Uint16Array {
|
interface Uint16Array {
|
||||||
|
@ -176,8 +437,22 @@ interface Uint16Array {
|
||||||
* @param thisArg If provided, it will be used as the this value for each invocation of
|
* @param thisArg If provided, it will be used as the this value for each invocation of
|
||||||
* predicate. If it is not provided, undefined is used instead.
|
* predicate. If it is not provided, undefined is used instead.
|
||||||
*/
|
*/
|
||||||
findLast<S extends number>(predicate: (value: number, index: number, array: Uint16Array) => value is S, thisArg?: any): S | undefined;
|
findLast<S extends number>(
|
||||||
findLast(predicate: (value: number, index: number, array: Uint16Array) => unknown, thisArg?: any): number | undefined;
|
predicate: (
|
||||||
|
value: number,
|
||||||
|
index: number,
|
||||||
|
array: Uint16Array
|
||||||
|
) => value is S,
|
||||||
|
thisArg?: any
|
||||||
|
): S | undefined;
|
||||||
|
findLast(
|
||||||
|
predicate: (
|
||||||
|
value: number,
|
||||||
|
index: number,
|
||||||
|
array: Uint16Array
|
||||||
|
) => unknown,
|
||||||
|
thisArg?: any
|
||||||
|
): number | undefined;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the index of the last element in the array where predicate is true, and -1
|
* Returns the index of the last element in the array where predicate is true, and -1
|
||||||
|
@ -188,7 +463,40 @@ interface Uint16Array {
|
||||||
* @param thisArg If provided, it will be used as the this value for each invocation of
|
* @param thisArg If provided, it will be used as the this value for each invocation of
|
||||||
* predicate. If it is not provided, undefined is used instead.
|
* predicate. If it is not provided, undefined is used instead.
|
||||||
*/
|
*/
|
||||||
findLastIndex(predicate: (value: number, index: number, array: Uint16Array) => unknown, thisArg?: any): number;
|
findLastIndex(
|
||||||
|
predicate: (
|
||||||
|
value: number,
|
||||||
|
index: number,
|
||||||
|
array: Uint16Array
|
||||||
|
) => unknown,
|
||||||
|
thisArg?: any
|
||||||
|
): number;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Copies the array and returns the copy with the elements in reverse order.
|
||||||
|
*/
|
||||||
|
toReversed(): Uint16Array;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Copies and sorts the array.
|
||||||
|
* @param compareFn Function used to determine the order of the elements. It is expected to return
|
||||||
|
* a negative value if the first argument is less than the second argument, zero if they're equal, and a positive
|
||||||
|
* value otherwise. If omitted, the elements are sorted in ascending, ASCII character order.
|
||||||
|
* ```ts
|
||||||
|
* const myNums = Uint16Array.from([11, 2, 22, 1]);
|
||||||
|
* myNums.toSorted((a, b) => a - b) // Uint16Array(4) [1, 2, 11, 22]
|
||||||
|
* ```
|
||||||
|
*/
|
||||||
|
toSorted(compareFn?: (a: number, b: number) => number): Uint16Array;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Copies the array and inserts the given number at the provided index.
|
||||||
|
* @param index The index of the value to overwrite. If the index is
|
||||||
|
* negative, then it replaces from the end of the array.
|
||||||
|
* @param value The value to insert into the copied array.
|
||||||
|
* @returns A copy of the original array with the inserted value.
|
||||||
|
*/
|
||||||
|
with(index: number, value: number): Uint16Array;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface Int32Array {
|
interface Int32Array {
|
||||||
|
@ -201,8 +509,18 @@ interface Int32Array {
|
||||||
* @param thisArg If provided, it will be used as the this value for each invocation of
|
* @param thisArg If provided, it will be used as the this value for each invocation of
|
||||||
* predicate. If it is not provided, undefined is used instead.
|
* predicate. If it is not provided, undefined is used instead.
|
||||||
*/
|
*/
|
||||||
findLast<S extends number>(predicate: (value: number, index: number, array: Int32Array) => value is S, thisArg?: any): S | undefined;
|
findLast<S extends number>(
|
||||||
findLast(predicate: (value: number, index: number, array: Int32Array) => unknown, thisArg?: any): number | undefined;
|
predicate: (
|
||||||
|
value: number,
|
||||||
|
index: number,
|
||||||
|
array: Int32Array
|
||||||
|
) => value is S,
|
||||||
|
thisArg?: any
|
||||||
|
): S | undefined;
|
||||||
|
findLast(
|
||||||
|
predicate: (value: number, index: number, array: Int32Array) => unknown,
|
||||||
|
thisArg?: any
|
||||||
|
): number | undefined;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the index of the last element in the array where predicate is true, and -1
|
* Returns the index of the last element in the array where predicate is true, and -1
|
||||||
|
@ -213,7 +531,36 @@ interface Int32Array {
|
||||||
* @param thisArg If provided, it will be used as the this value for each invocation of
|
* @param thisArg If provided, it will be used as the this value for each invocation of
|
||||||
* predicate. If it is not provided, undefined is used instead.
|
* predicate. If it is not provided, undefined is used instead.
|
||||||
*/
|
*/
|
||||||
findLastIndex(predicate: (value: number, index: number, array: Int32Array) => unknown, thisArg?: any): number;
|
findLastIndex(
|
||||||
|
predicate: (value: number, index: number, array: Int32Array) => unknown,
|
||||||
|
thisArg?: any
|
||||||
|
): number;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Copies the array and returns the copy with the elements in reverse order.
|
||||||
|
*/
|
||||||
|
toReversed(): Int32Array;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Copies and sorts the array.
|
||||||
|
* @param compareFn Function used to determine the order of the elements. It is expected to return
|
||||||
|
* a negative value if the first argument is less than the second argument, zero if they're equal, and a positive
|
||||||
|
* value otherwise. If omitted, the elements are sorted in ascending, ASCII character order.
|
||||||
|
* ```ts
|
||||||
|
* const myNums = Int32Array.from([11, 2, -22, 1]);
|
||||||
|
* myNums.toSorted((a, b) => a - b) // Int32Array(4) [-22, 1, 2, 11]
|
||||||
|
* ```
|
||||||
|
*/
|
||||||
|
toSorted(compareFn?: (a: number, b: number) => number): Int32Array;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Copies the array and inserts the given number at the provided index.
|
||||||
|
* @param index The index of the value to overwrite. If the index is
|
||||||
|
* negative, then it replaces from the end of the array.
|
||||||
|
* @param value The value to insert into the copied array.
|
||||||
|
* @returns A copy of the original array with the inserted value.
|
||||||
|
*/
|
||||||
|
with(index: number, value: number): Int32Array;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface Uint32Array {
|
interface Uint32Array {
|
||||||
|
@ -226,8 +573,22 @@ interface Uint32Array {
|
||||||
* @param thisArg If provided, it will be used as the this value for each invocation of
|
* @param thisArg If provided, it will be used as the this value for each invocation of
|
||||||
* predicate. If it is not provided, undefined is used instead.
|
* predicate. If it is not provided, undefined is used instead.
|
||||||
*/
|
*/
|
||||||
findLast<S extends number>(predicate: (value: number, index: number, array: Uint32Array) => value is S, thisArg?: any): S | undefined;
|
findLast<S extends number>(
|
||||||
findLast(predicate: (value: number, index: number, array: Uint32Array) => unknown, thisArg?: any): number | undefined;
|
predicate: (
|
||||||
|
value: number,
|
||||||
|
index: number,
|
||||||
|
array: Uint32Array
|
||||||
|
) => value is S,
|
||||||
|
thisArg?: any
|
||||||
|
): S | undefined;
|
||||||
|
findLast(
|
||||||
|
predicate: (
|
||||||
|
value: number,
|
||||||
|
index: number,
|
||||||
|
array: Uint32Array
|
||||||
|
) => unknown,
|
||||||
|
thisArg?: any
|
||||||
|
): number | undefined;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the index of the last element in the array where predicate is true, and -1
|
* Returns the index of the last element in the array where predicate is true, and -1
|
||||||
|
@ -238,7 +599,40 @@ interface Uint32Array {
|
||||||
* @param thisArg If provided, it will be used as the this value for each invocation of
|
* @param thisArg If provided, it will be used as the this value for each invocation of
|
||||||
* predicate. If it is not provided, undefined is used instead.
|
* predicate. If it is not provided, undefined is used instead.
|
||||||
*/
|
*/
|
||||||
findLastIndex(predicate: (value: number, index: number, array: Uint32Array) => unknown, thisArg?: any): number;
|
findLastIndex(
|
||||||
|
predicate: (
|
||||||
|
value: number,
|
||||||
|
index: number,
|
||||||
|
array: Uint32Array
|
||||||
|
) => unknown,
|
||||||
|
thisArg?: any
|
||||||
|
): number;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Copies the array and returns the copy with the elements in reverse order.
|
||||||
|
*/
|
||||||
|
toReversed(): Uint32Array;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Copies and sorts the array.
|
||||||
|
* @param compareFn Function used to determine the order of the elements. It is expected to return
|
||||||
|
* a negative value if the first argument is less than the second argument, zero if they're equal, and a positive
|
||||||
|
* value otherwise. If omitted, the elements are sorted in ascending, ASCII character order.
|
||||||
|
* ```ts
|
||||||
|
* const myNums = Uint32Array.from([11, 2, 22, 1]);
|
||||||
|
* myNums.toSorted((a, b) => a - b) // Uint32Array(4) [1, 2, 11, 22]
|
||||||
|
* ```
|
||||||
|
*/
|
||||||
|
toSorted(compareFn?: (a: number, b: number) => number): Uint32Array;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Copies the array and inserts the given number at the provided index.
|
||||||
|
* @param index The index of the value to overwrite. If the index is
|
||||||
|
* negative, then it replaces from the end of the array.
|
||||||
|
* @param value The value to insert into the copied array.
|
||||||
|
* @returns A copy of the original array with the inserted value.
|
||||||
|
*/
|
||||||
|
with(index: number, value: number): Uint32Array;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface Float32Array {
|
interface Float32Array {
|
||||||
|
@ -251,8 +645,22 @@ interface Float32Array {
|
||||||
* @param thisArg If provided, it will be used as the this value for each invocation of
|
* @param thisArg If provided, it will be used as the this value for each invocation of
|
||||||
* predicate. If it is not provided, undefined is used instead.
|
* predicate. If it is not provided, undefined is used instead.
|
||||||
*/
|
*/
|
||||||
findLast<S extends number>(predicate: (value: number, index: number, array: Float32Array) => value is S, thisArg?: any): S | undefined;
|
findLast<S extends number>(
|
||||||
findLast(predicate: (value: number, index: number, array: Float32Array) => unknown, thisArg?: any): number | undefined;
|
predicate: (
|
||||||
|
value: number,
|
||||||
|
index: number,
|
||||||
|
array: Float32Array
|
||||||
|
) => value is S,
|
||||||
|
thisArg?: any
|
||||||
|
): S | undefined;
|
||||||
|
findLast(
|
||||||
|
predicate: (
|
||||||
|
value: number,
|
||||||
|
index: number,
|
||||||
|
array: Float32Array
|
||||||
|
) => unknown,
|
||||||
|
thisArg?: any
|
||||||
|
): number | undefined;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the index of the last element in the array where predicate is true, and -1
|
* Returns the index of the last element in the array where predicate is true, and -1
|
||||||
|
@ -263,7 +671,40 @@ interface Float32Array {
|
||||||
* @param thisArg If provided, it will be used as the this value for each invocation of
|
* @param thisArg If provided, it will be used as the this value for each invocation of
|
||||||
* predicate. If it is not provided, undefined is used instead.
|
* predicate. If it is not provided, undefined is used instead.
|
||||||
*/
|
*/
|
||||||
findLastIndex(predicate: (value: number, index: number, array: Float32Array) => unknown, thisArg?: any): number;
|
findLastIndex(
|
||||||
|
predicate: (
|
||||||
|
value: number,
|
||||||
|
index: number,
|
||||||
|
array: Float32Array
|
||||||
|
) => unknown,
|
||||||
|
thisArg?: any
|
||||||
|
): number;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Copies the array and returns the copy with the elements in reverse order.
|
||||||
|
*/
|
||||||
|
toReversed(): Float32Array;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Copies and sorts the array.
|
||||||
|
* @param compareFn Function used to determine the order of the elements. It is expected to return
|
||||||
|
* a negative value if the first argument is less than the second argument, zero if they're equal, and a positive
|
||||||
|
* value otherwise. If omitted, the elements are sorted in ascending, ASCII character order.
|
||||||
|
* ```ts
|
||||||
|
* const myNums = Float32Array.from([11.25, 2, -22.5, 1]);
|
||||||
|
* myNums.toSorted((a, b) => a - b) // Float32Array(4) [-22.5, 1, 2, 11.5]
|
||||||
|
* ```
|
||||||
|
*/
|
||||||
|
toSorted(compareFn?: (a: number, b: number) => number): Float32Array;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Copies the array and inserts the given number at the provided index.
|
||||||
|
* @param index The index of the value to overwrite. If the index is
|
||||||
|
* negative, then it replaces from the end of the array.
|
||||||
|
* @param value The value to insert into the copied array.
|
||||||
|
* @returns A copy of the original array with the inserted value.
|
||||||
|
*/
|
||||||
|
with(index: number, value: number): Float32Array;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface Float64Array {
|
interface Float64Array {
|
||||||
|
@ -276,8 +717,22 @@ interface Float64Array {
|
||||||
* @param thisArg If provided, it will be used as the this value for each invocation of
|
* @param thisArg If provided, it will be used as the this value for each invocation of
|
||||||
* predicate. If it is not provided, undefined is used instead.
|
* predicate. If it is not provided, undefined is used instead.
|
||||||
*/
|
*/
|
||||||
findLast<S extends number>(predicate: (value: number, index: number, array: Float64Array) => value is S, thisArg?: any): S | undefined;
|
findLast<S extends number>(
|
||||||
findLast(predicate: (value: number, index: number, array: Float64Array) => unknown, thisArg?: any): number | undefined;
|
predicate: (
|
||||||
|
value: number,
|
||||||
|
index: number,
|
||||||
|
array: Float64Array
|
||||||
|
) => value is S,
|
||||||
|
thisArg?: any
|
||||||
|
): S | undefined;
|
||||||
|
findLast(
|
||||||
|
predicate: (
|
||||||
|
value: number,
|
||||||
|
index: number,
|
||||||
|
array: Float64Array
|
||||||
|
) => unknown,
|
||||||
|
thisArg?: any
|
||||||
|
): number | undefined;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the index of the last element in the array where predicate is true, and -1
|
* Returns the index of the last element in the array where predicate is true, and -1
|
||||||
|
@ -288,7 +743,40 @@ interface Float64Array {
|
||||||
* @param thisArg If provided, it will be used as the this value for each invocation of
|
* @param thisArg If provided, it will be used as the this value for each invocation of
|
||||||
* predicate. If it is not provided, undefined is used instead.
|
* predicate. If it is not provided, undefined is used instead.
|
||||||
*/
|
*/
|
||||||
findLastIndex(predicate: (value: number, index: number, array: Float64Array) => unknown, thisArg?: any): number;
|
findLastIndex(
|
||||||
|
predicate: (
|
||||||
|
value: number,
|
||||||
|
index: number,
|
||||||
|
array: Float64Array
|
||||||
|
) => unknown,
|
||||||
|
thisArg?: any
|
||||||
|
): number;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Copies the array and returns the copy with the elements in reverse order.
|
||||||
|
*/
|
||||||
|
toReversed(): Float64Array;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Copies and sorts the array.
|
||||||
|
* @param compareFn Function used to determine the order of the elements. It is expected to return
|
||||||
|
* a negative value if the first argument is less than the second argument, zero if they're equal, and a positive
|
||||||
|
* value otherwise. If omitted, the elements are sorted in ascending, ASCII character order.
|
||||||
|
* ```ts
|
||||||
|
* const myNums = Float64Array.from([11.25, 2, -22.5, 1]);
|
||||||
|
* myNums.toSorted((a, b) => a - b) // Float64Array(4) [-22.5, 1, 2, 11.5]
|
||||||
|
* ```
|
||||||
|
*/
|
||||||
|
toSorted(compareFn?: (a: number, b: number) => number): Float64Array;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Copies the array and inserts the given number at the provided index.
|
||||||
|
* @param index The index of the value to overwrite. If the index is
|
||||||
|
* negative, then it replaces from the end of the array.
|
||||||
|
* @param value The value to insert into the copied array.
|
||||||
|
* @returns A copy of the original array with the inserted value.
|
||||||
|
*/
|
||||||
|
with(index: number, value: number): Float64Array;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface BigInt64Array {
|
interface BigInt64Array {
|
||||||
|
@ -301,8 +789,22 @@ interface BigInt64Array {
|
||||||
* @param thisArg If provided, it will be used as the this value for each invocation of
|
* @param thisArg If provided, it will be used as the this value for each invocation of
|
||||||
* predicate. If it is not provided, undefined is used instead.
|
* predicate. If it is not provided, undefined is used instead.
|
||||||
*/
|
*/
|
||||||
findLast<S extends bigint>(predicate: (value: bigint, index: number, array: BigInt64Array) => value is S, thisArg?: any): S | undefined;
|
findLast<S extends bigint>(
|
||||||
findLast(predicate: (value: bigint, index: number, array: BigInt64Array) => unknown, thisArg?: any): bigint | undefined;
|
predicate: (
|
||||||
|
value: bigint,
|
||||||
|
index: number,
|
||||||
|
array: BigInt64Array
|
||||||
|
) => value is S,
|
||||||
|
thisArg?: any
|
||||||
|
): S | undefined;
|
||||||
|
findLast(
|
||||||
|
predicate: (
|
||||||
|
value: bigint,
|
||||||
|
index: number,
|
||||||
|
array: BigInt64Array
|
||||||
|
) => unknown,
|
||||||
|
thisArg?: any
|
||||||
|
): bigint | undefined;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the index of the last element in the array where predicate is true, and -1
|
* Returns the index of the last element in the array where predicate is true, and -1
|
||||||
|
@ -313,7 +815,40 @@ interface BigInt64Array {
|
||||||
* @param thisArg If provided, it will be used as the this value for each invocation of
|
* @param thisArg If provided, it will be used as the this value for each invocation of
|
||||||
* predicate. If it is not provided, undefined is used instead.
|
* predicate. If it is not provided, undefined is used instead.
|
||||||
*/
|
*/
|
||||||
findLastIndex(predicate: (value: bigint, index: number, array: BigInt64Array) => unknown, thisArg?: any): number;
|
findLastIndex(
|
||||||
|
predicate: (
|
||||||
|
value: bigint,
|
||||||
|
index: number,
|
||||||
|
array: BigInt64Array
|
||||||
|
) => unknown,
|
||||||
|
thisArg?: any
|
||||||
|
): number;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Copies the array and returns the copy with the elements in reverse order.
|
||||||
|
*/
|
||||||
|
toReversed(): BigInt64Array;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Copies and sorts the array.
|
||||||
|
* @param compareFn Function used to determine the order of the elements. It is expected to return
|
||||||
|
* a negative value if the first argument is less than the second argument, zero if they're equal, and a positive
|
||||||
|
* value otherwise. If omitted, the elements are sorted in ascending, ASCII character order.
|
||||||
|
* ```ts
|
||||||
|
* const myNums = BigInt64Array.from([11n, 2n, -22n, 1n]);
|
||||||
|
* myNums.toSorted((a, b) => Number(a - b)) // BigInt64Array(4) [-22n, 1n, 2n, 11n]
|
||||||
|
* ```
|
||||||
|
*/
|
||||||
|
toSorted(compareFn?: (a: bigint, b: bigint) => number): BigInt64Array;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Copies the array and inserts the given bigint at the provided index.
|
||||||
|
* @param index The index of the value to overwrite. If the index is
|
||||||
|
* negative, then it replaces from the end of the array.
|
||||||
|
* @param value The value to insert into the copied array.
|
||||||
|
* @returns A copy of the original array with the inserted value.
|
||||||
|
*/
|
||||||
|
with(index: number, value: bigint): BigInt64Array;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface BigUint64Array {
|
interface BigUint64Array {
|
||||||
|
@ -326,8 +861,22 @@ interface BigUint64Array {
|
||||||
* @param thisArg If provided, it will be used as the this value for each invocation of
|
* @param thisArg If provided, it will be used as the this value for each invocation of
|
||||||
* predicate. If it is not provided, undefined is used instead.
|
* predicate. If it is not provided, undefined is used instead.
|
||||||
*/
|
*/
|
||||||
findLast<S extends bigint>(predicate: (value: bigint, index: number, array: BigUint64Array) => value is S, thisArg?: any): S | undefined;
|
findLast<S extends bigint>(
|
||||||
findLast(predicate: (value: bigint, index: number, array: BigUint64Array) => unknown, thisArg?: any): bigint | undefined;
|
predicate: (
|
||||||
|
value: bigint,
|
||||||
|
index: number,
|
||||||
|
array: BigUint64Array
|
||||||
|
) => value is S,
|
||||||
|
thisArg?: any
|
||||||
|
): S | undefined;
|
||||||
|
findLast(
|
||||||
|
predicate: (
|
||||||
|
value: bigint,
|
||||||
|
index: number,
|
||||||
|
array: BigUint64Array
|
||||||
|
) => unknown,
|
||||||
|
thisArg?: any
|
||||||
|
): bigint | undefined;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the index of the last element in the array where predicate is true, and -1
|
* Returns the index of the last element in the array where predicate is true, and -1
|
||||||
|
@ -338,5 +887,38 @@ interface BigUint64Array {
|
||||||
* @param thisArg If provided, it will be used as the this value for each invocation of
|
* @param thisArg If provided, it will be used as the this value for each invocation of
|
||||||
* predicate. If it is not provided, undefined is used instead.
|
* predicate. If it is not provided, undefined is used instead.
|
||||||
*/
|
*/
|
||||||
findLastIndex(predicate: (value: bigint, index: number, array: BigUint64Array) => unknown, thisArg?: any): number;
|
findLastIndex(
|
||||||
|
predicate: (
|
||||||
|
value: bigint,
|
||||||
|
index: number,
|
||||||
|
array: BigUint64Array
|
||||||
|
) => unknown,
|
||||||
|
thisArg?: any
|
||||||
|
): number;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Copies the array and returns the copy with the elements in reverse order.
|
||||||
|
*/
|
||||||
|
toReversed(): BigUint64Array;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Copies and sorts the array.
|
||||||
|
* @param compareFn Function used to determine the order of the elements. It is expected to return
|
||||||
|
* a negative value if the first argument is less than the second argument, zero if they're equal, and a positive
|
||||||
|
* value otherwise. If omitted, the elements are sorted in ascending, ASCII character order.
|
||||||
|
* ```ts
|
||||||
|
* const myNums = BigUint64Array.from([11n, 2n, 22n, 1n]);
|
||||||
|
* myNums.toSorted((a, b) => Number(a - b)) // BigUint64Array(4) [1n, 2n, 11n, 22n]
|
||||||
|
* ```
|
||||||
|
*/
|
||||||
|
toSorted(compareFn?: (a: bigint, b: bigint) => number): BigUint64Array;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Copies the array and inserts the given bigint at the provided index.
|
||||||
|
* @param index The index of the value to overwrite. If the index is
|
||||||
|
* negative, then it replaces from the end of the array.
|
||||||
|
* @param value The value to insert into the copied array.
|
||||||
|
* @returns A copy of the original array with the inserted value.
|
||||||
|
*/
|
||||||
|
with(index: number, value: bigint): BigUint64Array;
|
||||||
}
|
}
|
||||||
|
|
21
cli/tsc/dts/lib.es2023.collection.d.ts
vendored
Normal file
21
cli/tsc/dts/lib.es2023.collection.d.ts
vendored
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
/*! *****************************************************************************
|
||||||
|
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 WeakKeyTypes {
|
||||||
|
symbol: symbol;
|
||||||
|
}
|
1
cli/tsc/dts/lib.es2023.d.ts
vendored
1
cli/tsc/dts/lib.es2023.d.ts
vendored
|
@ -18,3 +18,4 @@ and limitations under the License.
|
||||||
|
|
||||||
/// <reference lib="es2022" />
|
/// <reference lib="es2022" />
|
||||||
/// <reference lib="es2023.array" />
|
/// <reference lib="es2023.array" />
|
||||||
|
/// <reference lib="es2023.collection" />
|
||||||
|
|
45
cli/tsc/dts/lib.es5.d.ts
vendored
45
cli/tsc/dts/lib.es5.d.ts
vendored
|
@ -1666,6 +1666,15 @@ type Uncapitalize<S extends string> = intrinsic;
|
||||||
*/
|
*/
|
||||||
interface ThisType<T> { }
|
interface ThisType<T> { }
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Stores types to be used with WeakSet, WeakMap, WeakRef, and FinalizationRegistry
|
||||||
|
*/
|
||||||
|
interface WeakKeyTypes {
|
||||||
|
object: object;
|
||||||
|
}
|
||||||
|
|
||||||
|
type WeakKey = WeakKeyTypes[keyof WeakKeyTypes];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Represents a raw buffer of binary data, which is used to store data for the
|
* Represents a raw buffer of binary data, which is used to store data for the
|
||||||
* different typed arrays. ArrayBuffers cannot be read from or written to directly,
|
* different typed arrays. ArrayBuffers cannot be read from or written to directly,
|
||||||
|
@ -1881,10 +1890,10 @@ interface Int8Array {
|
||||||
* @param target If target is negative, it is treated as length+target where length is the
|
* @param target If target is negative, it is treated as length+target where length is the
|
||||||
* length of the array.
|
* length of the array.
|
||||||
* @param start If start is negative, it is treated as length+start. If end is negative, it
|
* @param start If start is negative, it is treated as length+start. If end is negative, it
|
||||||
* is treated as length+end. If start is omitted, `0` is used.
|
* is treated as length+end.
|
||||||
* @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;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Determines whether all the members of an array satisfy the specified test.
|
* Determines whether all the members of an array satisfy the specified test.
|
||||||
|
@ -2163,10 +2172,10 @@ interface Uint8Array {
|
||||||
* @param target If target is negative, it is treated as length+target where length is the
|
* @param target If target is negative, it is treated as length+target where length is the
|
||||||
* length of the array.
|
* length of the array.
|
||||||
* @param start If start is negative, it is treated as length+start. If end is negative, it
|
* @param start If start is negative, it is treated as length+start. If end is negative, it
|
||||||
* is treated as length+end. If start is omitted, `0` is used.
|
* is treated as length+end.
|
||||||
* @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;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Determines whether all the members of an array satisfy the specified test.
|
* Determines whether all the members of an array satisfy the specified test.
|
||||||
|
@ -2445,10 +2454,10 @@ interface Uint8ClampedArray {
|
||||||
* @param target If target is negative, it is treated as length+target where length is the
|
* @param target If target is negative, it is treated as length+target where length is the
|
||||||
* length of the array.
|
* length of the array.
|
||||||
* @param start If start is negative, it is treated as length+start. If end is negative, it
|
* @param start If start is negative, it is treated as length+start. If end is negative, it
|
||||||
* is treated as length+end. If start is omitted, `0` is used.
|
* is treated as length+end.
|
||||||
* @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;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Determines whether all the members of an array satisfy the specified test.
|
* Determines whether all the members of an array satisfy the specified test.
|
||||||
|
@ -2726,10 +2735,10 @@ interface Int16Array {
|
||||||
* @param target If target is negative, it is treated as length+target where length is the
|
* @param target If target is negative, it is treated as length+target where length is the
|
||||||
* length of the array.
|
* length of the array.
|
||||||
* @param start If start is negative, it is treated as length+start. If end is negative, it
|
* @param start If start is negative, it is treated as length+start. If end is negative, it
|
||||||
* is treated as length+end. If start is omitted, `0` is used.
|
* is treated as length+end.
|
||||||
* @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;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Determines whether all the members of an array satisfy the specified test.
|
* Determines whether all the members of an array satisfy the specified test.
|
||||||
|
@ -3008,10 +3017,10 @@ interface Uint16Array {
|
||||||
* @param target If target is negative, it is treated as length+target where length is the
|
* @param target If target is negative, it is treated as length+target where length is the
|
||||||
* length of the array.
|
* length of the array.
|
||||||
* @param start If start is negative, it is treated as length+start. If end is negative, it
|
* @param start If start is negative, it is treated as length+start. If end is negative, it
|
||||||
* is treated as length+end. If start is omitted, `0` is used.
|
* is treated as length+end.
|
||||||
* @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;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Determines whether all the members of an array satisfy the specified test.
|
* Determines whether all the members of an array satisfy the specified test.
|
||||||
|
@ -3290,10 +3299,10 @@ interface Int32Array {
|
||||||
* @param target If target is negative, it is treated as length+target where length is the
|
* @param target If target is negative, it is treated as length+target where length is the
|
||||||
* length of the array.
|
* length of the array.
|
||||||
* @param start If start is negative, it is treated as length+start. If end is negative, it
|
* @param start If start is negative, it is treated as length+start. If end is negative, it
|
||||||
* is treated as length+end. If start is omitted, `0` is used.
|
* is treated as length+end.
|
||||||
* @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;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Determines whether all the members of an array satisfy the specified test.
|
* Determines whether all the members of an array satisfy the specified test.
|
||||||
|
@ -3572,10 +3581,10 @@ interface Uint32Array {
|
||||||
* @param target If target is negative, it is treated as length+target where length is the
|
* @param target If target is negative, it is treated as length+target where length is the
|
||||||
* length of the array.
|
* length of the array.
|
||||||
* @param start If start is negative, it is treated as length+start. If end is negative, it
|
* @param start If start is negative, it is treated as length+start. If end is negative, it
|
||||||
* is treated as length+end. If start is omitted, `0` is used.
|
* is treated as length+end.
|
||||||
* @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;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Determines whether all the members of an array satisfy the specified test.
|
* Determines whether all the members of an array satisfy the specified test.
|
||||||
|
@ -3853,10 +3862,10 @@ interface Float32Array {
|
||||||
* @param target If target is negative, it is treated as length+target where length is the
|
* @param target If target is negative, it is treated as length+target where length is the
|
||||||
* length of the array.
|
* length of the array.
|
||||||
* @param start If start is negative, it is treated as length+start. If end is negative, it
|
* @param start If start is negative, it is treated as length+start. If end is negative, it
|
||||||
* is treated as length+end. If start is omitted, `0` is used.
|
* is treated as length+end.
|
||||||
* @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;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Determines whether all the members of an array satisfy the specified test.
|
* Determines whether all the members of an array satisfy the specified test.
|
||||||
|
@ -4136,10 +4145,10 @@ interface Float64Array {
|
||||||
* @param target If target is negative, it is treated as length+target where length is the
|
* @param target If target is negative, it is treated as length+target where length is the
|
||||||
* length of the array.
|
* length of the array.
|
||||||
* @param start If start is negative, it is treated as length+start. If end is negative, it
|
* @param start If start is negative, it is treated as length+start. If end is negative, it
|
||||||
* is treated as length+end. If start is omitted, `0` is used.
|
* is treated as length+end.
|
||||||
* @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;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Determines whether all the members of an array satisfy the specified test.
|
* Determines whether all the members of an array satisfy the specified test.
|
||||||
|
|
2
cli/tsc/dts/lib.esnext.d.ts
vendored
2
cli/tsc/dts/lib.esnext.d.ts
vendored
|
@ -19,3 +19,5 @@ and limitations under the License.
|
||||||
/// <reference lib="es2023" />
|
/// <reference lib="es2023" />
|
||||||
/// <reference lib="esnext.array" />
|
/// <reference lib="esnext.array" />
|
||||||
/// <reference lib="esnext.intl" />
|
/// <reference lib="esnext.intl" />
|
||||||
|
/// <reference lib="esnext.decorators" />
|
||||||
|
/// <reference lib="esnext.disposable" />
|
||||||
|
|
28
cli/tsc/dts/lib.esnext.decorators.d.ts
vendored
Normal file
28
cli/tsc/dts/lib.esnext.decorators.d.ts
vendored
Normal file
|
@ -0,0 +1,28 @@
|
||||||
|
/*! *****************************************************************************
|
||||||
|
Copyright (c) Microsoft Corporation. All rights reserved.
|
||||||
|
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
||||||
|
this file except in compliance with the License. You may obtain a copy of the
|
||||||
|
License at http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
|
||||||
|
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||||
|
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
||||||
|
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
||||||
|
MERCHANTABLITY OR NON-INFRINGEMENT.
|
||||||
|
|
||||||
|
See the Apache Version 2.0 License for specific language governing permissions
|
||||||
|
and limitations under the License.
|
||||||
|
***************************************************************************** */
|
||||||
|
|
||||||
|
|
||||||
|
/// <reference no-default-lib="true"/>
|
||||||
|
|
||||||
|
/// <reference lib="es2015.symbol" />
|
||||||
|
/// <reference lib="decorators" />
|
||||||
|
|
||||||
|
interface SymbolConstructor {
|
||||||
|
readonly metadata: unique symbol;
|
||||||
|
}
|
||||||
|
|
||||||
|
interface Function {
|
||||||
|
[Symbol.metadata]: DecoratorMetadata | null;
|
||||||
|
}
|
185
cli/tsc/dts/lib.esnext.disposable.d.ts
vendored
Normal file
185
cli/tsc/dts/lib.esnext.disposable.d.ts
vendored
Normal file
|
@ -0,0 +1,185 @@
|
||||||
|
/*! *****************************************************************************
|
||||||
|
Copyright (c) Microsoft Corporation. All rights reserved.
|
||||||
|
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
||||||
|
this file except in compliance with the License. You may obtain a copy of the
|
||||||
|
License at http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
|
||||||
|
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||||
|
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
||||||
|
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
||||||
|
MERCHANTABLITY OR NON-INFRINGEMENT.
|
||||||
|
|
||||||
|
See the Apache Version 2.0 License for specific language governing permissions
|
||||||
|
and limitations under the License.
|
||||||
|
***************************************************************************** */
|
||||||
|
|
||||||
|
|
||||||
|
/// <reference no-default-lib="true"/>
|
||||||
|
|
||||||
|
/// <reference lib="es2015.symbol" />
|
||||||
|
|
||||||
|
interface SymbolConstructor {
|
||||||
|
/**
|
||||||
|
* A method that is used to release resources held by an object. Called by the semantics of the `using` statement.
|
||||||
|
*/
|
||||||
|
readonly dispose: unique symbol;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* A method that is used to asynchronously release resources held by an object. Called by the semantics of the `await using` statement.
|
||||||
|
*/
|
||||||
|
readonly asyncDispose: unique symbol;
|
||||||
|
}
|
||||||
|
|
||||||
|
interface Disposable {
|
||||||
|
[Symbol.dispose](): void;
|
||||||
|
}
|
||||||
|
|
||||||
|
interface AsyncDisposable {
|
||||||
|
[Symbol.asyncDispose](): PromiseLike<void>;
|
||||||
|
}
|
||||||
|
|
||||||
|
interface SuppressedError extends Error {
|
||||||
|
error: any;
|
||||||
|
suppressed: any;
|
||||||
|
}
|
||||||
|
|
||||||
|
interface SuppressedErrorConstructor extends ErrorConstructor {
|
||||||
|
new (error: any, suppressed: any, message?: string): SuppressedError;
|
||||||
|
(error: any, suppressed: any, message?: string): SuppressedError;
|
||||||
|
readonly prototype: SuppressedError;
|
||||||
|
}
|
||||||
|
declare var SuppressedError: SuppressedErrorConstructor;
|
||||||
|
|
||||||
|
interface DisposableStack {
|
||||||
|
/**
|
||||||
|
* Returns a value indicating whether this stack has been disposed.
|
||||||
|
*/
|
||||||
|
readonly disposed: boolean;
|
||||||
|
/**
|
||||||
|
* Disposes each resource in the stack in the reverse order that they were added.
|
||||||
|
*/
|
||||||
|
dispose(): void;
|
||||||
|
/**
|
||||||
|
* Adds a disposable resource to the stack, returning the resource.
|
||||||
|
* @param value The resource to add. `null` and `undefined` will not be added, but will be returned.
|
||||||
|
* @returns The provided {@link value}.
|
||||||
|
*/
|
||||||
|
use<T extends Disposable | null | undefined>(value: T): T;
|
||||||
|
/**
|
||||||
|
* Adds a value and associated disposal callback as a resource to the stack.
|
||||||
|
* @param value The value to add.
|
||||||
|
* @param onDispose The callback to use in place of a `[Symbol.dispose]()` method. Will be invoked with `value`
|
||||||
|
* as the first parameter.
|
||||||
|
* @returns The provided {@link value}.
|
||||||
|
*/
|
||||||
|
adopt<T>(value: T, onDispose: (value: T) => void): T;
|
||||||
|
/**
|
||||||
|
* Adds a callback to be invoked when the stack is disposed.
|
||||||
|
*/
|
||||||
|
defer(onDispose: () => void): void;
|
||||||
|
/**
|
||||||
|
* Move all resources out of this stack and into a new `DisposableStack`, and marks this stack as disposed.
|
||||||
|
* @example
|
||||||
|
* ```ts
|
||||||
|
* class C {
|
||||||
|
* #res1: Disposable;
|
||||||
|
* #res2: Disposable;
|
||||||
|
* #disposables: DisposableStack;
|
||||||
|
* constructor() {
|
||||||
|
* // stack will be disposed when exiting constructor for any reason
|
||||||
|
* using stack = new DisposableStack();
|
||||||
|
*
|
||||||
|
* // get first resource
|
||||||
|
* this.#res1 = stack.use(getResource1());
|
||||||
|
*
|
||||||
|
* // get second resource. If this fails, both `stack` and `#res1` will be disposed.
|
||||||
|
* this.#res2 = stack.use(getResource2());
|
||||||
|
*
|
||||||
|
* // all operations succeeded, move resources out of `stack` so that they aren't disposed
|
||||||
|
* // when constructor exits
|
||||||
|
* this.#disposables = stack.move();
|
||||||
|
* }
|
||||||
|
*
|
||||||
|
* [Symbol.dispose]() {
|
||||||
|
* this.#disposables.dispose();
|
||||||
|
* }
|
||||||
|
* }
|
||||||
|
* ```
|
||||||
|
*/
|
||||||
|
move(): DisposableStack;
|
||||||
|
[Symbol.dispose](): void;
|
||||||
|
readonly [Symbol.toStringTag]: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
interface DisposableStackConstructor {
|
||||||
|
new(): DisposableStack;
|
||||||
|
readonly prototype: DisposableStack;
|
||||||
|
}
|
||||||
|
declare var DisposableStack: DisposableStackConstructor;
|
||||||
|
|
||||||
|
interface AsyncDisposableStack {
|
||||||
|
/**
|
||||||
|
* Returns a value indicating whether this stack has been disposed.
|
||||||
|
*/
|
||||||
|
readonly disposed: boolean;
|
||||||
|
/**
|
||||||
|
* Disposes each resource in the stack in the reverse order that they were added.
|
||||||
|
*/
|
||||||
|
disposeAsync(): Promise<void>;
|
||||||
|
/**
|
||||||
|
* Adds a disposable resource to the stack, returning the resource.
|
||||||
|
* @param value The resource to add. `null` and `undefined` will not be added, but will be returned.
|
||||||
|
* @returns The provided {@link value}.
|
||||||
|
*/
|
||||||
|
use<T extends AsyncDisposable | Disposable | null | undefined>(value: T): T;
|
||||||
|
/**
|
||||||
|
* Adds a value and associated disposal callback as a resource to the stack.
|
||||||
|
* @param value The value to add.
|
||||||
|
* @param onDisposeAsync The callback to use in place of a `[Symbol.asyncDispose]()` method. Will be invoked with `value`
|
||||||
|
* as the first parameter.
|
||||||
|
* @returns The provided {@link value}.
|
||||||
|
*/
|
||||||
|
adopt<T>(value: T, onDisposeAsync: (value: T) => PromiseLike<void> | void): T;
|
||||||
|
/**
|
||||||
|
* Adds a callback to be invoked when the stack is disposed.
|
||||||
|
*/
|
||||||
|
defer(onDisposeAsync: () => PromiseLike<void> | void): void;
|
||||||
|
/**
|
||||||
|
* Move all resources out of this stack and into a new `DisposableStack`, and marks this stack as disposed.
|
||||||
|
* @example
|
||||||
|
* ```ts
|
||||||
|
* class C {
|
||||||
|
* #res1: Disposable;
|
||||||
|
* #res2: Disposable;
|
||||||
|
* #disposables: DisposableStack;
|
||||||
|
* constructor() {
|
||||||
|
* // stack will be disposed when exiting constructor for any reason
|
||||||
|
* using stack = new DisposableStack();
|
||||||
|
*
|
||||||
|
* // get first resource
|
||||||
|
* this.#res1 = stack.use(getResource1());
|
||||||
|
*
|
||||||
|
* // get second resource. If this fails, both `stack` and `#res1` will be disposed.
|
||||||
|
* this.#res2 = stack.use(getResource2());
|
||||||
|
*
|
||||||
|
* // all operations succeeded, move resources out of `stack` so that they aren't disposed
|
||||||
|
* // when constructor exits
|
||||||
|
* this.#disposables = stack.move();
|
||||||
|
* }
|
||||||
|
*
|
||||||
|
* [Symbol.dispose]() {
|
||||||
|
* this.#disposables.dispose();
|
||||||
|
* }
|
||||||
|
* }
|
||||||
|
* ```
|
||||||
|
*/
|
||||||
|
move(): AsyncDisposableStack;
|
||||||
|
[Symbol.asyncDispose](): Promise<void>;
|
||||||
|
readonly [Symbol.toStringTag]: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
interface AsyncDisposableStackConstructor {
|
||||||
|
new(): AsyncDisposableStack;
|
||||||
|
readonly prototype: AsyncDisposableStack;
|
||||||
|
}
|
||||||
|
declare var AsyncDisposableStack: AsyncDisposableStackConstructor;
|
205
cli/tsc/dts/lib.webworker.d.ts
vendored
205
cli/tsc/dts/lib.webworker.d.ts
vendored
|
@ -454,7 +454,7 @@ interface NotificationOptions {
|
||||||
lang?: string;
|
lang?: string;
|
||||||
renotify?: boolean;
|
renotify?: boolean;
|
||||||
requireInteraction?: boolean;
|
requireInteraction?: boolean;
|
||||||
silent?: boolean;
|
silent?: boolean | null;
|
||||||
tag?: string;
|
tag?: string;
|
||||||
timestamp?: EpochTimeStamp;
|
timestamp?: EpochTimeStamp;
|
||||||
vibrate?: VibratePattern;
|
vibrate?: VibratePattern;
|
||||||
|
@ -539,7 +539,6 @@ interface RTCEncodedAudioFrameMetadata {
|
||||||
}
|
}
|
||||||
|
|
||||||
interface RTCEncodedVideoFrameMetadata {
|
interface RTCEncodedVideoFrameMetadata {
|
||||||
contributingSources?: number[];
|
|
||||||
dependencies?: number[];
|
dependencies?: number[];
|
||||||
frameId?: number;
|
frameId?: number;
|
||||||
height?: number;
|
height?: number;
|
||||||
|
@ -709,8 +708,8 @@ interface TextDecoderOptions {
|
||||||
}
|
}
|
||||||
|
|
||||||
interface TextEncoderEncodeIntoResult {
|
interface TextEncoderEncodeIntoResult {
|
||||||
read?: number;
|
read: number;
|
||||||
written?: number;
|
written: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface Transformer<I = any, O = any> {
|
interface Transformer<I = any, O = any> {
|
||||||
|
@ -866,6 +865,32 @@ interface WebGLContextEventInit extends EventInit {
|
||||||
statusMessage?: string;
|
statusMessage?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
interface WebTransportCloseInfo {
|
||||||
|
closeCode?: number;
|
||||||
|
reason?: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
interface WebTransportErrorOptions {
|
||||||
|
source?: WebTransportErrorSource;
|
||||||
|
streamErrorCode?: number | null;
|
||||||
|
}
|
||||||
|
|
||||||
|
interface WebTransportHash {
|
||||||
|
algorithm?: string;
|
||||||
|
value?: BufferSource;
|
||||||
|
}
|
||||||
|
|
||||||
|
interface WebTransportOptions {
|
||||||
|
allowPooling?: boolean;
|
||||||
|
congestionControl?: WebTransportCongestionControl;
|
||||||
|
requireUnreliable?: boolean;
|
||||||
|
serverCertificateHashes?: WebTransportHash[];
|
||||||
|
}
|
||||||
|
|
||||||
|
interface WebTransportSendStreamOptions {
|
||||||
|
sendOrder?: number | null;
|
||||||
|
}
|
||||||
|
|
||||||
interface WorkerOptions {
|
interface WorkerOptions {
|
||||||
credentials?: RequestCredentials;
|
credentials?: RequestCredentials;
|
||||||
name?: string;
|
name?: string;
|
||||||
|
@ -950,9 +975,9 @@ interface AbortSignal extends EventTarget {
|
||||||
declare var AbortSignal: {
|
declare var AbortSignal: {
|
||||||
prototype: AbortSignal;
|
prototype: AbortSignal;
|
||||||
new(): AbortSignal;
|
new(): AbortSignal;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/abort) */
|
/** [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/timeout) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/timeout_static) */
|
||||||
timeout(milliseconds: number): AbortSignal;
|
timeout(milliseconds: number): AbortSignal;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -1633,6 +1658,8 @@ interface CanvasShadowStyles {
|
||||||
}
|
}
|
||||||
|
|
||||||
interface CanvasState {
|
interface CanvasState {
|
||||||
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/reset) */
|
||||||
|
reset(): void;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/restore) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/restore) */
|
||||||
restore(): void;
|
restore(): void;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/save) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/save) */
|
||||||
|
@ -2083,7 +2110,7 @@ interface DOMPoint extends DOMPointReadOnly {
|
||||||
declare var DOMPoint: {
|
declare var DOMPoint: {
|
||||||
prototype: DOMPoint;
|
prototype: DOMPoint;
|
||||||
new(x?: number, y?: number, z?: number, w?: number): DOMPoint;
|
new(x?: number, y?: number, z?: number, w?: number): DOMPoint;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPoint/fromPoint) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPoint/fromPoint_static) */
|
||||||
fromPoint(other?: DOMPointInit): DOMPoint;
|
fromPoint(other?: DOMPointInit): DOMPoint;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -2106,7 +2133,7 @@ interface DOMPointReadOnly {
|
||||||
declare var DOMPointReadOnly: {
|
declare var DOMPointReadOnly: {
|
||||||
prototype: DOMPointReadOnly;
|
prototype: DOMPointReadOnly;
|
||||||
new(x?: number, y?: number, z?: number, w?: number): DOMPointReadOnly;
|
new(x?: number, y?: number, z?: number, w?: number): DOMPointReadOnly;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/fromPoint) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/fromPoint_static) */
|
||||||
fromPoint(other?: DOMPointInit): DOMPointReadOnly;
|
fromPoint(other?: DOMPointInit): DOMPointReadOnly;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -2170,7 +2197,7 @@ interface DOMRectReadOnly {
|
||||||
declare var DOMRectReadOnly: {
|
declare var DOMRectReadOnly: {
|
||||||
prototype: DOMRectReadOnly;
|
prototype: DOMRectReadOnly;
|
||||||
new(x?: number, y?: number, width?: number, height?: number): DOMRectReadOnly;
|
new(x?: number, y?: number, width?: number, height?: number): DOMRectReadOnly;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/fromRect) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/fromRect_static) */
|
||||||
fromRect(other?: DOMRectInit): DOMRectReadOnly;
|
fromRect(other?: DOMRectInit): DOMRectReadOnly;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -2878,11 +2905,11 @@ interface FileSystemSyncAccessHandle {
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemSyncAccessHandle/getSize) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemSyncAccessHandle/getSize) */
|
||||||
getSize(): number;
|
getSize(): number;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemSyncAccessHandle/read) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemSyncAccessHandle/read) */
|
||||||
read(buffer: BufferSource, options?: FileSystemReadWriteOptions): number;
|
read(buffer: AllowSharedBufferSource, options?: FileSystemReadWriteOptions): number;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemSyncAccessHandle/truncate) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemSyncAccessHandle/truncate) */
|
||||||
truncate(newSize: number): void;
|
truncate(newSize: number): void;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemSyncAccessHandle/write) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemSyncAccessHandle/write) */
|
||||||
write(buffer: BufferSource, options?: FileSystemReadWriteOptions): number;
|
write(buffer: AllowSharedBufferSource, options?: FileSystemReadWriteOptions): number;
|
||||||
}
|
}
|
||||||
|
|
||||||
declare var FileSystemSyncAccessHandle: {
|
declare var FileSystemSyncAccessHandle: {
|
||||||
|
@ -3045,6 +3072,8 @@ interface Headers {
|
||||||
delete(name: string): void;
|
delete(name: string): void;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers/get) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers/get) */
|
||||||
get(name: string): string | null;
|
get(name: string): string | null;
|
||||||
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers/getSetCookie) */
|
||||||
|
getSetCookie(): string[];
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers/has) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers/has) */
|
||||||
has(name: string): boolean;
|
has(name: string): boolean;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers/set) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers/set) */
|
||||||
|
@ -3393,25 +3422,25 @@ declare var IDBKeyRange: {
|
||||||
/**
|
/**
|
||||||
* Returns a new IDBKeyRange spanning from lower to upper. If lowerOpen is true, lower is not included in the range. If upperOpen is true, upper is not included in the range.
|
* Returns a new IDBKeyRange spanning from lower to upper. If lowerOpen is true, lower is not included in the range. If upperOpen is true, upper is not included in the range.
|
||||||
*
|
*
|
||||||
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/bound)
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/bound_static)
|
||||||
*/
|
*/
|
||||||
bound(lower: any, upper: any, lowerOpen?: boolean, upperOpen?: boolean): IDBKeyRange;
|
bound(lower: any, upper: any, lowerOpen?: boolean, upperOpen?: boolean): IDBKeyRange;
|
||||||
/**
|
/**
|
||||||
* Returns a new IDBKeyRange starting at key with no upper bound. If open is true, key is not included in the range.
|
* Returns a new IDBKeyRange starting at key with no upper bound. If open is true, key is not included in the range.
|
||||||
*
|
*
|
||||||
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/lowerBound)
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/lowerBound_static)
|
||||||
*/
|
*/
|
||||||
lowerBound(lower: any, open?: boolean): IDBKeyRange;
|
lowerBound(lower: any, open?: boolean): IDBKeyRange;
|
||||||
/**
|
/**
|
||||||
* Returns a new IDBKeyRange spanning only key.
|
* Returns a new IDBKeyRange spanning only key.
|
||||||
*
|
*
|
||||||
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/only)
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/only_static)
|
||||||
*/
|
*/
|
||||||
only(value: any): IDBKeyRange;
|
only(value: any): IDBKeyRange;
|
||||||
/**
|
/**
|
||||||
* Returns a new IDBKeyRange with no lower bound and ending at key. If open is true, key is not included in the range.
|
* Returns a new IDBKeyRange with no lower bound and ending at key. If open is true, key is not included in the range.
|
||||||
*
|
*
|
||||||
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/upperBound)
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/upperBound_static)
|
||||||
*/
|
*/
|
||||||
upperBound(upper: any, open?: boolean): IDBKeyRange;
|
upperBound(upper: any, open?: boolean): IDBKeyRange;
|
||||||
};
|
};
|
||||||
|
@ -4111,6 +4140,8 @@ interface Notification extends EventTarget {
|
||||||
onerror: ((this: Notification, ev: Event) => any) | null;
|
onerror: ((this: Notification, ev: Event) => any) | null;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/show_event) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/show_event) */
|
||||||
onshow: ((this: Notification, ev: Event) => any) | null;
|
onshow: ((this: Notification, ev: Event) => any) | null;
|
||||||
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/silent) */
|
||||||
|
readonly silent: boolean | null;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/tag) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/tag) */
|
||||||
readonly tag: string;
|
readonly tag: string;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/title) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/title) */
|
||||||
|
@ -4126,7 +4157,7 @@ interface Notification extends EventTarget {
|
||||||
declare var Notification: {
|
declare var Notification: {
|
||||||
prototype: Notification;
|
prototype: Notification;
|
||||||
new(title: string, options?: NotificationOptions): Notification;
|
new(title: string, options?: NotificationOptions): Notification;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/permission) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/permission_static) */
|
||||||
readonly permission: NotificationPermission;
|
readonly permission: NotificationPermission;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -4450,7 +4481,7 @@ interface PerformanceObserver {
|
||||||
declare var PerformanceObserver: {
|
declare var PerformanceObserver: {
|
||||||
prototype: PerformanceObserver;
|
prototype: PerformanceObserver;
|
||||||
new(callback: PerformanceObserverCallback): PerformanceObserver;
|
new(callback: PerformanceObserverCallback): PerformanceObserver;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserver/supportedEntryTypes) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserver/supportedEntryTypes_static) */
|
||||||
readonly supportedEntryTypes: ReadonlyArray<string>;
|
readonly supportedEntryTypes: ReadonlyArray<string>;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -4638,7 +4669,7 @@ interface PushManager {
|
||||||
declare var PushManager: {
|
declare var PushManager: {
|
||||||
prototype: PushManager;
|
prototype: PushManager;
|
||||||
new(): PushManager;
|
new(): PushManager;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushManager/supportedContentEncodings) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushManager/supportedContentEncodings_static) */
|
||||||
readonly supportedContentEncodings: ReadonlyArray<string>;
|
readonly supportedContentEncodings: ReadonlyArray<string>;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -5004,9 +5035,11 @@ interface Response extends Body {
|
||||||
declare var Response: {
|
declare var Response: {
|
||||||
prototype: Response;
|
prototype: Response;
|
||||||
new(body?: BodyInit | null, init?: ResponseInit): Response;
|
new(body?: BodyInit | null, init?: ResponseInit): Response;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/error) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/error_static) */
|
||||||
error(): Response;
|
error(): Response;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/redirect) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/json_static) */
|
||||||
|
json(data: any, init?: ResponseInit): Response;
|
||||||
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/redirect_static) */
|
||||||
redirect(url: string | URL, status?: number): Response;
|
redirect(url: string | URL, status?: number): Response;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -5097,7 +5130,6 @@ interface ServiceWorkerContainer extends EventTarget {
|
||||||
oncontrollerchange: ((this: ServiceWorkerContainer, ev: Event) => any) | null;
|
oncontrollerchange: ((this: ServiceWorkerContainer, ev: Event) => any) | null;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/message_event) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/message_event) */
|
||||||
onmessage: ((this: ServiceWorkerContainer, ev: MessageEvent) => any) | null;
|
onmessage: ((this: ServiceWorkerContainer, ev: MessageEvent) => any) | null;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/messageerror_event) */
|
|
||||||
onmessageerror: ((this: ServiceWorkerContainer, ev: MessageEvent) => any) | null;
|
onmessageerror: ((this: ServiceWorkerContainer, ev: MessageEvent) => any) | null;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/ready) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/ready) */
|
||||||
readonly ready: Promise<ServiceWorkerRegistration>;
|
readonly ready: Promise<ServiceWorkerRegistration>;
|
||||||
|
@ -5351,7 +5383,7 @@ interface TextDecoder extends TextDecoderCommon {
|
||||||
*
|
*
|
||||||
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextDecoder/decode)
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextDecoder/decode)
|
||||||
*/
|
*/
|
||||||
decode(input?: BufferSource, options?: TextDecodeOptions): string;
|
decode(input?: AllowSharedBufferSource, options?: TextDecodeOptions): string;
|
||||||
}
|
}
|
||||||
|
|
||||||
declare var TextDecoder: {
|
declare var TextDecoder: {
|
||||||
|
@ -5560,15 +5592,17 @@ declare var URL: {
|
||||||
prototype: URL;
|
prototype: URL;
|
||||||
new(url: string | URL, base?: string | URL): URL;
|
new(url: string | URL, base?: string | URL): URL;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/canParse_static) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/canParse_static) */
|
||||||
canParse(url: string | URL, base?: string | URL): boolean;
|
canParse(url: string | URL, base?: string): boolean;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/createObjectURL) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/createObjectURL_static) */
|
||||||
createObjectURL(obj: Blob): string;
|
createObjectURL(obj: Blob): string;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/revokeObjectURL) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/revokeObjectURL_static) */
|
||||||
revokeObjectURL(url: string): void;
|
revokeObjectURL(url: string): void;
|
||||||
};
|
};
|
||||||
|
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams) */
|
||||||
interface URLSearchParams {
|
interface URLSearchParams {
|
||||||
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/size) */
|
||||||
|
readonly size: number;
|
||||||
/**
|
/**
|
||||||
* Appends a specified key/value pair as a new search parameter.
|
* Appends a specified key/value pair as a new search parameter.
|
||||||
*
|
*
|
||||||
|
@ -5580,7 +5614,7 @@ interface URLSearchParams {
|
||||||
*
|
*
|
||||||
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/delete)
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/delete)
|
||||||
*/
|
*/
|
||||||
delete(name: string): void;
|
delete(name: string, value?: string): void;
|
||||||
/**
|
/**
|
||||||
* Returns the first value associated to the given search parameter.
|
* Returns the first value associated to the given search parameter.
|
||||||
*
|
*
|
||||||
|
@ -5598,7 +5632,7 @@ interface URLSearchParams {
|
||||||
*
|
*
|
||||||
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/has)
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/has)
|
||||||
*/
|
*/
|
||||||
has(name: string): boolean;
|
has(name: string, value?: string): boolean;
|
||||||
/**
|
/**
|
||||||
* Sets the value associated to a given search parameter to the given value. If there were several values, delete the others.
|
* Sets the value associated to a given search parameter to the given value. If there were several values, delete the others.
|
||||||
*
|
*
|
||||||
|
@ -8199,6 +8233,96 @@ declare var WebSocket: {
|
||||||
readonly CLOSED: 3;
|
readonly CLOSED: 3;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Available only in secure contexts.
|
||||||
|
*
|
||||||
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport)
|
||||||
|
*/
|
||||||
|
interface WebTransport {
|
||||||
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/closed) */
|
||||||
|
readonly closed: Promise<WebTransportCloseInfo>;
|
||||||
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/datagrams) */
|
||||||
|
readonly datagrams: WebTransportDatagramDuplexStream;
|
||||||
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/incomingBidirectionalStreams) */
|
||||||
|
readonly incomingBidirectionalStreams: ReadableStream;
|
||||||
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/incomingUnidirectionalStreams) */
|
||||||
|
readonly incomingUnidirectionalStreams: ReadableStream;
|
||||||
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/ready) */
|
||||||
|
readonly ready: Promise<undefined>;
|
||||||
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/close) */
|
||||||
|
close(closeInfo?: WebTransportCloseInfo): void;
|
||||||
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/createBidirectionalStream) */
|
||||||
|
createBidirectionalStream(options?: WebTransportSendStreamOptions): Promise<WebTransportBidirectionalStream>;
|
||||||
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/createUnidirectionalStream) */
|
||||||
|
createUnidirectionalStream(options?: WebTransportSendStreamOptions): Promise<WritableStream>;
|
||||||
|
}
|
||||||
|
|
||||||
|
declare var WebTransport: {
|
||||||
|
prototype: WebTransport;
|
||||||
|
new(url: string | URL, options?: WebTransportOptions): WebTransport;
|
||||||
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Available only in secure contexts.
|
||||||
|
*
|
||||||
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportBidirectionalStream)
|
||||||
|
*/
|
||||||
|
interface WebTransportBidirectionalStream {
|
||||||
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportBidirectionalStream/readable) */
|
||||||
|
readonly readable: ReadableStream;
|
||||||
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportBidirectionalStream/writable) */
|
||||||
|
readonly writable: WritableStream;
|
||||||
|
}
|
||||||
|
|
||||||
|
declare var WebTransportBidirectionalStream: {
|
||||||
|
prototype: WebTransportBidirectionalStream;
|
||||||
|
new(): WebTransportBidirectionalStream;
|
||||||
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Available only in secure contexts.
|
||||||
|
*
|
||||||
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream)
|
||||||
|
*/
|
||||||
|
interface WebTransportDatagramDuplexStream {
|
||||||
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/incomingHighWaterMark) */
|
||||||
|
incomingHighWaterMark: number;
|
||||||
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/incomingMaxAge) */
|
||||||
|
incomingMaxAge: number;
|
||||||
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/maxDatagramSize) */
|
||||||
|
readonly maxDatagramSize: number;
|
||||||
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/outgoingHighWaterMark) */
|
||||||
|
outgoingHighWaterMark: number;
|
||||||
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/outgoingMaxAge) */
|
||||||
|
outgoingMaxAge: number;
|
||||||
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/readable) */
|
||||||
|
readonly readable: ReadableStream;
|
||||||
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/writable) */
|
||||||
|
readonly writable: WritableStream;
|
||||||
|
}
|
||||||
|
|
||||||
|
declare var WebTransportDatagramDuplexStream: {
|
||||||
|
prototype: WebTransportDatagramDuplexStream;
|
||||||
|
new(): WebTransportDatagramDuplexStream;
|
||||||
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Available only in secure contexts.
|
||||||
|
*
|
||||||
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportError)
|
||||||
|
*/
|
||||||
|
interface WebTransportError extends DOMException {
|
||||||
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportError/source) */
|
||||||
|
readonly source: WebTransportErrorSource;
|
||||||
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportError/streamErrorCode) */
|
||||||
|
readonly streamErrorCode: number | null;
|
||||||
|
}
|
||||||
|
|
||||||
|
declare var WebTransportError: {
|
||||||
|
prototype: WebTransportError;
|
||||||
|
new(message?: string, options?: WebTransportErrorOptions): WebTransportError;
|
||||||
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This ServiceWorker API interface represents the scope of a service worker client that is a document in a browser context, controlled by an active worker. The service worker client independently selects and uses a service worker for its own loading and sub-resources.
|
* This ServiceWorker API interface represents the scope of a service worker client that is a document in a browser context, controlled by an active worker. The service worker client independently selects and uses a service worker for its own loading and sub-resources.
|
||||||
*
|
*
|
||||||
|
@ -8720,16 +8844,16 @@ declare namespace WebAssembly {
|
||||||
};
|
};
|
||||||
|
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Global) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Global) */
|
||||||
interface Global {
|
interface Global<T extends ValueType = ValueType> {
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Global/value) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Global/value) */
|
||||||
value: any;
|
value: ValueTypeMap[T];
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Global/valueOf) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Global/valueOf) */
|
||||||
valueOf(): any;
|
valueOf(): ValueTypeMap[T];
|
||||||
}
|
}
|
||||||
|
|
||||||
var Global: {
|
var Global: {
|
||||||
prototype: Global;
|
prototype: Global;
|
||||||
new(descriptor: GlobalDescriptor, v?: any): Global;
|
new<T extends ValueType = ValueType>(descriptor: GlobalDescriptor<T>, v?: ValueTypeMap[T]): Global<T>;
|
||||||
};
|
};
|
||||||
|
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Instance) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Instance) */
|
||||||
|
@ -8806,9 +8930,9 @@ declare namespace WebAssembly {
|
||||||
new(descriptor: TableDescriptor, value?: any): Table;
|
new(descriptor: TableDescriptor, value?: any): Table;
|
||||||
};
|
};
|
||||||
|
|
||||||
interface GlobalDescriptor {
|
interface GlobalDescriptor<T extends ValueType = ValueType> {
|
||||||
mutable?: boolean;
|
mutable?: boolean;
|
||||||
value: ValueType;
|
value: T;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface MemoryDescriptor {
|
interface MemoryDescriptor {
|
||||||
|
@ -8834,6 +8958,16 @@ declare namespace WebAssembly {
|
||||||
maximum?: number;
|
maximum?: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
interface ValueTypeMap {
|
||||||
|
anyfunc: Function;
|
||||||
|
externref: any;
|
||||||
|
f32: number;
|
||||||
|
f64: number;
|
||||||
|
i32: number;
|
||||||
|
i64: bigint;
|
||||||
|
v128: never;
|
||||||
|
}
|
||||||
|
|
||||||
interface WebAssemblyInstantiatedSource {
|
interface WebAssemblyInstantiatedSource {
|
||||||
instance: Instance;
|
instance: Instance;
|
||||||
module: Module;
|
module: Module;
|
||||||
|
@ -8841,12 +8975,12 @@ declare namespace WebAssembly {
|
||||||
|
|
||||||
type ImportExportKind = "function" | "global" | "memory" | "table";
|
type ImportExportKind = "function" | "global" | "memory" | "table";
|
||||||
type TableKind = "anyfunc" | "externref";
|
type TableKind = "anyfunc" | "externref";
|
||||||
type ValueType = "anyfunc" | "externref" | "f32" | "f64" | "i32" | "i64" | "v128";
|
|
||||||
type ExportValue = Function | Global | Memory | Table;
|
type ExportValue = Function | Global | Memory | Table;
|
||||||
type Exports = Record<string, ExportValue>;
|
type Exports = Record<string, ExportValue>;
|
||||||
type ImportValue = ExportValue | number;
|
type ImportValue = ExportValue | number;
|
||||||
type Imports = Record<string, ModuleImports>;
|
type Imports = Record<string, ModuleImports>;
|
||||||
type ModuleImports = Record<string, ImportValue>;
|
type ModuleImports = Record<string, ImportValue>;
|
||||||
|
type ValueType = keyof ValueTypeMap;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/compile) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/compile) */
|
||||||
function compile(bytes: BufferSource): Promise<Module>;
|
function compile(bytes: BufferSource): Promise<Module>;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/compileStreaming) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/compileStreaming) */
|
||||||
|
@ -9059,6 +9193,7 @@ declare function addEventListener(type: string, listener: EventListenerOrEventLi
|
||||||
declare function removeEventListener<K extends keyof DedicatedWorkerGlobalScopeEventMap>(type: K, listener: (this: DedicatedWorkerGlobalScope, ev: DedicatedWorkerGlobalScopeEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
declare function removeEventListener<K extends keyof DedicatedWorkerGlobalScopeEventMap>(type: K, listener: (this: DedicatedWorkerGlobalScope, ev: DedicatedWorkerGlobalScopeEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
||||||
declare function removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
declare function removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
||||||
type AlgorithmIdentifier = Algorithm | string;
|
type AlgorithmIdentifier = Algorithm | string;
|
||||||
|
type AllowSharedBufferSource = ArrayBuffer | ArrayBufferView;
|
||||||
type BigInteger = Uint8Array;
|
type BigInteger = Uint8Array;
|
||||||
type BinaryData = ArrayBuffer | ArrayBufferView;
|
type BinaryData = ArrayBuffer | ArrayBufferView;
|
||||||
type BlobPart = BufferSource | Blob | string;
|
type BlobPart = BufferSource | Blob | string;
|
||||||
|
@ -9182,6 +9317,8 @@ type VideoMatrixCoefficients = "bt470bg" | "bt709" | "rgb" | "smpte170m";
|
||||||
type VideoPixelFormat = "BGRA" | "BGRX" | "I420" | "I420A" | "I422" | "I444" | "NV12" | "RGBA" | "RGBX";
|
type VideoPixelFormat = "BGRA" | "BGRX" | "I420" | "I420A" | "I422" | "I444" | "NV12" | "RGBA" | "RGBX";
|
||||||
type VideoTransferCharacteristics = "bt709" | "iec61966-2-1" | "smpte170m";
|
type VideoTransferCharacteristics = "bt709" | "iec61966-2-1" | "smpte170m";
|
||||||
type WebGLPowerPreference = "default" | "high-performance" | "low-power";
|
type WebGLPowerPreference = "default" | "high-performance" | "low-power";
|
||||||
|
type WebTransportCongestionControl = "default" | "low-latency" | "throughput";
|
||||||
|
type WebTransportErrorSource = "session" | "stream";
|
||||||
type WorkerType = "classic" | "module";
|
type WorkerType = "classic" | "module";
|
||||||
type WriteCommandType = "seek" | "truncate" | "write";
|
type WriteCommandType = "seek" | "truncate" | "write";
|
||||||
type XMLHttpRequestResponseType = "" | "arraybuffer" | "blob" | "document" | "json" | "text";
|
type XMLHttpRequestResponseType = "" | "arraybuffer" | "blob" | "document" | "json" | "text";
|
||||||
|
|
522
cli/tsc/dts/typescript.d.ts
vendored
522
cli/tsc/dts/typescript.d.ts
vendored
|
@ -46,7 +46,7 @@ declare namespace ts {
|
||||||
subPath: string | undefined;
|
subPath: string | undefined;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
const versionMajorMinor = "5.1";
|
const versionMajorMinor = "5.2";
|
||||||
/** The version of the TypeScript compiler release */
|
/** The version of the TypeScript compiler release */
|
||||||
const version: string;
|
const version: string;
|
||||||
/**
|
/**
|
||||||
|
@ -236,211 +236,212 @@ declare namespace ts {
|
||||||
UndefinedKeyword = 157,
|
UndefinedKeyword = 157,
|
||||||
UniqueKeyword = 158,
|
UniqueKeyword = 158,
|
||||||
UnknownKeyword = 159,
|
UnknownKeyword = 159,
|
||||||
FromKeyword = 160,
|
UsingKeyword = 160,
|
||||||
GlobalKeyword = 161,
|
FromKeyword = 161,
|
||||||
BigIntKeyword = 162,
|
GlobalKeyword = 162,
|
||||||
OverrideKeyword = 163,
|
BigIntKeyword = 163,
|
||||||
OfKeyword = 164,
|
OverrideKeyword = 164,
|
||||||
QualifiedName = 165,
|
OfKeyword = 165,
|
||||||
ComputedPropertyName = 166,
|
QualifiedName = 166,
|
||||||
TypeParameter = 167,
|
ComputedPropertyName = 167,
|
||||||
Parameter = 168,
|
TypeParameter = 168,
|
||||||
Decorator = 169,
|
Parameter = 169,
|
||||||
PropertySignature = 170,
|
Decorator = 170,
|
||||||
PropertyDeclaration = 171,
|
PropertySignature = 171,
|
||||||
MethodSignature = 172,
|
PropertyDeclaration = 172,
|
||||||
MethodDeclaration = 173,
|
MethodSignature = 173,
|
||||||
ClassStaticBlockDeclaration = 174,
|
MethodDeclaration = 174,
|
||||||
Constructor = 175,
|
ClassStaticBlockDeclaration = 175,
|
||||||
GetAccessor = 176,
|
Constructor = 176,
|
||||||
SetAccessor = 177,
|
GetAccessor = 177,
|
||||||
CallSignature = 178,
|
SetAccessor = 178,
|
||||||
ConstructSignature = 179,
|
CallSignature = 179,
|
||||||
IndexSignature = 180,
|
ConstructSignature = 180,
|
||||||
TypePredicate = 181,
|
IndexSignature = 181,
|
||||||
TypeReference = 182,
|
TypePredicate = 182,
|
||||||
FunctionType = 183,
|
TypeReference = 183,
|
||||||
ConstructorType = 184,
|
FunctionType = 184,
|
||||||
TypeQuery = 185,
|
ConstructorType = 185,
|
||||||
TypeLiteral = 186,
|
TypeQuery = 186,
|
||||||
ArrayType = 187,
|
TypeLiteral = 187,
|
||||||
TupleType = 188,
|
ArrayType = 188,
|
||||||
OptionalType = 189,
|
TupleType = 189,
|
||||||
RestType = 190,
|
OptionalType = 190,
|
||||||
UnionType = 191,
|
RestType = 191,
|
||||||
IntersectionType = 192,
|
UnionType = 192,
|
||||||
ConditionalType = 193,
|
IntersectionType = 193,
|
||||||
InferType = 194,
|
ConditionalType = 194,
|
||||||
ParenthesizedType = 195,
|
InferType = 195,
|
||||||
ThisType = 196,
|
ParenthesizedType = 196,
|
||||||
TypeOperator = 197,
|
ThisType = 197,
|
||||||
IndexedAccessType = 198,
|
TypeOperator = 198,
|
||||||
MappedType = 199,
|
IndexedAccessType = 199,
|
||||||
LiteralType = 200,
|
MappedType = 200,
|
||||||
NamedTupleMember = 201,
|
LiteralType = 201,
|
||||||
TemplateLiteralType = 202,
|
NamedTupleMember = 202,
|
||||||
TemplateLiteralTypeSpan = 203,
|
TemplateLiteralType = 203,
|
||||||
ImportType = 204,
|
TemplateLiteralTypeSpan = 204,
|
||||||
ObjectBindingPattern = 205,
|
ImportType = 205,
|
||||||
ArrayBindingPattern = 206,
|
ObjectBindingPattern = 206,
|
||||||
BindingElement = 207,
|
ArrayBindingPattern = 207,
|
||||||
ArrayLiteralExpression = 208,
|
BindingElement = 208,
|
||||||
ObjectLiteralExpression = 209,
|
ArrayLiteralExpression = 209,
|
||||||
PropertyAccessExpression = 210,
|
ObjectLiteralExpression = 210,
|
||||||
ElementAccessExpression = 211,
|
PropertyAccessExpression = 211,
|
||||||
CallExpression = 212,
|
ElementAccessExpression = 212,
|
||||||
NewExpression = 213,
|
CallExpression = 213,
|
||||||
TaggedTemplateExpression = 214,
|
NewExpression = 214,
|
||||||
TypeAssertionExpression = 215,
|
TaggedTemplateExpression = 215,
|
||||||
ParenthesizedExpression = 216,
|
TypeAssertionExpression = 216,
|
||||||
FunctionExpression = 217,
|
ParenthesizedExpression = 217,
|
||||||
ArrowFunction = 218,
|
FunctionExpression = 218,
|
||||||
DeleteExpression = 219,
|
ArrowFunction = 219,
|
||||||
TypeOfExpression = 220,
|
DeleteExpression = 220,
|
||||||
VoidExpression = 221,
|
TypeOfExpression = 221,
|
||||||
AwaitExpression = 222,
|
VoidExpression = 222,
|
||||||
PrefixUnaryExpression = 223,
|
AwaitExpression = 223,
|
||||||
PostfixUnaryExpression = 224,
|
PrefixUnaryExpression = 224,
|
||||||
BinaryExpression = 225,
|
PostfixUnaryExpression = 225,
|
||||||
ConditionalExpression = 226,
|
BinaryExpression = 226,
|
||||||
TemplateExpression = 227,
|
ConditionalExpression = 227,
|
||||||
YieldExpression = 228,
|
TemplateExpression = 228,
|
||||||
SpreadElement = 229,
|
YieldExpression = 229,
|
||||||
ClassExpression = 230,
|
SpreadElement = 230,
|
||||||
OmittedExpression = 231,
|
ClassExpression = 231,
|
||||||
ExpressionWithTypeArguments = 232,
|
OmittedExpression = 232,
|
||||||
AsExpression = 233,
|
ExpressionWithTypeArguments = 233,
|
||||||
NonNullExpression = 234,
|
AsExpression = 234,
|
||||||
MetaProperty = 235,
|
NonNullExpression = 235,
|
||||||
SyntheticExpression = 236,
|
MetaProperty = 236,
|
||||||
SatisfiesExpression = 237,
|
SyntheticExpression = 237,
|
||||||
TemplateSpan = 238,
|
SatisfiesExpression = 238,
|
||||||
SemicolonClassElement = 239,
|
TemplateSpan = 239,
|
||||||
Block = 240,
|
SemicolonClassElement = 240,
|
||||||
EmptyStatement = 241,
|
Block = 241,
|
||||||
VariableStatement = 242,
|
EmptyStatement = 242,
|
||||||
ExpressionStatement = 243,
|
VariableStatement = 243,
|
||||||
IfStatement = 244,
|
ExpressionStatement = 244,
|
||||||
DoStatement = 245,
|
IfStatement = 245,
|
||||||
WhileStatement = 246,
|
DoStatement = 246,
|
||||||
ForStatement = 247,
|
WhileStatement = 247,
|
||||||
ForInStatement = 248,
|
ForStatement = 248,
|
||||||
ForOfStatement = 249,
|
ForInStatement = 249,
|
||||||
ContinueStatement = 250,
|
ForOfStatement = 250,
|
||||||
BreakStatement = 251,
|
ContinueStatement = 251,
|
||||||
ReturnStatement = 252,
|
BreakStatement = 252,
|
||||||
WithStatement = 253,
|
ReturnStatement = 253,
|
||||||
SwitchStatement = 254,
|
WithStatement = 254,
|
||||||
LabeledStatement = 255,
|
SwitchStatement = 255,
|
||||||
ThrowStatement = 256,
|
LabeledStatement = 256,
|
||||||
TryStatement = 257,
|
ThrowStatement = 257,
|
||||||
DebuggerStatement = 258,
|
TryStatement = 258,
|
||||||
VariableDeclaration = 259,
|
DebuggerStatement = 259,
|
||||||
VariableDeclarationList = 260,
|
VariableDeclaration = 260,
|
||||||
FunctionDeclaration = 261,
|
VariableDeclarationList = 261,
|
||||||
ClassDeclaration = 262,
|
FunctionDeclaration = 262,
|
||||||
InterfaceDeclaration = 263,
|
ClassDeclaration = 263,
|
||||||
TypeAliasDeclaration = 264,
|
InterfaceDeclaration = 264,
|
||||||
EnumDeclaration = 265,
|
TypeAliasDeclaration = 265,
|
||||||
ModuleDeclaration = 266,
|
EnumDeclaration = 266,
|
||||||
ModuleBlock = 267,
|
ModuleDeclaration = 267,
|
||||||
CaseBlock = 268,
|
ModuleBlock = 268,
|
||||||
NamespaceExportDeclaration = 269,
|
CaseBlock = 269,
|
||||||
ImportEqualsDeclaration = 270,
|
NamespaceExportDeclaration = 270,
|
||||||
ImportDeclaration = 271,
|
ImportEqualsDeclaration = 271,
|
||||||
ImportClause = 272,
|
ImportDeclaration = 272,
|
||||||
NamespaceImport = 273,
|
ImportClause = 273,
|
||||||
NamedImports = 274,
|
NamespaceImport = 274,
|
||||||
ImportSpecifier = 275,
|
NamedImports = 275,
|
||||||
ExportAssignment = 276,
|
ImportSpecifier = 276,
|
||||||
ExportDeclaration = 277,
|
ExportAssignment = 277,
|
||||||
NamedExports = 278,
|
ExportDeclaration = 278,
|
||||||
NamespaceExport = 279,
|
NamedExports = 279,
|
||||||
ExportSpecifier = 280,
|
NamespaceExport = 280,
|
||||||
MissingDeclaration = 281,
|
ExportSpecifier = 281,
|
||||||
ExternalModuleReference = 282,
|
MissingDeclaration = 282,
|
||||||
JsxElement = 283,
|
ExternalModuleReference = 283,
|
||||||
JsxSelfClosingElement = 284,
|
JsxElement = 284,
|
||||||
JsxOpeningElement = 285,
|
JsxSelfClosingElement = 285,
|
||||||
JsxClosingElement = 286,
|
JsxOpeningElement = 286,
|
||||||
JsxFragment = 287,
|
JsxClosingElement = 287,
|
||||||
JsxOpeningFragment = 288,
|
JsxFragment = 288,
|
||||||
JsxClosingFragment = 289,
|
JsxOpeningFragment = 289,
|
||||||
JsxAttribute = 290,
|
JsxClosingFragment = 290,
|
||||||
JsxAttributes = 291,
|
JsxAttribute = 291,
|
||||||
JsxSpreadAttribute = 292,
|
JsxAttributes = 292,
|
||||||
JsxExpression = 293,
|
JsxSpreadAttribute = 293,
|
||||||
JsxNamespacedName = 294,
|
JsxExpression = 294,
|
||||||
CaseClause = 295,
|
JsxNamespacedName = 295,
|
||||||
DefaultClause = 296,
|
CaseClause = 296,
|
||||||
HeritageClause = 297,
|
DefaultClause = 297,
|
||||||
CatchClause = 298,
|
HeritageClause = 298,
|
||||||
AssertClause = 299,
|
CatchClause = 299,
|
||||||
AssertEntry = 300,
|
AssertClause = 300,
|
||||||
ImportTypeAssertionContainer = 301,
|
AssertEntry = 301,
|
||||||
PropertyAssignment = 302,
|
ImportTypeAssertionContainer = 302,
|
||||||
ShorthandPropertyAssignment = 303,
|
PropertyAssignment = 303,
|
||||||
SpreadAssignment = 304,
|
ShorthandPropertyAssignment = 304,
|
||||||
EnumMember = 305,
|
SpreadAssignment = 305,
|
||||||
/** @deprecated */ UnparsedPrologue = 306,
|
EnumMember = 306,
|
||||||
/** @deprecated */ UnparsedPrepend = 307,
|
/** @deprecated */ UnparsedPrologue = 307,
|
||||||
/** @deprecated */ UnparsedText = 308,
|
/** @deprecated */ UnparsedPrepend = 308,
|
||||||
/** @deprecated */ UnparsedInternalText = 309,
|
/** @deprecated */ UnparsedText = 309,
|
||||||
/** @deprecated */ UnparsedSyntheticReference = 310,
|
/** @deprecated */ UnparsedInternalText = 310,
|
||||||
SourceFile = 311,
|
/** @deprecated */ UnparsedSyntheticReference = 311,
|
||||||
Bundle = 312,
|
SourceFile = 312,
|
||||||
/** @deprecated */ UnparsedSource = 313,
|
Bundle = 313,
|
||||||
/** @deprecated */ InputFiles = 314,
|
/** @deprecated */ UnparsedSource = 314,
|
||||||
JSDocTypeExpression = 315,
|
/** @deprecated */ InputFiles = 315,
|
||||||
JSDocNameReference = 316,
|
JSDocTypeExpression = 316,
|
||||||
JSDocMemberName = 317,
|
JSDocNameReference = 317,
|
||||||
JSDocAllType = 318,
|
JSDocMemberName = 318,
|
||||||
JSDocUnknownType = 319,
|
JSDocAllType = 319,
|
||||||
JSDocNullableType = 320,
|
JSDocUnknownType = 320,
|
||||||
JSDocNonNullableType = 321,
|
JSDocNullableType = 321,
|
||||||
JSDocOptionalType = 322,
|
JSDocNonNullableType = 322,
|
||||||
JSDocFunctionType = 323,
|
JSDocOptionalType = 323,
|
||||||
JSDocVariadicType = 324,
|
JSDocFunctionType = 324,
|
||||||
JSDocNamepathType = 325,
|
JSDocVariadicType = 325,
|
||||||
JSDoc = 326,
|
JSDocNamepathType = 326,
|
||||||
|
JSDoc = 327,
|
||||||
/** @deprecated Use SyntaxKind.JSDoc */
|
/** @deprecated Use SyntaxKind.JSDoc */
|
||||||
JSDocComment = 326,
|
JSDocComment = 327,
|
||||||
JSDocText = 327,
|
JSDocText = 328,
|
||||||
JSDocTypeLiteral = 328,
|
JSDocTypeLiteral = 329,
|
||||||
JSDocSignature = 329,
|
JSDocSignature = 330,
|
||||||
JSDocLink = 330,
|
JSDocLink = 331,
|
||||||
JSDocLinkCode = 331,
|
JSDocLinkCode = 332,
|
||||||
JSDocLinkPlain = 332,
|
JSDocLinkPlain = 333,
|
||||||
JSDocTag = 333,
|
JSDocTag = 334,
|
||||||
JSDocAugmentsTag = 334,
|
JSDocAugmentsTag = 335,
|
||||||
JSDocImplementsTag = 335,
|
JSDocImplementsTag = 336,
|
||||||
JSDocAuthorTag = 336,
|
JSDocAuthorTag = 337,
|
||||||
JSDocDeprecatedTag = 337,
|
JSDocDeprecatedTag = 338,
|
||||||
JSDocClassTag = 338,
|
JSDocClassTag = 339,
|
||||||
JSDocPublicTag = 339,
|
JSDocPublicTag = 340,
|
||||||
JSDocPrivateTag = 340,
|
JSDocPrivateTag = 341,
|
||||||
JSDocProtectedTag = 341,
|
JSDocProtectedTag = 342,
|
||||||
JSDocReadonlyTag = 342,
|
JSDocReadonlyTag = 343,
|
||||||
JSDocOverrideTag = 343,
|
JSDocOverrideTag = 344,
|
||||||
JSDocCallbackTag = 344,
|
JSDocCallbackTag = 345,
|
||||||
JSDocOverloadTag = 345,
|
JSDocOverloadTag = 346,
|
||||||
JSDocEnumTag = 346,
|
JSDocEnumTag = 347,
|
||||||
JSDocParameterTag = 347,
|
JSDocParameterTag = 348,
|
||||||
JSDocReturnTag = 348,
|
JSDocReturnTag = 349,
|
||||||
JSDocThisTag = 349,
|
JSDocThisTag = 350,
|
||||||
JSDocTypeTag = 350,
|
JSDocTypeTag = 351,
|
||||||
JSDocTemplateTag = 351,
|
JSDocTemplateTag = 352,
|
||||||
JSDocTypedefTag = 352,
|
JSDocTypedefTag = 353,
|
||||||
JSDocSeeTag = 353,
|
JSDocSeeTag = 354,
|
||||||
JSDocPropertyTag = 354,
|
JSDocPropertyTag = 355,
|
||||||
JSDocThrowsTag = 355,
|
JSDocThrowsTag = 356,
|
||||||
JSDocSatisfiesTag = 356,
|
JSDocSatisfiesTag = 357,
|
||||||
SyntaxList = 357,
|
SyntaxList = 358,
|
||||||
NotEmittedStatement = 358,
|
NotEmittedStatement = 359,
|
||||||
PartiallyEmittedExpression = 359,
|
PartiallyEmittedExpression = 360,
|
||||||
CommaListExpression = 360,
|
CommaListExpression = 361,
|
||||||
SyntheticReferenceExpression = 361,
|
SyntheticReferenceExpression = 362,
|
||||||
Count = 362,
|
Count = 363,
|
||||||
FirstAssignment = 64,
|
FirstAssignment = 64,
|
||||||
LastAssignment = 79,
|
LastAssignment = 79,
|
||||||
FirstCompoundAssignment = 65,
|
FirstCompoundAssignment = 65,
|
||||||
|
@ -448,15 +449,15 @@ declare namespace ts {
|
||||||
FirstReservedWord = 83,
|
FirstReservedWord = 83,
|
||||||
LastReservedWord = 118,
|
LastReservedWord = 118,
|
||||||
FirstKeyword = 83,
|
FirstKeyword = 83,
|
||||||
LastKeyword = 164,
|
LastKeyword = 165,
|
||||||
FirstFutureReservedWord = 119,
|
FirstFutureReservedWord = 119,
|
||||||
LastFutureReservedWord = 127,
|
LastFutureReservedWord = 127,
|
||||||
FirstTypeNode = 181,
|
FirstTypeNode = 182,
|
||||||
LastTypeNode = 204,
|
LastTypeNode = 205,
|
||||||
FirstPunctuation = 19,
|
FirstPunctuation = 19,
|
||||||
LastPunctuation = 79,
|
LastPunctuation = 79,
|
||||||
FirstToken = 0,
|
FirstToken = 0,
|
||||||
LastToken = 164,
|
LastToken = 165,
|
||||||
FirstTriviaToken = 2,
|
FirstTriviaToken = 2,
|
||||||
LastTriviaToken = 7,
|
LastTriviaToken = 7,
|
||||||
FirstLiteralToken = 9,
|
FirstLiteralToken = 9,
|
||||||
|
@ -465,19 +466,19 @@ declare namespace ts {
|
||||||
LastTemplateToken = 18,
|
LastTemplateToken = 18,
|
||||||
FirstBinaryOperator = 30,
|
FirstBinaryOperator = 30,
|
||||||
LastBinaryOperator = 79,
|
LastBinaryOperator = 79,
|
||||||
FirstStatement = 242,
|
FirstStatement = 243,
|
||||||
LastStatement = 258,
|
LastStatement = 259,
|
||||||
FirstNode = 165,
|
FirstNode = 166,
|
||||||
FirstJSDocNode = 315,
|
FirstJSDocNode = 316,
|
||||||
LastJSDocNode = 356,
|
LastJSDocNode = 357,
|
||||||
FirstJSDocTagNode = 333,
|
FirstJSDocTagNode = 334,
|
||||||
LastJSDocTagNode = 356
|
LastJSDocTagNode = 357
|
||||||
}
|
}
|
||||||
type TriviaSyntaxKind = SyntaxKind.SingleLineCommentTrivia | SyntaxKind.MultiLineCommentTrivia | SyntaxKind.NewLineTrivia | SyntaxKind.WhitespaceTrivia | SyntaxKind.ShebangTrivia | SyntaxKind.ConflictMarkerTrivia;
|
type TriviaSyntaxKind = SyntaxKind.SingleLineCommentTrivia | SyntaxKind.MultiLineCommentTrivia | SyntaxKind.NewLineTrivia | SyntaxKind.WhitespaceTrivia | SyntaxKind.ShebangTrivia | SyntaxKind.ConflictMarkerTrivia;
|
||||||
type LiteralSyntaxKind = SyntaxKind.NumericLiteral | SyntaxKind.BigIntLiteral | SyntaxKind.StringLiteral | SyntaxKind.JsxText | SyntaxKind.JsxTextAllWhiteSpaces | SyntaxKind.RegularExpressionLiteral | SyntaxKind.NoSubstitutionTemplateLiteral;
|
type LiteralSyntaxKind = SyntaxKind.NumericLiteral | SyntaxKind.BigIntLiteral | SyntaxKind.StringLiteral | SyntaxKind.JsxText | SyntaxKind.JsxTextAllWhiteSpaces | SyntaxKind.RegularExpressionLiteral | SyntaxKind.NoSubstitutionTemplateLiteral;
|
||||||
type PseudoLiteralSyntaxKind = SyntaxKind.TemplateHead | SyntaxKind.TemplateMiddle | SyntaxKind.TemplateTail;
|
type PseudoLiteralSyntaxKind = SyntaxKind.TemplateHead | SyntaxKind.TemplateMiddle | SyntaxKind.TemplateTail;
|
||||||
type PunctuationSyntaxKind = SyntaxKind.OpenBraceToken | SyntaxKind.CloseBraceToken | SyntaxKind.OpenParenToken | SyntaxKind.CloseParenToken | SyntaxKind.OpenBracketToken | SyntaxKind.CloseBracketToken | SyntaxKind.DotToken | SyntaxKind.DotDotDotToken | SyntaxKind.SemicolonToken | SyntaxKind.CommaToken | SyntaxKind.QuestionDotToken | SyntaxKind.LessThanToken | SyntaxKind.LessThanSlashToken | SyntaxKind.GreaterThanToken | SyntaxKind.LessThanEqualsToken | SyntaxKind.GreaterThanEqualsToken | SyntaxKind.EqualsEqualsToken | SyntaxKind.ExclamationEqualsToken | SyntaxKind.EqualsEqualsEqualsToken | SyntaxKind.ExclamationEqualsEqualsToken | SyntaxKind.EqualsGreaterThanToken | SyntaxKind.PlusToken | SyntaxKind.MinusToken | SyntaxKind.AsteriskToken | SyntaxKind.AsteriskAsteriskToken | SyntaxKind.SlashToken | SyntaxKind.PercentToken | SyntaxKind.PlusPlusToken | SyntaxKind.MinusMinusToken | SyntaxKind.LessThanLessThanToken | SyntaxKind.GreaterThanGreaterThanToken | SyntaxKind.GreaterThanGreaterThanGreaterThanToken | SyntaxKind.AmpersandToken | SyntaxKind.BarToken | SyntaxKind.CaretToken | SyntaxKind.ExclamationToken | SyntaxKind.TildeToken | SyntaxKind.AmpersandAmpersandToken | SyntaxKind.AmpersandAmpersandEqualsToken | SyntaxKind.BarBarToken | SyntaxKind.BarBarEqualsToken | SyntaxKind.QuestionQuestionToken | SyntaxKind.QuestionQuestionEqualsToken | SyntaxKind.QuestionToken | SyntaxKind.ColonToken | SyntaxKind.AtToken | SyntaxKind.BacktickToken | SyntaxKind.HashToken | SyntaxKind.EqualsToken | SyntaxKind.PlusEqualsToken | SyntaxKind.MinusEqualsToken | SyntaxKind.AsteriskEqualsToken | SyntaxKind.AsteriskAsteriskEqualsToken | SyntaxKind.SlashEqualsToken | SyntaxKind.PercentEqualsToken | SyntaxKind.LessThanLessThanEqualsToken | SyntaxKind.GreaterThanGreaterThanEqualsToken | SyntaxKind.GreaterThanGreaterThanGreaterThanEqualsToken | SyntaxKind.AmpersandEqualsToken | SyntaxKind.BarEqualsToken | SyntaxKind.CaretEqualsToken;
|
type PunctuationSyntaxKind = SyntaxKind.OpenBraceToken | SyntaxKind.CloseBraceToken | SyntaxKind.OpenParenToken | SyntaxKind.CloseParenToken | SyntaxKind.OpenBracketToken | SyntaxKind.CloseBracketToken | SyntaxKind.DotToken | SyntaxKind.DotDotDotToken | SyntaxKind.SemicolonToken | SyntaxKind.CommaToken | SyntaxKind.QuestionDotToken | SyntaxKind.LessThanToken | SyntaxKind.LessThanSlashToken | SyntaxKind.GreaterThanToken | SyntaxKind.LessThanEqualsToken | SyntaxKind.GreaterThanEqualsToken | SyntaxKind.EqualsEqualsToken | SyntaxKind.ExclamationEqualsToken | SyntaxKind.EqualsEqualsEqualsToken | SyntaxKind.ExclamationEqualsEqualsToken | SyntaxKind.EqualsGreaterThanToken | SyntaxKind.PlusToken | SyntaxKind.MinusToken | SyntaxKind.AsteriskToken | SyntaxKind.AsteriskAsteriskToken | SyntaxKind.SlashToken | SyntaxKind.PercentToken | SyntaxKind.PlusPlusToken | SyntaxKind.MinusMinusToken | SyntaxKind.LessThanLessThanToken | SyntaxKind.GreaterThanGreaterThanToken | SyntaxKind.GreaterThanGreaterThanGreaterThanToken | SyntaxKind.AmpersandToken | SyntaxKind.BarToken | SyntaxKind.CaretToken | SyntaxKind.ExclamationToken | SyntaxKind.TildeToken | SyntaxKind.AmpersandAmpersandToken | SyntaxKind.AmpersandAmpersandEqualsToken | SyntaxKind.BarBarToken | SyntaxKind.BarBarEqualsToken | SyntaxKind.QuestionQuestionToken | SyntaxKind.QuestionQuestionEqualsToken | SyntaxKind.QuestionToken | SyntaxKind.ColonToken | SyntaxKind.AtToken | SyntaxKind.BacktickToken | SyntaxKind.HashToken | SyntaxKind.EqualsToken | SyntaxKind.PlusEqualsToken | SyntaxKind.MinusEqualsToken | SyntaxKind.AsteriskEqualsToken | SyntaxKind.AsteriskAsteriskEqualsToken | SyntaxKind.SlashEqualsToken | SyntaxKind.PercentEqualsToken | SyntaxKind.LessThanLessThanEqualsToken | SyntaxKind.GreaterThanGreaterThanEqualsToken | SyntaxKind.GreaterThanGreaterThanGreaterThanEqualsToken | SyntaxKind.AmpersandEqualsToken | SyntaxKind.BarEqualsToken | SyntaxKind.CaretEqualsToken;
|
||||||
type KeywordSyntaxKind = SyntaxKind.AbstractKeyword | SyntaxKind.AccessorKeyword | SyntaxKind.AnyKeyword | SyntaxKind.AsKeyword | SyntaxKind.AssertsKeyword | SyntaxKind.AssertKeyword | SyntaxKind.AsyncKeyword | SyntaxKind.AwaitKeyword | SyntaxKind.BigIntKeyword | SyntaxKind.BooleanKeyword | SyntaxKind.BreakKeyword | SyntaxKind.CaseKeyword | SyntaxKind.CatchKeyword | SyntaxKind.ClassKeyword | SyntaxKind.ConstKeyword | SyntaxKind.ConstructorKeyword | SyntaxKind.ContinueKeyword | SyntaxKind.DebuggerKeyword | SyntaxKind.DeclareKeyword | SyntaxKind.DefaultKeyword | SyntaxKind.DeleteKeyword | SyntaxKind.DoKeyword | SyntaxKind.ElseKeyword | SyntaxKind.EnumKeyword | SyntaxKind.ExportKeyword | SyntaxKind.ExtendsKeyword | SyntaxKind.FalseKeyword | SyntaxKind.FinallyKeyword | SyntaxKind.ForKeyword | SyntaxKind.FromKeyword | SyntaxKind.FunctionKeyword | SyntaxKind.GetKeyword | SyntaxKind.GlobalKeyword | SyntaxKind.IfKeyword | SyntaxKind.ImplementsKeyword | SyntaxKind.ImportKeyword | SyntaxKind.InferKeyword | SyntaxKind.InKeyword | SyntaxKind.InstanceOfKeyword | SyntaxKind.InterfaceKeyword | SyntaxKind.IntrinsicKeyword | SyntaxKind.IsKeyword | SyntaxKind.KeyOfKeyword | SyntaxKind.LetKeyword | SyntaxKind.ModuleKeyword | SyntaxKind.NamespaceKeyword | SyntaxKind.NeverKeyword | SyntaxKind.NewKeyword | SyntaxKind.NullKeyword | SyntaxKind.NumberKeyword | SyntaxKind.ObjectKeyword | SyntaxKind.OfKeyword | SyntaxKind.PackageKeyword | SyntaxKind.PrivateKeyword | SyntaxKind.ProtectedKeyword | SyntaxKind.PublicKeyword | SyntaxKind.ReadonlyKeyword | SyntaxKind.OutKeyword | SyntaxKind.OverrideKeyword | SyntaxKind.RequireKeyword | SyntaxKind.ReturnKeyword | SyntaxKind.SatisfiesKeyword | SyntaxKind.SetKeyword | SyntaxKind.StaticKeyword | SyntaxKind.StringKeyword | SyntaxKind.SuperKeyword | SyntaxKind.SwitchKeyword | SyntaxKind.SymbolKeyword | SyntaxKind.ThisKeyword | SyntaxKind.ThrowKeyword | SyntaxKind.TrueKeyword | SyntaxKind.TryKeyword | SyntaxKind.TypeKeyword | SyntaxKind.TypeOfKeyword | SyntaxKind.UndefinedKeyword | SyntaxKind.UniqueKeyword | SyntaxKind.UnknownKeyword | SyntaxKind.VarKeyword | SyntaxKind.VoidKeyword | SyntaxKind.WhileKeyword | SyntaxKind.WithKeyword | SyntaxKind.YieldKeyword;
|
type KeywordSyntaxKind = SyntaxKind.AbstractKeyword | SyntaxKind.AccessorKeyword | SyntaxKind.AnyKeyword | SyntaxKind.AsKeyword | SyntaxKind.AssertsKeyword | SyntaxKind.AssertKeyword | SyntaxKind.AsyncKeyword | SyntaxKind.AwaitKeyword | SyntaxKind.BigIntKeyword | SyntaxKind.BooleanKeyword | SyntaxKind.BreakKeyword | SyntaxKind.CaseKeyword | SyntaxKind.CatchKeyword | SyntaxKind.ClassKeyword | SyntaxKind.ConstKeyword | SyntaxKind.ConstructorKeyword | SyntaxKind.ContinueKeyword | SyntaxKind.DebuggerKeyword | SyntaxKind.DeclareKeyword | SyntaxKind.DefaultKeyword | SyntaxKind.DeleteKeyword | SyntaxKind.DoKeyword | SyntaxKind.ElseKeyword | SyntaxKind.EnumKeyword | SyntaxKind.ExportKeyword | SyntaxKind.ExtendsKeyword | SyntaxKind.FalseKeyword | SyntaxKind.FinallyKeyword | SyntaxKind.ForKeyword | SyntaxKind.FromKeyword | SyntaxKind.FunctionKeyword | SyntaxKind.GetKeyword | SyntaxKind.GlobalKeyword | SyntaxKind.IfKeyword | SyntaxKind.ImplementsKeyword | SyntaxKind.ImportKeyword | SyntaxKind.InferKeyword | SyntaxKind.InKeyword | SyntaxKind.InstanceOfKeyword | SyntaxKind.InterfaceKeyword | SyntaxKind.IntrinsicKeyword | SyntaxKind.IsKeyword | SyntaxKind.KeyOfKeyword | SyntaxKind.LetKeyword | SyntaxKind.ModuleKeyword | SyntaxKind.NamespaceKeyword | SyntaxKind.NeverKeyword | SyntaxKind.NewKeyword | SyntaxKind.NullKeyword | SyntaxKind.NumberKeyword | SyntaxKind.ObjectKeyword | SyntaxKind.OfKeyword | SyntaxKind.PackageKeyword | SyntaxKind.PrivateKeyword | SyntaxKind.ProtectedKeyword | SyntaxKind.PublicKeyword | SyntaxKind.ReadonlyKeyword | SyntaxKind.OutKeyword | SyntaxKind.OverrideKeyword | SyntaxKind.RequireKeyword | SyntaxKind.ReturnKeyword | SyntaxKind.SatisfiesKeyword | SyntaxKind.SetKeyword | SyntaxKind.StaticKeyword | SyntaxKind.StringKeyword | SyntaxKind.SuperKeyword | SyntaxKind.SwitchKeyword | SyntaxKind.SymbolKeyword | SyntaxKind.ThisKeyword | SyntaxKind.ThrowKeyword | SyntaxKind.TrueKeyword | SyntaxKind.TryKeyword | SyntaxKind.TypeKeyword | SyntaxKind.TypeOfKeyword | SyntaxKind.UndefinedKeyword | SyntaxKind.UniqueKeyword | SyntaxKind.UnknownKeyword | SyntaxKind.UsingKeyword | SyntaxKind.VarKeyword | SyntaxKind.VoidKeyword | SyntaxKind.WhileKeyword | SyntaxKind.WithKeyword | SyntaxKind.YieldKeyword;
|
||||||
type ModifierSyntaxKind = SyntaxKind.AbstractKeyword | SyntaxKind.AccessorKeyword | SyntaxKind.AsyncKeyword | SyntaxKind.ConstKeyword | SyntaxKind.DeclareKeyword | SyntaxKind.DefaultKeyword | SyntaxKind.ExportKeyword | SyntaxKind.InKeyword | SyntaxKind.PrivateKeyword | SyntaxKind.ProtectedKeyword | SyntaxKind.PublicKeyword | SyntaxKind.ReadonlyKeyword | SyntaxKind.OutKeyword | SyntaxKind.OverrideKeyword | SyntaxKind.StaticKeyword;
|
type ModifierSyntaxKind = SyntaxKind.AbstractKeyword | SyntaxKind.AccessorKeyword | SyntaxKind.AsyncKeyword | SyntaxKind.ConstKeyword | SyntaxKind.DeclareKeyword | SyntaxKind.DefaultKeyword | SyntaxKind.ExportKeyword | SyntaxKind.InKeyword | SyntaxKind.PrivateKeyword | SyntaxKind.ProtectedKeyword | SyntaxKind.PublicKeyword | SyntaxKind.ReadonlyKeyword | SyntaxKind.OutKeyword | SyntaxKind.OverrideKeyword | SyntaxKind.StaticKeyword;
|
||||||
type KeywordTypeSyntaxKind = SyntaxKind.AnyKeyword | SyntaxKind.BigIntKeyword | SyntaxKind.BooleanKeyword | SyntaxKind.IntrinsicKeyword | SyntaxKind.NeverKeyword | SyntaxKind.NumberKeyword | SyntaxKind.ObjectKeyword | SyntaxKind.StringKeyword | SyntaxKind.SymbolKeyword | SyntaxKind.UndefinedKeyword | SyntaxKind.UnknownKeyword | SyntaxKind.VoidKeyword;
|
type KeywordTypeSyntaxKind = SyntaxKind.AnyKeyword | SyntaxKind.BigIntKeyword | SyntaxKind.BooleanKeyword | SyntaxKind.IntrinsicKeyword | SyntaxKind.NeverKeyword | SyntaxKind.NumberKeyword | SyntaxKind.ObjectKeyword | SyntaxKind.StringKeyword | SyntaxKind.SymbolKeyword | SyntaxKind.UndefinedKeyword | SyntaxKind.UnknownKeyword | SyntaxKind.VoidKeyword;
|
||||||
type TokenSyntaxKind = SyntaxKind.Unknown | SyntaxKind.EndOfFileToken | TriviaSyntaxKind | LiteralSyntaxKind | PseudoLiteralSyntaxKind | PunctuationSyntaxKind | SyntaxKind.Identifier | KeywordSyntaxKind;
|
type TokenSyntaxKind = SyntaxKind.Unknown | SyntaxKind.EndOfFileToken | TriviaSyntaxKind | LiteralSyntaxKind | PseudoLiteralSyntaxKind | PunctuationSyntaxKind | SyntaxKind.Identifier | KeywordSyntaxKind;
|
||||||
|
@ -487,32 +488,35 @@ declare namespace ts {
|
||||||
None = 0,
|
None = 0,
|
||||||
Let = 1,
|
Let = 1,
|
||||||
Const = 2,
|
Const = 2,
|
||||||
NestedNamespace = 4,
|
Using = 4,
|
||||||
Synthesized = 8,
|
AwaitUsing = 6,
|
||||||
Namespace = 16,
|
NestedNamespace = 8,
|
||||||
OptionalChain = 32,
|
Synthesized = 16,
|
||||||
ExportContext = 64,
|
Namespace = 32,
|
||||||
ContainsThis = 128,
|
OptionalChain = 64,
|
||||||
HasImplicitReturn = 256,
|
ExportContext = 128,
|
||||||
HasExplicitReturn = 512,
|
ContainsThis = 256,
|
||||||
GlobalAugmentation = 1024,
|
HasImplicitReturn = 512,
|
||||||
HasAsyncFunctions = 2048,
|
HasExplicitReturn = 1024,
|
||||||
DisallowInContext = 4096,
|
GlobalAugmentation = 2048,
|
||||||
YieldContext = 8192,
|
HasAsyncFunctions = 4096,
|
||||||
DecoratorContext = 16384,
|
DisallowInContext = 8192,
|
||||||
AwaitContext = 32768,
|
YieldContext = 16384,
|
||||||
DisallowConditionalTypesContext = 65536,
|
DecoratorContext = 32768,
|
||||||
ThisNodeHasError = 131072,
|
AwaitContext = 65536,
|
||||||
JavaScriptFile = 262144,
|
DisallowConditionalTypesContext = 131072,
|
||||||
ThisNodeOrAnySubNodesHasError = 524288,
|
ThisNodeHasError = 262144,
|
||||||
HasAggregatedChildData = 1048576,
|
JavaScriptFile = 524288,
|
||||||
JSDoc = 8388608,
|
ThisNodeOrAnySubNodesHasError = 1048576,
|
||||||
JsonFile = 67108864,
|
HasAggregatedChildData = 2097152,
|
||||||
BlockScoped = 3,
|
JSDoc = 16777216,
|
||||||
ReachabilityCheckFlags = 768,
|
JsonFile = 134217728,
|
||||||
ReachabilityAndEmitFlags = 2816,
|
BlockScoped = 7,
|
||||||
ContextFlags = 50720768,
|
Constant = 6,
|
||||||
TypeExcludesFlags = 40960
|
ReachabilityCheckFlags = 1536,
|
||||||
|
ReachabilityAndEmitFlags = 5632,
|
||||||
|
ContextFlags = 101441536,
|
||||||
|
TypeExcludesFlags = 81920
|
||||||
}
|
}
|
||||||
enum ModifierFlags {
|
enum ModifierFlags {
|
||||||
None = 0,
|
None = 0,
|
||||||
|
@ -1802,9 +1806,11 @@ declare namespace ts {
|
||||||
};
|
};
|
||||||
}) | ExportDeclaration & {
|
}) | ExportDeclaration & {
|
||||||
readonly isTypeOnly: true;
|
readonly isTypeOnly: true;
|
||||||
|
readonly moduleSpecifier: Expression;
|
||||||
} | NamespaceExport & {
|
} | NamespaceExport & {
|
||||||
readonly parent: ExportDeclaration & {
|
readonly parent: ExportDeclaration & {
|
||||||
readonly isTypeOnly: true;
|
readonly isTypeOnly: true;
|
||||||
|
readonly moduleSpecifier: Expression;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
type TypeOnlyAliasDeclaration = TypeOnlyImportDeclaration | TypeOnlyExportDeclaration;
|
type TypeOnlyAliasDeclaration = TypeOnlyImportDeclaration | TypeOnlyExportDeclaration;
|
||||||
|
@ -2249,7 +2255,7 @@ declare namespace ts {
|
||||||
getSourceFileByPath(path: Path): SourceFile | undefined;
|
getSourceFileByPath(path: Path): SourceFile | undefined;
|
||||||
getCurrentDirectory(): string;
|
getCurrentDirectory(): string;
|
||||||
}
|
}
|
||||||
interface ParseConfigHost {
|
interface ParseConfigHost extends ModuleResolutionHost {
|
||||||
useCaseSensitiveFileNames: boolean;
|
useCaseSensitiveFileNames: boolean;
|
||||||
readDirectory(rootDir: string, extensions: readonly string[], excludes: readonly string[] | undefined, includes: readonly string[], depth?: number): readonly string[];
|
readDirectory(rootDir: string, extensions: readonly string[], excludes: readonly string[] | undefined, includes: readonly string[], depth?: number): readonly string[];
|
||||||
/**
|
/**
|
||||||
|
@ -2926,7 +2932,7 @@ declare namespace ts {
|
||||||
hasRestElement: boolean;
|
hasRestElement: boolean;
|
||||||
combinedFlags: ElementFlags;
|
combinedFlags: ElementFlags;
|
||||||
readonly: boolean;
|
readonly: boolean;
|
||||||
labeledElementDeclarations?: readonly (NamedTupleMember | ParameterDeclaration)[];
|
labeledElementDeclarations?: readonly (NamedTupleMember | ParameterDeclaration | undefined)[];
|
||||||
}
|
}
|
||||||
interface TupleTypeReference extends TypeReference {
|
interface TupleTypeReference extends TypeReference {
|
||||||
target: TupleType;
|
target: TupleType;
|
||||||
|
@ -3567,7 +3573,14 @@ declare namespace ts {
|
||||||
All = 15,
|
All = 15,
|
||||||
ExcludeJSDocTypeAssertion = 16
|
ExcludeJSDocTypeAssertion = 16
|
||||||
}
|
}
|
||||||
type TypeOfTag = "undefined" | "number" | "bigint" | "boolean" | "string" | "symbol" | "object" | "function";
|
type ImmediatelyInvokedFunctionExpression = CallExpression & {
|
||||||
|
readonly expression: FunctionExpression;
|
||||||
|
};
|
||||||
|
type ImmediatelyInvokedArrowFunction = CallExpression & {
|
||||||
|
readonly expression: ParenthesizedExpression & {
|
||||||
|
readonly expression: ArrowFunction;
|
||||||
|
};
|
||||||
|
};
|
||||||
interface NodeFactory {
|
interface NodeFactory {
|
||||||
createNodeArray<T extends Node>(elements?: readonly T[], hasTrailingComma?: boolean): NodeArray<T>;
|
createNodeArray<T extends Node>(elements?: readonly T[], hasTrailingComma?: boolean): NodeArray<T>;
|
||||||
createNumericLiteral(value: string | number, numericLiteralFlags?: TokenFlags): NumericLiteral;
|
createNumericLiteral(value: string | number, numericLiteralFlags?: TokenFlags): NumericLiteral;
|
||||||
|
@ -4037,8 +4050,8 @@ declare namespace ts {
|
||||||
createPostfixDecrement(operand: Expression): PostfixUnaryExpression;
|
createPostfixDecrement(operand: Expression): PostfixUnaryExpression;
|
||||||
createImmediatelyInvokedFunctionExpression(statements: readonly Statement[]): CallExpression;
|
createImmediatelyInvokedFunctionExpression(statements: readonly Statement[]): CallExpression;
|
||||||
createImmediatelyInvokedFunctionExpression(statements: readonly Statement[], param: ParameterDeclaration, paramValue: Expression): CallExpression;
|
createImmediatelyInvokedFunctionExpression(statements: readonly Statement[], param: ParameterDeclaration, paramValue: Expression): CallExpression;
|
||||||
createImmediatelyInvokedArrowFunction(statements: readonly Statement[]): CallExpression;
|
createImmediatelyInvokedArrowFunction(statements: readonly Statement[]): ImmediatelyInvokedArrowFunction;
|
||||||
createImmediatelyInvokedArrowFunction(statements: readonly Statement[], param: ParameterDeclaration, paramValue: Expression): CallExpression;
|
createImmediatelyInvokedArrowFunction(statements: readonly Statement[], param: ParameterDeclaration, paramValue: Expression): ImmediatelyInvokedArrowFunction;
|
||||||
createVoidZero(): VoidExpression;
|
createVoidZero(): VoidExpression;
|
||||||
createExportDefault(expression: Expression): ExportAssignment;
|
createExportDefault(expression: Expression): ExportAssignment;
|
||||||
createExternalModuleExport(exportName: Identifier): ExportDeclaration;
|
createExternalModuleExport(exportName: Identifier): ExportDeclaration;
|
||||||
|
@ -4368,6 +4381,7 @@ declare namespace ts {
|
||||||
readonly includeInlayPropertyDeclarationTypeHints?: boolean;
|
readonly includeInlayPropertyDeclarationTypeHints?: boolean;
|
||||||
readonly includeInlayFunctionLikeReturnTypeHints?: boolean;
|
readonly includeInlayFunctionLikeReturnTypeHints?: boolean;
|
||||||
readonly includeInlayEnumMemberValueHints?: boolean;
|
readonly includeInlayEnumMemberValueHints?: boolean;
|
||||||
|
readonly interactiveInlayHints?: boolean;
|
||||||
readonly allowRenameOfImportPath?: boolean;
|
readonly allowRenameOfImportPath?: boolean;
|
||||||
readonly autoImportFileExcludePatterns?: string[];
|
readonly autoImportFileExcludePatterns?: string[];
|
||||||
readonly organizeImportsIgnoreCase?: "auto" | boolean;
|
readonly organizeImportsIgnoreCase?: "auto" | boolean;
|
||||||
|
@ -6434,11 +6448,18 @@ declare namespace ts {
|
||||||
Enum = "Enum"
|
Enum = "Enum"
|
||||||
}
|
}
|
||||||
interface InlayHint {
|
interface InlayHint {
|
||||||
|
/** This property will be the empty string when displayParts is set. */
|
||||||
text: string;
|
text: string;
|
||||||
position: number;
|
position: number;
|
||||||
kind: InlayHintKind;
|
kind: InlayHintKind;
|
||||||
whitespaceBefore?: boolean;
|
whitespaceBefore?: boolean;
|
||||||
whitespaceAfter?: boolean;
|
whitespaceAfter?: boolean;
|
||||||
|
displayParts?: InlayHintDisplayPart[];
|
||||||
|
}
|
||||||
|
interface InlayHintDisplayPart {
|
||||||
|
text: string;
|
||||||
|
span?: TextSpan;
|
||||||
|
file?: string;
|
||||||
}
|
}
|
||||||
interface TodoCommentDescriptor {
|
interface TodoCommentDescriptor {
|
||||||
text: string;
|
text: string;
|
||||||
|
@ -6870,6 +6891,7 @@ declare namespace ts {
|
||||||
kindModifiers?: string;
|
kindModifiers?: string;
|
||||||
sortText: string;
|
sortText: string;
|
||||||
insertText?: string;
|
insertText?: string;
|
||||||
|
filterText?: string;
|
||||||
isSnippet?: true;
|
isSnippet?: true;
|
||||||
/**
|
/**
|
||||||
* An optional span that indicates the text to be replaced by this completion item.
|
* An optional span that indicates the text to be replaced by this completion item.
|
||||||
|
@ -7029,6 +7051,10 @@ declare namespace ts {
|
||||||
variableElement = "var",
|
variableElement = "var",
|
||||||
/** Inside function */
|
/** Inside function */
|
||||||
localVariableElement = "local var",
|
localVariableElement = "local var",
|
||||||
|
/** using foo = ... */
|
||||||
|
variableUsingElement = "using",
|
||||||
|
/** await using foo = ... */
|
||||||
|
variableAwaitUsingElement = "await using",
|
||||||
/**
|
/**
|
||||||
* Inside module and script only
|
* Inside module and script only
|
||||||
* function f() { }
|
* function f() { }
|
||||||
|
|
Loading…
Reference in a new issue