diff --git a/TypeScript b/TypeScript index 6ea273c..f0e9921 160000 --- a/TypeScript +++ b/TypeScript @@ -1 +1 @@ -Subproject commit 6ea273cdcca99db809074d2b2d38d0e5b59ee81b +Subproject commit f0e992167440686f948965e5441a918b34251886 diff --git a/docs/diff/dom.generated.d.ts.md b/docs/diff/dom.generated.d.ts.md index 27010ee..288bc18 100644 --- a/docs/diff/dom.generated.d.ts.md +++ b/docs/diff/dom.generated.d.ts.md @@ -5,7 +5,7 @@ Index: dom.generated.d.ts =================================================================== --- dom.generated.d.ts +++ dom.generated.d.ts -@@ -2944,11 +2944,16 @@ +@@ -2969,11 +2969,16 @@ }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParamMap) */ @@ -25,7 +25,7 @@ Index: dom.generated.d.ts } declare var AudioParamMap: { -@@ -3369,9 +3374,9 @@ +@@ -3394,9 +3399,9 @@ blob(): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/formData) */ formData(): Promise; @@ -36,7 +36,22 @@ Index: dom.generated.d.ts text(): Promise; } -@@ -8872,11 +8877,11 @@ +@@ -6530,11 +6535,11 @@ + }; + + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomStateSet) */ + interface CustomStateSet { +- forEach( +- callbackfn: (value: string, key: string, parent: CustomStateSet) => void, +- thisArg?: any, ++ forEach( ++ callbackfn: (this: This, value: string, key: string, parent: this) => void, ++ thisArg?: This, + ): void; + } + + declare var CustomStateSet: { +@@ -8960,11 +8965,11 @@ }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventCounts) */ @@ -51,7 +66,7 @@ Index: dom.generated.d.ts } declare var EventCounts: { -@@ -9420,11 +9425,16 @@ +@@ -9508,11 +9513,16 @@ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/check) */ check(font: string, text?: string): boolean; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/load) */ @@ -71,7 +86,7 @@ Index: dom.generated.d.ts addEventListener( type: K, listener: (this: FontFaceSet, ev: FontFaceSetEventMap[K]) => any, -@@ -15711,15 +15721,16 @@ +@@ -15863,15 +15873,16 @@ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Highlight/priority) */ priority: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Highlight/type) */ @@ -91,7 +106,7 @@ Index: dom.generated.d.ts } declare var Highlight: { -@@ -15728,15 +15739,16 @@ +@@ -15880,15 +15891,16 @@ }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HighlightRegistry) */ @@ -111,7 +126,7 @@ Index: dom.generated.d.ts } declare var HighlightRegistry: { -@@ -17139,11 +17151,16 @@ +@@ -17314,11 +17326,16 @@ * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIInputMap) */ @@ -131,7 +146,7 @@ Index: dom.generated.d.ts } declare var MIDIInputMap: { -@@ -17206,11 +17223,16 @@ +@@ -17381,11 +17398,16 @@ * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIOutputMap) */ @@ -151,7 +166,7 @@ Index: dom.generated.d.ts } declare var MIDIOutputMap: { -@@ -19085,9 +19107,9 @@ +@@ -19260,9 +19282,9 @@ new (): NodeList; }; @@ -162,7 +177,7 @@ Index: dom.generated.d.ts * Performs the specified action for each node in an list. * @param callbackfn A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the list. * @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value. -@@ -21527,11 +21549,11 @@ +@@ -21702,11 +21724,11 @@ }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCStatsReport) */ @@ -177,7 +192,7 @@ Index: dom.generated.d.ts } declare var RTCStatsReport: { -@@ -34291,13 +34313,16 @@ +@@ -34477,13 +34499,16 @@ handler: TimerHandler, timeout?: number, ...arguments: any[] @@ -196,7 +211,7 @@ Index: dom.generated.d.ts declare var sessionStorage: Storage; declare function addEventListener( type: K, -@@ -34956,4 +34981,125 @@ +@@ -35141,4 +35166,125 @@ | "blob" | "document" | "json" diff --git a/docs/diff/es2015.core.d.ts.md b/docs/diff/es2015.core.d.ts.md index 65eccb2..fd602ad 100644 --- a/docs/diff/es2015.core.d.ts.md +++ b/docs/diff/es2015.core.d.ts.md @@ -52,7 +52,7 @@ Index: es2015.core.d.ts /** * Changes all array elements from `start` to `end` index to a static `value` and returns the modified array -@@ -54,23 +64,23 @@ +@@ -59,23 +69,23 @@ } interface ArrayConstructor { @@ -85,7 +85,7 @@ Index: es2015.core.d.ts /** * Returns a new array from a set of elements. -@@ -273,49 +283,20 @@ +@@ -278,49 +288,20 @@ /** * Copy the values of all of the enumerable own properties from one or more source objects to a * target object. Returns the target object. @@ -140,7 +140,7 @@ Index: es2015.core.d.ts /** * Returns the names of the enumerable string properties and methods of an object. * @param o Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object. -@@ -326,16 +307,23 @@ +@@ -331,16 +312,23 @@ * Returns true if the values are the same value, false otherwise. * @param value1 The first value. * @param value2 The second value. @@ -166,7 +166,7 @@ Index: es2015.core.d.ts interface ReadonlyArray { /** -@@ -346,15 +334,25 @@ +@@ -351,15 +339,25 @@ * immediately returns that element value. Otherwise, find returns undefined. * @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. @@ -198,7 +198,7 @@ Index: es2015.core.d.ts /** * Returns the index of the first element in the array where predicate is true, and -1 -@@ -364,11 +362,11 @@ +@@ -369,11 +367,11 @@ * findIndex immediately returns that element index. Otherwise, findIndex returns -1. * @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. @@ -210,10 +210,10 @@ Index: es2015.core.d.ts + predicate: (this: This, value: T, index: number, obj: this) => boolean, + thisArg?: This, ): number; - } - interface RegExp { -@@ -428,26 +426,17 @@ + toLocaleString( + locales: string | string[], +@@ -438,26 +436,17 @@ * same as the corresponding elements of this object (converted to a String) starting at * endPosition – length(this). Otherwise returns false. */ diff --git a/docs/diff/es2020.bigint.d.ts.md b/docs/diff/es2020.bigint.d.ts.md index 70ea6c3..ea4fa34 100644 --- a/docs/diff/es2020.bigint.d.ts.md +++ b/docs/diff/es2020.bigint.d.ts.md @@ -267,7 +267,7 @@ Index: es2020.bigint.d.ts /** * Sorts the array. -@@ -545,20 +558,23 @@ +@@ -548,20 +561,23 @@ * Returns a new array from a set of elements. * @param items A set of elements to include in the new array object. */ @@ -297,7 +297,7 @@ Index: es2020.bigint.d.ts } declare var BigInt64Array: BigInt64ArrayConstructor; -@@ -592,20 +608,24 @@ +@@ -595,20 +611,24 @@ copyWithin(target: number, start: number, end?: number): this; /** Yields index, value pairs for every entry in the array. */ @@ -326,7 +326,7 @@ Index: es2020.bigint.d.ts /** * Changes all array elements from `start` to `end` index to a static `value` and returns the modified array -@@ -615,21 +635,24 @@ +@@ -618,21 +638,24 @@ * @param end index to stop filling the array at. If end is negative, it is treated as * length+end. */ @@ -356,7 +356,7 @@ Index: es2020.bigint.d.ts * Returns the value of the first element in the array where predicate is true, and undefined * otherwise. * @param predicate find calls predicate once for each element of the array, in ascending -@@ -637,13 +660,17 @@ +@@ -640,13 +663,17 @@ * immediately returns that element value. Otherwise, find returns undefined. * @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. @@ -378,7 +378,7 @@ Index: es2020.bigint.d.ts * Returns the index of the first element in the array where predicate is true, and -1 * otherwise. * @param predicate find calls predicate once for each element of the array, in ascending -@@ -651,23 +678,27 @@ +@@ -654,23 +681,27 @@ * findIndex immediately returns that element index. Otherwise, findIndex returns -1. * @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. @@ -413,7 +413,7 @@ Index: es2020.bigint.d.ts /** * Determines whether an array includes a certain element, returning true or false as appropriate. -@@ -703,41 +734,40 @@ +@@ -706,41 +737,40 @@ lastIndexOf(searchElement: bigint, fromIndex?: number): number; /** The length of the array. */ @@ -468,7 +468,7 @@ Index: es2020.bigint.d.ts * Calls the specified callback function for all the elements in an array. The return value of * the callback function is the accumulated result, and is provided as an argument in the next * call to the callback function. -@@ -746,37 +776,32 @@ +@@ -749,37 +779,32 @@ * @param initialValue If initialValue is specified, it is used as the initial value to start * the accumulation. The first call to the callbackfn function provides this value as an argument * instead of an array value. @@ -513,7 +513,7 @@ Index: es2020.bigint.d.ts * Calls the specified callback function for all the elements in an array, in descending order. * The return value of the callback function is the accumulated result, and is provided as an * argument in the next call to the callback function. -@@ -785,14 +810,14 @@ +@@ -788,14 +813,14 @@ * @param initialValue If initialValue is specified, it is used as the initial value to start * the accumulation. The first call to the callbackfn function provides this value as an argument * instead of an array value. @@ -530,7 +530,7 @@ Index: es2020.bigint.d.ts initialValue: U, ): U; -@@ -811,20 +836,24 @@ +@@ -814,20 +839,24 @@ * @param start The beginning of the specified portion of the array. * @param end The end of the specified portion of the array. */ @@ -559,7 +559,7 @@ Index: es2020.bigint.d.ts /** * Sorts the array. -@@ -876,20 +905,23 @@ +@@ -882,20 +911,23 @@ * Returns a new array from a set of elements. * @param items A set of elements to include in the new array object. */ diff --git a/docs/diff/es5.d.ts.md b/docs/diff/es5.d.ts.md index b305afe..7362d23 100644 --- a/docs/diff/es5.d.ts.md +++ b/docs/diff/es5.d.ts.md @@ -3570,7 +3570,7 @@ Index: es5.d.ts } declare var Float64Array: Float64ArrayConstructor; -@@ -5551,4 +5465,33 @@ +@@ -5584,4 +5498,33 @@ locales?: string | string[], options?: Intl.DateTimeFormatOptions, ): string; diff --git a/generated/lib.dom.asynciterable.d.ts b/generated/lib.dom.asynciterable.d.ts index afefa6d..7299dfc 100644 --- a/generated/lib.dom.asynciterable.d.ts +++ b/generated/lib.dom.asynciterable.d.ts @@ -9,3 +9,10 @@ interface FileSystemDirectoryHandle { keys(): AsyncIterableIterator; values(): AsyncIterableIterator; } + +interface ReadableStream { + [Symbol.asyncIterator]( + options?: ReadableStreamIteratorOptions, + ): AsyncIterableIterator; + values(options?: ReadableStreamIteratorOptions): AsyncIterableIterator; +} diff --git a/generated/lib.dom.d.ts b/generated/lib.dom.d.ts index 393c6e0..472e0a8 100644 --- a/generated/lib.dom.d.ts +++ b/generated/lib.dom.d.ts @@ -202,6 +202,9 @@ interface ChannelSplitterOptions extends AudioNodeOptions { interface CheckVisibilityOptions { checkOpacity?: boolean; checkVisibilityCSS?: boolean; + contentVisibilityAuto?: boolean; + opacityProperty?: boolean; + visibilityProperty?: boolean; } interface ClientQueryOptions { @@ -268,6 +271,10 @@ interface ConstrainULongRange extends ULongRange { ideal?: number; } +interface ContentVisibilityAutoStateChangeEventInit extends EventInit { + skipped?: boolean; +} + interface ConvolverOptions extends AudioNodeOptions { buffer?: AudioBuffer | null; disableNormalization?: boolean; @@ -557,6 +564,8 @@ interface GainOptions extends AudioNodeOptions { interface GamepadEffectParameters { duration?: number; + leftTrigger?: number; + rightTrigger?: number; startDelay?: number; strongMagnitude?: number; weakMagnitude?: number; @@ -1363,8 +1372,8 @@ interface RTCIceCandidateInit { } interface RTCIceCandidatePair { - local?: RTCIceCandidate; - remote?: RTCIceCandidate; + local: RTCIceCandidate; + remote: RTCIceCandidate; } interface RTCIceCandidatePairStats extends RTCStats { @@ -1619,6 +1628,17 @@ interface ReadableStreamGetReaderOptions { mode?: ReadableStreamReaderMode; } +interface ReadableStreamIteratorOptions { + /** + * Asynchronously iterates over the chunks in the stream's internal queue. + * + * Asynchronously iterating over the stream will lock it, preventing any other consumer from acquiring a reader. The lock will be released if the async iterator's return() method is called, e.g. by breaking out of the loop. + * + * By default, calling the async iterator's return() method will also cancel the stream. To prevent this, use the stream's values() method, passing true for the preventCancel option. + */ + preventCancel?: boolean; +} + interface ReadableStreamReadDoneResult { done: true; value?: T; @@ -1750,21 +1770,22 @@ interface ScrollToOptions extends ScrollOptions { interface SecurityPolicyViolationEventInit extends EventInit { blockedURI?: string; columnNumber?: number; - disposition: SecurityPolicyViolationEventDisposition; - documentURI: string; - effectiveDirective: string; + disposition?: SecurityPolicyViolationEventDisposition; + documentURI?: string; + effectiveDirective?: string; lineNumber?: number; - originalPolicy: string; + originalPolicy?: string; referrer?: string; sample?: string; sourceFile?: string; - statusCode: number; - violatedDirective: string; + statusCode?: number; + violatedDirective?: string; } interface ShadowRootInit { delegatesFocus?: boolean; mode: ShadowRootMode; + serializable?: boolean; slotAssignment?: SlotAssignmentMode; } @@ -2204,6 +2225,8 @@ interface ARIAMixin { ariaAtomic: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaAutoComplete) */ ariaAutoComplete: string | null; + ariaBrailleLabel: string | null; + ariaBrailleRoleDescription: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaBusy) */ ariaBusy: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaChecked) */ @@ -2352,6 +2375,8 @@ declare var AbortSignal: { new (): AbortSignal; /** [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/any_static) */ + any(signals: AbortSignal[]): AbortSignal; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/timeout_static) */ timeout(milliseconds: number): AbortSignal; }; @@ -4058,6 +4083,16 @@ declare var CSSScale: { new (x: CSSNumberish, y: CSSNumberish, z?: CSSNumberish): CSSScale; }; +interface CSSScopeRule extends CSSGroupingRule { + readonly end: string | null; + readonly start: string | null; +} + +declare var CSSScopeRule: { + prototype: CSSScopeRule; + new (): CSSScopeRule; +}; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSkew) */ interface CSSSkew extends CSSTransformComponent { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSkew/ax) */ @@ -4093,6 +4128,14 @@ declare var CSSSkewY: { new (ay: CSSNumericValue): CSSSkewY; }; +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStartingStyleRule) */ +interface CSSStartingStyleRule extends CSSGroupingRule {} + +declare var CSSStartingStyleRule: { + prototype: CSSStartingStyleRule; + new (): CSSStartingStyleRule; +}; + /** * An object that is a CSS declaration block, and exposes style information and various style-related methods and properties. * @@ -4318,6 +4361,7 @@ interface CSSStyleDeclaration { clipRule: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/color) */ color: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/color-interpolation) */ colorInterpolation: string; colorInterpolationFilters: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/color-scheme) */ @@ -4362,6 +4406,8 @@ interface CSSStyleDeclaration { containerType: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/content) */ content: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/content-visibility) */ + contentVisibility: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/counter-increment) */ counterIncrement: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/counter-reset) */ @@ -4863,6 +4909,8 @@ interface CSSStyleDeclaration { textUnderlinePosition: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-wrap) */ textWrap: string; + textWrapMode: string; + textWrapStyle: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/top) */ top: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/touch-action) */ @@ -4877,6 +4925,8 @@ interface CSSStyleDeclaration { transformStyle: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transition) */ transition: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transition-behavior) */ + transitionBehavior: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transition-delay) */ transitionDelay: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transition-duration) */ @@ -5298,6 +5348,8 @@ interface CSSStyleDeclaration { webkitUserSelect: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/white-space) */ whiteSpace: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/white-space-collapse) */ + whiteSpaceCollapse: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/widows) */ widows: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/width) */ @@ -5316,6 +5368,8 @@ interface CSSStyleDeclaration { y: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/z-index) */ zIndex: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/zoom) */ + zoom: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/getPropertyPriority) */ getPropertyPriority(property: string): string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/getPropertyValue) */ @@ -6300,6 +6354,20 @@ declare var ConstantSourceNode: { ): ConstantSourceNode; }; +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ContentVisibilityAutoStateChangeEvent) */ +interface ContentVisibilityAutoStateChangeEvent extends Event { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ContentVisibilityAutoStateChangeEvent/skipped) */ + readonly skipped: boolean; +} + +declare var ContentVisibilityAutoStateChangeEvent: { + prototype: ContentVisibilityAutoStateChangeEvent; + new ( + type: string, + eventInitDict?: ContentVisibilityAutoStateChangeEventInit, + ): ContentVisibilityAutoStateChangeEvent; +}; + /** * An AudioNode that performs a Linear Convolution on a given AudioBuffer, often used to achieve a reverb effect. A ConvolverNode always has exactly one input and one output. * @@ -6470,6 +6538,20 @@ declare var CustomEvent: { new (type: string, eventInitDict?: CustomEventInit): CustomEvent; }; +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomStateSet) */ +interface CustomStateSet { + forEach( + callbackfn: (this: This, value: string, key: string, parent: this) => void, + thisArg?: This, + ): void; +} +// forEach(callbackfn: (value: string, key: string, parent: CustomStateSet) => void, thisArg?: any): void; + +declare var CustomStateSet: { + prototype: CustomStateSet; + new (): CustomStateSet; +}; + /** * An abnormal event (called an exception) which occurs as a result of calling a method or accessing a property of a web API. * @@ -7760,6 +7842,9 @@ interface Document createEvent(eventInterface: "ClipboardEvent"): ClipboardEvent; createEvent(eventInterface: "CloseEvent"): CloseEvent; createEvent(eventInterface: "CompositionEvent"): CompositionEvent; + createEvent( + eventInterface: "ContentVisibilityAutoStateChangeEvent", + ): ContentVisibilityAutoStateChangeEvent; createEvent(eventInterface: "CustomEvent"): CustomEvent; createEvent(eventInterface: "DeviceMotionEvent"): DeviceMotionEvent; createEvent(eventInterface: "DeviceOrientationEvent"): DeviceOrientationEvent; @@ -8082,6 +8167,7 @@ interface Document declare var Document: { prototype: Document; new (): Document; + parseHTMLUnsafe(html: string): Document; }; /** @@ -8571,6 +8657,7 @@ interface Element setAttributeNode(attr: Attr): Attr | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/setAttributeNodeNS) */ setAttributeNodeNS(attr: Attr): Attr | null; + setHTMLUnsafe(html: string): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/setPointerCapture) */ setPointerCapture(pointerId: number): void; /** @@ -8651,6 +8738,8 @@ interface ElementInternals extends ARIAMixin { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals/shadowRoot) */ readonly shadowRoot: ShadowRoot | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals/states) */ + readonly states: CustomStateSet; /** * Returns the error message that would be shown to the user if internals's target element was to be checked for validity. * @@ -9556,7 +9645,6 @@ declare var GainNode: { /** * This Gamepad API interface defines an individual gamepad or other controller, allowing access to information such as button presses, axis positions, and id. - * Available only in secure contexts. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Gamepad) */ @@ -9575,7 +9663,7 @@ interface Gamepad { readonly mapping: GamepadMappingType; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Gamepad/timestamp) */ readonly timestamp: DOMHighResTimeStamp; - readonly vibrationActuator: GamepadHapticActuator | null; + readonly vibrationActuator: GamepadHapticActuator; } declare var Gamepad: { @@ -9585,7 +9673,6 @@ declare var Gamepad: { /** * An individual button of a gamepad or other controller, allowing access to the current state of different types of buttons available on the control device. - * Available only in secure contexts. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GamepadButton) */ @@ -9605,7 +9692,6 @@ declare var GamepadButton: { /** * This Gamepad API interface contains references to gamepads connected to the system, which is what the gamepad events Window.gamepadconnected and Window.gamepaddisconnected are fired in response to. - * Available only in secure contexts. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GamepadEvent) */ @@ -9625,8 +9711,6 @@ declare var GamepadEvent: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GamepadHapticActuator) */ interface GamepadHapticActuator { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GamepadHapticActuator/type) */ - readonly type: GamepadHapticActuatorType; playEffect( type: GamepadHapticEffectType, params?: GamepadEffectParameters, @@ -10410,6 +10494,7 @@ interface HTMLAnchorElement extends HTMLElement, HTMLHyperlinkElementUtils { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/name) */ name: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/ping) */ ping: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/referrerPolicy) */ referrerPolicy: string; @@ -10503,6 +10588,7 @@ interface HTMLAreaElement extends HTMLElement, HTMLHyperlinkElementUtils { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement/noHref) */ noHref: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement/ping) */ ping: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement/referrerPolicy) */ referrerPolicy: string; @@ -11373,7 +11459,11 @@ declare var HTMLElement: { interface HTMLEmbedElement extends HTMLElement { /** @deprecated */ align: string; - /** Sets or retrieves the height of the object. */ + /** + * Sets or retrieves the height of the object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLEmbedElement/height) + */ height: string; /** * Sets or retrieves the name of the object. @@ -11383,7 +11473,11 @@ interface HTMLEmbedElement extends HTMLElement { /** Sets or retrieves a URL to be loaded by the object. */ src: string; type: string; - /** Sets or retrieves the width of the object. */ + /** + * Sets or retrieves the width of the object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLEmbedElement/width) + */ width: string; getSVGDocument(): Document | null; addEventListener( @@ -12123,6 +12217,7 @@ interface HTMLIFrameElement extends HTMLElement { */ align: string; allow: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement/allowFullscreen) */ allowFullscreen: boolean; /** * Retrieves the document object of the page or frame. @@ -12149,6 +12244,7 @@ interface HTMLIFrameElement extends HTMLElement { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement/height) */ height: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement/loading) */ loading: string; /** * Sets or retrieves a URI to a long description of the object. @@ -12420,7 +12516,11 @@ interface HTMLInputElement extends HTMLElement, PopoverInvokerElement { checked: boolean; /** Sets or retrieves the state of the check box or radio button. */ defaultChecked: boolean; - /** Sets or retrieves the initial contents of the object. */ + /** + * Sets or retrieves the initial contents of the object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/defaultValue) + */ defaultValue: string; dirName: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/disabled) */ @@ -12479,12 +12579,25 @@ interface HTMLInputElement extends HTMLElement, PopoverInvokerElement { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/list) */ readonly list: HTMLDataListElement | null; - /** Defines the maximum acceptable value for an input element with type="number".When used with the min and step attributes, lets you control the range and increment (such as only even numbers) that the user can enter into an input field. */ + /** + * Defines the maximum acceptable value for an input element with type="number".When used with the min and step attributes, lets you control the range and increment (such as only even numbers) that the user can enter into an input field. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/max) + */ max: string; - /** Sets or retrieves the maximum number of characters that the user can enter in a text control. */ + /** + * Sets or retrieves the maximum number of characters that the user can enter in a text control. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/maxLength) + */ maxLength: number; - /** Defines the minimum acceptable value for an input element with type="number". When used with the max and step attributes, lets you control the range and increment (such as even numbers only) that the user can enter into an input field. */ + /** + * Defines the minimum acceptable value for an input element with type="number". When used with the max and step attributes, lets you control the range and increment (such as even numbers only) that the user can enter into an input field. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/min) + */ min: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/minLength) */ minLength: number; /** * Sets or retrieves the Boolean value indicating whether multiple items can be selected from a list. @@ -12515,16 +12628,28 @@ interface HTMLInputElement extends HTMLElement, PopoverInvokerElement { required: boolean; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/selectionDirection) */ selectionDirection: "forward" | "backward" | "none" | null; - /** Gets or sets the end position or offset of a text selection. */ + /** + * Gets or sets the end position or offset of a text selection. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/selectionEnd) + */ selectionEnd: number | null; - /** Gets or sets the starting position or offset of a text selection. */ + /** + * Gets or sets the starting position or offset of a text selection. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/selectionStart) + */ selectionStart: number | null; size: number; /** The address or URL of the a media resource that is to be considered. */ src: string; /** Defines an increment or jump between values that you want to allow the user to enter. When used with the max and min attributes, lets you control the range and increment (for example, allow only even numbers) that the user can enter into an input field. */ step: string; - /** Returns the content type of the object. */ + /** + * Returns the content type of the object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/type) + */ type: string; /** * Sets or retrieves the URL, often with a bookmark extension (#name), to use as a client-side image map. @@ -12543,7 +12668,11 @@ interface HTMLInputElement extends HTMLElement, PopoverInvokerElement { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/validity) */ readonly validity: ValidityState; - /** Returns the value of the data at the cursor's current position. */ + /** + * Returns the value of the data at the cursor's current position. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/value) + */ value: string; /** Returns a Date object representing the form control's value, if applicable; otherwise, returns null. Can be set, to change the value. Throws an "InvalidStateError" DOMException if the control isn't date- or time-based. */ valueAsDate: Date | null; @@ -13262,16 +13391,31 @@ declare var HTMLMenuElement: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMetaElement) */ interface HTMLMetaElement extends HTMLElement { - /** Gets or sets meta-information to associate with httpEquiv or name. */ + /** + * Gets or sets meta-information to associate with httpEquiv or name. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMetaElement/content) + */ content: string; - /** Gets or sets information used to bind the value of a content attribute of a meta element to an HTTP response header. */ + /** + * Gets or sets information used to bind the value of a content attribute of a meta element to an HTTP response header. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMetaElement/httpEquiv) + */ httpEquiv: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMetaElement/media) */ media: string; - /** Sets or retrieves the value specified in the content attribute of the meta object. */ + /** + * Sets or retrieves the value specified in the content attribute of the meta object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMetaElement/name) + */ name: string; /** * Sets or retrieves a scheme to be used in interpreting the value of a property specified for the object. * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMetaElement/scheme) */ scheme: string; addEventListener( @@ -13547,6 +13691,7 @@ interface HTMLObjectElement extends HTMLElement { type: string; /** * Sets or retrieves the URL, often with a bookmark extension (#name), to use as a client-side image map. + * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/useMap) */ @@ -14280,7 +14425,7 @@ interface HTMLSelectElement extends HTMLElement { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/type) */ - readonly type: string; + readonly type: "select-one" | "select-multiple"; /** * Returns the error message that would be displayed if the user submits the form, or an empty string if no error message. It also triggers the standard error message, such as "this is a required field". The result is that the user sees validation messages without actually submitting. * @@ -14427,6 +14572,7 @@ declare var HTMLSlotElement: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSourceElement) */ interface HTMLSourceElement extends HTMLElement { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSourceElement/height) */ height: number; /** * Gets or sets the intended media type of the media source. @@ -14450,6 +14596,7 @@ interface HTMLSourceElement extends HTMLElement { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSourceElement/type) */ type: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSourceElement/width) */ width: number; addEventListener( type: K, @@ -15307,7 +15454,11 @@ interface HTMLTextAreaElement extends HTMLElement { selectionStart: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/textLength) */ readonly textLength: number; - /** Retrieves the type of control. */ + /** + * Retrieves the type of control. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/type) + */ readonly type: string; /** Returns the error message that would be displayed if the user submits the form, or an empty string if no error message. It also triggers the standard error message, such as "this is a required field". The result is that the user sees validation messages without actually submitting. */ readonly validationMessage: string; @@ -15635,11 +15786,13 @@ interface HTMLVideoElement extends HTMLMediaElement { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLVideoElement/width) */ width: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLVideoElement/cancelVideoFrameCallback) */ cancelVideoFrameCallback(handle: number): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLVideoElement/getVideoPlaybackQuality) */ getVideoPlaybackQuality(): VideoPlaybackQuality; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLVideoElement/requestPictureInPicture) */ requestPictureInPicture(): Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLVideoElement/requestVideoFrameCallback) */ requestVideoFrameCallback(callback: VideoFrameRequestCallback): number; addEventListener( type: K, @@ -16900,6 +17053,29 @@ declare var KeyframeEffect: { new (source: KeyframeEffect): KeyframeEffect; }; +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/LargestContentfulPaint) */ +interface LargestContentfulPaint extends PerformanceEntry { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/LargestContentfulPaint/element) */ + readonly element: Element | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/LargestContentfulPaint/id) */ + readonly id: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/LargestContentfulPaint/loadTime) */ + readonly loadTime: DOMHighResTimeStamp; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/LargestContentfulPaint/renderTime) */ + readonly renderTime: DOMHighResTimeStamp; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/LargestContentfulPaint/size) */ + readonly size: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/LargestContentfulPaint/url) */ + readonly url: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/LargestContentfulPaint/toJSON) */ + toJSON(): any; +} + +declare var LargestContentfulPaint: { + prototype: LargestContentfulPaint; + new (): LargestContentfulPaint; +}; + interface LinkStyle { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement/sheet) */ readonly sheet: CSSStyleSheet | null; @@ -25918,6 +26094,8 @@ interface ShadowRootEventMap { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ShadowRoot) */ interface ShadowRoot extends DocumentFragment, DocumentOrShadowRoot, InnerHTML { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ShadowRoot/clonable) */ + readonly clonable: boolean; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ShadowRoot/delegatesFocus) */ readonly delegatesFocus: boolean; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ShadowRoot/host) */ @@ -25927,6 +26105,7 @@ interface ShadowRoot extends DocumentFragment, DocumentOrShadowRoot, InnerHTML { onslotchange: ((this: ShadowRoot, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ShadowRoot/slotAssignment) */ readonly slotAssignment: SlotAssignmentMode; + setHTMLUnsafe(html: string): void; /** Throws a "NotSupportedError" DOMException if context object is a shadow root. */ addEventListener( type: K, @@ -31771,7 +31950,11 @@ interface Window readonly window: Window & typeof globalThis; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/alert) */ alert(message?: any): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/blur) */ + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/blur) + */ blur(): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/cancelIdleCallback) */ cancelIdleCallback(handle: number): void; @@ -33636,7 +33819,11 @@ declare var visualViewport: VisualViewport | null; declare var window: Window & typeof globalThis; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/alert) */ declare function alert(message?: any): void; -/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/blur) */ +/** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/blur) + */ declare function blur(): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/cancelIdleCallback) */ declare function cancelIdleCallback(handle: number): void; @@ -34640,8 +34827,7 @@ type FontDisplay = "auto" | "block" | "fallback" | "optional" | "swap"; type FontFaceLoadStatus = "error" | "loaded" | "loading" | "unloaded"; type FontFaceSetLoadStatus = "loaded" | "loading"; type FullscreenNavigationUI = "auto" | "hide" | "show"; -type GamepadHapticActuatorType = "vibration"; -type GamepadHapticEffectType = "dual-rumble"; +type GamepadHapticEffectType = "dual-rumble" | "trigger-rumble"; type GamepadHapticsResult = "complete" | "preempted"; type GamepadMappingType = "" | "standard" | "xr-standard"; type GlobalCompositeOperation = diff --git a/generated/lib.dom.iterable.d.ts b/generated/lib.dom.iterable.d.ts index b3540cd..5a2dc03 100644 --- a/generated/lib.dom.iterable.d.ts +++ b/generated/lib.dom.iterable.d.ts @@ -3,6 +3,11 @@ /// Window Iterable APIs ///////////////////////////// +interface AbortSignal { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/any_static) */ + any(signals: Iterable): AbortSignal; +} + interface AudioParam { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/setValueCurveAtTime) */ setValueCurveAtTime( @@ -82,6 +87,8 @@ interface CanvasPathDrawingStyles { setLineDash(segments: Iterable): void; } +interface CustomStateSet extends Set {} + interface DOMRectList { [Symbol.iterator](): IterableIterator; } diff --git a/generated/lib.es2015.core.d.ts b/generated/lib.es2015.core.d.ts index e40cbf6..bf441c0 100644 --- a/generated/lib.es2015.core.d.ts +++ b/generated/lib.es2015.core.d.ts @@ -62,6 +62,11 @@ interface Array { * @param end If not specified, length of the this object is used as its default value. */ copyWithin(target: number, start: number, end?: number): this; + + toLocaleString( + locales: string | string[], + options?: Intl.NumberFormatOptions & Intl.DateTimeFormatOptions, + ): string; } // /** // * Returns the value of the first element in the array where predicate is true, and undefined @@ -449,6 +454,11 @@ interface ReadonlyArray { predicate: (this: This, value: T, index: number, obj: this) => boolean, thisArg?: This, ): number; + + toLocaleString( + locales: string | string[], + options?: Intl.NumberFormatOptions & Intl.DateTimeFormatOptions, + ): string; } // /** // * Returns the value of the first element in the array where predicate is true, and undefined @@ -673,3 +683,66 @@ interface StringConstructor { ...substitutions: any[] ): string; } + +interface Int8Array { + toLocaleString( + locales: string | string[], + options?: Intl.NumberFormatOptions, + ): string; +} + +interface Uint8Array { + toLocaleString( + locales: string | string[], + options?: Intl.NumberFormatOptions, + ): string; +} + +interface Uint8ClampedArray { + toLocaleString( + locales: string | string[], + options?: Intl.NumberFormatOptions, + ): string; +} + +interface Int16Array { + toLocaleString( + locales: string | string[], + options?: Intl.NumberFormatOptions, + ): string; +} + +interface Uint16Array { + toLocaleString( + locales: string | string[], + options?: Intl.NumberFormatOptions, + ): string; +} + +interface Int32Array { + toLocaleString( + locales: string | string[], + options?: Intl.NumberFormatOptions, + ): string; +} + +interface Uint32Array { + toLocaleString( + locales: string | string[], + options?: Intl.NumberFormatOptions, + ): string; +} + +interface Float32Array { + toLocaleString( + locales: string | string[], + options?: Intl.NumberFormatOptions, + ): string; +} + +interface Float64Array { + toLocaleString( + locales: string | string[], + options?: Intl.NumberFormatOptions, + ): string; +} diff --git a/generated/lib.es2018.intl.d.ts b/generated/lib.es2018.intl.d.ts index 2d26386..6ebc742 100644 --- a/generated/lib.es2018.intl.d.ts +++ b/generated/lib.es2018.intl.d.ts @@ -47,33 +47,22 @@ declare namespace Intl { const PluralRules: PluralRulesConstructor; - // We can only have one definition for 'type' in TypeScript, and so you can learn where the keys come from here: - type ES2018NumberFormatPartType = - | "literal" - | "nan" - | "infinity" - | "percent" - | "integer" - | "group" - | "decimal" - | "fraction" - | "plusSign" - | "minusSign" - | "percentSign" - | "currency" - | "code" - | "symbol" - | "name"; - type ES2020NumberFormatPartType = - | "compact" - | "exponentInteger" - | "exponentMinusSign" - | "exponentSeparator" - | "unit" - | "unknown"; - type NumberFormatPartTypes = - | ES2018NumberFormatPartType - | ES2020NumberFormatPartType; + interface NumberFormatPartTypeRegistry { + literal: never; + nan: never; + infinity: never; + percent: never; + integer: never; + group: never; + decimal: never; + fraction: never; + plusSign: never; + minusSign: never; + percentSign: never; + currency: never; + } + + type NumberFormatPartTypes = keyof NumberFormatPartTypeRegistry; interface NumberFormatPart { type: NumberFormatPartTypes; diff --git a/generated/lib.es2019.intl.d.ts b/generated/lib.es2019.intl.d.ts index f82f7f4..2c5a11e 100644 --- a/generated/lib.es2019.intl.d.ts +++ b/generated/lib.es2019.intl.d.ts @@ -1,6 +1,6 @@ /// declare namespace Intl { interface DateTimeFormatPartTypesRegistry { - unknown: any; + unknown: never; } } diff --git a/generated/lib.es2020.bigint.d.ts b/generated/lib.es2020.bigint.d.ts index 0ff5fba..f1efdb3 100644 --- a/generated/lib.es2020.bigint.d.ts +++ b/generated/lib.es2020.bigint.d.ts @@ -524,7 +524,10 @@ interface BigInt64Array { subarray(begin?: number, end?: number): BigInt64Array; /** Converts the array to a string by using the current locale. */ - toLocaleString(): string; + toLocaleString( + locales?: string | string[], + options?: Intl.NumberFormatOptions, + ): string; /** Returns a string representation of the array. */ toString(): string; @@ -986,7 +989,10 @@ interface BigUint64Array { subarray(begin?: number, end?: number): BigUint64Array; /** Converts the array to a string by using the current locale. */ - toLocaleString(): string; + toLocaleString( + locales?: string | string[], + options?: Intl.NumberFormatOptions, + ): string; /** Returns a string representation of the array. */ toString(): string; @@ -1194,6 +1200,5 @@ interface DataView { declare namespace Intl { interface NumberFormat { format(value: number | bigint): string; - resolvedOptions(): ResolvedNumberFormatOptions; } } diff --git a/generated/lib.es2020.intl.d.ts b/generated/lib.es2020.intl.d.ts index 58d0f64..8c8e791 100644 --- a/generated/lib.es2020.intl.d.ts +++ b/generated/lib.es2020.intl.d.ts @@ -231,7 +231,26 @@ declare namespace Intl { ): UnicodeBCP47LocaleIdentifier[]; }; + interface NumberFormatOptionsStyleRegistry { + unit: never; + } + + interface NumberFormatOptionsCurrencyDisplayRegistry { + narrowSymbol: never; + } + + interface NumberFormatOptionsSignDisplayRegistry { + auto: never; + never: never; + always: never; + exceptZero: never; + } + + type NumberFormatOptionsSignDisplay = + keyof NumberFormatOptionsSignDisplayRegistry; + interface NumberFormatOptions { + numberingSystem?: string | undefined; compactDisplay?: "short" | "long" | undefined; notation?: | "standard" @@ -239,21 +258,28 @@ declare namespace Intl { | "engineering" | "compact" | undefined; - signDisplay?: "auto" | "never" | "always" | "exceptZero" | undefined; + signDisplay?: NumberFormatOptionsSignDisplay | undefined; unit?: string | undefined; unitDisplay?: "short" | "long" | "narrow" | undefined; - currencyDisplay?: string | undefined; - currencySign?: string | undefined; + currencySign?: "standard" | "accounting" | undefined; } interface ResolvedNumberFormatOptions { compactDisplay?: "short" | "long"; - notation?: "standard" | "scientific" | "engineering" | "compact"; - signDisplay?: "auto" | "never" | "always" | "exceptZero"; + notation: "standard" | "scientific" | "engineering" | "compact"; + signDisplay: NumberFormatOptionsSignDisplay; unit?: string; unitDisplay?: "short" | "long" | "narrow"; - currencyDisplay?: string; - currencySign?: string; + currencySign?: "standard" | "accounting"; + } + + interface NumberFormatPartTypeRegistry { + compact: never; + exponentInteger: never; + exponentMinusSign: never; + exponentSeparator: never; + unit: never; + unknown: never; } interface DateTimeFormatOptions { diff --git a/generated/lib.es2021.weakref.d.ts b/generated/lib.es2021.weakref.d.ts index d4c9985..f5b3a81 100644 --- a/generated/lib.es2021.weakref.d.ts +++ b/generated/lib.es2021.weakref.d.ts @@ -43,7 +43,7 @@ interface FinalizationRegistry { * @param unregisterToken The token that was used as the unregisterToken argument when calling * register to register the target value. */ - unregister(unregisterToken: WeakKey): void; + unregister(unregisterToken: WeakKey): boolean; } interface FinalizationRegistryConstructor { diff --git a/generated/lib.es2022.regexp.d.ts b/generated/lib.es2022.regexp.d.ts index 81f46f1..3d960bc 100644 --- a/generated/lib.es2022.regexp.d.ts +++ b/generated/lib.es2022.regexp.d.ts @@ -15,7 +15,7 @@ interface RegExpIndicesArray extends Array<[number, number]> { interface RegExp { /** - * Returns a Boolean value indicating the state of the hasIndices flag (d) used with with a regular expression. + * Returns a Boolean value indicating the state of the hasIndices flag (d) used with a regular expression. * Default is false. Read-only. */ readonly hasIndices: boolean; diff --git a/generated/lib.es2023.d.ts b/generated/lib.es2023.d.ts index b0b1491..8793289 100644 --- a/generated/lib.es2023.d.ts +++ b/generated/lib.es2023.d.ts @@ -2,3 +2,4 @@ /// /// /// +/// diff --git a/generated/lib.es2023.intl.d.ts b/generated/lib.es2023.intl.d.ts new file mode 100644 index 0000000..fd6b6e5 --- /dev/null +++ b/generated/lib.es2023.intl.d.ts @@ -0,0 +1,101 @@ +/// +declare namespace Intl { + interface NumberFormatOptionsUseGroupingRegistry { + min2: never; + auto: never; + always: never; + } + + interface NumberFormatOptionsSignDisplayRegistry { + negative: never; + } + + interface NumberFormatOptions { + roundingPriority?: "auto" | "morePrecision" | "lessPrecision" | undefined; + roundingIncrement?: + | 1 + | 2 + | 5 + | 10 + | 20 + | 25 + | 50 + | 100 + | 200 + | 250 + | 500 + | 1000 + | 2000 + | 2500 + | 5000 + | undefined; + roundingMode?: + | "ceil" + | "floor" + | "expand" + | "trunc" + | "halfCeil" + | "halfFloor" + | "halfExpand" + | "halfTrunc" + | "halfEven" + | undefined; + trailingZeroDisplay?: "auto" | "stripIfInteger" | undefined; + } + + interface ResolvedNumberFormatOptions { + roundingPriority: "auto" | "morePrecision" | "lessPrecision"; + roundingMode: + | "ceil" + | "floor" + | "expand" + | "trunc" + | "halfCeil" + | "halfFloor" + | "halfExpand" + | "halfTrunc" + | "halfEven"; + roundingIncrement: + | 1 + | 2 + | 5 + | 10 + | 20 + | 25 + | 50 + | 100 + | 200 + | 250 + | 500 + | 1000 + | 2000 + | 2500 + | 5000; + trailingZeroDisplay: "auto" | "stripIfInteger"; + } + + interface NumberRangeFormatPart extends NumberFormatPart { + source: "startRange" | "endRange" | "shared"; + } + + type StringNumericLiteral = + | `${number}` + | "Infinity" + | "-Infinity" + | "+Infinity"; + + interface NumberFormat { + format(value: number | bigint | StringNumericLiteral): string; + formatToParts( + value: number | bigint | StringNumericLiteral, + ): NumberFormatPart[]; + formatRange( + start: number | bigint | StringNumericLiteral, + end: number | bigint | StringNumericLiteral, + ): string; + formatRangeToParts( + start: number | bigint | StringNumericLiteral, + end: number | bigint | StringNumericLiteral, + ): NumberRangeFormatPart[]; + } +} diff --git a/generated/lib.es5.d.ts b/generated/lib.es5.d.ts index 32770be..d0e56c5 100644 --- a/generated/lib.es5.d.ts +++ b/generated/lib.es5.d.ts @@ -1033,7 +1033,7 @@ interface Date { getMilliseconds(): number; /** Gets the milliseconds of a Date object using Universal Coordinated Time (UTC). */ getUTCMilliseconds(): number; - /** Gets the difference in minutes between the time on the local computer and Universal Coordinated Time (UTC). */ + /** Gets the difference in minutes between Universal Coordinated Time (UTC) and the time on the local computer. */ getTimezoneOffset(): number; /** * Sets the date and time value in the Date object. @@ -6703,12 +6703,44 @@ declare namespace Intl { var Collator: CollatorConstructor; + interface NumberFormatOptionsStyleRegistry { + decimal: never; + percent: never; + currency: never; + } + + type NumberFormatOptionsStyle = keyof NumberFormatOptionsStyleRegistry; + + interface NumberFormatOptionsCurrencyDisplayRegistry { + code: never; + symbol: never; + name: never; + } + + type NumberFormatOptionsCurrencyDisplay = + keyof NumberFormatOptionsCurrencyDisplayRegistry; + + interface NumberFormatOptionsUseGroupingRegistry {} + + type NumberFormatOptionsUseGrouping = + {} extends NumberFormatOptionsUseGroupingRegistry + ? boolean + : + | keyof NumberFormatOptionsUseGroupingRegistry + | "true" + | "false" + | boolean; + type ResolvedNumberFormatOptionsUseGrouping = + {} extends NumberFormatOptionsUseGroupingRegistry + ? boolean + : keyof NumberFormatOptionsUseGroupingRegistry | false; + interface NumberFormatOptions { - localeMatcher?: string | undefined; - style?: string | undefined; + localeMatcher?: "lookup" | "best fit" | undefined; + style?: NumberFormatOptionsStyle | undefined; currency?: string | undefined; - currencySign?: string | undefined; - useGrouping?: boolean | undefined; + currencyDisplay?: NumberFormatOptionsCurrencyDisplay | undefined; + useGrouping?: NumberFormatOptionsUseGrouping | undefined; minimumIntegerDigits?: number | undefined; minimumFractionDigits?: number | undefined; maximumFractionDigits?: number | undefined; @@ -6719,14 +6751,15 @@ declare namespace Intl { interface ResolvedNumberFormatOptions { locale: string; numberingSystem: string; - style: string; + style: NumberFormatOptionsStyle; currency?: string; + currencyDisplay?: NumberFormatOptionsCurrencyDisplay; minimumIntegerDigits: number; - minimumFractionDigits: number; - maximumFractionDigits: number; + minimumFractionDigits?: number; + maximumFractionDigits?: number; minimumSignificantDigits?: number; maximumSignificantDigits?: number; - useGrouping: boolean; + useGrouping: ResolvedNumberFormatOptionsUseGrouping; } interface NumberFormat { diff --git a/generated/lib.esnext.array.d.ts b/generated/lib.esnext.array.d.ts new file mode 100644 index 0000000..b3fec56 --- /dev/null +++ b/generated/lib.esnext.array.d.ts @@ -0,0 +1,27 @@ +/// +interface ArrayConstructor { + /** + * Creates an array from an async iterator or iterable object. + * @param iterableOrArrayLike An async iterator or array-like object to convert to an array. + */ + fromAsync( + iterableOrArrayLike: + | AsyncIterable + | Iterable> + | ArrayLike>, + ): Promise; + + /** + * Creates an array from an async iterator or iterable object. + * + * @param iterableOrArrayLike An async iterator or array-like object to convert to an array. + * @param mapfn A mapping function to call on every element of itarableOrArrayLike. + * Each return value is awaited before being added to result array. + * @param thisArg Value of 'this' used when executing mapfn. + */ + fromAsync( + iterableOrArrayLike: AsyncIterable | Iterable | ArrayLike, + mapFn: (value: Awaited) => U, + thisArg?: any, + ): Promise[]>; +} diff --git a/generated/lib.esnext.collection.d.ts b/generated/lib.esnext.collection.d.ts index a3f853e..d838823 100644 --- a/generated/lib.esnext.collection.d.ts +++ b/generated/lib.esnext.collection.d.ts @@ -10,3 +10,80 @@ interface MapConstructor { keySelector: (item: T, index: number) => K, ): Map; } + +interface ReadonlySetLike { + /** + * Despite its name, returns an iterator of the values in the set-like. + */ + keys(): Iterator; + /** + * @returns a boolean indicating whether an element with the specified value exists in the set-like or not. + */ + has(value: T): boolean; + /** + * @returns the number of (unique) elements in the set-like. + */ + readonly size: number; +} + +interface Set { + /** + * @returns a new Set containing all the elements in this Set and also all the elements in the argument. + */ + union(other: ReadonlySetLike): Set; + /** + * @returns a new Set containing all the elements which are both in this Set and in the argument. + */ + intersection(other: ReadonlySetLike): Set; + /** + * @returns a new Set containing all the elements in this Set which are not also in the argument. + */ + difference(other: ReadonlySetLike): Set; + /** + * @returns a new Set containing all the elements which are in either this Set or in the argument, but not in both. + */ + symmetricDifference(other: ReadonlySetLike): Set; + /** + * @returns a boolean indicating whether all the elements in this Set are also in the argument. + */ + isSubsetOf(other: ReadonlySetLike): boolean; + /** + * @returns a boolean indicating whether all the elements in the argument are also in this Set. + */ + isSupersetOf(other: ReadonlySetLike): boolean; + /** + * @returns a boolean indicating whether this Set has no elements in common with the argument. + */ + isDisjointFrom(other: ReadonlySetLike): boolean; +} + +interface ReadonlySet { + /** + * @returns a new Set containing all the elements in this Set and also all the elements in the argument. + */ + union(other: ReadonlySetLike): Set; + /** + * @returns a new Set containing all the elements which are both in this Set and in the argument. + */ + intersection(other: ReadonlySetLike): Set; + /** + * @returns a new Set containing all the elements in this Set which are not also in the argument. + */ + difference(other: ReadonlySetLike): Set; + /** + * @returns a new Set containing all the elements which are in either this Set or in the argument, but not in both. + */ + symmetricDifference(other: ReadonlySetLike): Set; + /** + * @returns a boolean indicating whether all the elements in this Set are also in the argument. + */ + isSubsetOf(other: ReadonlySetLike): boolean; + /** + * @returns a boolean indicating whether all the elements in the argument are also in this Set. + */ + isSupersetOf(other: ReadonlySetLike): boolean; + /** + * @returns a boolean indicating whether this Set has no elements in common with the argument. + */ + isDisjointFrom(other: ReadonlySetLike): boolean; +} diff --git a/generated/lib.esnext.d.ts b/generated/lib.esnext.d.ts index 1352ca7..28c8915 100644 --- a/generated/lib.esnext.d.ts +++ b/generated/lib.esnext.d.ts @@ -6,3 +6,6 @@ /// /// /// +/// +/// +/// diff --git a/generated/lib.esnext.intl.d.ts b/generated/lib.esnext.intl.d.ts index 57aeff0..bfef74d 100644 --- a/generated/lib.esnext.intl.d.ts +++ b/generated/lib.esnext.intl.d.ts @@ -1,14 +1,4 @@ /// declare namespace Intl { - interface NumberRangeFormatPart extends NumberFormatPart { - source: "startRange" | "endRange" | "shared"; - } - - interface NumberFormat { - formatRange(start: number | bigint, end: number | bigint): string; - formatRangeToParts( - start: number | bigint, - end: number | bigint, - ): NumberRangeFormatPart[]; - } + // Empty } diff --git a/generated/lib.esnext.regexp.d.ts b/generated/lib.esnext.regexp.d.ts new file mode 100644 index 0000000..ba156d3 --- /dev/null +++ b/generated/lib.esnext.regexp.d.ts @@ -0,0 +1,8 @@ +/// +interface RegExp { + /** + * Returns a Boolean value indicating the state of the unicodeSets flag (v) used with a regular expression. + * Default is false. Read-only. + */ + readonly unicodeSets: boolean; +} diff --git a/generated/lib.esnext.string.d.ts b/generated/lib.esnext.string.d.ts new file mode 100644 index 0000000..8461806 --- /dev/null +++ b/generated/lib.esnext.string.d.ts @@ -0,0 +1,12 @@ +/// +interface String { + /** + * Returns true if all leading surrogates and trailing surrogates appear paired and in order. + */ + isWellFormed(): boolean; + + /** + * Returns a string where all lone or out-of-order surrogates have been replaced by the Unicode replacement character (U+FFFD). + */ + toWellFormed(): string; +} diff --git a/generated/lib.webworker.asynciterable.d.ts b/generated/lib.webworker.asynciterable.d.ts index 50258c0..c83f9c7 100644 --- a/generated/lib.webworker.asynciterable.d.ts +++ b/generated/lib.webworker.asynciterable.d.ts @@ -9,3 +9,10 @@ interface FileSystemDirectoryHandle { keys(): AsyncIterableIterator; values(): AsyncIterableIterator; } + +interface ReadableStream { + [Symbol.asyncIterator]( + options?: ReadableStreamIteratorOptions, + ): AsyncIterableIterator; + values(options?: ReadableStreamIteratorOptions): AsyncIterableIterator; +} diff --git a/generated/lib.webworker.d.ts b/generated/lib.webworker.d.ts index 35419e6..b0b42b6 100644 --- a/generated/lib.webworker.d.ts +++ b/generated/lib.webworker.d.ts @@ -532,6 +532,17 @@ interface ReadableStreamGetReaderOptions { mode?: ReadableStreamReaderMode; } +interface ReadableStreamIteratorOptions { + /** + * Asynchronously iterates over the chunks in the stream's internal queue. + * + * Asynchronously iterating over the stream will lock it, preventing any other consumer from acquiring a reader. The lock will be released if the async iterator's return() method is called, e.g. by breaking out of the loop. + * + * By default, calling the async iterator's return() method will also cancel the stream. To prevent this, use the stream's values() method, passing true for the preventCancel option. + */ + preventCancel?: boolean; +} + interface ReadableStreamReadDoneResult { done: true; value?: T; @@ -629,16 +640,16 @@ interface RsaPssParams extends Algorithm { interface SecurityPolicyViolationEventInit extends EventInit { blockedURI?: string; columnNumber?: number; - disposition: SecurityPolicyViolationEventDisposition; - documentURI: string; - effectiveDirective: string; + disposition?: SecurityPolicyViolationEventDisposition; + documentURI?: string; + effectiveDirective?: string; lineNumber?: number; - originalPolicy: string; + originalPolicy?: string; referrer?: string; sample?: string; sourceFile?: string; - statusCode: number; - violatedDirective: string; + statusCode?: number; + violatedDirective?: string; } interface StorageEstimate { @@ -982,6 +993,8 @@ declare var AbortSignal: { new (): AbortSignal; /** [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/any_static) */ + any(signals: AbortSignal[]): AbortSignal; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/timeout_static) */ timeout(milliseconds: number): AbortSignal; }; @@ -5929,6 +5942,7 @@ interface ServiceWorkerGlobalScopeEventMap extends WorkerGlobalScopeEventMap { /** * This ServiceWorker API interface represents the global execution context of a service worker. + * Available only in secure contexts. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope) */ diff --git a/generated/lib.webworker.iterable.d.ts b/generated/lib.webworker.iterable.d.ts index efe66ba..80ec8bc 100644 --- a/generated/lib.webworker.iterable.d.ts +++ b/generated/lib.webworker.iterable.d.ts @@ -3,6 +3,11 @@ /// Worker Iterable APIs ///////////////////////////// +interface AbortSignal { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/any_static) */ + any(signals: Iterable): AbortSignal; +} + interface CSSNumericArray { [Symbol.iterator](): IterableIterator; entries(): IterableIterator<[number, CSSNumericValue]>; diff --git a/lib/lib.dom.d.ts b/lib/lib.dom.d.ts index 0c61ce1..bcee5ef 100644 --- a/lib/lib.dom.d.ts +++ b/lib/lib.dom.d.ts @@ -222,3 +222,10 @@ declare function structuredClone< interface NodeListOf extends NodeList { item(index: number): TNode | null; } + +interface CustomStateSet { + forEach( + callbackfn: (this: This, value: string, key: string, parent: this) => void, + thisArg?: This, + ): void; +} diff --git a/package-lock.json b/package-lock.json index 4a0710e..1e0bd03 100644 --- a/package-lock.json +++ b/package-lock.json @@ -16,7 +16,7 @@ "diff": "^5.0.0", "json5": "^2.2.3", "prettier": "^3.2.5", - "typescript": "^5.4.3" + "typescript": "^5.5.3" } }, "node_modules/@jsdevtools/ez-spawn": { @@ -165,18 +165,6 @@ "integrity": "sha1-soqmKIorn8ZRA1x3EfZathkDMaY=", "dev": true }, - "node_modules/lru-cache": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", - "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", - "dev": true, - "dependencies": { - "yallist": "^4.0.0" - }, - "engines": { - "node": ">=10" - } - }, "node_modules/path-key": { "version": "3.1.1", "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", @@ -202,13 +190,10 @@ } }, "node_modules/semver": { - "version": "7.3.5", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.5.tgz", - "integrity": "sha512-PoeGJYh8HK4BTO/a9Tf6ZG3veo/A7ZVsYrSA6J8ny9nb3B1VrpkuN+z9OE5wfE5p6H4LchYZsegiQgbJD94ZFQ==", + "version": "7.6.2", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.2.tgz", + "integrity": "sha512-FNAIBWCx9qcRhoHcgcJ0gvU7SN1lYU2ZXuSfl04bSC5OpvDHFyJCjdNHomPXxjQlCBU67YW64PzY7/VIEH7F2w==", "dev": true, - "dependencies": { - "lru-cache": "^6.0.0" - }, "bin": { "semver": "bin/semver.js" }, @@ -256,9 +241,9 @@ } }, "node_modules/typescript": { - "version": "5.4.3", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.4.3.tgz", - "integrity": "sha512-KrPd3PKaCLr78MalgiwJnA25Nm8HAmdwN3mYUYZgG/wizIo9EainNVQI9/yDavtVFRN2h3k8uf3GLHuhDMgEHg==", + "version": "5.5.3", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.5.3.tgz", + "integrity": "sha512-/hreyEujaB0w76zKo6717l3L0o/qEUtRgdvUBvlkhoWeOVMjMuHNHk0BRBzikzuGDqNmPQbg5ifMEqsHLiIUcQ==", "dev": true, "bin": { "tsc": "bin/tsc", @@ -291,12 +276,6 @@ "engines": { "node": ">= 8" } - }, - "node_modules/yallist": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", - "dev": true } }, "dependencies": { @@ -416,15 +395,6 @@ "integrity": "sha1-soqmKIorn8ZRA1x3EfZathkDMaY=", "dev": true }, - "lru-cache": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", - "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", - "dev": true, - "requires": { - "yallist": "^4.0.0" - } - }, "path-key": { "version": "3.1.1", "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", @@ -438,13 +408,10 @@ "dev": true }, "semver": { - "version": "7.3.5", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.5.tgz", - "integrity": "sha512-PoeGJYh8HK4BTO/a9Tf6ZG3veo/A7ZVsYrSA6J8ny9nb3B1VrpkuN+z9OE5wfE5p6H4LchYZsegiQgbJD94ZFQ==", - "dev": true, - "requires": { - "lru-cache": "^6.0.0" - } + "version": "7.6.2", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.2.tgz", + "integrity": "sha512-FNAIBWCx9qcRhoHcgcJ0gvU7SN1lYU2ZXuSfl04bSC5OpvDHFyJCjdNHomPXxjQlCBU67YW64PzY7/VIEH7F2w==", + "dev": true }, "shebang-command": { "version": "2.0.0", @@ -474,9 +441,9 @@ "dev": true }, "typescript": { - "version": "5.4.3", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.4.3.tgz", - "integrity": "sha512-KrPd3PKaCLr78MalgiwJnA25Nm8HAmdwN3mYUYZgG/wizIo9EainNVQI9/yDavtVFRN2h3k8uf3GLHuhDMgEHg==", + "version": "5.5.3", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.5.3.tgz", + "integrity": "sha512-/hreyEujaB0w76zKo6717l3L0o/qEUtRgdvUBvlkhoWeOVMjMuHNHk0BRBzikzuGDqNmPQbg5ifMEqsHLiIUcQ==", "dev": true }, "typical": { @@ -493,12 +460,6 @@ "requires": { "isexe": "^2.0.0" } - }, - "yallist": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", - "dev": true } } } diff --git a/package.json b/package.json index 49a8a89..8f95c23 100644 --- a/package.json +++ b/package.json @@ -12,7 +12,7 @@ "diff": "^5.0.0", "json5": "^2.2.3", "prettier": "^3.2.5", - "typescript": "^5.4.3" + "typescript": "^5.5.3" }, "scripts": { "build:tsc": "tsc", diff --git a/tests/package-lock.json b/tests/package-lock.json index 08e6924..afeee88 100644 --- a/tests/package-lock.json +++ b/tests/package-lock.json @@ -27,8 +27,8 @@ }, "devDependencies": { "@types/node": "^16.9.6", - "tsd": "^0.30.0", - "typescript": "^5.4.3" + "tsd": "^0.31.1", + "typescript": "^5.5.3" } }, "../dist-package/decorators": { @@ -310,9 +310,9 @@ "dev": true }, "node_modules/@tsd/typescript": { - "version": "5.4.3", - "resolved": "https://registry.npmjs.org/@tsd/typescript/-/typescript-5.4.3.tgz", - "integrity": "sha512-htCVCSQP58wZcLfQaT7ikW9hSjJN7ntIe0HzAfYpBauI0tYoIM0ow4XEZGFwYN266qEsJoOHhlnkNvz/gLrx4Q==", + "version": "5.5.3", + "resolved": "https://registry.npmjs.org/@tsd/typescript/-/typescript-5.5.3.tgz", + "integrity": "sha512-B/jKHNqHYlJHe6EciY5ldPnPDc3nyqoitQonMVRCq2elp5YjOZ88D7mD9OxSW9yY/WbJcG3CH+CB4efUyOx80g==", "dev": true, "engines": { "node": ">=14.17" @@ -480,12 +480,12 @@ } }, "node_modules/braces": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz", - "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==", + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz", + "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==", "dev": true, "dependencies": { - "fill-range": "^7.0.1" + "fill-range": "^7.1.1" }, "engines": { "node": ">=8" @@ -684,9 +684,9 @@ } }, "node_modules/fill-range": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", - "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==", + "version": "7.1.1", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz", + "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==", "dev": true, "dependencies": { "to-regex-range": "^5.0.1" @@ -1320,9 +1320,9 @@ } }, "node_modules/read-pkg/node_modules/semver": { - "version": "5.7.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", - "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", + "version": "5.7.2", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.2.tgz", + "integrity": "sha512-cBznnQ9KjJqU67B52RMC65CMarK2600WFnbkcaiwWq3xy/5haFJlshgnpjovMVJ+Hff49d8GEn0b87C5pDQ10g==", "dev": true, "bin": { "semver": "bin/semver" @@ -1401,13 +1401,10 @@ } }, "node_modules/semver": { - "version": "7.3.8", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.8.tgz", - "integrity": "sha512-NB1ctGL5rlHrPJtFDVIVzTyQylMLu9N9VICA6HSFJo8MCGVTMW6gfpicwKmmK/dAjTOrqu5l63JJOpDSrAis3A==", + "version": "7.6.2", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.2.tgz", + "integrity": "sha512-FNAIBWCx9qcRhoHcgcJ0gvU7SN1lYU2ZXuSfl04bSC5OpvDHFyJCjdNHomPXxjQlCBU67YW64PzY7/VIEH7F2w==", "dev": true, - "dependencies": { - "lru-cache": "^6.0.0" - }, "bin": { "semver": "bin/semver.js" }, @@ -1553,12 +1550,12 @@ } }, "node_modules/tsd": { - "version": "0.30.0", - "resolved": "https://registry.npmjs.org/tsd/-/tsd-0.30.0.tgz", - "integrity": "sha512-aHL4rEuf3wwRzKCH8yqsE1oMAJYn7SAQ2JfWSgjr1e5/fqr+ggohQazECMpSoRAqSQeM/iIFugoyL/0eFwdTcA==", + "version": "0.31.1", + "resolved": "https://registry.npmjs.org/tsd/-/tsd-0.31.1.tgz", + "integrity": "sha512-sSL84A0SFwx2xGMWrxlGaarKFSQszWjJS2vgNDDLwatytzg2aq6ShlwHsBYxRNmjzXISODwMva5ZOdAg/4AoOA==", "dev": true, "dependencies": { - "@tsd/typescript": "~5.3.3", + "@tsd/typescript": "~5.4.3", "eslint-formatter-pretty": "^4.1.0", "globby": "^11.0.1", "jest-diff": "^29.0.3", @@ -1586,9 +1583,9 @@ } }, "node_modules/typescript": { - "version": "5.4.3", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.4.3.tgz", - "integrity": "sha512-KrPd3PKaCLr78MalgiwJnA25Nm8HAmdwN3mYUYZgG/wizIo9EainNVQI9/yDavtVFRN2h3k8uf3GLHuhDMgEHg==", + "version": "5.5.3", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.5.3.tgz", + "integrity": "sha512-/hreyEujaB0w76zKo6717l3L0o/qEUtRgdvUBvlkhoWeOVMjMuHNHk0BRBzikzuGDqNmPQbg5ifMEqsHLiIUcQ==", "dev": true, "bin": { "tsc": "bin/tsc", diff --git a/tests/package.json b/tests/package.json index 1c5ea60..b82058f 100644 --- a/tests/package.json +++ b/tests/package.json @@ -14,8 +14,8 @@ }, "devDependencies": { "@types/node": "^16.9.6", - "tsd": "^0.30.0", - "typescript": "^5.4.3" + "tsd": "^0.31.1", + "typescript": "^5.5.3" }, "dependencies": { "@typescript/lib-decorators": "file:../dist-package/decorators", @@ -36,6 +36,6 @@ "@typescript/lib-webworker": "file:../dist-package/webworker" }, "overrides": { - "@tsd/typescript": "~5.4.3" + "@tsd/typescript": "~5.5.3" } }