typescript
Advanced tools
Comparing version 5.0.4 to 5.3.3
@@ -63,3 +63,3 @@ /*! ***************************************************************************** | ||
const namePrefix = cancellationPipeName.slice(0, -1); | ||
if (namePrefix.length === 0 || namePrefix.indexOf("*") >= 0) { | ||
if (namePrefix.length === 0 || namePrefix.includes("*")) { | ||
throw new Error("Invalid name for template cancellation pipe: it should have length greater than 2 characters and contain only one '*'."); | ||
@@ -66,0 +66,0 @@ } |
@@ -27,4 +27,3 @@ /*! ***************************************************************************** | ||
| ClassFieldDecoratorContext | ||
| ClassAccessorDecoratorContext | ||
; | ||
| ClassAccessorDecoratorContext; | ||
@@ -36,5 +35,8 @@ /** | ||
| ClassDecoratorContext | ||
| ClassMemberDecoratorContext | ||
; | ||
| ClassMemberDecoratorContext; | ||
type DecoratorMetadataObject = Record<PropertyKey, unknown> & object; | ||
type DecoratorMetadata = typeof globalThis extends { Symbol: { readonly metadata: symbol; }; } ? DecoratorMetadataObject : DecoratorMetadataObject | undefined; | ||
/** | ||
@@ -71,2 +73,4 @@ * Context provided to a class decorator. | ||
addInitializer(initializer: (this: Class) => void): void; | ||
readonly metadata: DecoratorMetadata; | ||
} | ||
@@ -136,2 +140,4 @@ | ||
addInitializer(initializer: (this: This) => void): void; | ||
readonly metadata: DecoratorMetadata; | ||
} | ||
@@ -182,2 +188,4 @@ | ||
addInitializer(initializer: (this: This) => void): void; | ||
readonly metadata: DecoratorMetadata; | ||
} | ||
@@ -228,2 +236,4 @@ | ||
addInitializer(initializer: (this: This) => void): void; | ||
readonly metadata: DecoratorMetadata; | ||
} | ||
@@ -283,2 +293,4 @@ | ||
addInitializer(initializer: (this: This) => void): void; | ||
readonly metadata: DecoratorMetadata; | ||
} | ||
@@ -379,2 +391,4 @@ | ||
addInitializer(initializer: (this: This) => void): void; | ||
readonly metadata: DecoratorMetadata; | ||
} |
@@ -24,2 +24,3 @@ /*! ***************************************************************************** | ||
interface AudioParam { | ||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/setValueCurveAtTime) */ | ||
setValueCurveAtTime(values: Iterable<number>, startTime: number, duration: number): AudioParam; | ||
@@ -32,3 +33,5 @@ } | ||
interface BaseAudioContext { | ||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createIIRFilter) */ | ||
createIIRFilter(feedforward: Iterable<number>, feedback: Iterable<number>): IIRFilterNode; | ||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createPeriodicWave) */ | ||
createPeriodicWave(real: Iterable<number>, imag: Iterable<number>, constraints?: PeriodicWaveConstraints): PeriodicWave; | ||
@@ -41,2 +44,9 @@ } | ||
interface CSSNumericArray { | ||
[Symbol.iterator](): IterableIterator<CSSNumericValue>; | ||
entries(): IterableIterator<[number, CSSNumericValue]>; | ||
keys(): IterableIterator<number>; | ||
values(): IterableIterator<CSSNumericValue>; | ||
} | ||
interface CSSRuleList { | ||
@@ -50,3 +60,18 @@ [Symbol.iterator](): IterableIterator<CSSRule>; | ||
interface CSSTransformValue { | ||
[Symbol.iterator](): IterableIterator<CSSTransformComponent>; | ||
entries(): IterableIterator<[number, CSSTransformComponent]>; | ||
keys(): IterableIterator<number>; | ||
values(): IterableIterator<CSSTransformComponent>; | ||
} | ||
interface CSSUnparsedValue { | ||
[Symbol.iterator](): IterableIterator<CSSUnparsedSegment>; | ||
entries(): IterableIterator<[number, CSSUnparsedSegment]>; | ||
keys(): IterableIterator<number>; | ||
values(): IterableIterator<CSSUnparsedSegment>; | ||
} | ||
interface Cache { | ||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/addAll) */ | ||
addAll(requests: Iterable<RequestInfo>): Promise<void>; | ||
@@ -56,2 +81,3 @@ } | ||
interface CanvasPath { | ||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/roundRect) */ | ||
roundRect(x: number, y: number, w: number, h: number, radii?: number | DOMPointInit | Iterable<number | DOMPointInit>): void; | ||
@@ -61,2 +87,3 @@ } | ||
interface CanvasPathDrawingStyles { | ||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/setLineDash) */ | ||
setLineDash(segments: Iterable<number>): void; | ||
@@ -135,3 +162,7 @@ } | ||
interface IDBDatabase { | ||
/** Returns a new transaction with the given mode ("readonly" or "readwrite") and scope which can be a single object store name or an array of names. */ | ||
/** | ||
* Returns a new transaction with the given mode ("readonly" or "readwrite") and scope which can be a single object store name or an array of names. | ||
* | ||
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/transaction) | ||
*/ | ||
transaction(storeNames: string | Iterable<string>, mode?: IDBTransactionMode, options?: IDBTransactionOptions): IDBTransaction; | ||
@@ -145,2 +176,4 @@ } | ||
* Throws an "InvalidStateError" DOMException if not called within an upgrade transaction. | ||
* | ||
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/createIndex) | ||
*/ | ||
@@ -154,2 +187,3 @@ createIndex(name: string, keyPath: string | Iterable<string>, options?: IDBIndexParameters): IDBIndex; | ||
interface MIDIOutput { | ||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIOutput/send) */ | ||
send(data: Iterable<number>, timestamp?: DOMHighResTimeStamp): void; | ||
@@ -173,3 +207,7 @@ } | ||
interface MessageEvent<T = any> { | ||
/** @deprecated */ | ||
/** | ||
* @deprecated | ||
* | ||
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent/initMessageEvent) | ||
*/ | ||
initMessageEvent(type: string, bubbles?: boolean, cancelable?: boolean, data?: any, origin?: string, lastEventId?: string, source?: MessageEventSource | null, ports?: Iterable<MessagePort>): void; | ||
@@ -187,4 +225,9 @@ } | ||
interface Navigator { | ||
/** Available only in secure contexts. */ | ||
/** | ||
* Available only in secure contexts. | ||
* | ||
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/requestMediaKeySystemAccess) | ||
*/ | ||
requestMediaKeySystemAccess(keySystem: string, supportedConfigurations: Iterable<MediaKeySystemConfiguration>): Promise<MediaKeySystemAccess>; | ||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/vibrate) */ | ||
vibrate(pattern: Iterable<number>): boolean; | ||
@@ -222,2 +265,3 @@ } | ||
interface RTCRtpTransceiver { | ||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpTransceiver/setCodecPreferences) */ | ||
setCodecPreferences(codecs: Iterable<RTCRtpCodecCapability>): void; | ||
@@ -261,2 +305,9 @@ } | ||
interface StylePropertyMapReadOnly { | ||
[Symbol.iterator](): IterableIterator<[string, Iterable<CSSStyleValue>]>; | ||
entries(): IterableIterator<[string, Iterable<CSSStyleValue>]>; | ||
keys(): IterableIterator<string>; | ||
values(): IterableIterator<Iterable<CSSStyleValue>>; | ||
} | ||
interface StyleSheetList { | ||
@@ -267,8 +318,12 @@ [Symbol.iterator](): IterableIterator<CSSStyleSheet>; | ||
interface SubtleCrypto { | ||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/deriveKey) */ | ||
deriveKey(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, derivedKeyType: AlgorithmIdentifier | AesDerivedKeyParams | HmacImportParams | HkdfParams | Pbkdf2Params, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKey>; | ||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/generateKey) */ | ||
generateKey(algorithm: RsaHashedKeyGenParams | EcKeyGenParams, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKeyPair>; | ||
generateKey(algorithm: AesKeyGenParams | HmacKeyGenParams | Pbkdf2Params, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>; | ||
generateKey(algorithm: AlgorithmIdentifier, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKeyPair | CryptoKey>; | ||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/importKey) */ | ||
importKey(format: "jwk", keyData: JsonWebKey, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>; | ||
importKey(format: Exclude<KeyFormat, "jwk">, keyData: BufferSource, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKey>; | ||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/unwrapKey) */ | ||
unwrapKey(format: KeyFormat, wrappedKey: BufferSource, unwrappingKey: CryptoKey, unwrapAlgorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, unwrappedKeyAlgorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKey>; | ||
@@ -300,2 +355,3 @@ } | ||
interface WEBGL_draw_buffers { | ||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_draw_buffers/drawBuffersWEBGL) */ | ||
drawBuffersWEBGL(buffers: Iterable<GLenum>): void; | ||
@@ -305,5 +361,9 @@ } | ||
interface WEBGL_multi_draw { | ||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawArraysInstancedWEBGL) */ | ||
multiDrawArraysInstancedWEBGL(mode: GLenum, firstsList: Int32Array | Iterable<GLint>, firstsOffset: GLuint, countsList: Int32Array | Iterable<GLsizei>, countsOffset: GLuint, instanceCountsList: Int32Array | Iterable<GLsizei>, instanceCountsOffset: GLuint, drawcount: GLsizei): void; | ||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawArraysWEBGL) */ | ||
multiDrawArraysWEBGL(mode: GLenum, firstsList: Int32Array | Iterable<GLint>, firstsOffset: GLuint, countsList: Int32Array | Iterable<GLsizei>, countsOffset: GLuint, drawcount: GLsizei): void; | ||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawElementsInstancedWEBGL) */ | ||
multiDrawElementsInstancedWEBGL(mode: GLenum, countsList: Int32Array | Iterable<GLsizei>, countsOffset: GLuint, type: GLenum, offsetsList: Int32Array | Iterable<GLsizei>, offsetsOffset: GLuint, instanceCountsList: Int32Array | Iterable<GLsizei>, instanceCountsOffset: GLuint, drawcount: GLsizei): void; | ||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawElementsWEBGL) */ | ||
multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array | Iterable<GLsizei>, countsOffset: GLuint, type: GLenum, offsetsList: Int32Array | Iterable<GLsizei>, offsetsOffset: GLuint, drawcount: GLsizei): void; | ||
@@ -313,22 +373,43 @@ } | ||
interface WebGL2RenderingContextBase { | ||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) */ | ||
clearBufferfv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLfloat>, srcOffset?: GLuint): void; | ||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) */ | ||
clearBufferiv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLint>, srcOffset?: GLuint): void; | ||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) */ | ||
clearBufferuiv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLuint>, srcOffset?: GLuint): void; | ||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/drawBuffers) */ | ||
drawBuffers(buffers: Iterable<GLenum>): void; | ||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getActiveUniforms) */ | ||
getActiveUniforms(program: WebGLProgram, uniformIndices: Iterable<GLuint>, pname: GLenum): any; | ||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getUniformIndices) */ | ||
getUniformIndices(program: WebGLProgram, uniformNames: Iterable<string>): Iterable<GLuint> | null; | ||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/invalidateFramebuffer) */ | ||
invalidateFramebuffer(target: GLenum, attachments: Iterable<GLenum>): void; | ||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/invalidateSubFramebuffer) */ | ||
invalidateSubFramebuffer(target: GLenum, attachments: Iterable<GLenum>, x: GLint, y: GLint, width: GLsizei, height: GLsizei): void; | ||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/transformFeedbackVaryings) */ | ||
transformFeedbackVaryings(program: WebGLProgram, varyings: Iterable<string>, bufferMode: GLenum): void; | ||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */ | ||
uniform1uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: GLuint, srcLength?: GLuint): void; | ||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */ | ||
uniform2uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: GLuint, srcLength?: GLuint): void; | ||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */ | ||
uniform3uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: GLuint, srcLength?: GLuint): void; | ||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */ | ||
uniform4uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: GLuint, srcLength?: GLuint): void; | ||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */ | ||
uniformMatrix2x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void; | ||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */ | ||
uniformMatrix2x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void; | ||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */ | ||
uniformMatrix3x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void; | ||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */ | ||
uniformMatrix3x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void; | ||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */ | ||
uniformMatrix4x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void; | ||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */ | ||
uniformMatrix4x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void; | ||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/vertexAttribI) */ | ||
vertexAttribI4iv(index: GLuint, values: Iterable<GLint>): void; | ||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/vertexAttribI) */ | ||
vertexAttribI4uiv(index: GLuint, values: Iterable<GLuint>): void; | ||
@@ -338,12 +419,23 @@ } | ||
interface WebGL2RenderingContextOverloads { | ||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ | ||
uniform1fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void; | ||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ | ||
uniform1iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: GLuint, srcLength?: GLuint): void; | ||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ | ||
uniform2fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void; | ||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ | ||
uniform2iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: GLuint, srcLength?: GLuint): void; | ||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ | ||
uniform3fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void; | ||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ | ||
uniform3iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: GLuint, srcLength?: GLuint): void; | ||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ | ||
uniform4fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void; | ||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ | ||
uniform4iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: GLuint, srcLength?: GLuint): void; | ||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */ | ||
uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void; | ||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */ | ||
uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void; | ||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */ | ||
uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void; | ||
@@ -353,5 +445,9 @@ } | ||
interface WebGLRenderingContextBase { | ||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */ | ||
vertexAttrib1fv(index: GLuint, values: Iterable<GLfloat>): void; | ||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */ | ||
vertexAttrib2fv(index: GLuint, values: Iterable<GLfloat>): void; | ||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */ | ||
vertexAttrib3fv(index: GLuint, values: Iterable<GLfloat>): void; | ||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */ | ||
vertexAttrib4fv(index: GLuint, values: Iterable<GLfloat>): void; | ||
@@ -361,13 +457,24 @@ } | ||
interface WebGLRenderingContextOverloads { | ||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ | ||
uniform1fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void; | ||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ | ||
uniform1iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void; | ||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ | ||
uniform2fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void; | ||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ | ||
uniform2iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void; | ||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ | ||
uniform3fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void; | ||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ | ||
uniform3iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void; | ||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ | ||
uniform4fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void; | ||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ | ||
uniform4iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void; | ||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */ | ||
uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Iterable<GLfloat>): void; | ||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */ | ||
uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Iterable<GLfloat>): void; | ||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */ | ||
uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Iterable<GLfloat>): void; | ||
} |
@@ -20,3 +20,2 @@ /*! ***************************************************************************** | ||
interface Map<K, V> { | ||
clear(): void; | ||
@@ -51,3 +50,3 @@ /** | ||
interface MapConstructor { | ||
new(): Map<any, any>; | ||
new (): Map<any, any>; | ||
new <K, V>(entries?: readonly (readonly [K, V])[] | null): Map<K, V>; | ||
@@ -65,3 +64,3 @@ readonly prototype: Map<any, any>; | ||
interface WeakMap<K extends object, V> { | ||
interface WeakMap<K extends WeakKey, V> { | ||
/** | ||
@@ -82,3 +81,3 @@ * Removes the specified element from the WeakMap. | ||
* Adds a new element with a specified key and value. | ||
* @param key Must be an object. | ||
* @param key Must be an object or symbol. | ||
*/ | ||
@@ -89,4 +88,4 @@ set(key: K, value: V): this; | ||
interface WeakMapConstructor { | ||
new <K extends object = object, V = any>(entries?: 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>; | ||
} | ||
@@ -133,5 +132,5 @@ declare var WeakMap: WeakMapConstructor; | ||
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. | ||
*/ | ||
@@ -145,3 +144,3 @@ add(value: T): this; | ||
/** | ||
* @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. | ||
*/ | ||
@@ -152,5 +151,5 @@ 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; |
@@ -556,3 +556,3 @@ /*! ***************************************************************************** | ||
*/ | ||
raw(template: { raw: readonly string[] | ArrayLike<string>}, ...substitutions: any[]): string; | ||
raw(template: { raw: readonly string[] | ArrayLike<string>; }, ...substitutions: any[]): string; | ||
} |
@@ -158,10 +158,10 @@ /*! ***************************************************************************** | ||
interface MapConstructor { | ||
new(): Map<any, any>; | ||
new (): Map<any, any>; | ||
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>; | ||
} | ||
@@ -211,9 +211,9 @@ | ||
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> { } | ||
interface Promise<T> {} | ||
@@ -320,3 +320,2 @@ interface PromiseConstructor { | ||
/** | ||
@@ -323,0 +322,0 @@ * Creates an array from an array-like or iterable object. |
@@ -39,3 +39,3 @@ /*! ***************************************************************************** | ||
*/ | ||
all<T extends readonly unknown[] | []>(values: T): Promise<{ -readonly [P in keyof T]: Awaited<T[P]> }>; | ||
all<T extends readonly unknown[] | []>(values: T): Promise<{ -readonly [P in keyof T]: Awaited<T[P]>; }>; | ||
@@ -42,0 +42,0 @@ // see: lib.es2015.iterable.d.ts |
@@ -46,2 +46,2 @@ /*! ***************************************************************************** | ||
declare var Symbol: SymbolConstructor; | ||
declare var Symbol: SymbolConstructor; |
@@ -140,3 +140,3 @@ /*! ***************************************************************************** | ||
interface WeakMap<K extends object, V> { | ||
interface WeakMap<K extends WeakKey, V> { | ||
readonly [Symbol.toStringTag]: string; | ||
@@ -149,3 +149,3 @@ } | ||
interface WeakSet<T extends object> { | ||
interface WeakSet<T extends WeakKey> { | ||
readonly [Symbol.toStringTag]: string; | ||
@@ -152,0 +152,0 @@ } |
@@ -116,2 +116,2 @@ /*! ***************************************************************************** | ||
includes(searchElement: number, fromIndex?: number): boolean; | ||
} | ||
} |
@@ -20,2 +20,2 @@ /*! ***************************************************************************** | ||
/// <reference lib="es2015" /> | ||
/// <reference lib="es2016.array.include" /> | ||
/// <reference lib="es2016.array.include" /> |
@@ -23,2 +23,2 @@ /*! ***************************************************************************** | ||
/// <reference lib="scripthost" /> | ||
/// <reference lib="dom.iterable" /> | ||
/// <reference lib="dom.iterable" /> |
@@ -25,1 +25,2 @@ /*! ***************************************************************************** | ||
/// <reference lib="es2017.typedarrays" /> | ||
/// <reference lib="es2017.date" /> |
@@ -23,2 +23,2 @@ /*! ***************************************************************************** | ||
/// <reference lib="scripthost" /> | ||
/// <reference lib="dom.iterable" /> | ||
/// <reference lib="dom.iterable" /> |
@@ -20,15 +20,14 @@ /*! ***************************************************************************** | ||
declare namespace Intl { | ||
interface DateTimeFormatPartTypesRegistry { | ||
day: any | ||
dayPeriod: any | ||
era: any | ||
hour: any | ||
literal: any | ||
minute: any | ||
month: any | ||
second: any | ||
timeZoneName: any | ||
weekday: any | ||
year: any | ||
day: any; | ||
dayPeriod: any; | ||
era: any; | ||
hour: any; | ||
literal: any; | ||
minute: any; | ||
month: any; | ||
second: any; | ||
timeZoneName: any; | ||
weekday: any; | ||
year: any; | ||
} | ||
@@ -35,0 +34,0 @@ |
@@ -24,3 +24,3 @@ /*! ***************************************************************************** | ||
*/ | ||
values<T>(o: { [s: string]: T } | ArrayLike<T>): T[]; | ||
values<T>(o: { [s: string]: T; } | ArrayLike<T>): T[]; | ||
@@ -37,3 +37,3 @@ /** | ||
*/ | ||
entries<T>(o: { [s: string]: T } | ArrayLike<T>): [string, T][]; | ||
entries<T>(o: { [s: string]: T; } | ArrayLike<T>): [string, T][]; | ||
@@ -50,3 +50,3 @@ /** | ||
*/ | ||
getOwnPropertyDescriptors<T>(o: T): {[P in keyof T]: TypedPropertyDescriptor<T[P]>} & { [x: string]: PropertyDescriptor }; | ||
getOwnPropertyDescriptors<T>(o: T): { [P in keyof T]: TypedPropertyDescriptor<T[P]>; } & { [x: string]: PropertyDescriptor; }; | ||
} |
@@ -43,2 +43,2 @@ /*! ***************************************************************************** | ||
[Symbol.asyncIterator](): AsyncIterableIterator<T>; | ||
} | ||
} |
@@ -23,2 +23,2 @@ /*! ***************************************************************************** | ||
/// <reference lib="scripthost" /> | ||
/// <reference lib="dom.iterable" /> | ||
/// <reference lib="dom.iterable" /> |
@@ -20,3 +20,2 @@ /*! ***************************************************************************** | ||
declare namespace Intl { | ||
// http://cldr.unicode.org/index/cldr-spec/plural-rules#TOC-Determining-Plural-Categories | ||
@@ -56,3 +55,3 @@ type LDMLPluralRule = "zero" | "one" | "two" | "few" | "many" | "other"; | ||
supportedLocalesOf(locales: string | string[], options?: { localeMatcher?: "lookup" | "best fit" }): string[]; | ||
supportedLocalesOf(locales: string | string[], options?: { localeMatcher?: "lookup" | "best fit"; }): string[]; | ||
}; | ||
@@ -59,0 +58,0 @@ |
@@ -29,3 +29,3 @@ /*! ***************************************************************************** | ||
*/ | ||
finally(onfinally?: (() => void) | undefined | null): Promise<T> | ||
finally(onfinally?: (() => void) | undefined | null): Promise<T>; | ||
} |
@@ -21,4 +21,4 @@ /*! ***************************************************************************** | ||
groups?: { | ||
[key: string]: string | ||
} | ||
[key: string]: string; | ||
}; | ||
} | ||
@@ -28,4 +28,4 @@ | ||
groups?: { | ||
[key: string]: string | ||
} | ||
[key: string]: string; | ||
}; | ||
} | ||
@@ -39,2 +39,2 @@ | ||
readonly dotAll: boolean; | ||
} | ||
} |
@@ -20,10 +20,8 @@ /*! ***************************************************************************** | ||
type FlatArray<Arr, Depth extends number> = { | ||
"done": Arr, | ||
"recur": Arr extends ReadonlyArray<infer InnerArr> | ||
? FlatArray<InnerArr, [-1, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20][Depth]> | ||
: Arr | ||
done: Arr; | ||
recur: Arr extends ReadonlyArray<infer InnerArr> ? FlatArray<InnerArr, [-1, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20][Depth]> | ||
: Arr; | ||
}[Depth extends -1 ? "done" : "recur"]; | ||
interface ReadonlyArray<T> { | ||
/** | ||
@@ -39,8 +37,7 @@ * Calls a defined callback function on each element of an array. Then, flattens the result into | ||
*/ | ||
flatMap<U, This = undefined> ( | ||
flatMap<U, This = undefined>( | ||
callback: (this: This, value: T, index: number, array: T[]) => U | ReadonlyArray<U>, | ||
thisArg?: This | ||
): U[] | ||
thisArg?: This, | ||
): U[]; | ||
/** | ||
@@ -54,8 +51,7 @@ * Returns a new array with all sub-array elements concatenated into it recursively up to the | ||
this: A, | ||
depth?: D | ||
): FlatArray<A, D>[] | ||
} | ||
depth?: D, | ||
): FlatArray<A, D>[]; | ||
} | ||
interface Array<T> { | ||
/** | ||
@@ -71,6 +67,6 @@ * Calls a defined callback function on each element of an array. Then, flattens the result into | ||
*/ | ||
flatMap<U, This = undefined> ( | ||
flatMap<U, This = undefined>( | ||
callback: (this: This, value: T, index: number, array: T[]) => U | ReadonlyArray<U>, | ||
thisArg?: This | ||
): U[] | ||
thisArg?: This, | ||
): U[]; | ||
@@ -85,4 +81,4 @@ /** | ||
this: A, | ||
depth?: D | ||
): FlatArray<A, D>[] | ||
depth?: D, | ||
): FlatArray<A, D>[]; | ||
} |
@@ -21,4 +21,4 @@ /*! ***************************************************************************** | ||
interface DateTimeFormatPartTypesRegistry { | ||
unknown: any | ||
unknown: any; | ||
} | ||
} |
@@ -26,3 +26,3 @@ /*! ***************************************************************************** | ||
*/ | ||
fromEntries<T = any>(entries: Iterable<readonly [PropertyKey, T]>): { [k: string]: T }; | ||
fromEntries<T = any>(entries: Iterable<readonly [PropertyKey, T]>): { [k: string]: T; }; | ||
@@ -29,0 +29,0 @@ /** |
@@ -392,5 +392,5 @@ /*! ***************************************************************************** | ||
readonly prototype: BigInt64Array; | ||
new(length?: number): BigInt64Array; | ||
new(array: Iterable<bigint>): BigInt64Array; | ||
new(buffer: ArrayBufferLike, byteOffset?: number, length?: number): BigInt64Array; | ||
new (length?: number): BigInt64Array; | ||
new (array: Iterable<bigint>): BigInt64Array; | ||
new (buffer: ArrayBufferLike, byteOffset?: number, length?: number): BigInt64Array; | ||
@@ -665,5 +665,5 @@ /** The size in bytes of each element in the array. */ | ||
readonly prototype: BigUint64Array; | ||
new(length?: number): BigUint64Array; | ||
new(array: Iterable<bigint>): BigUint64Array; | ||
new(buffer: ArrayBufferLike, byteOffset?: number, length?: number): BigUint64Array; | ||
new (length?: number): BigUint64Array; | ||
new (array: Iterable<bigint>): BigUint64Array; | ||
new (buffer: ArrayBufferLike, byteOffset?: number, length?: number): BigUint64Array; | ||
@@ -725,3 +725,3 @@ /** The size in bytes of each element in the array. */ | ||
declare namespace Intl{ | ||
declare namespace Intl { | ||
interface NumberFormat { | ||
@@ -728,0 +728,0 @@ format(value: number | bigint): string; |
@@ -42,2 +42,2 @@ /*! ***************************************************************************** | ||
toLocaleTimeString(locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions): string; | ||
} | ||
} |
@@ -21,3 +21,2 @@ /*! ***************************************************************************** | ||
declare namespace Intl { | ||
/** | ||
@@ -62,3 +61,3 @@ * [Unicode BCP 47 Locale Identifiers](https://unicode.org/reports/tr35/#Unicode_Language_and_Locale_Identifiers) definition. | ||
*/ | ||
type RelativeTimeFormatUnitSingular = | ||
type RelativeTimeFormatUnitSingular = | ||
| "year" | ||
@@ -145,10 +144,10 @@ | "quarter" | ||
| { | ||
type: "literal"; | ||
value: string; | ||
} | ||
type: "literal"; | ||
value: string; | ||
} | ||
| { | ||
type: Exclude<NumberFormatPartTypes, "literal">; | ||
value: string; | ||
unit: RelativeTimeFormatUnitSingular; | ||
}; | ||
type: Exclude<NumberFormatPartTypes, "literal">; | ||
value: string; | ||
unit: RelativeTimeFormatUnitSingular; | ||
}; | ||
@@ -224,3 +223,3 @@ interface RelativeTimeFormat { | ||
*/ | ||
new( | ||
new ( | ||
locales?: UnicodeBCP47LocaleIdentifier | UnicodeBCP47LocaleIdentifier[], | ||
@@ -417,3 +416,3 @@ options?: RelativeTimeFormatOptions, | ||
*/ | ||
new(locales: LocalesArgument, options: DisplayNamesOptions): DisplayNames; | ||
new (locales: LocalesArgument, options: DisplayNamesOptions): DisplayNames; | ||
@@ -433,5 +432,4 @@ /** | ||
*/ | ||
supportedLocalesOf(locales?: LocalesArgument, options?: { localeMatcher?: RelativeTimeFormatLocaleMatcher }): BCP47LanguageTag[]; | ||
supportedLocalesOf(locales?: LocalesArgument, options?: { localeMatcher?: RelativeTimeFormatLocaleMatcher; }): BCP47LanguageTag[]; | ||
}; | ||
} |
@@ -38,3 +38,3 @@ /*! ***************************************************************************** | ||
*/ | ||
allSettled<T extends readonly unknown[] | []>(values: T): Promise<{ -readonly [P in keyof T]: PromiseSettledResult<Awaited<T[P]>> }>; | ||
allSettled<T extends readonly unknown[] | []>(values: T): Promise<{ -readonly [P in keyof T]: PromiseSettledResult<Awaited<T[P]>>; }>; | ||
@@ -41,0 +41,0 @@ /** |
@@ -20,6 +20,5 @@ /*! ***************************************************************************** | ||
declare namespace Intl { | ||
interface DateTimeFormatPartTypesRegistry { | ||
fractionalSecond: any | ||
} | ||
fractionalSecond: any; | ||
} | ||
@@ -35,3 +34,3 @@ interface DateTimeFormatOptions { | ||
interface DateTimeRangeFormatPart extends DateTimeFormatPart { | ||
source: "startRange" | "endRange" | "shared" | ||
source: "startRange" | "endRange" | "shared"; | ||
} | ||
@@ -119,3 +118,3 @@ | ||
*/ | ||
formatToParts(list: Iterable<string>): { type: "element" | "literal", value: string; }[]; | ||
formatToParts(list: Iterable<string>): { type: "element" | "literal"; value: string; }[]; | ||
@@ -150,3 +149,3 @@ /** | ||
*/ | ||
new(locales?: BCP47LanguageTag | BCP47LanguageTag[], options?: ListFormatOptions): ListFormat; | ||
new (locales?: BCP47LanguageTag | BCP47LanguageTag[], options?: ListFormatOptions): ListFormat; | ||
@@ -153,0 +152,0 @@ /** |
@@ -20,7 +20,7 @@ /*! ***************************************************************************** | ||
interface AggregateError extends Error { | ||
errors: any[] | ||
errors: any[]; | ||
} | ||
interface AggregateErrorConstructor { | ||
new(errors: Iterable<any>, message?: string): AggregateError; | ||
new (errors: Iterable<any>, message?: string): AggregateError; | ||
(errors: Iterable<any>, message?: string): AggregateError; | ||
@@ -48,3 +48,3 @@ readonly prototype: AggregateError; | ||
*/ | ||
any<T>(values: Iterable<T | PromiseLike<T>>): Promise<Awaited<T>> | ||
any<T>(values: Iterable<T | PromiseLike<T>>): Promise<Awaited<T>>; | ||
} |
@@ -19,8 +19,9 @@ /*! ***************************************************************************** | ||
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. | ||
*/ | ||
@@ -34,6 +35,7 @@ deref(): T | undefined; | ||
/** | ||
* 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>; | ||
} | ||
@@ -47,18 +49,19 @@ | ||
/** | ||
* 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; | ||
} | ||
@@ -71,7 +74,7 @@ | ||
* Creates a finalization registry with an associated cleanup callback | ||
* @param cleanupCallback The callback to call after an object in the registry has been reclaimed. | ||
* @param cleanupCallback The callback to call after a value in the registry has been reclaimed. | ||
*/ | ||
new<T>(cleanupCallback: (heldValue: T) => void): FinalizationRegistry<T>; | ||
new <T>(cleanupCallback: (heldValue: T) => void): FinalizationRegistry<T>; | ||
} | ||
declare var FinalizationRegistry: FinalizationRegistryConstructor; |
@@ -66,3 +66,3 @@ /*! ***************************************************************************** | ||
message?: string, | ||
options?: ErrorOptions | ||
options?: ErrorOptions, | ||
): AggregateError; | ||
@@ -72,4 +72,4 @@ ( | ||
message?: string, | ||
options?: ErrorOptions | ||
options?: ErrorOptions, | ||
): AggregateError; | ||
} |
@@ -20,3 +20,2 @@ /*! ***************************************************************************** | ||
declare namespace Intl { | ||
/** | ||
@@ -94,3 +93,3 @@ * An object with some or all properties of the `Intl.Segmenter` constructor `options` parameter. | ||
*/ | ||
new(locales?: BCP47LanguageTag | BCP47LanguageTag[], options?: SegmenterOptions): Segmenter; | ||
new (locales?: BCP47LanguageTag | BCP47LanguageTag[], options?: SegmenterOptions): Segmenter; | ||
@@ -111,2 +110,11 @@ /** | ||
}; | ||
/** | ||
* Returns a sorted array of the supported collation, calendar, currency, numbering system, timezones, and units by the implementation. | ||
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/supportedValuesOf) | ||
* | ||
* @param key A string indicating the category of values to return. | ||
* @returns A sorted array of the supported values. | ||
*/ | ||
function supportedValuesOf(key: "calendar" | "collation" | "currency" | "numberingSystem" | "timeZone" | "unit"): string[]; | ||
} |
@@ -28,3 +28,3 @@ /*! ***************************************************************************** | ||
*/ | ||
waitAsync(typedArray: Int32Array, index: number, value: number, timeout?: number): { async: false, value: "not-equal" | "timed-out" } | { async: true, value: Promise<"ok" | "timed-out"> }; | ||
waitAsync(typedArray: Int32Array, index: number, value: number, timeout?: number): { async: false; value: "not-equal" | "timed-out"; } | { async: true; value: Promise<"ok" | "timed-out">; }; | ||
@@ -39,3 +39,3 @@ /** | ||
*/ | ||
waitAsync(typedArray: BigInt64Array, index: number, value: bigint, timeout?: number): { async: false, value: "not-equal" | "timed-out" } | { async: true, value: Promise<"ok" | "timed-out"> }; | ||
waitAsync(typedArray: BigInt64Array, index: number, value: bigint, timeout?: number): { async: false; value: "not-equal" | "timed-out"; } | { async: true; value: Promise<"ok" | "timed-out">; }; | ||
} |
@@ -42,2 +42,46 @@ /*! ***************************************************************************** | ||
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[]; | ||
} | ||
@@ -55,4 +99,10 @@ | ||
*/ | ||
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; | ||
@@ -68,3 +118,50 @@ /** | ||
*/ | ||
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[]; | ||
} | ||
@@ -82,4 +179,14 @@ | ||
*/ | ||
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; | ||
@@ -95,3 +202,32 @@ /** | ||
*/ | ||
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 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; | ||
} | ||
@@ -109,4 +245,14 @@ | ||
*/ | ||
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; | ||
@@ -122,3 +268,32 @@ /** | ||
*/ | ||
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 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; | ||
} | ||
@@ -136,4 +311,18 @@ | ||
*/ | ||
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; | ||
@@ -149,3 +338,36 @@ /** | ||
*/ | ||
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 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; | ||
} | ||
@@ -163,4 +385,14 @@ | ||
*/ | ||
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; | ||
@@ -176,3 +408,32 @@ /** | ||
*/ | ||
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 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; | ||
} | ||
@@ -190,4 +451,18 @@ | ||
*/ | ||
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; | ||
@@ -203,3 +478,36 @@ /** | ||
*/ | ||
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 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; | ||
} | ||
@@ -217,4 +525,14 @@ | ||
*/ | ||
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; | ||
@@ -230,3 +548,32 @@ /** | ||
*/ | ||
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 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; | ||
} | ||
@@ -244,4 +591,18 @@ | ||
*/ | ||
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; | ||
@@ -257,3 +618,36 @@ /** | ||
*/ | ||
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 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; | ||
} | ||
@@ -271,4 +665,18 @@ | ||
*/ | ||
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; | ||
@@ -284,3 +692,36 @@ /** | ||
*/ | ||
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 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; | ||
} | ||
@@ -298,4 +739,18 @@ | ||
*/ | ||
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; | ||
@@ -311,3 +766,36 @@ /** | ||
*/ | ||
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 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; | ||
} | ||
@@ -325,4 +813,18 @@ | ||
*/ | ||
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; | ||
@@ -338,3 +840,36 @@ /** | ||
*/ | ||
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 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; | ||
} | ||
@@ -352,4 +887,18 @@ | ||
*/ | ||
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; | ||
@@ -365,3 +914,36 @@ /** | ||
*/ | ||
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 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,1 +21,2 @@ /*! ***************************************************************************** | ||
/// <reference lib="es2023.array" /> | ||
/// <reference lib="es2023.collection" /> |
@@ -21,1 +21,3 @@ /*! ***************************************************************************** | ||
/// <reference lib="esnext.intl" /> | ||
/// <reference lib="esnext.decorators" /> | ||
/// <reference lib="esnext.disposable" /> |
@@ -23,2 +23,2 @@ /*! ***************************************************************************** | ||
/// <reference lib="scripthost" /> | ||
/// <reference lib="dom.iterable" /> | ||
/// <reference lib="dom.iterable" /> |
@@ -20,10 +20,10 @@ /*! ***************************************************************************** | ||
declare namespace Intl { | ||
interface NumberRangeFormatPart extends NumberFormatPart { | ||
source: "startRange" | "endRange" | "shared" | ||
} | ||
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[]; | ||
} | ||
interface NumberFormat { | ||
formatRange(start: number | bigint, end: number | bigint): string; | ||
formatRangeToParts(start: number | bigint, end: number | bigint): NumberRangeFormatPart[]; | ||
} | ||
} |
@@ -19,4 +19,2 @@ /*! ***************************************************************************** | ||
///////////////////////////// | ||
@@ -26,3 +24,2 @@ /// Windows Script Host APIS | ||
interface ActiveXObject { | ||
@@ -267,3 +264,3 @@ new (s: string): any; | ||
new <T = any>(safearray: SafeArray<T>): Enumerator<T>; | ||
new <T = any>(collection: { Item(index: any): T }): Enumerator<T>; | ||
new <T = any>(collection: { Item(index: any): T; }): Enumerator<T>; | ||
new <T = any>(collection: any): Enumerator<T>; | ||
@@ -270,0 +267,0 @@ } |
@@ -19,3 +19,2 @@ /*! ***************************************************************************** | ||
///////////////////////////// | ||
@@ -22,0 +21,0 @@ /// WorkerGlobalScope APIs |
@@ -23,3 +23,25 @@ /*! ***************************************************************************** | ||
interface CSSNumericArray { | ||
[Symbol.iterator](): IterableIterator<CSSNumericValue>; | ||
entries(): IterableIterator<[number, CSSNumericValue]>; | ||
keys(): IterableIterator<number>; | ||
values(): IterableIterator<CSSNumericValue>; | ||
} | ||
interface CSSTransformValue { | ||
[Symbol.iterator](): IterableIterator<CSSTransformComponent>; | ||
entries(): IterableIterator<[number, CSSTransformComponent]>; | ||
keys(): IterableIterator<number>; | ||
values(): IterableIterator<CSSTransformComponent>; | ||
} | ||
interface CSSUnparsedValue { | ||
[Symbol.iterator](): IterableIterator<CSSUnparsedSegment>; | ||
entries(): IterableIterator<[number, CSSUnparsedSegment]>; | ||
keys(): IterableIterator<number>; | ||
values(): IterableIterator<CSSUnparsedSegment>; | ||
} | ||
interface Cache { | ||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/addAll) */ | ||
addAll(requests: Iterable<RequestInfo>): Promise<void>; | ||
@@ -29,2 +51,3 @@ } | ||
interface CanvasPath { | ||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/roundRect) */ | ||
roundRect(x: number, y: number, w: number, h: number, radii?: number | DOMPointInit | Iterable<number | DOMPointInit>): void; | ||
@@ -34,2 +57,3 @@ } | ||
interface CanvasPathDrawingStyles { | ||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/setLineDash) */ | ||
setLineDash(segments: Iterable<number>): void; | ||
@@ -70,3 +94,7 @@ } | ||
interface IDBDatabase { | ||
/** Returns a new transaction with the given mode ("readonly" or "readwrite") and scope which can be a single object store name or an array of names. */ | ||
/** | ||
* Returns a new transaction with the given mode ("readonly" or "readwrite") and scope which can be a single object store name or an array of names. | ||
* | ||
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/transaction) | ||
*/ | ||
transaction(storeNames: string | Iterable<string>, mode?: IDBTransactionMode, options?: IDBTransactionOptions): IDBTransaction; | ||
@@ -80,2 +108,4 @@ } | ||
* Throws an "InvalidStateError" DOMException if not called within an upgrade transaction. | ||
* | ||
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/createIndex) | ||
*/ | ||
@@ -86,13 +116,28 @@ createIndex(name: string, keyPath: string | Iterable<string>, options?: IDBIndexParameters): IDBIndex; | ||
interface MessageEvent<T = any> { | ||
/** @deprecated */ | ||
/** | ||
* @deprecated | ||
* | ||
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent/initMessageEvent) | ||
*/ | ||
initMessageEvent(type: string, bubbles?: boolean, cancelable?: boolean, data?: any, origin?: string, lastEventId?: string, source?: MessageEventSource | null, ports?: Iterable<MessagePort>): void; | ||
} | ||
interface StylePropertyMapReadOnly { | ||
[Symbol.iterator](): IterableIterator<[string, Iterable<CSSStyleValue>]>; | ||
entries(): IterableIterator<[string, Iterable<CSSStyleValue>]>; | ||
keys(): IterableIterator<string>; | ||
values(): IterableIterator<Iterable<CSSStyleValue>>; | ||
} | ||
interface SubtleCrypto { | ||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/deriveKey) */ | ||
deriveKey(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, derivedKeyType: AlgorithmIdentifier | AesDerivedKeyParams | HmacImportParams | HkdfParams | Pbkdf2Params, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKey>; | ||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/generateKey) */ | ||
generateKey(algorithm: RsaHashedKeyGenParams | EcKeyGenParams, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKeyPair>; | ||
generateKey(algorithm: AesKeyGenParams | HmacKeyGenParams | Pbkdf2Params, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>; | ||
generateKey(algorithm: AlgorithmIdentifier, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKeyPair | CryptoKey>; | ||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/importKey) */ | ||
importKey(format: "jwk", keyData: JsonWebKey, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>; | ||
importKey(format: Exclude<KeyFormat, "jwk">, keyData: BufferSource, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKey>; | ||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/unwrapKey) */ | ||
unwrapKey(format: KeyFormat, wrappedKey: BufferSource, unwrappingKey: CryptoKey, unwrapAlgorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, unwrappedKeyAlgorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKey>; | ||
@@ -112,2 +157,3 @@ } | ||
interface WEBGL_draw_buffers { | ||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_draw_buffers/drawBuffersWEBGL) */ | ||
drawBuffersWEBGL(buffers: Iterable<GLenum>): void; | ||
@@ -117,5 +163,9 @@ } | ||
interface WEBGL_multi_draw { | ||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawArraysInstancedWEBGL) */ | ||
multiDrawArraysInstancedWEBGL(mode: GLenum, firstsList: Int32Array | Iterable<GLint>, firstsOffset: GLuint, countsList: Int32Array | Iterable<GLsizei>, countsOffset: GLuint, instanceCountsList: Int32Array | Iterable<GLsizei>, instanceCountsOffset: GLuint, drawcount: GLsizei): void; | ||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawArraysWEBGL) */ | ||
multiDrawArraysWEBGL(mode: GLenum, firstsList: Int32Array | Iterable<GLint>, firstsOffset: GLuint, countsList: Int32Array | Iterable<GLsizei>, countsOffset: GLuint, drawcount: GLsizei): void; | ||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawElementsInstancedWEBGL) */ | ||
multiDrawElementsInstancedWEBGL(mode: GLenum, countsList: Int32Array | Iterable<GLsizei>, countsOffset: GLuint, type: GLenum, offsetsList: Int32Array | Iterable<GLsizei>, offsetsOffset: GLuint, instanceCountsList: Int32Array | Iterable<GLsizei>, instanceCountsOffset: GLuint, drawcount: GLsizei): void; | ||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawElementsWEBGL) */ | ||
multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array | Iterable<GLsizei>, countsOffset: GLuint, type: GLenum, offsetsList: Int32Array | Iterable<GLsizei>, offsetsOffset: GLuint, drawcount: GLsizei): void; | ||
@@ -125,22 +175,43 @@ } | ||
interface WebGL2RenderingContextBase { | ||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) */ | ||
clearBufferfv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLfloat>, srcOffset?: GLuint): void; | ||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) */ | ||
clearBufferiv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLint>, srcOffset?: GLuint): void; | ||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) */ | ||
clearBufferuiv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLuint>, srcOffset?: GLuint): void; | ||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/drawBuffers) */ | ||
drawBuffers(buffers: Iterable<GLenum>): void; | ||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getActiveUniforms) */ | ||
getActiveUniforms(program: WebGLProgram, uniformIndices: Iterable<GLuint>, pname: GLenum): any; | ||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getUniformIndices) */ | ||
getUniformIndices(program: WebGLProgram, uniformNames: Iterable<string>): Iterable<GLuint> | null; | ||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/invalidateFramebuffer) */ | ||
invalidateFramebuffer(target: GLenum, attachments: Iterable<GLenum>): void; | ||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/invalidateSubFramebuffer) */ | ||
invalidateSubFramebuffer(target: GLenum, attachments: Iterable<GLenum>, x: GLint, y: GLint, width: GLsizei, height: GLsizei): void; | ||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/transformFeedbackVaryings) */ | ||
transformFeedbackVaryings(program: WebGLProgram, varyings: Iterable<string>, bufferMode: GLenum): void; | ||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */ | ||
uniform1uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: GLuint, srcLength?: GLuint): void; | ||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */ | ||
uniform2uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: GLuint, srcLength?: GLuint): void; | ||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */ | ||
uniform3uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: GLuint, srcLength?: GLuint): void; | ||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */ | ||
uniform4uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: GLuint, srcLength?: GLuint): void; | ||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */ | ||
uniformMatrix2x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void; | ||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */ | ||
uniformMatrix2x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void; | ||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */ | ||
uniformMatrix3x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void; | ||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */ | ||
uniformMatrix3x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void; | ||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */ | ||
uniformMatrix4x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void; | ||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */ | ||
uniformMatrix4x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void; | ||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/vertexAttribI) */ | ||
vertexAttribI4iv(index: GLuint, values: Iterable<GLint>): void; | ||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/vertexAttribI) */ | ||
vertexAttribI4uiv(index: GLuint, values: Iterable<GLuint>): void; | ||
@@ -150,12 +221,23 @@ } | ||
interface WebGL2RenderingContextOverloads { | ||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ | ||
uniform1fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void; | ||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ | ||
uniform1iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: GLuint, srcLength?: GLuint): void; | ||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ | ||
uniform2fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void; | ||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ | ||
uniform2iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: GLuint, srcLength?: GLuint): void; | ||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ | ||
uniform3fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void; | ||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ | ||
uniform3iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: GLuint, srcLength?: GLuint): void; | ||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ | ||
uniform4fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void; | ||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ | ||
uniform4iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: GLuint, srcLength?: GLuint): void; | ||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */ | ||
uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void; | ||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */ | ||
uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void; | ||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */ | ||
uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void; | ||
@@ -165,5 +247,9 @@ } | ||
interface WebGLRenderingContextBase { | ||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */ | ||
vertexAttrib1fv(index: GLuint, values: Iterable<GLfloat>): void; | ||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */ | ||
vertexAttrib2fv(index: GLuint, values: Iterable<GLfloat>): void; | ||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */ | ||
vertexAttrib3fv(index: GLuint, values: Iterable<GLfloat>): void; | ||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */ | ||
vertexAttrib4fv(index: GLuint, values: Iterable<GLfloat>): void; | ||
@@ -173,13 +259,24 @@ } | ||
interface WebGLRenderingContextOverloads { | ||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ | ||
uniform1fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void; | ||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ | ||
uniform1iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void; | ||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ | ||
uniform2fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void; | ||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ | ||
uniform2iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void; | ||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ | ||
uniform3fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void; | ||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ | ||
uniform3iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void; | ||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ | ||
uniform4fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void; | ||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ | ||
uniform4iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void; | ||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */ | ||
uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Iterable<GLfloat>): void; | ||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */ | ||
uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Iterable<GLfloat>): void; | ||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */ | ||
uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Iterable<GLfloat>): void; | ||
} |
@@ -364,3 +364,3 @@ { | ||
"path": "pathjs", | ||
"pdfkit":"pdfkit", | ||
"pdfkit": "pdfkit", | ||
"peer": "peerjs", | ||
@@ -498,2 +498,2 @@ "peg": "pegjs", | ||
} | ||
} | ||
} |
@@ -50,5 +50,5 @@ /*! ***************************************************************************** | ||
watcher.close(); | ||
} catch (e) { | ||
} catch { | ||
} | ||
process.exit(0); | ||
//# sourceMappingURL=watchGuard.js.map |
@@ -5,3 +5,3 @@ { | ||
"homepage": "https://www.typescriptlang.org/", | ||
"version": "5.0.4", | ||
"version": "5.3.3", | ||
"license": "Apache-2.0", | ||
@@ -30,3 +30,3 @@ "description": "TypeScript is a language for application scale JavaScript development", | ||
"engines": { | ||
"node": ">=12.20" | ||
"node": ">=14.17" | ||
}, | ||
@@ -45,5 +45,4 @@ "files": [ | ||
"@esfx/canceltoken": "^1.0.0", | ||
"@octokit/rest": "latest", | ||
"@octokit/rest": "^19.0.13", | ||
"@types/chai": "^4.3.4", | ||
"@types/fs-extra": "^9.0.13", | ||
"@types/glob": "^8.1.0", | ||
@@ -57,15 +56,15 @@ "@types/microsoft__typescript-etw": "^0.1.1", | ||
"@types/which": "^2.0.1", | ||
"@typescript-eslint/eslint-plugin": "^5.33.1", | ||
"@typescript-eslint/parser": "^5.33.1", | ||
"@typescript-eslint/utils": "^5.33.1", | ||
"azure-devops-node-api": "^11.2.0", | ||
"@typescript-eslint/eslint-plugin": "^6.0.0", | ||
"@typescript-eslint/parser": "^6.0.0", | ||
"@typescript-eslint/utils": "^6.0.0", | ||
"azure-devops-node-api": "^12.0.0", | ||
"c8": "^7.14.0", | ||
"chai": "^4.3.7", | ||
"chalk": "^4.1.2", | ||
"chokidar": "^3.5.3", | ||
"del": "^6.1.1", | ||
"diff": "^5.1.0", | ||
"esbuild": "^0.17.2", | ||
"dprint": "^0.42.3", | ||
"esbuild": "^0.19.0", | ||
"eslint": "^8.22.0", | ||
"eslint-formatter-autolinkable-stylish": "^1.2.0", | ||
"eslint-plugin-import": "^2.26.0", | ||
"eslint-plugin-local": "^1.0.0", | ||
@@ -75,3 +74,2 @@ "eslint-plugin-no-null": "^1.0.2", | ||
"fast-xml-parser": "^4.0.11", | ||
"fs-extra": "^9.1.0", | ||
"glob": "^8.1.0", | ||
@@ -85,4 +83,6 @@ "hereby": "^1.6.4", | ||
"node-fetch": "^3.2.10", | ||
"playwright": "^1.38.0", | ||
"source-map-support": "^0.5.21", | ||
"typescript": "5.0.0-dev.20230112", | ||
"tslib": "^2.5.0", | ||
"typescript": "^5.0.2", | ||
"which": "^2.0.2" | ||
@@ -104,2 +104,3 @@ }, | ||
"lint": "hereby lint", | ||
"format": "dprint fmt", | ||
"setup-hooks": "node scripts/link-hooks.mjs" | ||
@@ -115,9 +116,10 @@ }, | ||
"source-map-support": false, | ||
"inspector": false | ||
"inspector": false, | ||
"perf_hooks": false | ||
}, | ||
"packageManager": "npm@8.19.3", | ||
"packageManager": "npm@8.19.4", | ||
"volta": { | ||
"node": "14.21.1", | ||
"npm": "8.19.3" | ||
"node": "20.1.0", | ||
"npm": "8.19.4" | ||
} | ||
} |
@@ -5,6 +5,7 @@ | ||
[![GitHub Actions CI](https://github.com/microsoft/TypeScript/workflows/CI/badge.svg)](https://github.com/microsoft/TypeScript/actions?query=workflow%3ACI) | ||
[![Devops Build Status](https://dev.azure.com/typescript/TypeScript/_apis/build/status/Typescript/node10)](https://dev.azure.com/typescript/TypeScript/_build?definitionId=7) | ||
[![npm version](https://badge.fury.io/js/typescript.svg)](https://www.npmjs.com/package/typescript) | ||
[![Downloads](https://img.shields.io/npm/dm/typescript.svg)](https://www.npmjs.com/package/typescript) | ||
[![OpenSSF Scorecard](https://api.securityscorecards.dev/projects/github.com/microsoft/TypeScript/badge)](https://api.securityscorecards.dev/projects/github.com/microsoft/TypeScript) | ||
[TypeScript](https://www.typescriptlang.org/) is a language for application-scale JavaScript. TypeScript adds optional types to JavaScript that support tools for large-scale JavaScript applications for any browser, for any host, on any OS. TypeScript compiles to readable, standards-based JavaScript. Try it out at the [playground](https://www.typescriptlang.org/play/), and stay up to date via [our blog](https://blogs.msdn.microsoft.com/typescript) and [Twitter account](https://twitter.com/typescript). | ||
@@ -19,3 +20,3 @@ | ||
```bash | ||
npm install -g typescript | ||
npm install -D typescript | ||
``` | ||
@@ -26,3 +27,3 @@ | ||
```bash | ||
npm install -g typescript@next | ||
npm install -D typescript@next | ||
``` | ||
@@ -29,0 +30,0 @@ |
@@ -1,8 +0,8 @@ | ||
<!-- BEGIN MICROSOFT SECURITY.MD V0.0.5 BLOCK --> | ||
<!-- BEGIN MICROSOFT SECURITY.MD V0.0.9 BLOCK --> | ||
## Security | ||
Microsoft takes the security of our software products and services seriously, which includes all source code repositories managed through our GitHub organizations, which include [Microsoft](https://github.com/Microsoft), [Azure](https://github.com/Azure), [DotNet](https://github.com/dotnet), [AspNet](https://github.com/aspnet), [Xamarin](https://github.com/xamarin), and [our GitHub organizations](https://opensource.microsoft.com/). | ||
Microsoft takes the security of our software products and services seriously, which includes all source code repositories managed through our GitHub organizations, which include [Microsoft](https://github.com/Microsoft), [Azure](https://github.com/Azure), [DotNet](https://github.com/dotnet), [AspNet](https://github.com/aspnet) and [Xamarin](https://github.com/xamarin). | ||
If you believe you have found a security vulnerability in any Microsoft-owned repository that meets [Microsoft's definition of a security vulnerability](https://docs.microsoft.com/en-us/previous-versions/tn-archive/cc751383(v=technet.10)), please report it to us as described below. | ||
If you believe you have found a security vulnerability in any Microsoft-owned repository that meets [Microsoft's definition of a security vulnerability](https://aka.ms/security.md/definition), please report it to us as described below. | ||
@@ -13,5 +13,5 @@ ## Reporting Security Issues | ||
Instead, please report them to the Microsoft Security Response Center (MSRC) at [https://msrc.microsoft.com/create-report](https://msrc.microsoft.com/create-report). | ||
Instead, please report them to the Microsoft Security Response Center (MSRC) at [https://msrc.microsoft.com/create-report](https://aka.ms/security.md/msrc/create-report). | ||
If you prefer to submit without logging in, send email to [secure@microsoft.com](mailto:secure@microsoft.com). If possible, encrypt your message with our PGP key; please download it from the [Microsoft Security Response Center PGP Key page](https://www.microsoft.com/en-us/msrc/pgp-key-msrc). | ||
If you prefer to submit without logging in, send email to [secure@microsoft.com](mailto:secure@microsoft.com). If possible, encrypt your message with our PGP key; please download it from the [Microsoft Security Response Center PGP Key page](https://aka.ms/security.md/msrc/pgp). | ||
@@ -32,3 +32,3 @@ You should receive a response within 24 hours. If for some reason you do not, please follow up via email to ensure we received your original message. Additional information can be found at [microsoft.com/msrc](https://www.microsoft.com/msrc). | ||
If you are reporting for a bug bounty, more complete reports can contribute to a higher bounty award. Please visit our [Microsoft Bug Bounty Program](https://microsoft.com/msrc/bounty) page for more details about our active programs. | ||
If you are reporting for a bug bounty, more complete reports can contribute to a higher bounty award. Please visit our [Microsoft Bug Bounty Program](https://aka.ms/security.md/msrc/bounty) page for more details about our active programs. | ||
@@ -41,4 +41,4 @@ ## Preferred Languages | ||
Microsoft follows the principle of [Coordinated Vulnerability Disclosure](https://www.microsoft.com/en-us/msrc/cvd). | ||
Microsoft follows the principle of [Coordinated Vulnerability Disclosure](https://aka.ms/security.md/cvd). | ||
<!-- END MICROSOFT SECURITY.MD BLOCK --> |
@@ -88,3 +88,3 @@ /*!----------------- TypeScript ThirdPartyNotices ------------------------------------------------------- | ||
By obtaining and/or copying this work, you (the licensee) agree that you have read, understood, and will comply with the following terms and conditions. | ||
Permission to copy, modify, and distribute this work, with or without modification,�for any purpose and without fee or royalty is hereby granted, provided that you include the following | ||
Permission to copy, modify, and distribute this work, with or without modification, for any purpose and without fee or royalty is hereby granted, provided that you include the following | ||
on ALL copies of the work or portions thereof, including modifications: | ||
@@ -94,3 +94,3 @@ * The full text of this NOTICE in a location viewable to users of the redistributed or derivative work. | ||
* Notice of any changes or modifications, through a copyright statement on the new code or document such as "This software or document includes material copied from or derived | ||
from [title and URI of the W3C document]. Copyright � [YEAR] W3C� (MIT, ERCIM, Keio, Beihang)." | ||
from [title and URI of the W3C document]. Copyright © [YEAR] W3C® (MIT, ERCIM, Keio, Beihang)." | ||
Disclaimers | ||
@@ -106,3 +106,3 @@ THIS WORK IS PROVIDED "AS IS," AND COPYRIGHT HOLDERS MAKE NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO, WARRANTIES OF MERCHANTABILITY OR | ||
DOM | ||
Copyright � 2018 WHATWG (Apple, Google, Mozilla, Microsoft). This work is licensed under a Creative Commons Attribution 4.0 International License: Attribution 4.0 International | ||
Copyright © 2018 WHATWG (Apple, Google, Mozilla, Microsoft). This work is licensed under a Creative Commons Attribution 4.0 International License: Attribution 4.0 International | ||
======================================================================= | ||
@@ -119,3 +119,3 @@ Creative Commons Corporation ("Creative Commons") is not a law firm and does not provide legal services or legal advice. Distribution of Creative Commons public licenses does not create a lawyer-client or other relationship. Creative Commons makes its licenses and related information available on an "as-is" basis. Creative Commons gives no warranties regarding its licenses, any material licensed under their terms and conditions, or any related information. Creative Commons disclaims all liability for damages resulting from their use to the fullest extent possible. Using Creative Commons Public Licenses Creative Commons public licenses provide a standard set of terms and conditions that creators and other rights holders may use to share original works of authorship and other material subject to copyright and certain other rights specified in the public license below. The following considerations are for informational purposes only, are not exhaustive, and do not form part of our licenses. Considerations for licensors: Our public licenses are intended for use by those authorized to give the public permission to use material in ways otherwise restricted by copyright and certain other rights. Our licenses are irrevocable. Licensors should read and understand the terms and conditions of the license they choose before applying it. Licensors should also secure all rights necessary before applying our licenses so that the public can reuse the material as expected. Licensors should clearly mark any material not subject to the license. This includes other CC- licensed material, or material used under an exception or limitation to copyright. More considerations for licensors: | ||
Web Background Synchronization Specification | ||
Portions of spec � by W3C | ||
Portions of spec © by W3C | ||
@@ -143,7 +143,7 @@ W3C Community Final Specification Agreement | ||
8. Conflict of Interest. I will disclose significant relationships when those relationships might reasonably be perceived as creating a conflict of interest with my role. I will notify W3C of any change in my affiliation using W3C-provided mechanisms. | ||
9. Representations, Warranties and Disclaimers. I represent and warrant that I am legally entitled to grant the rights and promises set forth in this Agreement. IN ALL OTHER RESPECTS THE SPECIFICATION IS PROVIDED �AS IS.� The entire risk as to implementing or otherwise using the Specification is assumed by the implementer and user. Except as stated herein, I expressly disclaim any warranties (express, implied, or otherwise), including implied warranties of merchantability, non-infringement, fitness for a particular purpose, or title, related to the Specification. IN NO EVENT WILL ANY PARTY BE LIABLE TO ANY OTHER PARTY FOR LOST PROFITS OR ANY FORM OF INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES OF ANY CHARACTER FROM ANY CAUSES OF ACTION OF ANY KIND WITH RESPECT TO THIS AGREEMENT, WHETHER BASED ON BREACH OF CONTRACT, TORT (INCLUDING NEGLIGENCE), OR OTHERWISE, AND WHETHER OR NOT THE OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. All of my obligations under Section 3 regarding the transfer, successors in interest, or assignment of Granted Claims will be satisfied if I notify the transferee or assignee of any patent that I know contains Granted Claims of the obligations under Section 3. Nothing in this Agreement requires me to undertake a patent search. | ||
9. Representations, Warranties and Disclaimers. I represent and warrant that I am legally entitled to grant the rights and promises set forth in this Agreement. IN ALL OTHER RESPECTS THE SPECIFICATION IS PROVIDED “AS IS.” The entire risk as to implementing or otherwise using the Specification is assumed by the implementer and user. Except as stated herein, I expressly disclaim any warranties (express, implied, or otherwise), including implied warranties of merchantability, non-infringement, fitness for a particular purpose, or title, related to the Specification. IN NO EVENT WILL ANY PARTY BE LIABLE TO ANY OTHER PARTY FOR LOST PROFITS OR ANY FORM OF INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES OF ANY CHARACTER FROM ANY CAUSES OF ACTION OF ANY KIND WITH RESPECT TO THIS AGREEMENT, WHETHER BASED ON BREACH OF CONTRACT, TORT (INCLUDING NEGLIGENCE), OR OTHERWISE, AND WHETHER OR NOT THE OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. All of my obligations under Section 3 regarding the transfer, successors in interest, or assignment of Granted Claims will be satisfied if I notify the transferee or assignee of any patent that I know contains Granted Claims of the obligations under Section 3. Nothing in this Agreement requires me to undertake a patent search. | ||
10. Definitions. | ||
10.1. Agreement. �Agreement� means this W3C Community Final Specification Agreement. | ||
10.2. Corresponding Working Group. �Corresponding Working Group� is a W3C Working Group that is chartered to develop a Recommendation, as defined in the W3C Process Document, that takes the Specification as an input. | ||
10.3. Essential Claims. �Essential Claims� shall mean all claims in any patent or patent application in any jurisdiction in the world that would necessarily be infringed by implementation of the Specification. A claim is necessarily infringed hereunder only when it is not possible to avoid infringing it because there is no non-infringing alternative for implementing the normative portions of the Specification. Existence of a non-infringing alternative shall be judged based on the state of the art at the time of the publication of the Specification. The following are expressly excluded from and shall not be deemed to constitute Essential Claims: | ||
10.1. Agreement. “Agreement” means this W3C Community Final Specification Agreement. | ||
10.2. Corresponding Working Group. “Corresponding Working Group” is a W3C Working Group that is chartered to develop a Recommendation, as defined in the W3C Process Document, that takes the Specification as an input. | ||
10.3. Essential Claims. “Essential Claims” shall mean all claims in any patent or patent application in any jurisdiction in the world that would necessarily be infringed by implementation of the Specification. A claim is necessarily infringed hereunder only when it is not possible to avoid infringing it because there is no non-infringing alternative for implementing the normative portions of the Specification. Existence of a non-infringing alternative shall be judged based on the state of the art at the time of the publication of the Specification. The following are expressly excluded from and shall not be deemed to constitute Essential Claims: | ||
10.3.1. any claims other than as set forth above even if contained in the same patent as Essential Claims; and | ||
@@ -156,6 +156,6 @@ 10.3.2. claims which would be infringed only by: | ||
For purposes of this definition, the normative portions of the Specification shall be deemed to include only architectural and interoperability requirements. Optional features in the RFC 2119 sense are considered normative unless they are specifically identified as informative. Implementation examples or any other material that merely illustrate the requirements of the Specification are informative, rather than normative. | ||
10.4. I, Me, or My. �I,� �me,� or �my� refers to the signatory. | ||
10.5 Project. �Project� means the W3C Community Group or Business Group for which I executed this Agreement. | ||
10.6. Specification. �Specification� means the Specification identified by the Project as the target of this agreement in a call for Final Specification Commitments. W3C shall provide the authoritative mechanisms for the identification of this Specification. | ||
10.7. W3C Community RF Licensing Requirements. �W3C Community RF Licensing Requirements� license shall mean a non-assignable, non-sublicensable license to make, have made, use, sell, have sold, offer to sell, import, and distribute and dispose of implementations of the Specification that: | ||
10.4. I, Me, or My. “I,” “me,” or “my” refers to the signatory. | ||
10.5 Project. “Project” means the W3C Community Group or Business Group for which I executed this Agreement. | ||
10.6. Specification. “Specification” means the Specification identified by the Project as the target of this agreement in a call for Final Specification Commitments. W3C shall provide the authoritative mechanisms for the identification of this Specification. | ||
10.7. W3C Community RF Licensing Requirements. “W3C Community RF Licensing Requirements” license shall mean a non-assignable, non-sublicensable license to make, have made, use, sell, have sold, offer to sell, import, and distribute and dispose of implementations of the Specification that: | ||
10.7.1. shall be available to all, worldwide, whether or not they are W3C Members; | ||
@@ -171,3 +171,3 @@ 10.7.2. shall extend to all Essential Claims owned or controlled by me; | ||
I am encouraged to provide a contact from which licensing information can be obtained and other relevant licensing information. Any such information will be made publicly available. | ||
10.8. You or Your. �You,� �you,� or �your� means any person or entity who exercises copyright or patent rights granted under this Agreement, and any person that person or entity controls. | ||
10.8. You or Your. “You,” “you,” or “your” means any person or entity who exercises copyright or patent rights granted under this Agreement, and any person that person or entity controls. | ||
@@ -174,0 +174,0 @@ ------------------------------------------------------------------------------------- |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
110
120713
51
32019190