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",
|
||||
"es2017",
|
||||
"es2017.date",
|
||||
"es2017.intl",
|
||||
"es2017.object",
|
||||
"es2017.sharedmemory",
|
||||
|
@ -211,8 +212,11 @@ mod ts {
|
|||
"es2022.string",
|
||||
"es2023",
|
||||
"es2023.array",
|
||||
"es2023.collection",
|
||||
"esnext",
|
||||
"esnext.array",
|
||||
"esnext.decorators",
|
||||
"esnext.disposable",
|
||||
"esnext.intl",
|
||||
];
|
||||
|
||||
|
@ -459,7 +463,7 @@ fn main() {
|
|||
);
|
||||
|
||||
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:rerun-if-env-changed=TS_VERSION");
|
||||
|
||||
|
|
|
@ -7960,11 +7960,11 @@ fn lsp_workspace_symbol() {
|
|||
"uri": "deno:/asset/lib.decorators.d.ts",
|
||||
"range": {
|
||||
"start": {
|
||||
"line": 331,
|
||||
"line": 346,
|
||||
"character": 0,
|
||||
},
|
||||
"end": {
|
||||
"line": 371,
|
||||
"line": 388,
|
||||
"character": 1,
|
||||
},
|
||||
},
|
||||
|
|
|
@ -6,5 +6,5 @@ Deno.test(function version() {
|
|||
const pattern = /^\d+\.\d+\.\d+/;
|
||||
assert(pattern.test(Deno.version.deno));
|
||||
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
|
||||
;
|
||||
|
||||
type DecoratorMetadataObject = Record<PropertyKey, unknown> & object;
|
||||
|
||||
type DecoratorMetadata =
|
||||
typeof globalThis extends { Symbol: { readonly metadata: symbol } } ? DecoratorMetadataObject : DecoratorMetadataObject | undefined;
|
||||
|
||||
/**
|
||||
* Context provided to a class decorator.
|
||||
* @template Class The type of the decorated class associated with this context.
|
||||
|
@ -66,6 +71,8 @@ interface ClassDecoratorContext<
|
|||
* ```
|
||||
*/
|
||||
addInitializer(initializer: (this: Class) => void): void;
|
||||
|
||||
readonly metadata: DecoratorMetadata;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -130,6 +137,8 @@ interface ClassMethodDecoratorContext<
|
|||
* ```
|
||||
*/
|
||||
addInitializer(initializer: (this: This) => void): void;
|
||||
|
||||
readonly metadata: DecoratorMetadata;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -175,6 +184,8 @@ interface ClassGetterDecoratorContext<
|
|||
* decorating a non-`static` element).
|
||||
*/
|
||||
addInitializer(initializer: (this: This) => void): void;
|
||||
|
||||
readonly metadata: DecoratorMetadata;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -220,6 +231,8 @@ interface ClassSetterDecoratorContext<
|
|||
* decorating a non-`static` element).
|
||||
*/
|
||||
addInitializer(initializer: (this: This) => void): void;
|
||||
|
||||
readonly metadata: DecoratorMetadata;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -274,6 +287,8 @@ interface ClassAccessorDecoratorContext<
|
|||
* decorating a non-`static` element).
|
||||
*/
|
||||
addInitializer(initializer: (this: This) => void): void;
|
||||
|
||||
readonly metadata: DecoratorMetadata;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -369,4 +384,6 @@ interface ClassFieldDecoratorContext<
|
|||
* decorating a non-`static` element).
|
||||
*/
|
||||
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 {
|
||||
id?: string;
|
||||
timeline?: AnimationTimeline | null;
|
||||
}
|
||||
|
||||
interface KeyframeEffectOptions extends EffectTiming {
|
||||
|
@ -1035,7 +1036,7 @@ interface NotificationOptions {
|
|||
lang?: string;
|
||||
renotify?: boolean;
|
||||
requireInteraction?: boolean;
|
||||
silent?: boolean;
|
||||
silent?: boolean | null;
|
||||
tag?: string;
|
||||
timestamp?: EpochTimeStamp;
|
||||
vibrate?: VibratePattern;
|
||||
|
@ -1352,7 +1353,6 @@ interface RTCEncodedAudioFrameMetadata {
|
|||
}
|
||||
|
||||
interface RTCEncodedVideoFrameMetadata {
|
||||
contributingSources?: number[];
|
||||
dependencies?: number[];
|
||||
frameId?: number;
|
||||
height?: number;
|
||||
|
@ -1872,8 +1872,13 @@ interface TextDecoderOptions {
|
|||
}
|
||||
|
||||
interface TextEncoderEncodeIntoResult {
|
||||
read?: number;
|
||||
written?: number;
|
||||
read: number;
|
||||
written: number;
|
||||
}
|
||||
|
||||
interface ToggleEventInit extends EventInit {
|
||||
newState?: string;
|
||||
oldState?: string;
|
||||
}
|
||||
|
||||
interface TouchEventInit extends EventModifierInit {
|
||||
|
@ -2106,6 +2111,32 @@ interface WebGLContextEventInit extends EventInit {
|
|||
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 {
|
||||
deltaMode?: number;
|
||||
deltaX?: number;
|
||||
|
@ -2305,9 +2336,9 @@ interface AbortSignal extends EventTarget {
|
|||
declare var AbortSignal: {
|
||||
prototype: 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;
|
||||
/** [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;
|
||||
};
|
||||
|
||||
|
@ -3345,7 +3376,7 @@ interface CSSImportRule extends CSSRule {
|
|||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSImportRule/media) */
|
||||
readonly media: MediaList;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSImportRule/styleSheet) */
|
||||
readonly styleSheet: CSSStyleSheet;
|
||||
readonly styleSheet: CSSStyleSheet | null;
|
||||
}
|
||||
|
||||
declare var CSSImportRule: {
|
||||
|
@ -3378,6 +3409,7 @@ declare var CSSKeyframeRule: {
|
|||
interface CSSKeyframesRule extends CSSRule {
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframesRule/cssRules) */
|
||||
readonly cssRules: CSSRuleList;
|
||||
readonly length: number;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframesRule/name) */
|
||||
name: string;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframesRule/appendRule) */
|
||||
|
@ -3598,7 +3630,7 @@ interface CSSNumericValue extends CSSStyleValue {
|
|||
declare var CSSNumericValue: {
|
||||
prototype: 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;
|
||||
};
|
||||
|
||||
|
@ -4109,8 +4141,11 @@ interface CSSStyleDeclaration {
|
|||
fontStyle: string;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-synthesis) */
|
||||
fontSynthesis: string;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-synthesis-small-caps) */
|
||||
fontSynthesisSmallCaps: string;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-synthesis-style) */
|
||||
fontSynthesisStyle: string;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-synthesis-weight) */
|
||||
fontSynthesisWeight: string;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-variant) */
|
||||
fontVariant: string;
|
||||
|
@ -4130,6 +4165,8 @@ interface CSSStyleDeclaration {
|
|||
fontVariationSettings: string;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-weight) */
|
||||
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) */
|
||||
gap: string;
|
||||
/** [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)
|
||||
*/
|
||||
interface CSSStyleRule extends CSSRule {
|
||||
readonly cssRules: CSSRuleList;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleRule/selectorText) */
|
||||
selectorText: string;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleRule/style) */
|
||||
readonly style: CSSStyleDeclaration;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleRule/styleMap) */
|
||||
readonly styleMap: StylePropertyMap;
|
||||
deleteRule(index: number): void;
|
||||
insertRule(rule: string, index?: number): number;
|
||||
}
|
||||
|
||||
declare var CSSStyleRule: {
|
||||
|
@ -5061,9 +5101,9 @@ interface CSSStyleValue {
|
|||
declare var CSSStyleValue: {
|
||||
prototype: 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;
|
||||
/** [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[];
|
||||
};
|
||||
|
||||
|
@ -5439,6 +5479,8 @@ interface CanvasShadowStyles {
|
|||
}
|
||||
|
||||
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) */
|
||||
restore(): void;
|
||||
/** [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)
|
||||
*/
|
||||
interface ClipboardItem {
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ClipboardItem/presentationStyle) */
|
||||
readonly presentationStyle: PresentationStyle;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ClipboardItem/types) */
|
||||
readonly types: ReadonlyArray<string>;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ClipboardItem/getType) */
|
||||
|
@ -6175,7 +6215,7 @@ interface DOMPoint extends DOMPointReadOnly {
|
|||
declare var DOMPoint: {
|
||||
prototype: 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;
|
||||
};
|
||||
|
||||
|
@ -6201,7 +6241,7 @@ interface DOMPointReadOnly {
|
|||
declare var DOMPointReadOnly: {
|
||||
prototype: 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;
|
||||
};
|
||||
|
||||
|
@ -6279,7 +6319,7 @@ interface DOMRectReadOnly {
|
|||
declare var DOMRectReadOnly: {
|
||||
prototype: 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;
|
||||
};
|
||||
|
||||
|
@ -7119,6 +7159,7 @@ interface Document extends Node, DocumentOrShadowRoot, FontFaceSource, GlobalEve
|
|||
createEvent(eventInterface: "SpeechSynthesisEvent"): SpeechSynthesisEvent;
|
||||
createEvent(eventInterface: "StorageEvent"): StorageEvent;
|
||||
createEvent(eventInterface: "SubmitEvent"): SubmitEvent;
|
||||
createEvent(eventInterface: "ToggleEvent"): ToggleEvent;
|
||||
createEvent(eventInterface: "TouchEvent"): TouchEvent;
|
||||
createEvent(eventInterface: "TrackEvent"): TrackEvent;
|
||||
createEvent(eventInterface: "TransitionEvent"): TransitionEvent;
|
||||
|
@ -8866,6 +8907,7 @@ interface GlobalEventHandlersEventMap {
|
|||
"reset": Event;
|
||||
"resize": UIEvent;
|
||||
"scroll": Event;
|
||||
"scrollend": Event;
|
||||
"securitypolicyviolation": SecurityPolicyViolationEvent;
|
||||
"seeked": Event;
|
||||
"seeking": Event;
|
||||
|
@ -9038,7 +9080,7 @@ interface GlobalEventHandlers {
|
|||
* Fires when an error occurs during object loading.
|
||||
* @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;
|
||||
/**
|
||||
|
@ -9216,6 +9258,8 @@ interface GlobalEventHandlers {
|
|||
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/scroll_event)
|
||||
*/
|
||||
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) */
|
||||
onsecuritypolicyviolation: ((this: GlobalEventHandlers, ev: SecurityPolicyViolationEvent) => any) | null;
|
||||
/**
|
||||
|
@ -9637,7 +9681,7 @@ declare var HTMLBodyElement: {
|
|||
*
|
||||
* [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) */
|
||||
disabled: boolean;
|
||||
/**
|
||||
|
@ -10033,6 +10077,8 @@ interface HTMLElement extends Element, ElementCSSInlineStyle, ElementContentEdit
|
|||
readonly offsetWidth: number;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/outerText) */
|
||||
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) */
|
||||
spellcheck: boolean;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/title) */
|
||||
|
@ -10042,6 +10088,12 @@ interface HTMLElement extends Element, ElementCSSInlineStyle, ElementContentEdit
|
|||
attachInternals(): ElementInternals;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/click) */
|
||||
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(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;
|
||||
|
@ -10233,7 +10285,7 @@ interface HTMLFormElement extends HTMLElement {
|
|||
*
|
||||
* [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.
|
||||
*
|
||||
|
@ -10886,7 +10938,7 @@ declare var HTMLImageElement: {
|
|||
*
|
||||
* [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. */
|
||||
accept: string;
|
||||
/**
|
||||
|
@ -10901,7 +10953,7 @@ interface HTMLInputElement extends HTMLElement {
|
|||
*
|
||||
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/autocomplete)
|
||||
*/
|
||||
autocomplete: string;
|
||||
autocomplete: AutoFill;
|
||||
capture: string;
|
||||
/** Sets or retrieves the state of the check box or radio button. */
|
||||
checked: boolean;
|
||||
|
@ -12271,7 +12323,7 @@ interface HTMLScriptElement extends HTMLElement {
|
|||
declare var HTMLScriptElement: {
|
||||
prototype: 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;
|
||||
};
|
||||
|
||||
|
@ -12282,7 +12334,7 @@ declare var HTMLScriptElement: {
|
|||
*/
|
||||
interface HTMLSelectElement extends HTMLElement {
|
||||
/** [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) */
|
||||
disabled: boolean;
|
||||
/**
|
||||
|
@ -13084,7 +13136,7 @@ declare var HTMLTemplateElement: {
|
|||
*/
|
||||
interface HTMLTextAreaElement extends HTMLElement {
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/autocomplete) */
|
||||
autocomplete: string;
|
||||
autocomplete: AutoFill;
|
||||
/** Sets or retrieves the width of the object. */
|
||||
cols: number;
|
||||
/** Sets or retrieves the initial contents of the object. */
|
||||
|
@ -13392,6 +13444,8 @@ interface Headers {
|
|||
delete(name: string): void;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers/get) */
|
||||
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) */
|
||||
has(name: string): boolean;
|
||||
/** [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.
|
||||
*
|
||||
* [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;
|
||||
/**
|
||||
* 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;
|
||||
/**
|
||||
* 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;
|
||||
/**
|
||||
* 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;
|
||||
};
|
||||
|
@ -14230,6 +14284,8 @@ interface InnerHTML {
|
|||
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/InputDeviceInfo)
|
||||
*/
|
||||
interface InputDeviceInfo extends MediaDeviceInfo {
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/InputDeviceInfo/getCapabilities) */
|
||||
getCapabilities(): MediaTrackCapabilities;
|
||||
}
|
||||
|
||||
declare var InputDeviceInfo: {
|
||||
|
@ -15112,7 +15168,7 @@ interface MediaRecorder extends EventTarget {
|
|||
declare var MediaRecorder: {
|
||||
prototype: 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;
|
||||
};
|
||||
|
||||
|
@ -15178,7 +15234,7 @@ interface MediaSource extends EventTarget {
|
|||
declare var MediaSource: {
|
||||
prototype: 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;
|
||||
};
|
||||
|
||||
|
@ -16343,6 +16399,8 @@ interface Notification extends EventTarget {
|
|||
onerror: ((this: Notification, ev: Event) => any) | null;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/show_event) */
|
||||
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) */
|
||||
readonly tag: string;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/title) */
|
||||
|
@ -16358,9 +16416,9 @@ interface Notification extends EventTarget {
|
|||
declare var Notification: {
|
||||
prototype: 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;
|
||||
/** [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>;
|
||||
};
|
||||
|
||||
|
@ -17100,7 +17158,7 @@ interface PerformanceObserver {
|
|||
declare var PerformanceObserver: {
|
||||
prototype: 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>;
|
||||
};
|
||||
|
||||
|
@ -17578,6 +17636,13 @@ declare var 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.
|
||||
*
|
||||
|
@ -17646,7 +17711,7 @@ declare var PublicKeyCredential: {
|
|||
prototype: PublicKeyCredential;
|
||||
new(): PublicKeyCredential;
|
||||
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>;
|
||||
};
|
||||
|
||||
|
@ -17668,7 +17733,7 @@ interface PushManager {
|
|||
declare var PushManager: {
|
||||
prototype: 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>;
|
||||
};
|
||||
|
||||
|
@ -18113,7 +18178,7 @@ interface RTCPeerConnection extends EventTarget {
|
|||
declare var RTCPeerConnection: {
|
||||
prototype: 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>;
|
||||
};
|
||||
|
||||
|
@ -18173,7 +18238,7 @@ interface RTCRtpReceiver {
|
|||
declare var RTCRtpReceiver: {
|
||||
prototype: 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;
|
||||
};
|
||||
|
||||
|
@ -18204,7 +18269,7 @@ interface RTCRtpSender {
|
|||
declare var RTCRtpSender: {
|
||||
prototype: 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;
|
||||
};
|
||||
|
||||
|
@ -18749,10 +18814,11 @@ interface Response extends Body {
|
|||
declare var Response: {
|
||||
prototype: 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) */
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/error_static) */
|
||||
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;
|
||||
};
|
||||
|
||||
|
@ -20917,8 +20983,6 @@ interface ScreenOrientation extends EventTarget {
|
|||
onchange: ((this: ScreenOrientation, ev: Event) => any) | null;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ScreenOrientation/type) */
|
||||
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) */
|
||||
unlock(): 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;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/message_event) */
|
||||
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;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/ready) */
|
||||
readonly ready: Promise<ServiceWorkerRegistration>;
|
||||
|
@ -21849,7 +21912,7 @@ interface TextDecoder extends TextDecoderCommon {
|
|||
*
|
||||
* [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: {
|
||||
|
@ -22231,6 +22294,19 @@ declare var 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.
|
||||
*
|
||||
|
@ -22484,10 +22560,10 @@ declare var URL: {
|
|||
prototype: URL;
|
||||
new(url: string | URL, base?: string | URL): URL;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/canParse_static) */
|
||||
canParse(url: string | URL, base?: string | URL): boolean;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/createObjectURL) */
|
||||
canParse(url: string | URL, base?: string): boolean;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/createObjectURL_static) */
|
||||
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;
|
||||
};
|
||||
|
||||
|
@ -22496,6 +22572,8 @@ declare var webkitURL: typeof URL;
|
|||
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/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.
|
||||
*
|
||||
|
@ -22507,7 +22585,7 @@ interface URLSearchParams {
|
|||
*
|
||||
* [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.
|
||||
*
|
||||
|
@ -22525,7 +22603,7 @@ interface URLSearchParams {
|
|||
*
|
||||
* [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.
|
||||
*
|
||||
|
@ -22625,6 +22703,7 @@ declare var VTTRegion: {
|
|||
interface ValidityState {
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ValidityState/badInput) */
|
||||
readonly badInput: boolean;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ValidityState/customError) */
|
||||
readonly customError: boolean;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ValidityState/patternMismatch) */
|
||||
readonly patternMismatch: boolean;
|
||||
|
@ -22640,7 +22719,9 @@ interface ValidityState {
|
|||
readonly tooShort: boolean;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ValidityState/typeMismatch) */
|
||||
readonly typeMismatch: boolean;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ValidityState/valid) */
|
||||
readonly valid: boolean;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ValidityState/valueMissing) */
|
||||
readonly valueMissing: boolean;
|
||||
}
|
||||
|
||||
|
@ -25355,6 +25436,96 @@ declare var WebSocket: {
|
|||
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.
|
||||
*
|
||||
|
@ -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. */
|
||||
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;
|
||||
/** [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;
|
||||
/** [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;
|
||||
/** [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;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
|
||||
function cqb(value: number): CSSUnitValue;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
|
||||
function cqh(value: number): CSSUnitValue;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
|
||||
function cqi(value: number): CSSUnitValue;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
|
||||
function cqmax(value: number): CSSUnitValue;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
|
||||
function cqmin(value: number): CSSUnitValue;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
|
||||
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;
|
||||
/** [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;
|
||||
/** [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;
|
||||
/** [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;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
|
||||
function dvb(value: number): CSSUnitValue;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
|
||||
function dvh(value: number): CSSUnitValue;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
|
||||
function dvi(value: number): CSSUnitValue;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
|
||||
function dvmax(value: number): CSSUnitValue;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
|
||||
function dvmin(value: number): CSSUnitValue;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
|
||||
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;
|
||||
/** [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;
|
||||
/** [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;
|
||||
/** [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;
|
||||
/** [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;
|
||||
/** [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;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
|
||||
function lvb(value: number): CSSUnitValue;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
|
||||
function lvh(value: number): CSSUnitValue;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
|
||||
function lvi(value: number): CSSUnitValue;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
|
||||
function lvmax(value: number): CSSUnitValue;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
|
||||
function lvmin(value: number): CSSUnitValue;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
|
||||
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;
|
||||
/** [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;
|
||||
/** [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;
|
||||
/** [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;
|
||||
/** [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;
|
||||
/** [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;
|
||||
/** [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;
|
||||
/** [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;
|
||||
/** [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;
|
||||
/** [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;
|
||||
/** [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;
|
||||
/** [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(conditionText: string): boolean;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
|
||||
function svb(value: number): CSSUnitValue;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
|
||||
function svh(value: number): CSSUnitValue;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
|
||||
function svi(value: number): CSSUnitValue;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
|
||||
function svmax(value: number): CSSUnitValue;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
|
||||
function svmin(value: number): CSSUnitValue;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
|
||||
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;
|
||||
/** [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;
|
||||
/** [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;
|
||||
/** [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;
|
||||
/** [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;
|
||||
/** [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;
|
||||
/** [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;
|
||||
}
|
||||
|
||||
|
@ -26402,16 +26597,16 @@ declare namespace WebAssembly {
|
|||
};
|
||||
|
||||
/** [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) */
|
||||
value: any;
|
||||
value: ValueTypeMap[T];
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Global/valueOf) */
|
||||
valueOf(): any;
|
||||
valueOf(): ValueTypeMap[T];
|
||||
}
|
||||
|
||||
var 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) */
|
||||
|
@ -26488,9 +26683,9 @@ declare namespace WebAssembly {
|
|||
new(descriptor: TableDescriptor, value?: any): Table;
|
||||
};
|
||||
|
||||
interface GlobalDescriptor {
|
||||
interface GlobalDescriptor<T extends ValueType = ValueType> {
|
||||
mutable?: boolean;
|
||||
value: ValueType;
|
||||
value: T;
|
||||
}
|
||||
|
||||
interface MemoryDescriptor {
|
||||
|
@ -26516,6 +26711,16 @@ declare namespace WebAssembly {
|
|||
maximum?: number;
|
||||
}
|
||||
|
||||
interface ValueTypeMap {
|
||||
anyfunc: Function;
|
||||
externref: any;
|
||||
f32: number;
|
||||
f64: number;
|
||||
i32: number;
|
||||
i64: bigint;
|
||||
v128: never;
|
||||
}
|
||||
|
||||
interface WebAssemblyInstantiatedSource {
|
||||
instance: Instance;
|
||||
module: Module;
|
||||
|
@ -26523,12 +26728,12 @@ declare namespace WebAssembly {
|
|||
|
||||
type ImportExportKind = "function" | "global" | "memory" | "table";
|
||||
type TableKind = "anyfunc" | "externref";
|
||||
type ValueType = "anyfunc" | "externref" | "f32" | "f64" | "i32" | "i64" | "v128";
|
||||
type ExportValue = Function | Global | Memory | Table;
|
||||
type Exports = Record<string, ExportValue>;
|
||||
type ImportValue = ExportValue | number;
|
||||
type Imports = Record<string, ModuleImports>;
|
||||
type ModuleImports = Record<string, ImportValue>;
|
||||
type ValueType = keyof ValueTypeMap;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/compile) */
|
||||
function compile(bytes: BufferSource): Promise<Module>;
|
||||
/** [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.
|
||||
* @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;
|
||||
/**
|
||||
|
@ -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)
|
||||
*/
|
||||
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) */
|
||||
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(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
||||
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 BinaryData = ArrayBuffer | ArrayBufferView;
|
||||
type BlobPart = BufferSource | Blob | string;
|
||||
|
@ -27796,6 +28007,8 @@ type NamedCurve = string;
|
|||
type OffscreenRenderingContext = OffscreenCanvasRenderingContext2D | ImageBitmapRenderingContext | WebGLRenderingContext | WebGL2RenderingContext;
|
||||
type OnBeforeUnloadEventHandler = OnBeforeUnloadEventHandlerNonNull | null;
|
||||
type OnErrorEventHandler = OnErrorEventHandlerNonNull | null;
|
||||
type OptionalPostfixToken<T extends string> = ` ${T}` | "";
|
||||
type OptionalPrefixToken<T extends string> = `${T} ` | "";
|
||||
type PerformanceEntryList = PerformanceEntry[];
|
||||
type ReadableStreamController<T> = ReadableStreamDefaultController<T> | ReadableByteStreamController;
|
||||
type ReadableStreamReadResult<T> = ReadableStreamReadValueResult<T> | ReadableStreamReadDoneResult<T>;
|
||||
|
@ -27820,6 +28033,12 @@ type AudioContextLatencyCategory = "balanced" | "interactive" | "playback";
|
|||
type AudioContextState = "closed" | "running" | "suspended";
|
||||
type AuthenticatorAttachment = "cross-platform" | "platform";
|
||||
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 AutomationRate = "a-rate" | "k-rate";
|
||||
type AvcBitstreamFormat = "annexb" | "avc";
|
||||
|
@ -27902,7 +28121,6 @@ type NavigationTimingType = "back_forward" | "navigate" | "prerender" | "reload"
|
|||
type NotificationDirection = "auto" | "ltr" | "rtl";
|
||||
type NotificationPermission = "default" | "denied" | "granted";
|
||||
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 OscillatorType = "custom" | "sawtooth" | "sine" | "square" | "triangle";
|
||||
type OverSampleType = "2x" | "4x" | "none";
|
||||
|
@ -27940,7 +28158,7 @@ type RTCSctpTransportState = "closed" | "connected" | "connecting";
|
|||
type RTCSdpType = "answer" | "offer" | "pranswer" | "rollback";
|
||||
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 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 ReadableStreamType = "bytes";
|
||||
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 WakeLockType = "screen";
|
||||
type WebGLPowerPreference = "default" | "high-performance" | "low-power";
|
||||
type WebTransportCongestionControl = "default" | "low-latency" | "throughput";
|
||||
type WebTransportErrorSource = "session" | "stream";
|
||||
type WorkerType = "classic" | "module";
|
||||
type WriteCommandType = "seek" | "truncate" | "write";
|
||||
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;
|
||||
}
|
||||
|
||||
interface WeakMap<K extends object, V> {
|
||||
interface WeakMap<K extends WeakKey, V> {
|
||||
/**
|
||||
* Removes the specified element from the WeakMap.
|
||||
* @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;
|
||||
/**
|
||||
* 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;
|
||||
}
|
||||
|
||||
interface WeakMapConstructor {
|
||||
new <K extends object = object, V = any>(entries?: readonly (readonly [K, V])[] | null): WeakMap<K, V>;
|
||||
readonly prototype: WeakMap<object, any>;
|
||||
new <K extends WeakKey = WeakKey, V = any>(entries?: readonly (readonly [K, V])[] | null): WeakMap<K, V>;
|
||||
readonly prototype: WeakMap<WeakKey, any>;
|
||||
}
|
||||
declare var WeakMap: WeakMapConstructor;
|
||||
|
||||
|
@ -125,9 +125,9 @@ interface ReadonlySet<T> {
|
|||
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;
|
||||
/**
|
||||
|
@ -136,13 +136,13 @@ interface WeakSet<T extends object> {
|
|||
*/
|
||||
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;
|
||||
}
|
||||
|
||||
interface WeakSetConstructor {
|
||||
new <T extends object = object>(values?: readonly T[] | null): WeakSet<T>;
|
||||
readonly prototype: WeakSet<object>;
|
||||
new <T extends WeakKey = WeakKey>(values?: readonly T[] | null): WeakSet<T>;
|
||||
readonly prototype: WeakSet<WeakKey>;
|
||||
}
|
||||
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
|
||||
* length of the array.
|
||||
* @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.
|
||||
*/
|
||||
copyWithin(target: number, start?: number, end?: number): this;
|
||||
copyWithin(target: number, start: number, end?: number): this;
|
||||
}
|
||||
|
||||
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>;
|
||||
}
|
||||
|
||||
interface WeakMap<K extends object, V> { }
|
||||
interface WeakMap<K extends WeakKey, V> { }
|
||||
|
||||
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> {
|
||||
|
@ -207,10 +207,10 @@ interface SetConstructor {
|
|||
new <T>(iterable?: Iterable<T> | null): Set<T>;
|
||||
}
|
||||
|
||||
interface WeakSet<T extends object> { }
|
||||
interface WeakSet<T extends WeakKey> { }
|
||||
|
||||
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> { }
|
||||
|
|
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;
|
||||
}
|
||||
|
||||
interface WeakMap<K extends object, V> {
|
||||
interface WeakMap<K extends WeakKey, V> {
|
||||
readonly [Symbol.toStringTag]: string;
|
||||
}
|
||||
|
||||
|
@ -145,7 +145,7 @@ interface Set<T> {
|
|||
readonly [Symbol.toStringTag]: string;
|
||||
}
|
||||
|
||||
interface WeakSet<T extends object> {
|
||||
interface WeakSet<T extends WeakKey> {
|
||||
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.intl" />
|
||||
/// <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
|
||||
* length of the array.
|
||||
* @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.
|
||||
*/
|
||||
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. */
|
||||
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
|
||||
* length of the array.
|
||||
* @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.
|
||||
*/
|
||||
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. */
|
||||
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"/>
|
||||
|
||||
interface WeakRef<T extends object> {
|
||||
interface WeakRef<T extends WeakKey> {
|
||||
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.
|
||||
* In es2023 the value can be either a symbol or an object, in previous versions only object is permissible.
|
||||
*/
|
||||
deref(): T | undefined;
|
||||
}
|
||||
|
@ -30,10 +31,11 @@ interface WeakRefConstructor {
|
|||
readonly prototype: WeakRef<any>;
|
||||
|
||||
/**
|
||||
* Creates a WeakRef instance for the given target object.
|
||||
* @param target The target object for the WeakRef instance.
|
||||
* Creates a WeakRef instance for the given target value.
|
||||
* 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;
|
||||
|
@ -42,22 +44,23 @@ interface FinalizationRegistry<T> {
|
|||
readonly [Symbol.toStringTag]: "FinalizationRegistry";
|
||||
|
||||
/**
|
||||
* Registers an object with the registry.
|
||||
* @param target The target object to register.
|
||||
* @param heldValue The value to pass to the finalizer for this object. This cannot be the
|
||||
* target object.
|
||||
* Registers a value with the registry.
|
||||
* In es2023 the value can be either a symbol or an object, in previous versions only object is permissible.
|
||||
* @param target The target value to register.
|
||||
* @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
|
||||
* object. If provided (and not undefined), this must be an object. If not provided, the target
|
||||
* cannot be unregistered.
|
||||
* value. If not provided, the target 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
|
||||
* register to register the target object.
|
||||
* register to register the target value.
|
||||
*/
|
||||
unregister(unregisterToken: object): void;
|
||||
unregister(unregisterToken: WeakKey): void;
|
||||
}
|
||||
|
||||
interface FinalizationRegistryConstructor {
|
||||
|
@ -65,7 +68,7 @@ interface FinalizationRegistryConstructor {
|
|||
|
||||
/**
|
||||
* 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>;
|
||||
}
|
||||
|
|
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.
|
||||
*/
|
||||
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> {
|
||||
|
@ -51,8 +95,14 @@ interface ReadonlyArray<T> {
|
|||
* @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.
|
||||
*/
|
||||
findLast<S extends T>(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;
|
||||
findLast<S extends T>(
|
||||
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
|
||||
|
@ -63,7 +113,54 @@ interface ReadonlyArray<T> {
|
|||
* @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.
|
||||
*/
|
||||
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 {
|
||||
|
@ -76,8 +173,18 @@ interface Int8Array {
|
|||
* @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.
|
||||
*/
|
||||
findLast<S extends number>(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;
|
||||
findLast<S extends number>(
|
||||
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
|
||||
|
@ -88,7 +195,36 @@ interface Int8Array {
|
|||
* @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.
|
||||
*/
|
||||
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 {
|
||||
|
@ -101,8 +237,18 @@ interface Uint8Array {
|
|||
* @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.
|
||||
*/
|
||||
findLast<S extends number>(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;
|
||||
findLast<S extends number>(
|
||||
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
|
||||
|
@ -113,7 +259,36 @@ interface Uint8Array {
|
|||
* @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.
|
||||
*/
|
||||
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 {
|
||||
|
@ -126,8 +301,22 @@ interface Uint8ClampedArray {
|
|||
* @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.
|
||||
*/
|
||||
findLast<S extends number>(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;
|
||||
findLast<S extends number>(
|
||||
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
|
||||
|
@ -138,7 +327,40 @@ interface Uint8ClampedArray {
|
|||
* @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.
|
||||
*/
|
||||
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 {
|
||||
|
@ -151,8 +373,18 @@ interface Int16Array {
|
|||
* @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.
|
||||
*/
|
||||
findLast<S extends number>(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;
|
||||
findLast<S extends number>(
|
||||
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
|
||||
|
@ -163,7 +395,36 @@ interface Int16Array {
|
|||
* @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.
|
||||
*/
|
||||
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 {
|
||||
|
@ -176,8 +437,22 @@ interface Uint16Array {
|
|||
* @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.
|
||||
*/
|
||||
findLast<S extends number>(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;
|
||||
findLast<S extends number>(
|
||||
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
|
||||
|
@ -188,7 +463,40 @@ interface Uint16Array {
|
|||
* @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.
|
||||
*/
|
||||
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 {
|
||||
|
@ -201,8 +509,18 @@ interface Int32Array {
|
|||
* @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.
|
||||
*/
|
||||
findLast<S extends number>(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;
|
||||
findLast<S extends number>(
|
||||
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
|
||||
|
@ -213,7 +531,36 @@ interface Int32Array {
|
|||
* @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.
|
||||
*/
|
||||
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 {
|
||||
|
@ -226,8 +573,22 @@ interface Uint32Array {
|
|||
* @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.
|
||||
*/
|
||||
findLast<S extends number>(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;
|
||||
findLast<S extends number>(
|
||||
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
|
||||
|
@ -238,7 +599,40 @@ interface Uint32Array {
|
|||
* @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.
|
||||
*/
|
||||
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 {
|
||||
|
@ -251,8 +645,22 @@ interface Float32Array {
|
|||
* @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.
|
||||
*/
|
||||
findLast<S extends number>(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;
|
||||
findLast<S extends number>(
|
||||
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
|
||||
|
@ -263,7 +671,40 @@ interface Float32Array {
|
|||
* @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.
|
||||
*/
|
||||
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 {
|
||||
|
@ -276,8 +717,22 @@ interface Float64Array {
|
|||
* @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.
|
||||
*/
|
||||
findLast<S extends number>(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;
|
||||
findLast<S extends number>(
|
||||
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
|
||||
|
@ -288,7 +743,40 @@ interface Float64Array {
|
|||
* @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.
|
||||
*/
|
||||
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 {
|
||||
|
@ -301,8 +789,22 @@ interface BigInt64Array {
|
|||
* @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.
|
||||
*/
|
||||
findLast<S extends bigint>(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;
|
||||
findLast<S extends bigint>(
|
||||
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
|
||||
|
@ -313,7 +815,40 @@ interface BigInt64Array {
|
|||
* @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.
|
||||
*/
|
||||
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 {
|
||||
|
@ -326,8 +861,22 @@ interface BigUint64Array {
|
|||
* @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.
|
||||
*/
|
||||
findLast<S extends bigint>(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;
|
||||
findLast<S extends bigint>(
|
||||
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
|
||||
|
@ -338,5 +887,38 @@ interface BigUint64Array {
|
|||
* @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.
|
||||
*/
|
||||
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="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> { }
|
||||
|
||||
/**
|
||||
* 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
|
||||
* 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
|
||||
* length of the array.
|
||||
* @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.
|
||||
*/
|
||||
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.
|
||||
|
@ -2163,10 +2172,10 @@ interface Uint8Array {
|
|||
* @param target If target is negative, it is treated as length+target where length is the
|
||||
* length of the array.
|
||||
* @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.
|
||||
*/
|
||||
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.
|
||||
|
@ -2445,10 +2454,10 @@ interface Uint8ClampedArray {
|
|||
* @param target If target is negative, it is treated as length+target where length is the
|
||||
* length of the array.
|
||||
* @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.
|
||||
*/
|
||||
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.
|
||||
|
@ -2726,10 +2735,10 @@ interface Int16Array {
|
|||
* @param target If target is negative, it is treated as length+target where length is the
|
||||
* length of the array.
|
||||
* @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.
|
||||
*/
|
||||
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.
|
||||
|
@ -3008,10 +3017,10 @@ interface Uint16Array {
|
|||
* @param target If target is negative, it is treated as length+target where length is the
|
||||
* length of the array.
|
||||
* @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.
|
||||
*/
|
||||
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.
|
||||
|
@ -3290,10 +3299,10 @@ interface Int32Array {
|
|||
* @param target If target is negative, it is treated as length+target where length is the
|
||||
* length of the array.
|
||||
* @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.
|
||||
*/
|
||||
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.
|
||||
|
@ -3572,10 +3581,10 @@ interface Uint32Array {
|
|||
* @param target If target is negative, it is treated as length+target where length is the
|
||||
* length of the array.
|
||||
* @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.
|
||||
*/
|
||||
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.
|
||||
|
@ -3853,10 +3862,10 @@ interface Float32Array {
|
|||
* @param target If target is negative, it is treated as length+target where length is the
|
||||
* length of the array.
|
||||
* @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.
|
||||
*/
|
||||
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.
|
||||
|
@ -4136,10 +4145,10 @@ interface Float64Array {
|
|||
* @param target If target is negative, it is treated as length+target where length is the
|
||||
* length of the array.
|
||||
* @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.
|
||||
*/
|
||||
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.
|
||||
|
|
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="esnext.array" />
|
||||
/// <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;
|
||||
renotify?: boolean;
|
||||
requireInteraction?: boolean;
|
||||
silent?: boolean;
|
||||
silent?: boolean | null;
|
||||
tag?: string;
|
||||
timestamp?: EpochTimeStamp;
|
||||
vibrate?: VibratePattern;
|
||||
|
@ -539,7 +539,6 @@ interface RTCEncodedAudioFrameMetadata {
|
|||
}
|
||||
|
||||
interface RTCEncodedVideoFrameMetadata {
|
||||
contributingSources?: number[];
|
||||
dependencies?: number[];
|
||||
frameId?: number;
|
||||
height?: number;
|
||||
|
@ -709,8 +708,8 @@ interface TextDecoderOptions {
|
|||
}
|
||||
|
||||
interface TextEncoderEncodeIntoResult {
|
||||
read?: number;
|
||||
written?: number;
|
||||
read: number;
|
||||
written: number;
|
||||
}
|
||||
|
||||
interface Transformer<I = any, O = any> {
|
||||
|
@ -866,6 +865,32 @@ interface WebGLContextEventInit extends EventInit {
|
|||
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 {
|
||||
credentials?: RequestCredentials;
|
||||
name?: string;
|
||||
|
@ -950,9 +975,9 @@ interface AbortSignal extends EventTarget {
|
|||
declare var AbortSignal: {
|
||||
prototype: 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;
|
||||
/** [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;
|
||||
};
|
||||
|
||||
|
@ -1633,6 +1658,8 @@ interface CanvasShadowStyles {
|
|||
}
|
||||
|
||||
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) */
|
||||
restore(): void;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/save) */
|
||||
|
@ -2083,7 +2110,7 @@ interface DOMPoint extends DOMPointReadOnly {
|
|||
declare var DOMPoint: {
|
||||
prototype: 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;
|
||||
};
|
||||
|
||||
|
@ -2106,7 +2133,7 @@ interface DOMPointReadOnly {
|
|||
declare var DOMPointReadOnly: {
|
||||
prototype: 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;
|
||||
};
|
||||
|
||||
|
@ -2170,7 +2197,7 @@ interface DOMRectReadOnly {
|
|||
declare var DOMRectReadOnly: {
|
||||
prototype: 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;
|
||||
};
|
||||
|
||||
|
@ -2878,11 +2905,11 @@ interface FileSystemSyncAccessHandle {
|
|||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemSyncAccessHandle/getSize) */
|
||||
getSize(): number;
|
||||
/** [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) */
|
||||
truncate(newSize: number): void;
|
||||
/** [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: {
|
||||
|
@ -3045,6 +3072,8 @@ interface Headers {
|
|||
delete(name: string): void;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers/get) */
|
||||
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) */
|
||||
has(name: string): boolean;
|
||||
/** [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.
|
||||
*
|
||||
* [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;
|
||||
/**
|
||||
* 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;
|
||||
/**
|
||||
* 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;
|
||||
/**
|
||||
* 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;
|
||||
};
|
||||
|
@ -4111,6 +4140,8 @@ interface Notification extends EventTarget {
|
|||
onerror: ((this: Notification, ev: Event) => any) | null;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/show_event) */
|
||||
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) */
|
||||
readonly tag: string;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/title) */
|
||||
|
@ -4126,7 +4157,7 @@ interface Notification extends EventTarget {
|
|||
declare var Notification: {
|
||||
prototype: 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;
|
||||
};
|
||||
|
||||
|
@ -4450,7 +4481,7 @@ interface PerformanceObserver {
|
|||
declare var PerformanceObserver: {
|
||||
prototype: 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>;
|
||||
};
|
||||
|
||||
|
@ -4638,7 +4669,7 @@ interface PushManager {
|
|||
declare var PushManager: {
|
||||
prototype: 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>;
|
||||
};
|
||||
|
||||
|
@ -5004,9 +5035,11 @@ interface Response extends Body {
|
|||
declare var Response: {
|
||||
prototype: 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;
|
||||
/** [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;
|
||||
};
|
||||
|
||||
|
@ -5097,7 +5130,6 @@ interface ServiceWorkerContainer extends EventTarget {
|
|||
oncontrollerchange: ((this: ServiceWorkerContainer, ev: Event) => any) | null;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/message_event) */
|
||||
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;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/ready) */
|
||||
readonly ready: Promise<ServiceWorkerRegistration>;
|
||||
|
@ -5351,7 +5383,7 @@ interface TextDecoder extends TextDecoderCommon {
|
|||
*
|
||||
* [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: {
|
||||
|
@ -5560,15 +5592,17 @@ declare var URL: {
|
|||
prototype: URL;
|
||||
new(url: string | URL, base?: string | URL): URL;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/canParse_static) */
|
||||
canParse(url: string | URL, base?: string | URL): boolean;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/createObjectURL) */
|
||||
canParse(url: string | URL, base?: string): boolean;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/createObjectURL_static) */
|
||||
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;
|
||||
};
|
||||
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/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.
|
||||
*
|
||||
|
@ -5580,7 +5614,7 @@ interface URLSearchParams {
|
|||
*
|
||||
* [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.
|
||||
*
|
||||
|
@ -5598,7 +5632,7 @@ interface URLSearchParams {
|
|||
*
|
||||
* [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.
|
||||
*
|
||||
|
@ -8199,6 +8233,96 @@ declare var WebSocket: {
|
|||
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.
|
||||
*
|
||||
|
@ -8720,16 +8844,16 @@ declare namespace WebAssembly {
|
|||
};
|
||||
|
||||
/** [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) */
|
||||
value: any;
|
||||
value: ValueTypeMap[T];
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Global/valueOf) */
|
||||
valueOf(): any;
|
||||
valueOf(): ValueTypeMap[T];
|
||||
}
|
||||
|
||||
var 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) */
|
||||
|
@ -8806,9 +8930,9 @@ declare namespace WebAssembly {
|
|||
new(descriptor: TableDescriptor, value?: any): Table;
|
||||
};
|
||||
|
||||
interface GlobalDescriptor {
|
||||
interface GlobalDescriptor<T extends ValueType = ValueType> {
|
||||
mutable?: boolean;
|
||||
value: ValueType;
|
||||
value: T;
|
||||
}
|
||||
|
||||
interface MemoryDescriptor {
|
||||
|
@ -8834,6 +8958,16 @@ declare namespace WebAssembly {
|
|||
maximum?: number;
|
||||
}
|
||||
|
||||
interface ValueTypeMap {
|
||||
anyfunc: Function;
|
||||
externref: any;
|
||||
f32: number;
|
||||
f64: number;
|
||||
i32: number;
|
||||
i64: bigint;
|
||||
v128: never;
|
||||
}
|
||||
|
||||
interface WebAssemblyInstantiatedSource {
|
||||
instance: Instance;
|
||||
module: Module;
|
||||
|
@ -8841,12 +8975,12 @@ declare namespace WebAssembly {
|
|||
|
||||
type ImportExportKind = "function" | "global" | "memory" | "table";
|
||||
type TableKind = "anyfunc" | "externref";
|
||||
type ValueType = "anyfunc" | "externref" | "f32" | "f64" | "i32" | "i64" | "v128";
|
||||
type ExportValue = Function | Global | Memory | Table;
|
||||
type Exports = Record<string, ExportValue>;
|
||||
type ImportValue = ExportValue | number;
|
||||
type Imports = Record<string, ModuleImports>;
|
||||
type ModuleImports = Record<string, ImportValue>;
|
||||
type ValueType = keyof ValueTypeMap;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/compile) */
|
||||
function compile(bytes: BufferSource): Promise<Module>;
|
||||
/** [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(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
||||
type AlgorithmIdentifier = Algorithm | string;
|
||||
type AllowSharedBufferSource = ArrayBuffer | ArrayBufferView;
|
||||
type BigInteger = Uint8Array;
|
||||
type BinaryData = ArrayBuffer | ArrayBufferView;
|
||||
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 VideoTransferCharacteristics = "bt709" | "iec61966-2-1" | "smpte170m";
|
||||
type WebGLPowerPreference = "default" | "high-performance" | "low-power";
|
||||
type WebTransportCongestionControl = "default" | "low-latency" | "throughput";
|
||||
type WebTransportErrorSource = "session" | "stream";
|
||||
type WorkerType = "classic" | "module";
|
||||
type WriteCommandType = "seek" | "truncate" | "write";
|
||||
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;
|
||||
}
|
||||
}
|
||||
const versionMajorMinor = "5.1";
|
||||
const versionMajorMinor = "5.2";
|
||||
/** The version of the TypeScript compiler release */
|
||||
const version: string;
|
||||
/**
|
||||
|
@ -236,211 +236,212 @@ declare namespace ts {
|
|||
UndefinedKeyword = 157,
|
||||
UniqueKeyword = 158,
|
||||
UnknownKeyword = 159,
|
||||
FromKeyword = 160,
|
||||
GlobalKeyword = 161,
|
||||
BigIntKeyword = 162,
|
||||
OverrideKeyword = 163,
|
||||
OfKeyword = 164,
|
||||
QualifiedName = 165,
|
||||
ComputedPropertyName = 166,
|
||||
TypeParameter = 167,
|
||||
Parameter = 168,
|
||||
Decorator = 169,
|
||||
PropertySignature = 170,
|
||||
PropertyDeclaration = 171,
|
||||
MethodSignature = 172,
|
||||
MethodDeclaration = 173,
|
||||
ClassStaticBlockDeclaration = 174,
|
||||
Constructor = 175,
|
||||
GetAccessor = 176,
|
||||
SetAccessor = 177,
|
||||
CallSignature = 178,
|
||||
ConstructSignature = 179,
|
||||
IndexSignature = 180,
|
||||
TypePredicate = 181,
|
||||
TypeReference = 182,
|
||||
FunctionType = 183,
|
||||
ConstructorType = 184,
|
||||
TypeQuery = 185,
|
||||
TypeLiteral = 186,
|
||||
ArrayType = 187,
|
||||
TupleType = 188,
|
||||
OptionalType = 189,
|
||||
RestType = 190,
|
||||
UnionType = 191,
|
||||
IntersectionType = 192,
|
||||
ConditionalType = 193,
|
||||
InferType = 194,
|
||||
ParenthesizedType = 195,
|
||||
ThisType = 196,
|
||||
TypeOperator = 197,
|
||||
IndexedAccessType = 198,
|
||||
MappedType = 199,
|
||||
LiteralType = 200,
|
||||
NamedTupleMember = 201,
|
||||
TemplateLiteralType = 202,
|
||||
TemplateLiteralTypeSpan = 203,
|
||||
ImportType = 204,
|
||||
ObjectBindingPattern = 205,
|
||||
ArrayBindingPattern = 206,
|
||||
BindingElement = 207,
|
||||
ArrayLiteralExpression = 208,
|
||||
ObjectLiteralExpression = 209,
|
||||
PropertyAccessExpression = 210,
|
||||
ElementAccessExpression = 211,
|
||||
CallExpression = 212,
|
||||
NewExpression = 213,
|
||||
TaggedTemplateExpression = 214,
|
||||
TypeAssertionExpression = 215,
|
||||
ParenthesizedExpression = 216,
|
||||
FunctionExpression = 217,
|
||||
ArrowFunction = 218,
|
||||
DeleteExpression = 219,
|
||||
TypeOfExpression = 220,
|
||||
VoidExpression = 221,
|
||||
AwaitExpression = 222,
|
||||
PrefixUnaryExpression = 223,
|
||||
PostfixUnaryExpression = 224,
|
||||
BinaryExpression = 225,
|
||||
ConditionalExpression = 226,
|
||||
TemplateExpression = 227,
|
||||
YieldExpression = 228,
|
||||
SpreadElement = 229,
|
||||
ClassExpression = 230,
|
||||
OmittedExpression = 231,
|
||||
ExpressionWithTypeArguments = 232,
|
||||
AsExpression = 233,
|
||||
NonNullExpression = 234,
|
||||
MetaProperty = 235,
|
||||
SyntheticExpression = 236,
|
||||
SatisfiesExpression = 237,
|
||||
TemplateSpan = 238,
|
||||
SemicolonClassElement = 239,
|
||||
Block = 240,
|
||||
EmptyStatement = 241,
|
||||
VariableStatement = 242,
|
||||
ExpressionStatement = 243,
|
||||
IfStatement = 244,
|
||||
DoStatement = 245,
|
||||
WhileStatement = 246,
|
||||
ForStatement = 247,
|
||||
ForInStatement = 248,
|
||||
ForOfStatement = 249,
|
||||
ContinueStatement = 250,
|
||||
BreakStatement = 251,
|
||||
ReturnStatement = 252,
|
||||
WithStatement = 253,
|
||||
SwitchStatement = 254,
|
||||
LabeledStatement = 255,
|
||||
ThrowStatement = 256,
|
||||
TryStatement = 257,
|
||||
DebuggerStatement = 258,
|
||||
VariableDeclaration = 259,
|
||||
VariableDeclarationList = 260,
|
||||
FunctionDeclaration = 261,
|
||||
ClassDeclaration = 262,
|
||||
InterfaceDeclaration = 263,
|
||||
TypeAliasDeclaration = 264,
|
||||
EnumDeclaration = 265,
|
||||
ModuleDeclaration = 266,
|
||||
ModuleBlock = 267,
|
||||
CaseBlock = 268,
|
||||
NamespaceExportDeclaration = 269,
|
||||
ImportEqualsDeclaration = 270,
|
||||
ImportDeclaration = 271,
|
||||
ImportClause = 272,
|
||||
NamespaceImport = 273,
|
||||
NamedImports = 274,
|
||||
ImportSpecifier = 275,
|
||||
ExportAssignment = 276,
|
||||
ExportDeclaration = 277,
|
||||
NamedExports = 278,
|
||||
NamespaceExport = 279,
|
||||
ExportSpecifier = 280,
|
||||
MissingDeclaration = 281,
|
||||
ExternalModuleReference = 282,
|
||||
JsxElement = 283,
|
||||
JsxSelfClosingElement = 284,
|
||||
JsxOpeningElement = 285,
|
||||
JsxClosingElement = 286,
|
||||
JsxFragment = 287,
|
||||
JsxOpeningFragment = 288,
|
||||
JsxClosingFragment = 289,
|
||||
JsxAttribute = 290,
|
||||
JsxAttributes = 291,
|
||||
JsxSpreadAttribute = 292,
|
||||
JsxExpression = 293,
|
||||
JsxNamespacedName = 294,
|
||||
CaseClause = 295,
|
||||
DefaultClause = 296,
|
||||
HeritageClause = 297,
|
||||
CatchClause = 298,
|
||||
AssertClause = 299,
|
||||
AssertEntry = 300,
|
||||
ImportTypeAssertionContainer = 301,
|
||||
PropertyAssignment = 302,
|
||||
ShorthandPropertyAssignment = 303,
|
||||
SpreadAssignment = 304,
|
||||
EnumMember = 305,
|
||||
/** @deprecated */ UnparsedPrologue = 306,
|
||||
/** @deprecated */ UnparsedPrepend = 307,
|
||||
/** @deprecated */ UnparsedText = 308,
|
||||
/** @deprecated */ UnparsedInternalText = 309,
|
||||
/** @deprecated */ UnparsedSyntheticReference = 310,
|
||||
SourceFile = 311,
|
||||
Bundle = 312,
|
||||
/** @deprecated */ UnparsedSource = 313,
|
||||
/** @deprecated */ InputFiles = 314,
|
||||
JSDocTypeExpression = 315,
|
||||
JSDocNameReference = 316,
|
||||
JSDocMemberName = 317,
|
||||
JSDocAllType = 318,
|
||||
JSDocUnknownType = 319,
|
||||
JSDocNullableType = 320,
|
||||
JSDocNonNullableType = 321,
|
||||
JSDocOptionalType = 322,
|
||||
JSDocFunctionType = 323,
|
||||
JSDocVariadicType = 324,
|
||||
JSDocNamepathType = 325,
|
||||
JSDoc = 326,
|
||||
UsingKeyword = 160,
|
||||
FromKeyword = 161,
|
||||
GlobalKeyword = 162,
|
||||
BigIntKeyword = 163,
|
||||
OverrideKeyword = 164,
|
||||
OfKeyword = 165,
|
||||
QualifiedName = 166,
|
||||
ComputedPropertyName = 167,
|
||||
TypeParameter = 168,
|
||||
Parameter = 169,
|
||||
Decorator = 170,
|
||||
PropertySignature = 171,
|
||||
PropertyDeclaration = 172,
|
||||
MethodSignature = 173,
|
||||
MethodDeclaration = 174,
|
||||
ClassStaticBlockDeclaration = 175,
|
||||
Constructor = 176,
|
||||
GetAccessor = 177,
|
||||
SetAccessor = 178,
|
||||
CallSignature = 179,
|
||||
ConstructSignature = 180,
|
||||
IndexSignature = 181,
|
||||
TypePredicate = 182,
|
||||
TypeReference = 183,
|
||||
FunctionType = 184,
|
||||
ConstructorType = 185,
|
||||
TypeQuery = 186,
|
||||
TypeLiteral = 187,
|
||||
ArrayType = 188,
|
||||
TupleType = 189,
|
||||
OptionalType = 190,
|
||||
RestType = 191,
|
||||
UnionType = 192,
|
||||
IntersectionType = 193,
|
||||
ConditionalType = 194,
|
||||
InferType = 195,
|
||||
ParenthesizedType = 196,
|
||||
ThisType = 197,
|
||||
TypeOperator = 198,
|
||||
IndexedAccessType = 199,
|
||||
MappedType = 200,
|
||||
LiteralType = 201,
|
||||
NamedTupleMember = 202,
|
||||
TemplateLiteralType = 203,
|
||||
TemplateLiteralTypeSpan = 204,
|
||||
ImportType = 205,
|
||||
ObjectBindingPattern = 206,
|
||||
ArrayBindingPattern = 207,
|
||||
BindingElement = 208,
|
||||
ArrayLiteralExpression = 209,
|
||||
ObjectLiteralExpression = 210,
|
||||
PropertyAccessExpression = 211,
|
||||
ElementAccessExpression = 212,
|
||||
CallExpression = 213,
|
||||
NewExpression = 214,
|
||||
TaggedTemplateExpression = 215,
|
||||
TypeAssertionExpression = 216,
|
||||
ParenthesizedExpression = 217,
|
||||
FunctionExpression = 218,
|
||||
ArrowFunction = 219,
|
||||
DeleteExpression = 220,
|
||||
TypeOfExpression = 221,
|
||||
VoidExpression = 222,
|
||||
AwaitExpression = 223,
|
||||
PrefixUnaryExpression = 224,
|
||||
PostfixUnaryExpression = 225,
|
||||
BinaryExpression = 226,
|
||||
ConditionalExpression = 227,
|
||||
TemplateExpression = 228,
|
||||
YieldExpression = 229,
|
||||
SpreadElement = 230,
|
||||
ClassExpression = 231,
|
||||
OmittedExpression = 232,
|
||||
ExpressionWithTypeArguments = 233,
|
||||
AsExpression = 234,
|
||||
NonNullExpression = 235,
|
||||
MetaProperty = 236,
|
||||
SyntheticExpression = 237,
|
||||
SatisfiesExpression = 238,
|
||||
TemplateSpan = 239,
|
||||
SemicolonClassElement = 240,
|
||||
Block = 241,
|
||||
EmptyStatement = 242,
|
||||
VariableStatement = 243,
|
||||
ExpressionStatement = 244,
|
||||
IfStatement = 245,
|
||||
DoStatement = 246,
|
||||
WhileStatement = 247,
|
||||
ForStatement = 248,
|
||||
ForInStatement = 249,
|
||||
ForOfStatement = 250,
|
||||
ContinueStatement = 251,
|
||||
BreakStatement = 252,
|
||||
ReturnStatement = 253,
|
||||
WithStatement = 254,
|
||||
SwitchStatement = 255,
|
||||
LabeledStatement = 256,
|
||||
ThrowStatement = 257,
|
||||
TryStatement = 258,
|
||||
DebuggerStatement = 259,
|
||||
VariableDeclaration = 260,
|
||||
VariableDeclarationList = 261,
|
||||
FunctionDeclaration = 262,
|
||||
ClassDeclaration = 263,
|
||||
InterfaceDeclaration = 264,
|
||||
TypeAliasDeclaration = 265,
|
||||
EnumDeclaration = 266,
|
||||
ModuleDeclaration = 267,
|
||||
ModuleBlock = 268,
|
||||
CaseBlock = 269,
|
||||
NamespaceExportDeclaration = 270,
|
||||
ImportEqualsDeclaration = 271,
|
||||
ImportDeclaration = 272,
|
||||
ImportClause = 273,
|
||||
NamespaceImport = 274,
|
||||
NamedImports = 275,
|
||||
ImportSpecifier = 276,
|
||||
ExportAssignment = 277,
|
||||
ExportDeclaration = 278,
|
||||
NamedExports = 279,
|
||||
NamespaceExport = 280,
|
||||
ExportSpecifier = 281,
|
||||
MissingDeclaration = 282,
|
||||
ExternalModuleReference = 283,
|
||||
JsxElement = 284,
|
||||
JsxSelfClosingElement = 285,
|
||||
JsxOpeningElement = 286,
|
||||
JsxClosingElement = 287,
|
||||
JsxFragment = 288,
|
||||
JsxOpeningFragment = 289,
|
||||
JsxClosingFragment = 290,
|
||||
JsxAttribute = 291,
|
||||
JsxAttributes = 292,
|
||||
JsxSpreadAttribute = 293,
|
||||
JsxExpression = 294,
|
||||
JsxNamespacedName = 295,
|
||||
CaseClause = 296,
|
||||
DefaultClause = 297,
|
||||
HeritageClause = 298,
|
||||
CatchClause = 299,
|
||||
AssertClause = 300,
|
||||
AssertEntry = 301,
|
||||
ImportTypeAssertionContainer = 302,
|
||||
PropertyAssignment = 303,
|
||||
ShorthandPropertyAssignment = 304,
|
||||
SpreadAssignment = 305,
|
||||
EnumMember = 306,
|
||||
/** @deprecated */ UnparsedPrologue = 307,
|
||||
/** @deprecated */ UnparsedPrepend = 308,
|
||||
/** @deprecated */ UnparsedText = 309,
|
||||
/** @deprecated */ UnparsedInternalText = 310,
|
||||
/** @deprecated */ UnparsedSyntheticReference = 311,
|
||||
SourceFile = 312,
|
||||
Bundle = 313,
|
||||
/** @deprecated */ UnparsedSource = 314,
|
||||
/** @deprecated */ InputFiles = 315,
|
||||
JSDocTypeExpression = 316,
|
||||
JSDocNameReference = 317,
|
||||
JSDocMemberName = 318,
|
||||
JSDocAllType = 319,
|
||||
JSDocUnknownType = 320,
|
||||
JSDocNullableType = 321,
|
||||
JSDocNonNullableType = 322,
|
||||
JSDocOptionalType = 323,
|
||||
JSDocFunctionType = 324,
|
||||
JSDocVariadicType = 325,
|
||||
JSDocNamepathType = 326,
|
||||
JSDoc = 327,
|
||||
/** @deprecated Use SyntaxKind.JSDoc */
|
||||
JSDocComment = 326,
|
||||
JSDocText = 327,
|
||||
JSDocTypeLiteral = 328,
|
||||
JSDocSignature = 329,
|
||||
JSDocLink = 330,
|
||||
JSDocLinkCode = 331,
|
||||
JSDocLinkPlain = 332,
|
||||
JSDocTag = 333,
|
||||
JSDocAugmentsTag = 334,
|
||||
JSDocImplementsTag = 335,
|
||||
JSDocAuthorTag = 336,
|
||||
JSDocDeprecatedTag = 337,
|
||||
JSDocClassTag = 338,
|
||||
JSDocPublicTag = 339,
|
||||
JSDocPrivateTag = 340,
|
||||
JSDocProtectedTag = 341,
|
||||
JSDocReadonlyTag = 342,
|
||||
JSDocOverrideTag = 343,
|
||||
JSDocCallbackTag = 344,
|
||||
JSDocOverloadTag = 345,
|
||||
JSDocEnumTag = 346,
|
||||
JSDocParameterTag = 347,
|
||||
JSDocReturnTag = 348,
|
||||
JSDocThisTag = 349,
|
||||
JSDocTypeTag = 350,
|
||||
JSDocTemplateTag = 351,
|
||||
JSDocTypedefTag = 352,
|
||||
JSDocSeeTag = 353,
|
||||
JSDocPropertyTag = 354,
|
||||
JSDocThrowsTag = 355,
|
||||
JSDocSatisfiesTag = 356,
|
||||
SyntaxList = 357,
|
||||
NotEmittedStatement = 358,
|
||||
PartiallyEmittedExpression = 359,
|
||||
CommaListExpression = 360,
|
||||
SyntheticReferenceExpression = 361,
|
||||
Count = 362,
|
||||
JSDocComment = 327,
|
||||
JSDocText = 328,
|
||||
JSDocTypeLiteral = 329,
|
||||
JSDocSignature = 330,
|
||||
JSDocLink = 331,
|
||||
JSDocLinkCode = 332,
|
||||
JSDocLinkPlain = 333,
|
||||
JSDocTag = 334,
|
||||
JSDocAugmentsTag = 335,
|
||||
JSDocImplementsTag = 336,
|
||||
JSDocAuthorTag = 337,
|
||||
JSDocDeprecatedTag = 338,
|
||||
JSDocClassTag = 339,
|
||||
JSDocPublicTag = 340,
|
||||
JSDocPrivateTag = 341,
|
||||
JSDocProtectedTag = 342,
|
||||
JSDocReadonlyTag = 343,
|
||||
JSDocOverrideTag = 344,
|
||||
JSDocCallbackTag = 345,
|
||||
JSDocOverloadTag = 346,
|
||||
JSDocEnumTag = 347,
|
||||
JSDocParameterTag = 348,
|
||||
JSDocReturnTag = 349,
|
||||
JSDocThisTag = 350,
|
||||
JSDocTypeTag = 351,
|
||||
JSDocTemplateTag = 352,
|
||||
JSDocTypedefTag = 353,
|
||||
JSDocSeeTag = 354,
|
||||
JSDocPropertyTag = 355,
|
||||
JSDocThrowsTag = 356,
|
||||
JSDocSatisfiesTag = 357,
|
||||
SyntaxList = 358,
|
||||
NotEmittedStatement = 359,
|
||||
PartiallyEmittedExpression = 360,
|
||||
CommaListExpression = 361,
|
||||
SyntheticReferenceExpression = 362,
|
||||
Count = 363,
|
||||
FirstAssignment = 64,
|
||||
LastAssignment = 79,
|
||||
FirstCompoundAssignment = 65,
|
||||
|
@ -448,15 +449,15 @@ declare namespace ts {
|
|||
FirstReservedWord = 83,
|
||||
LastReservedWord = 118,
|
||||
FirstKeyword = 83,
|
||||
LastKeyword = 164,
|
||||
LastKeyword = 165,
|
||||
FirstFutureReservedWord = 119,
|
||||
LastFutureReservedWord = 127,
|
||||
FirstTypeNode = 181,
|
||||
LastTypeNode = 204,
|
||||
FirstTypeNode = 182,
|
||||
LastTypeNode = 205,
|
||||
FirstPunctuation = 19,
|
||||
LastPunctuation = 79,
|
||||
FirstToken = 0,
|
||||
LastToken = 164,
|
||||
LastToken = 165,
|
||||
FirstTriviaToken = 2,
|
||||
LastTriviaToken = 7,
|
||||
FirstLiteralToken = 9,
|
||||
|
@ -465,19 +466,19 @@ declare namespace ts {
|
|||
LastTemplateToken = 18,
|
||||
FirstBinaryOperator = 30,
|
||||
LastBinaryOperator = 79,
|
||||
FirstStatement = 242,
|
||||
LastStatement = 258,
|
||||
FirstNode = 165,
|
||||
FirstJSDocNode = 315,
|
||||
LastJSDocNode = 356,
|
||||
FirstJSDocTagNode = 333,
|
||||
LastJSDocTagNode = 356
|
||||
FirstStatement = 243,
|
||||
LastStatement = 259,
|
||||
FirstNode = 166,
|
||||
FirstJSDocNode = 316,
|
||||
LastJSDocNode = 357,
|
||||
FirstJSDocTagNode = 334,
|
||||
LastJSDocTagNode = 357
|
||||
}
|
||||
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 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 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 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;
|
||||
|
@ -487,32 +488,35 @@ declare namespace ts {
|
|||
None = 0,
|
||||
Let = 1,
|
||||
Const = 2,
|
||||
NestedNamespace = 4,
|
||||
Synthesized = 8,
|
||||
Namespace = 16,
|
||||
OptionalChain = 32,
|
||||
ExportContext = 64,
|
||||
ContainsThis = 128,
|
||||
HasImplicitReturn = 256,
|
||||
HasExplicitReturn = 512,
|
||||
GlobalAugmentation = 1024,
|
||||
HasAsyncFunctions = 2048,
|
||||
DisallowInContext = 4096,
|
||||
YieldContext = 8192,
|
||||
DecoratorContext = 16384,
|
||||
AwaitContext = 32768,
|
||||
DisallowConditionalTypesContext = 65536,
|
||||
ThisNodeHasError = 131072,
|
||||
JavaScriptFile = 262144,
|
||||
ThisNodeOrAnySubNodesHasError = 524288,
|
||||
HasAggregatedChildData = 1048576,
|
||||
JSDoc = 8388608,
|
||||
JsonFile = 67108864,
|
||||
BlockScoped = 3,
|
||||
ReachabilityCheckFlags = 768,
|
||||
ReachabilityAndEmitFlags = 2816,
|
||||
ContextFlags = 50720768,
|
||||
TypeExcludesFlags = 40960
|
||||
Using = 4,
|
||||
AwaitUsing = 6,
|
||||
NestedNamespace = 8,
|
||||
Synthesized = 16,
|
||||
Namespace = 32,
|
||||
OptionalChain = 64,
|
||||
ExportContext = 128,
|
||||
ContainsThis = 256,
|
||||
HasImplicitReturn = 512,
|
||||
HasExplicitReturn = 1024,
|
||||
GlobalAugmentation = 2048,
|
||||
HasAsyncFunctions = 4096,
|
||||
DisallowInContext = 8192,
|
||||
YieldContext = 16384,
|
||||
DecoratorContext = 32768,
|
||||
AwaitContext = 65536,
|
||||
DisallowConditionalTypesContext = 131072,
|
||||
ThisNodeHasError = 262144,
|
||||
JavaScriptFile = 524288,
|
||||
ThisNodeOrAnySubNodesHasError = 1048576,
|
||||
HasAggregatedChildData = 2097152,
|
||||
JSDoc = 16777216,
|
||||
JsonFile = 134217728,
|
||||
BlockScoped = 7,
|
||||
Constant = 6,
|
||||
ReachabilityCheckFlags = 1536,
|
||||
ReachabilityAndEmitFlags = 5632,
|
||||
ContextFlags = 101441536,
|
||||
TypeExcludesFlags = 81920
|
||||
}
|
||||
enum ModifierFlags {
|
||||
None = 0,
|
||||
|
@ -1802,9 +1806,11 @@ declare namespace ts {
|
|||
};
|
||||
}) | ExportDeclaration & {
|
||||
readonly isTypeOnly: true;
|
||||
readonly moduleSpecifier: Expression;
|
||||
} | NamespaceExport & {
|
||||
readonly parent: ExportDeclaration & {
|
||||
readonly isTypeOnly: true;
|
||||
readonly moduleSpecifier: Expression;
|
||||
};
|
||||
};
|
||||
type TypeOnlyAliasDeclaration = TypeOnlyImportDeclaration | TypeOnlyExportDeclaration;
|
||||
|
@ -2249,7 +2255,7 @@ declare namespace ts {
|
|||
getSourceFileByPath(path: Path): SourceFile | undefined;
|
||||
getCurrentDirectory(): string;
|
||||
}
|
||||
interface ParseConfigHost {
|
||||
interface ParseConfigHost extends ModuleResolutionHost {
|
||||
useCaseSensitiveFileNames: boolean;
|
||||
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;
|
||||
combinedFlags: ElementFlags;
|
||||
readonly: boolean;
|
||||
labeledElementDeclarations?: readonly (NamedTupleMember | ParameterDeclaration)[];
|
||||
labeledElementDeclarations?: readonly (NamedTupleMember | ParameterDeclaration | undefined)[];
|
||||
}
|
||||
interface TupleTypeReference extends TypeReference {
|
||||
target: TupleType;
|
||||
|
@ -3567,7 +3573,14 @@ declare namespace ts {
|
|||
All = 15,
|
||||
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 {
|
||||
createNodeArray<T extends Node>(elements?: readonly T[], hasTrailingComma?: boolean): NodeArray<T>;
|
||||
createNumericLiteral(value: string | number, numericLiteralFlags?: TokenFlags): NumericLiteral;
|
||||
|
@ -4037,8 +4050,8 @@ declare namespace ts {
|
|||
createPostfixDecrement(operand: Expression): PostfixUnaryExpression;
|
||||
createImmediatelyInvokedFunctionExpression(statements: readonly Statement[]): CallExpression;
|
||||
createImmediatelyInvokedFunctionExpression(statements: readonly Statement[], param: ParameterDeclaration, paramValue: Expression): CallExpression;
|
||||
createImmediatelyInvokedArrowFunction(statements: readonly Statement[]): CallExpression;
|
||||
createImmediatelyInvokedArrowFunction(statements: readonly Statement[], param: ParameterDeclaration, paramValue: Expression): CallExpression;
|
||||
createImmediatelyInvokedArrowFunction(statements: readonly Statement[]): ImmediatelyInvokedArrowFunction;
|
||||
createImmediatelyInvokedArrowFunction(statements: readonly Statement[], param: ParameterDeclaration, paramValue: Expression): ImmediatelyInvokedArrowFunction;
|
||||
createVoidZero(): VoidExpression;
|
||||
createExportDefault(expression: Expression): ExportAssignment;
|
||||
createExternalModuleExport(exportName: Identifier): ExportDeclaration;
|
||||
|
@ -4368,6 +4381,7 @@ declare namespace ts {
|
|||
readonly includeInlayPropertyDeclarationTypeHints?: boolean;
|
||||
readonly includeInlayFunctionLikeReturnTypeHints?: boolean;
|
||||
readonly includeInlayEnumMemberValueHints?: boolean;
|
||||
readonly interactiveInlayHints?: boolean;
|
||||
readonly allowRenameOfImportPath?: boolean;
|
||||
readonly autoImportFileExcludePatterns?: string[];
|
||||
readonly organizeImportsIgnoreCase?: "auto" | boolean;
|
||||
|
@ -6434,11 +6448,18 @@ declare namespace ts {
|
|||
Enum = "Enum"
|
||||
}
|
||||
interface InlayHint {
|
||||
/** This property will be the empty string when displayParts is set. */
|
||||
text: string;
|
||||
position: number;
|
||||
kind: InlayHintKind;
|
||||
whitespaceBefore?: boolean;
|
||||
whitespaceAfter?: boolean;
|
||||
displayParts?: InlayHintDisplayPart[];
|
||||
}
|
||||
interface InlayHintDisplayPart {
|
||||
text: string;
|
||||
span?: TextSpan;
|
||||
file?: string;
|
||||
}
|
||||
interface TodoCommentDescriptor {
|
||||
text: string;
|
||||
|
@ -6870,6 +6891,7 @@ declare namespace ts {
|
|||
kindModifiers?: string;
|
||||
sortText: string;
|
||||
insertText?: string;
|
||||
filterText?: string;
|
||||
isSnippet?: true;
|
||||
/**
|
||||
* An optional span that indicates the text to be replaced by this completion item.
|
||||
|
@ -7029,6 +7051,10 @@ declare namespace ts {
|
|||
variableElement = "var",
|
||||
/** Inside function */
|
||||
localVariableElement = "local var",
|
||||
/** using foo = ... */
|
||||
variableUsingElement = "using",
|
||||
/** await using foo = ... */
|
||||
variableAwaitUsingElement = "await using",
|
||||
/**
|
||||
* Inside module and script only
|
||||
* function f() { }
|
||||
|
|
Loading…
Reference in a new issue