@vercel/ncc
Advanced tools
Comparing version 0.34.0 to 0.38.1
arg | ||
MIT | ||
MIT License | ||
The MIT License (MIT) | ||
Copyright (c) 2017-2019 Zeit, Inc. | ||
Copyright (c) 2020 Vercel, Inc. | ||
Copyright (c) 2021 Vercel, Inc. | ||
@@ -153,3 +152,3 @@ Permission is hereby granted, free of charge, to any person obtaining a copy | ||
Copyright (c) Isaac Z. Schlueter and Contributors | ||
Copyright (c) 2009-2022 Isaac Z. Schlueter and Contributors | ||
@@ -168,9 +167,3 @@ Permission to use, copy, modify, and/or distribute this software for any | ||
## Glob Logo | ||
Glob's logo created by Tanya Brassie <http://tanyabrassie.com/>, licensed | ||
under a Creative Commons Attribution-ShareAlike 4.0 International License | ||
https://creativecommons.org/licenses/by-sa/4.0/ | ||
inflight | ||
@@ -219,3 +212,3 @@ ISC | ||
Copyright (c) Isaac Z. Schlueter and Contributors | ||
Copyright (c) 2011-2022 Isaac Z. Schlueter and Contributors | ||
@@ -222,0 +215,0 @@ Permission to use, copy, modify, and/or distribute this software for any |
@@ -17,6 +17,4 @@ /*! ***************************************************************************** | ||
/// <reference no-default-lib="true"/> | ||
/// <reference lib="es5" /> | ||
@@ -23,0 +21,0 @@ /// <reference lib="dom" /> |
@@ -17,6 +17,4 @@ /*! ***************************************************************************** | ||
/// <reference no-default-lib="true"/> | ||
///////////////////////////// | ||
@@ -27,2 +25,3 @@ /// Window Iterable APIs | ||
interface AudioParam { | ||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/setValueCurveAtTime) */ | ||
setValueCurveAtTime(values: Iterable<number>, startTime: number, duration: number): AudioParam; | ||
@@ -35,6 +34,19 @@ } | ||
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; | ||
} | ||
interface CSSKeyframesRule { | ||
[Symbol.iterator](): IterableIterator<CSSKeyframeRule>; | ||
} | ||
interface CSSNumericArray { | ||
[Symbol.iterator](): IterableIterator<CSSNumericValue>; | ||
entries(): IterableIterator<[number, CSSNumericValue]>; | ||
keys(): IterableIterator<number>; | ||
values(): IterableIterator<CSSNumericValue>; | ||
} | ||
interface CSSRuleList { | ||
@@ -48,7 +60,28 @@ [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>; | ||
} | ||
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; | ||
} | ||
interface CanvasPathDrawingStyles { | ||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/setLineDash) */ | ||
setLineDash(segments: Iterable<number>): void; | ||
@@ -76,2 +109,5 @@ } | ||
interface EventCounts extends ReadonlyMap<string, number> { | ||
} | ||
interface FileList { | ||
@@ -125,4 +161,8 @@ [Symbol.iterator](): IterableIterator<File>; | ||
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. */ | ||
transaction(storeNames: string | Iterable<string>, mode?: IDBTransactionMode): IDBTransaction; | ||
/** | ||
* 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; | ||
} | ||
@@ -135,2 +175,4 @@ | ||
* Throws an "InvalidStateError" DOMException if not called within an upgrade transaction. | ||
* | ||
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/createIndex) | ||
*/ | ||
@@ -140,2 +182,13 @@ createIndex(name: string, keyPath: string | Iterable<string>, options?: IDBIndexParameters): IDBIndex; | ||
interface MIDIInputMap extends ReadonlyMap<string, MIDIInput> { | ||
} | ||
interface MIDIOutput { | ||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIOutput/send) */ | ||
send(data: Iterable<number>, timestamp?: DOMHighResTimeStamp): void; | ||
} | ||
interface MIDIOutputMap extends ReadonlyMap<string, MIDIOutput> { | ||
} | ||
interface MediaKeyStatusMap { | ||
@@ -153,3 +206,7 @@ [Symbol.iterator](): IterableIterator<[BufferSource, MediaKeyStatus]>; | ||
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; | ||
@@ -167,4 +224,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; | ||
@@ -202,2 +264,3 @@ } | ||
interface RTCRtpTransceiver { | ||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpTransceiver/setCodecPreferences) */ | ||
setCodecPreferences(codecs: Iterable<RTCRtpCodecCapability>): void; | ||
@@ -241,2 +304,9 @@ } | ||
interface StylePropertyMapReadOnly { | ||
[Symbol.iterator](): IterableIterator<[string, Iterable<CSSStyleValue>]>; | ||
entries(): IterableIterator<[string, Iterable<CSSStyleValue>]>; | ||
keys(): IterableIterator<string>; | ||
values(): IterableIterator<Iterable<CSSStyleValue>>; | ||
} | ||
interface StyleSheetList { | ||
@@ -247,8 +317,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>; | ||
generateKey(algorithm: RsaHashedKeyGenParams | EcKeyGenParams, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKeyPair>; | ||
generateKey(algorithm: AesKeyGenParams | HmacKeyGenParams | Pbkdf2Params, extractable: boolean, keyUsages: 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>; | ||
importKey(format: "jwk", keyData: JsonWebKey, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: KeyUsage[]): Promise<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>; | ||
@@ -280,2 +354,3 @@ } | ||
interface WEBGL_draw_buffers { | ||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_draw_buffers/drawBuffersWEBGL) */ | ||
drawBuffersWEBGL(buffers: Iterable<GLenum>): void; | ||
@@ -285,29 +360,54 @@ } | ||
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; | ||
multiDrawElementsInstancedWEBGL(mode: GLenum, countsList: Int32Array | Iterable<GLint>, countsOffset: GLuint, type: GLenum, offsetsList: Int32Array | Iterable<GLsizei>, offsetsOffset: GLuint, instanceCountsList: Int32Array | Iterable<GLsizei>, instanceCountsOffset: GLuint, drawcount: GLsizei): void; | ||
multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array | Iterable<GLint>, countsOffset: GLuint, type: GLenum, offsetsList: Int32Array | Iterable<GLsizei>, offsetsOffset: 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; | ||
} | ||
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; | ||
@@ -317,12 +417,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; | ||
@@ -332,5 +443,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; | ||
@@ -340,13 +455,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; | ||
} |
@@ -17,13 +17,31 @@ /*! ***************************************************************************** | ||
/// <reference no-default-lib="true"/> | ||
interface Map<K, V> { | ||
interface Map<K, V> { | ||
clear(): void; | ||
/** | ||
* @returns true if an element in the Map existed and has been removed, or false if the element does not exist. | ||
*/ | ||
delete(key: K): boolean; | ||
/** | ||
* Executes a provided function once per each key/value pair in the Map, in insertion order. | ||
*/ | ||
forEach(callbackfn: (value: V, key: K, map: Map<K, V>) => void, thisArg?: any): void; | ||
/** | ||
* Returns a specified element from the Map object. If the value that is associated to the provided key is an object, then you will get a reference to that object and any change made to that object will effectively modify it inside the Map. | ||
* @returns Returns the element associated with the specified key. If no element is associated with the specified key, undefined is returned. | ||
*/ | ||
get(key: K): V | undefined; | ||
/** | ||
* @returns boolean indicating whether an element with the specified key exists or not. | ||
*/ | ||
has(key: K): boolean; | ||
/** | ||
* Adds a new element with a specified key and value to the Map. If an element with the same key already exists, the element will be updated. | ||
*/ | ||
set(key: K, value: V): this; | ||
/** | ||
* @returns the number of elements in the Map. | ||
*/ | ||
readonly size: number; | ||
@@ -34,3 +52,3 @@ } | ||
new(): Map<any, any>; | ||
new<K, V>(entries?: readonly (readonly [K, V])[] | null): Map<K, V>; | ||
new <K, V>(entries?: readonly (readonly [K, V])[] | null): Map<K, V>; | ||
readonly prototype: Map<any, any>; | ||
@@ -47,6 +65,20 @@ } | ||
interface WeakMap<K extends object, V> { | ||
interface WeakMap<K extends WeakKey, V> { | ||
/** | ||
* Removes the specified element from the WeakMap. | ||
* @returns true if the element was successfully removed, or false if it was not present. | ||
*/ | ||
delete(key: K): boolean; | ||
/** | ||
* @returns a specified element. | ||
*/ | ||
get(key: K): V | undefined; | ||
/** | ||
* @returns a boolean indicating whether an element with the specified key exists or not. | ||
*/ | ||
has(key: K): boolean; | ||
/** | ||
* Adds a new element with a specified key and value. | ||
* @param key Must be an object or symbol. | ||
*/ | ||
set(key: K, value: V): this; | ||
@@ -56,4 +88,4 @@ } | ||
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>; | ||
} | ||
@@ -63,7 +95,24 @@ declare var WeakMap: WeakMapConstructor; | ||
interface Set<T> { | ||
/** | ||
* Appends a new element with a specified value to the end of the Set. | ||
*/ | ||
add(value: T): this; | ||
clear(): void; | ||
/** | ||
* Removes a specified value from the Set. | ||
* @returns Returns true if an element in the Set existed and has been removed, or false if the element does not exist. | ||
*/ | ||
delete(value: T): boolean; | ||
/** | ||
* Executes a provided function once per each value in the Set object, in insertion order. | ||
*/ | ||
forEach(callbackfn: (value: T, value2: T, set: Set<T>) => void, thisArg?: any): void; | ||
/** | ||
* @returns a boolean indicating whether an element with the specified value exists in the Set or not. | ||
*/ | ||
has(value: T): boolean; | ||
/** | ||
* @returns the number of (unique) elements in Set. | ||
*/ | ||
readonly size: number; | ||
@@ -84,5 +133,15 @@ } | ||
interface WeakSet<T extends object> { | ||
interface WeakSet<T extends WeakKey> { | ||
/** | ||
* Appends a new value to the end of the WeakSet. | ||
*/ | ||
add(value: T): this; | ||
/** | ||
* Removes the specified element from the WeakSet. | ||
* @returns Returns true if the element existed and has been removed, or false if the element does not exist. | ||
*/ | ||
delete(value: T): boolean; | ||
/** | ||
* @returns a boolean indicating whether a value exists in the WeakSet or not. | ||
*/ | ||
has(value: T): boolean; | ||
@@ -92,5 +151,5 @@ } | ||
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; |
@@ -17,6 +17,4 @@ /*! ***************************************************************************** | ||
/// <reference no-default-lib="true"/> | ||
interface Array<T> { | ||
@@ -32,3 +30,3 @@ /** | ||
*/ | ||
find<S extends T>(predicate: (this: void, value: T, index: number, obj: T[]) => value is S, thisArg?: any): S | undefined; | ||
find<S extends T>(predicate: (value: T, index: number, obj: T[]) => value is S, thisArg?: any): S | undefined; | ||
find(predicate: (value: T, index: number, obj: T[]) => unknown, thisArg?: any): T | undefined; | ||
@@ -288,3 +286,3 @@ | ||
*/ | ||
assign<T, U>(target: T, source: U): T & U; | ||
assign<T extends {}, U>(target: T, source: U): T & U; | ||
@@ -298,3 +296,3 @@ /** | ||
*/ | ||
assign<T, U, V>(target: T, source1: U, source2: V): T & U & V; | ||
assign<T extends {}, U, V>(target: T, source1: U, source2: V): T & U & V; | ||
@@ -309,3 +307,3 @@ /** | ||
*/ | ||
assign<T, U, V, W>(target: T, source1: U, source2: V, source3: W): T & U & V & W; | ||
assign<T extends {}, U, V, W>(target: T, source1: U, source2: V, source3: W): T & U & V & W; | ||
@@ -357,3 +355,3 @@ /** | ||
*/ | ||
find<S extends T>(predicate: (this: void, value: T, index: number, obj: readonly T[]) => value is S, thisArg?: any): S | undefined; | ||
find<S extends T>(predicate: (value: T, index: number, obj: readonly T[]) => value is S, thisArg?: any): S | undefined; | ||
find(predicate: (value: T, index: number, obj: readonly T[]) => unknown, thisArg?: any): T | undefined; | ||
@@ -360,0 +358,0 @@ |
@@ -17,6 +17,4 @@ /*! ***************************************************************************** | ||
/// <reference no-default-lib="true"/> | ||
/// <reference lib="es5" /> | ||
@@ -23,0 +21,0 @@ /// <reference lib="es2015.core" /> |
@@ -17,6 +17,4 @@ /*! ***************************************************************************** | ||
/// <reference no-default-lib="true"/> | ||
/// <reference lib="es2015.iterable" /> | ||
@@ -23,0 +21,0 @@ |
@@ -17,6 +17,4 @@ /*! ***************************************************************************** | ||
/// <reference no-default-lib="true"/> | ||
/// <reference lib="es2015.symbol" /> | ||
@@ -165,6 +163,6 @@ | ||
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>; | ||
} | ||
@@ -214,6 +212,6 @@ | ||
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>; | ||
} | ||
@@ -220,0 +218,0 @@ |
@@ -17,6 +17,4 @@ /*! ***************************************************************************** | ||
/// <reference no-default-lib="true"/> | ||
interface PromiseConstructor { | ||
@@ -45,3 +43,3 @@ /** | ||
// see: lib.es2015.iterable.d.ts | ||
// all<T>(values: Iterable<T | PromiseLike<T>>): Promise<T[]>; | ||
// all<T>(values: Iterable<T | PromiseLike<T>>): Promise<Awaited<T>[]>; | ||
@@ -57,3 +55,3 @@ /** | ||
// see: lib.es2015.iterable.d.ts | ||
// race<T>(values: Iterable<T>): Promise<T extends PromiseLike<infer U> ? U : T>; | ||
// race<T>(values: Iterable<T | PromiseLike<T>>): Promise<Awaited<T>>; | ||
@@ -72,3 +70,2 @@ /** | ||
resolve(): Promise<void>; | ||
/** | ||
@@ -79,5 +76,11 @@ * Creates a new resolved promise for the provided value. | ||
*/ | ||
resolve<T>(value: T | PromiseLike<T>): Promise<T>; | ||
resolve<T>(value: T): Promise<Awaited<T>>; | ||
/** | ||
* Creates a new resolved promise for the provided value. | ||
* @param value A promise. | ||
* @returns A promise whose internal state matches the provided promise. | ||
*/ | ||
resolve<T>(value: T | PromiseLike<T>): Promise<Awaited<T>>; | ||
} | ||
declare var Promise: PromiseConstructor; |
@@ -17,19 +17,93 @@ /*! ***************************************************************************** | ||
/// <reference no-default-lib="true"/> | ||
interface ProxyHandler<T extends object> { | ||
/** | ||
* A trap method for a function call. | ||
* @param target The original callable object which is being proxied. | ||
*/ | ||
apply?(target: T, thisArg: any, argArray: any[]): any; | ||
/** | ||
* A trap for the `new` operator. | ||
* @param target The original object which is being proxied. | ||
* @param newTarget The constructor that was originally called. | ||
*/ | ||
construct?(target: T, argArray: any[], newTarget: Function): object; | ||
defineProperty?(target: T, p: string | symbol, attributes: PropertyDescriptor): boolean; | ||
/** | ||
* A trap for `Object.defineProperty()`. | ||
* @param target The original object which is being proxied. | ||
* @returns A `Boolean` indicating whether or not the property has been defined. | ||
*/ | ||
defineProperty?(target: T, property: string | symbol, attributes: PropertyDescriptor): boolean; | ||
/** | ||
* A trap for the `delete` operator. | ||
* @param target The original object which is being proxied. | ||
* @param p The name or `Symbol` of the property to delete. | ||
* @returns A `Boolean` indicating whether or not the property was deleted. | ||
*/ | ||
deleteProperty?(target: T, p: string | symbol): boolean; | ||
/** | ||
* A trap for getting a property value. | ||
* @param target The original object which is being proxied. | ||
* @param p The name or `Symbol` of the property to get. | ||
* @param receiver The proxy or an object that inherits from the proxy. | ||
*/ | ||
get?(target: T, p: string | symbol, receiver: any): any; | ||
/** | ||
* A trap for `Object.getOwnPropertyDescriptor()`. | ||
* @param target The original object which is being proxied. | ||
* @param p The name of the property whose description should be retrieved. | ||
*/ | ||
getOwnPropertyDescriptor?(target: T, p: string | symbol): PropertyDescriptor | undefined; | ||
/** | ||
* A trap for the `[[GetPrototypeOf]]` internal method. | ||
* @param target The original object which is being proxied. | ||
*/ | ||
getPrototypeOf?(target: T): object | null; | ||
/** | ||
* A trap for the `in` operator. | ||
* @param target The original object which is being proxied. | ||
* @param p The name or `Symbol` of the property to check for existence. | ||
*/ | ||
has?(target: T, p: string | symbol): boolean; | ||
/** | ||
* A trap for `Object.isExtensible()`. | ||
* @param target The original object which is being proxied. | ||
*/ | ||
isExtensible?(target: T): boolean; | ||
/** | ||
* A trap for `Reflect.ownKeys()`. | ||
* @param target The original object which is being proxied. | ||
*/ | ||
ownKeys?(target: T): ArrayLike<string | symbol>; | ||
/** | ||
* A trap for `Object.preventExtensions()`. | ||
* @param target The original object which is being proxied. | ||
*/ | ||
preventExtensions?(target: T): boolean; | ||
set?(target: T, p: string | symbol, value: any, receiver: any): boolean; | ||
/** | ||
* A trap for setting a property value. | ||
* @param target The original object which is being proxied. | ||
* @param p The name or `Symbol` of the property to set. | ||
* @param receiver The object to which the assignment was originally directed. | ||
* @returns A `Boolean` indicating whether or not the property was set. | ||
*/ | ||
set?(target: T, p: string | symbol, newValue: any, receiver: any): boolean; | ||
/** | ||
* A trap for `Object.setPrototypeOf()`. | ||
* @param target The original object which is being proxied. | ||
* @param newPrototype The object's new prototype or `null`. | ||
*/ | ||
setPrototypeOf?(target: T, v: object | null): boolean; | ||
@@ -39,5 +113,18 @@ } | ||
interface ProxyConstructor { | ||
/** | ||
* Creates a revocable Proxy object. | ||
* @param target A target object to wrap with Proxy. | ||
* @param handler An object whose properties define the behavior of Proxy when an operation is attempted on it. | ||
*/ | ||
revocable<T extends object>(target: T, handler: ProxyHandler<T>): { proxy: T; revoke: () => void; }; | ||
/** | ||
* Creates a Proxy object. The Proxy object allows you to create an object that can be used in place of the | ||
* original object, but which may redefine fundamental Object operations like getting, setting, and defining | ||
* properties. Proxy objects are commonly used to log property accesses, validate, format, or sanitize inputs. | ||
* @param target A target object to wrap with Proxy. | ||
* @param handler An object whose properties define the behavior of Proxy when an operation is attempted on it. | ||
*/ | ||
new <T extends object>(target: T, handler: ProxyHandler<T>): T; | ||
} | ||
declare var Proxy: ProxyConstructor; |
@@ -17,6 +17,4 @@ /*! ***************************************************************************** | ||
/// <reference no-default-lib="true"/> | ||
declare namespace Reflect { | ||
@@ -30,2 +28,7 @@ /** | ||
*/ | ||
function apply<T, A extends readonly any[], R>( | ||
target: (this: T, ...args: A) => R, | ||
thisArgument: T, | ||
argumentsList: Readonly<A>, | ||
): R; | ||
function apply(target: Function, thisArgument: any, argumentsList: ArrayLike<any>): any; | ||
@@ -40,2 +43,7 @@ | ||
*/ | ||
function construct<A extends readonly any[], R>( | ||
target: new (...args: A) => R, | ||
argumentsList: Readonly<A>, | ||
newTarget?: new (...args: any) => any, | ||
): R; | ||
function construct(target: Function, argumentsList: ArrayLike<any>, newTarget?: Function): any; | ||
@@ -50,3 +58,3 @@ | ||
*/ | ||
function defineProperty(target: object, propertyKey: PropertyKey, attributes: PropertyDescriptor): boolean; | ||
function defineProperty(target: object, propertyKey: PropertyKey, attributes: PropertyDescriptor & ThisType<any>): boolean; | ||
@@ -68,3 +76,7 @@ /** | ||
*/ | ||
function get(target: object, propertyKey: PropertyKey, receiver?: any): any; | ||
function get<T extends object, P extends PropertyKey>( | ||
target: T, | ||
propertyKey: P, | ||
receiver?: unknown, | ||
): P extends keyof T ? T[P] : any; | ||
@@ -77,3 +89,6 @@ /** | ||
*/ | ||
function getOwnPropertyDescriptor(target: object, propertyKey: PropertyKey): PropertyDescriptor | undefined; | ||
function getOwnPropertyDescriptor<T extends object, P extends PropertyKey>( | ||
target: T, | ||
propertyKey: P, | ||
): TypedPropertyDescriptor<P extends keyof T ? T[P] : any> | undefined; | ||
@@ -120,2 +135,8 @@ /** | ||
*/ | ||
function set<T extends object, P extends PropertyKey>( | ||
target: T, | ||
propertyKey: P, | ||
value: P extends keyof T ? T[P] : any, | ||
receiver?: any, | ||
): boolean; | ||
function set(target: object, propertyKey: PropertyKey, value: any, receiver?: any): boolean; | ||
@@ -122,0 +143,0 @@ |
@@ -17,6 +17,4 @@ /*! ***************************************************************************** | ||
/// <reference no-default-lib="true"/> | ||
interface SymbolConstructor { | ||
@@ -23,0 +21,0 @@ /** |
@@ -17,6 +17,4 @@ /*! ***************************************************************************** | ||
/// <reference no-default-lib="true"/> | ||
/// <reference lib="es2015.symbol" /> | ||
@@ -80,3 +78,3 @@ | ||
/** | ||
* An Object whose own property names are property names that are excluded from the 'with' | ||
* An Object whose truthy properties are properties that are excluded from the 'with' | ||
* environment bindings of the associated objects. | ||
@@ -98,16 +96,20 @@ */ | ||
/** | ||
* Returns an object whose properties have the value 'true' | ||
* Is an object whose properties have the value 'true' | ||
* when they will be absent when used in a 'with' statement. | ||
*/ | ||
[Symbol.unscopables](): { | ||
copyWithin: boolean; | ||
entries: boolean; | ||
fill: boolean; | ||
find: boolean; | ||
findIndex: boolean; | ||
keys: boolean; | ||
values: boolean; | ||
readonly [Symbol.unscopables]: { | ||
[K in keyof any[]]?: boolean; | ||
}; | ||
} | ||
interface ReadonlyArray<T> { | ||
/** | ||
* Is an object whose properties have the value 'true' | ||
* when they will be absent when used in a 'with' statement. | ||
*/ | ||
readonly [Symbol.unscopables]: { | ||
[K in keyof readonly any[]]?: boolean; | ||
}; | ||
} | ||
interface Date { | ||
@@ -141,3 +143,3 @@ /** | ||
interface WeakMap<K extends object, V> { | ||
interface WeakMap<K extends WeakKey, V> { | ||
readonly [Symbol.toStringTag]: string; | ||
@@ -150,3 +152,3 @@ } | ||
interface WeakSet<T extends object> { | ||
interface WeakSet<T extends WeakKey> { | ||
readonly [Symbol.toStringTag]: string; | ||
@@ -247,5 +249,5 @@ } | ||
/** | ||
* Replaces first match with string or all matches with RegExp. | ||
* @param searchValue A string or RegExp search value. | ||
* @param replaceValue A string containing the text to replace for match. | ||
* Passes a string and {@linkcode replaceValue} to the `[Symbol.replace]` method on {@linkcode searchValue}. This method is expected to implement its own replacement algorithm. | ||
* @param searchValue An object that supports searching for and replacing matches within a string. | ||
* @param replaceValue The replacement text. | ||
*/ | ||
@@ -252,0 +254,0 @@ replace(searchValue: { [Symbol.replace](string: string, replaceValue: string): string; }, replaceValue: string): string; |
@@ -17,6 +17,4 @@ /*! ***************************************************************************** | ||
/// <reference no-default-lib="true"/> | ||
interface Array<T> { | ||
@@ -23,0 +21,0 @@ /** |
@@ -17,7 +17,5 @@ /*! ***************************************************************************** | ||
/// <reference no-default-lib="true"/> | ||
/// <reference lib="es2015" /> | ||
/// <reference lib="es2016.array.include" /> |
@@ -17,6 +17,4 @@ /*! ***************************************************************************** | ||
/// <reference no-default-lib="true"/> | ||
/// <reference lib="es2016" /> | ||
@@ -23,0 +21,0 @@ /// <reference lib="dom" /> |
@@ -17,6 +17,4 @@ /*! ***************************************************************************** | ||
/// <reference no-default-lib="true"/> | ||
/// <reference lib="es2016" /> | ||
@@ -28,1 +26,2 @@ /// <reference lib="es2017.object" /> | ||
/// <reference lib="es2017.typedarrays" /> | ||
/// <reference lib="es2017.date" /> |
@@ -17,6 +17,4 @@ /*! ***************************************************************************** | ||
/// <reference no-default-lib="true"/> | ||
/// <reference lib="es2017" /> | ||
@@ -23,0 +21,0 @@ /// <reference lib="dom" /> |
@@ -17,9 +17,22 @@ /*! ***************************************************************************** | ||
/// <reference no-default-lib="true"/> | ||
declare namespace Intl { | ||
type DateTimeFormatPartTypes = "day" | "dayPeriod" | "era" | "hour" | "literal" | "minute" | "month" | "second" | "timeZoneName" | "weekday" | "year"; | ||
interface DateTimeFormatPartTypesRegistry { | ||
day: any | ||
dayPeriod: any | ||
era: any | ||
hour: any | ||
literal: any | ||
minute: any | ||
month: any | ||
second: any | ||
timeZoneName: any | ||
weekday: any | ||
year: any | ||
} | ||
type DateTimeFormatPartTypes = keyof DateTimeFormatPartTypesRegistry; | ||
interface DateTimeFormatPart { | ||
@@ -26,0 +39,0 @@ type: DateTimeFormatPartTypes; |
@@ -17,6 +17,4 @@ /*! ***************************************************************************** | ||
/// <reference no-default-lib="true"/> | ||
interface ObjectConstructor { | ||
@@ -23,0 +21,0 @@ /** |
@@ -17,6 +17,4 @@ /*! ***************************************************************************** | ||
/// <reference no-default-lib="true"/> | ||
/// <reference lib="es2015.symbol" /> | ||
@@ -23,0 +21,0 @@ /// <reference lib="es2015.symbol.wellknown" /> |
@@ -17,6 +17,4 @@ /*! ***************************************************************************** | ||
/// <reference no-default-lib="true"/> | ||
interface String { | ||
@@ -23,0 +21,0 @@ /** |
@@ -17,6 +17,4 @@ /*! ***************************************************************************** | ||
/// <reference no-default-lib="true"/> | ||
interface Int8ArrayConstructor { | ||
@@ -23,0 +21,0 @@ new (): Int8Array; |
@@ -17,6 +17,4 @@ /*! ***************************************************************************** | ||
/// <reference no-default-lib="true"/> | ||
/// <reference lib="es2018.asynciterable" /> | ||
@@ -23,0 +21,0 @@ |
@@ -17,6 +17,4 @@ /*! ***************************************************************************** | ||
/// <reference no-default-lib="true"/> | ||
/// <reference lib="es2015.symbol" /> | ||
@@ -23,0 +21,0 @@ /// <reference lib="es2015.iterable" /> |
@@ -17,6 +17,4 @@ /*! ***************************************************************************** | ||
/// <reference no-default-lib="true"/> | ||
/// <reference lib="es2017" /> | ||
@@ -23,0 +21,0 @@ /// <reference lib="es2018.asynciterable" /> |
@@ -17,6 +17,4 @@ /*! ***************************************************************************** | ||
/// <reference no-default-lib="true"/> | ||
/// <reference lib="es2018" /> | ||
@@ -23,0 +21,0 @@ /// <reference lib="dom" /> |
@@ -17,6 +17,4 @@ /*! ***************************************************************************** | ||
/// <reference no-default-lib="true"/> | ||
declare namespace Intl { | ||
@@ -23,0 +21,0 @@ |
@@ -17,6 +17,4 @@ /*! ***************************************************************************** | ||
/// <reference no-default-lib="true"/> | ||
/** | ||
@@ -23,0 +21,0 @@ * Represents the completion of an asynchronous operation |
@@ -17,6 +17,4 @@ /*! ***************************************************************************** | ||
/// <reference no-default-lib="true"/> | ||
interface RegExpMatchArray { | ||
@@ -23,0 +21,0 @@ groups?: { |
@@ -17,6 +17,4 @@ /*! ***************************************************************************** | ||
/// <reference no-default-lib="true"/> | ||
type FlatArray<Arr, Depth extends number> = { | ||
@@ -23,0 +21,0 @@ "done": Arr, |
@@ -17,6 +17,4 @@ /*! ***************************************************************************** | ||
/// <reference no-default-lib="true"/> | ||
/// <reference lib="es2018" /> | ||
@@ -27,1 +25,2 @@ /// <reference lib="es2019.array" /> | ||
/// <reference lib="es2019.symbol" /> | ||
/// <reference lib="es2019.intl" /> |
@@ -17,6 +17,4 @@ /*! ***************************************************************************** | ||
/// <reference no-default-lib="true"/> | ||
/// <reference lib="es2019" /> | ||
@@ -23,0 +21,0 @@ /// <reference lib="dom" /> |
@@ -17,6 +17,4 @@ /*! ***************************************************************************** | ||
/// <reference no-default-lib="true"/> | ||
/// <reference lib="es2015.iterable" /> | ||
@@ -23,0 +21,0 @@ |
@@ -17,6 +17,4 @@ /*! ***************************************************************************** | ||
/// <reference no-default-lib="true"/> | ||
interface String { | ||
@@ -23,0 +21,0 @@ /** Removes the trailing white space and line terminator characters from a string. */ |
@@ -17,6 +17,4 @@ /*! ***************************************************************************** | ||
/// <reference no-default-lib="true"/> | ||
interface Symbol { | ||
@@ -23,0 +21,0 @@ /** |
@@ -17,5 +17,5 @@ /*! ***************************************************************************** | ||
/// <reference no-default-lib="true"/> | ||
/// <reference lib="es2020.intl" /> | ||
@@ -116,3 +116,3 @@ interface BigIntToLocaleStringOptions { | ||
/** Returns a string representation appropriate to the host environment's current locale. */ | ||
toLocaleString(locales?: string, options?: BigIntToLocaleStringOptions): string; | ||
toLocaleString(locales?: Intl.LocalesArgument, options?: BigIntToLocaleStringOptions): string; | ||
@@ -696,2 +696,3 @@ /** Returns the primitive value of the specified object. */ | ||
* @param byteOffset The place in the buffer at which the value should be retrieved. | ||
* @param littleEndian If false or undefined, a big-endian value should be read. | ||
*/ | ||
@@ -704,2 +705,3 @@ getBigInt64(byteOffset: number, littleEndian?: boolean): bigint; | ||
* @param byteOffset The place in the buffer at which the value should be retrieved. | ||
* @param littleEndian If false or undefined, a big-endian value should be read. | ||
*/ | ||
@@ -712,4 +714,3 @@ getBigUint64(byteOffset: number, littleEndian?: boolean): bigint; | ||
* @param value The value to set. | ||
* @param littleEndian If false or undefined, a big-endian value should be written, | ||
* otherwise a little-endian value should be written. | ||
* @param littleEndian If false or undefined, a big-endian value should be written. | ||
*/ | ||
@@ -722,4 +723,3 @@ setBigInt64(byteOffset: number, value: bigint, littleEndian?: boolean): void; | ||
* @param value The value to set. | ||
* @param littleEndian If false or undefined, a big-endian value should be written, | ||
* otherwise a little-endian value should be written. | ||
* @param littleEndian If false or undefined, a big-endian value should be written. | ||
*/ | ||
@@ -726,0 +726,0 @@ setBigUint64(byteOffset: number, value: bigint, littleEndian?: boolean): void; |
@@ -17,8 +17,8 @@ /*! ***************************************************************************** | ||
/// <reference no-default-lib="true"/> | ||
/// <reference lib="es2019" /> | ||
/// <reference lib="es2020.bigint" /> | ||
/// <reference lib="es2020.date" /> | ||
/// <reference lib="es2020.number" /> | ||
/// <reference lib="es2020.promise" /> | ||
@@ -25,0 +25,0 @@ /// <reference lib="es2020.sharedmemory" /> |
@@ -17,6 +17,4 @@ /*! ***************************************************************************** | ||
/// <reference no-default-lib="true"/> | ||
/// <reference lib="es2020" /> | ||
@@ -23,0 +21,0 @@ /// <reference lib="dom" /> |
@@ -17,6 +17,5 @@ /*! ***************************************************************************** | ||
/// <reference no-default-lib="true"/> | ||
/// <reference lib="es2018.intl" /> | ||
declare namespace Intl { | ||
@@ -55,2 +54,21 @@ | ||
/** | ||
* Value of the `unit` property in objects returned by | ||
* `Intl.RelativeTimeFormat.prototype.formatToParts()`. `formatToParts` and | ||
* `format` methods accept either singular or plural unit names as input, | ||
* but `formatToParts` only outputs singular (e.g. "day") not plural (e.g. | ||
* "days"). | ||
* | ||
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/formatToParts#Using_formatToParts). | ||
*/ | ||
type RelativeTimeFormatUnitSingular = | ||
| "year" | ||
| "quarter" | ||
| "month" | ||
| "week" | ||
| "day" | ||
| "hour" | ||
| "minute" | ||
| "second"; | ||
/** | ||
* The locale matching algorithm to use. | ||
@@ -84,2 +102,9 @@ * | ||
/** | ||
* The locale(s) to use | ||
* | ||
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#locales_argument). | ||
*/ | ||
type LocalesArgument = UnicodeBCP47LocaleIdentifier | Locale | readonly (UnicodeBCP47LocaleIdentifier | Locale)[] | undefined; | ||
/** | ||
* An object with some or all of properties of `options` parameter | ||
@@ -119,7 +144,12 @@ * of `Intl.RelativeTimeFormat` constructor. | ||
*/ | ||
interface RelativeTimeFormatPart { | ||
type: string; | ||
value: string; | ||
unit?: RelativeTimeFormatUnit; | ||
} | ||
type RelativeTimeFormatPart = | ||
| { | ||
type: "literal"; | ||
value: string; | ||
} | ||
| { | ||
type: Exclude<NumberFormatPartTypes, "literal">; | ||
value: string; | ||
unit: RelativeTimeFormatUnitSingular; | ||
}; | ||
@@ -281,2 +311,6 @@ interface RelativeTimeFormat { | ||
interface Locale extends LocaleOptions { | ||
/** A string containing the language, and the script and region if available. */ | ||
baseName: string; | ||
/** The primary language subtag associated with the locale. */ | ||
language: string; | ||
/** Gets the most likely values for the language, script, and region of the locale based on existing values. */ | ||
@@ -305,11 +339,35 @@ maximize(): Locale; | ||
const Locale: { | ||
new (tag?: BCP47LanguageTag, options?: LocaleOptions): Locale; | ||
new (tag: BCP47LanguageTag | Locale, options?: LocaleOptions): Locale; | ||
}; | ||
interface DisplayNamesOptions { | ||
type DisplayNamesFallback = | ||
| "code" | ||
| "none"; | ||
type DisplayNamesType = | ||
| "language" | ||
| "region" | ||
| "script" | ||
| "calendar" | ||
| "dateTimeField" | ||
| "currency"; | ||
type DisplayNamesLanguageDisplay = | ||
| "dialect" | ||
| "standard"; | ||
interface DisplayNamesOptions { | ||
localeMatcher?: RelativeTimeFormatLocaleMatcher; | ||
style?: RelativeTimeFormatStyle; | ||
type: DisplayNamesType; | ||
languageDisplay?: DisplayNamesLanguageDisplay; | ||
fallback?: DisplayNamesFallback; | ||
} | ||
interface ResolvedDisplayNamesOptions { | ||
locale: UnicodeBCP47LocaleIdentifier; | ||
localeMatcher: RelativeTimeFormatLocaleMatcher; | ||
style: RelativeTimeFormatStyle; | ||
type: "language" | "region" | "script" | "currency"; | ||
fallback: "code" | "none"; | ||
type: DisplayNamesType; | ||
fallback: DisplayNamesFallback; | ||
languageDisplay?: DisplayNamesLanguageDisplay; | ||
} | ||
@@ -340,3 +398,3 @@ | ||
*/ | ||
resolvedOptions(): DisplayNamesOptions; | ||
resolvedOptions(): ResolvedDisplayNamesOptions; | ||
} | ||
@@ -362,3 +420,3 @@ | ||
*/ | ||
new(locales?: BCP47LanguageTag | BCP47LanguageTag[], options?: Partial<DisplayNamesOptions>): DisplayNames; | ||
new(locales: LocalesArgument, options: DisplayNamesOptions): DisplayNames; | ||
@@ -378,5 +436,5 @@ /** | ||
*/ | ||
supportedLocalesOf(locales: BCP47LanguageTag | BCP47LanguageTag[], options?: {localeMatcher: RelativeTimeFormatLocaleMatcher}): BCP47LanguageTag[]; | ||
supportedLocalesOf(locales?: LocalesArgument, options?: { localeMatcher?: RelativeTimeFormatLocaleMatcher }): BCP47LanguageTag[]; | ||
}; | ||
} |
@@ -17,6 +17,4 @@ /*! ***************************************************************************** | ||
/// <reference no-default-lib="true"/> | ||
interface PromiseFulfilledResult<T> { | ||
@@ -23,0 +21,0 @@ status: "fulfilled"; |
@@ -17,6 +17,4 @@ /*! ***************************************************************************** | ||
/// <reference no-default-lib="true"/> | ||
interface Atomics { | ||
@@ -23,0 +21,0 @@ /** |
@@ -17,6 +17,4 @@ /*! ***************************************************************************** | ||
/// <reference no-default-lib="true"/> | ||
/// <reference lib="es2015.iterable" /> | ||
@@ -23,0 +21,0 @@ |
@@ -17,6 +17,4 @@ /*! ***************************************************************************** | ||
/// <reference no-default-lib="true"/> | ||
/// <reference lib="es2015.iterable" /> | ||
@@ -23,0 +21,0 @@ /// <reference lib="es2015.symbol" /> |
@@ -17,6 +17,4 @@ /*! ***************************************************************************** | ||
/// <reference no-default-lib="true"/> | ||
/// <reference lib="es2020" /> | ||
@@ -23,0 +21,0 @@ /// <reference lib="es2021.promise" /> |
@@ -17,6 +17,4 @@ /*! ***************************************************************************** | ||
/// <reference no-default-lib="true"/> | ||
/// <reference lib="es2021" /> | ||
@@ -23,0 +21,0 @@ /// <reference lib="dom" /> |
@@ -17,8 +17,10 @@ /*! ***************************************************************************** | ||
/// <reference no-default-lib="true"/> | ||
declare namespace Intl { | ||
interface DateTimeFormatPartTypesRegistry { | ||
fractionalSecond: any | ||
} | ||
interface DateTimeFormatOptions { | ||
@@ -29,5 +31,14 @@ formatMatcher?: "basic" | "best fit" | "best fit" | undefined; | ||
dayPeriod?: "narrow" | "short" | "long" | undefined; | ||
fractionalSecondDigits?: 0 | 1 | 2 | 3 | undefined; | ||
fractionalSecondDigits?: 1 | 2 | 3 | undefined; | ||
} | ||
interface DateTimeRangeFormatPart extends DateTimeFormatPart { | ||
source: "startRange" | "endRange" | "shared" | ||
} | ||
interface DateTimeFormat { | ||
formatRange(startDate: Date | number | bigint, endDate: Date | number | bigint): string; | ||
formatRangeToParts(startDate: Date | number | bigint, endDate: Date | number | bigint): DateTimeRangeFormatPart[]; | ||
} | ||
interface ResolvedDateTimeFormatOptions { | ||
@@ -39,9 +50,121 @@ formatMatcher?: "basic" | "best fit" | "best fit"; | ||
dayPeriod?: "narrow" | "short" | "long"; | ||
fractionalSecondDigits?: 0 | 1 | 2 | 3; | ||
fractionalSecondDigits?: 1 | 2 | 3; | ||
} | ||
interface NumberFormat { | ||
formatRange(startDate: number | bigint, endDate: number | bigint): string; | ||
formatRangeToParts(startDate: number | bigint, endDate: number | bigint): NumberFormatPart[]; | ||
/** | ||
* The locale matching algorithm to use. | ||
* | ||
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/ListFormat#parameters). | ||
*/ | ||
type ListFormatLocaleMatcher = "lookup" | "best fit"; | ||
/** | ||
* The format of output message. | ||
* | ||
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/ListFormat#parameters). | ||
*/ | ||
type ListFormatType = "conjunction" | "disjunction" | "unit"; | ||
/** | ||
* The length of the formatted message. | ||
* | ||
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/ListFormat#parameters). | ||
*/ | ||
type ListFormatStyle = "long" | "short" | "narrow"; | ||
/** | ||
* An object with some or all properties of the `Intl.ListFormat` constructor `options` parameter. | ||
* | ||
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/ListFormat#parameters). | ||
*/ | ||
interface ListFormatOptions { | ||
/** The locale matching algorithm to use. For information about this option, see [Intl page](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_negotiation). */ | ||
localeMatcher?: ListFormatLocaleMatcher | undefined; | ||
/** The format of output message. */ | ||
type?: ListFormatType | undefined; | ||
/** The length of the internationalized message. */ | ||
style?: ListFormatStyle | undefined; | ||
} | ||
} | ||
interface ResolvedListFormatOptions { | ||
locale: string; | ||
style: ListFormatStyle; | ||
type: ListFormatType; | ||
} | ||
interface ListFormat { | ||
/** | ||
* Returns a string with a language-specific representation of the list. | ||
* | ||
* @param list - An iterable object, such as an [Array](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array). | ||
* | ||
* @throws `TypeError` if `list` includes something other than the possible values. | ||
* | ||
* @returns {string} A language-specific formatted string representing the elements of the list. | ||
* | ||
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/format). | ||
*/ | ||
format(list: Iterable<string>): string; | ||
/** | ||
* Returns an Array of objects representing the different components that can be used to format a list of values in a locale-aware fashion. | ||
* | ||
* @param list - An iterable object, such as an [Array](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array), to be formatted according to a locale. | ||
* | ||
* @throws `TypeError` if `list` includes something other than the possible values. | ||
* | ||
* @returns {{ type: "element" | "literal", value: string; }[]} An Array of components which contains the formatted parts from the list. | ||
* | ||
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/formatToParts). | ||
*/ | ||
formatToParts(list: Iterable<string>): { type: "element" | "literal", value: string; }[]; | ||
/** | ||
* Returns a new object with properties reflecting the locale and style | ||
* formatting options computed during the construction of the current | ||
* `Intl.ListFormat` object. | ||
* | ||
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/resolvedOptions). | ||
*/ | ||
resolvedOptions(): ResolvedListFormatOptions; | ||
} | ||
const ListFormat: { | ||
prototype: ListFormat; | ||
/** | ||
* Creates [Intl.ListFormat](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat) objects that | ||
* enable language-sensitive list formatting. | ||
* | ||
* @param locales - A string with a [BCP 47 language tag](http://tools.ietf.org/html/rfc5646), or an array of such strings. | ||
* For the general form and interpretation of the `locales` argument, | ||
* see the [`Intl` page](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_identification_and_negotiation). | ||
* | ||
* @param options - An [object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/ListFormat#parameters) | ||
* with some or all options of `ListFormatOptions`. | ||
* | ||
* @returns [Intl.ListFormatOptions](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat) object. | ||
* | ||
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat). | ||
*/ | ||
new(locales?: BCP47LanguageTag | BCP47LanguageTag[], options?: ListFormatOptions): ListFormat; | ||
/** | ||
* Returns an array containing those of the provided locales that are | ||
* supported in list formatting without having to fall back to the runtime's default locale. | ||
* | ||
* @param locales - A string with a [BCP 47 language tag](http://tools.ietf.org/html/rfc5646), or an array of such strings. | ||
* For the general form and interpretation of the `locales` argument, | ||
* see the [`Intl` page](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_identification_and_negotiation). | ||
* | ||
* @param options - An [object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/supportedLocalesOf#parameters). | ||
* with some or all possible options. | ||
* | ||
* @returns An array of strings representing a subset of the given locale tags that are supported in list | ||
* formatting without having to fall back to the runtime's default locale. | ||
* | ||
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/supportedLocalesOf). | ||
*/ | ||
supportedLocalesOf(locales: BCP47LanguageTag | BCP47LanguageTag[], options?: Pick<ListFormatOptions, "localeMatcher">): BCP47LanguageTag[]; | ||
}; | ||
} |
@@ -17,6 +17,4 @@ /*! ***************************************************************************** | ||
/// <reference no-default-lib="true"/> | ||
interface AggregateError extends Error { | ||
@@ -23,0 +21,0 @@ errors: any[] |
@@ -17,6 +17,4 @@ /*! ***************************************************************************** | ||
/// <reference no-default-lib="true"/> | ||
interface String { | ||
@@ -23,0 +21,0 @@ /** |
@@ -17,12 +17,11 @@ /*! ***************************************************************************** | ||
/// <reference no-default-lib="true"/> | ||
interface WeakRef<T extends object> { | ||
interface WeakRef<T extends WeakKey> { | ||
readonly [Symbol.toStringTag]: "WeakRef"; | ||
/** | ||
* Returns the WeakRef instance's target object, or undefined if the target object has been | ||
* Returns the WeakRef instance's target value, or undefined if the target value has been | ||
* reclaimed. | ||
* In es2023 the value can be either a symbol or an object, in previous versions only object is permissible. | ||
*/ | ||
@@ -36,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>; | ||
} | ||
@@ -49,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; | ||
} | ||
@@ -73,3 +74,3 @@ | ||
* 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. | ||
*/ | ||
@@ -76,0 +77,0 @@ new<T>(cleanupCallback: (heldValue: T) => void): FinalizationRegistry<T>; |
@@ -17,6 +17,4 @@ /*! ***************************************************************************** | ||
/// <reference no-default-lib="true"/> | ||
interface Array<T> { | ||
@@ -23,0 +21,0 @@ /** |
@@ -17,10 +17,11 @@ /*! ***************************************************************************** | ||
/// <reference no-default-lib="true"/> | ||
/// <reference lib="es2021" /> | ||
/// <reference lib="es2022.array" /> | ||
/// <reference lib="es2022.error" /> | ||
/// <reference lib="es2022.intl" /> | ||
/// <reference lib="es2022.object" /> | ||
/// <reference lib="es2022.sharedmemory" /> | ||
/// <reference lib="es2022.string" /> | ||
/// <reference lib="es2022.regexp" /> |
@@ -17,12 +17,10 @@ /*! ***************************************************************************** | ||
/// <reference no-default-lib="true"/> | ||
interface ErrorOptions { | ||
cause?: Error; | ||
cause?: unknown; | ||
} | ||
interface Error { | ||
cause?: Error; | ||
cause?: unknown; | ||
} | ||
@@ -29,0 +27,0 @@ |
@@ -17,6 +17,4 @@ /*! ***************************************************************************** | ||
/// <reference no-default-lib="true"/> | ||
/// <reference lib="es2022" /> | ||
@@ -23,0 +21,0 @@ /// <reference lib="dom" /> |
@@ -17,7 +17,5 @@ /*! ***************************************************************************** | ||
/// <reference no-default-lib="true"/> | ||
interface Object { | ||
interface ObjectConstructor { | ||
/** | ||
@@ -24,0 +22,0 @@ * Determines whether an object has a property with the specified name. |
@@ -17,6 +17,4 @@ /*! ***************************************************************************** | ||
/// <reference no-default-lib="true"/> | ||
interface String { | ||
@@ -23,0 +21,0 @@ /** |
@@ -17,6 +17,4 @@ /*! ***************************************************************************** | ||
/// <reference no-default-lib="true"/> | ||
/// <reference lib="es2015" /> | ||
@@ -23,0 +21,0 @@ /// <reference lib="dom" /> |
@@ -17,7 +17,7 @@ /*! ***************************************************************************** | ||
/// <reference no-default-lib="true"/> | ||
/// <reference lib="es2022" /> | ||
/// <reference lib="es2023" /> | ||
/// <reference lib="esnext.intl" /> | ||
/// <reference lib="esnext.decorators" /> | ||
/// <reference lib="esnext.disposable" /> |
@@ -17,6 +17,4 @@ /*! ***************************************************************************** | ||
/// <reference no-default-lib="true"/> | ||
/// <reference lib="esnext" /> | ||
@@ -23,0 +21,0 @@ /// <reference lib="dom" /> |
@@ -17,8 +17,13 @@ /*! ***************************************************************************** | ||
/// <reference no-default-lib="true"/> | ||
declare namespace Intl { | ||
interface NumberRangeFormatPart extends NumberFormatPart { | ||
source: "startRange" | "endRange" | "shared" | ||
} | ||
declare namespace Intl { | ||
// Empty for now | ||
interface NumberFormat { | ||
formatRange(start: number | bigint, end: number | bigint): string; | ||
formatRangeToParts(start: number | bigint, end: number | bigint): NumberRangeFormatPart[]; | ||
} | ||
} |
@@ -17,3 +17,2 @@ /*! ***************************************************************************** | ||
/// <reference no-default-lib="true"/> | ||
@@ -23,3 +22,2 @@ | ||
///////////////////////////// | ||
@@ -26,0 +24,0 @@ /// Windows Script Host APIS |
@@ -17,7 +17,5 @@ /*! ***************************************************************************** | ||
/// <reference no-default-lib="true"/> | ||
///////////////////////////// | ||
@@ -24,0 +22,0 @@ /// WorkerGlobalScope APIs |
@@ -17,6 +17,4 @@ /*! ***************************************************************************** | ||
/// <reference no-default-lib="true"/> | ||
///////////////////////////// | ||
@@ -26,6 +24,38 @@ /// Worker Iterable APIs | ||
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>; | ||
} | ||
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; | ||
} | ||
interface CanvasPathDrawingStyles { | ||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/setLineDash) */ | ||
setLineDash(segments: Iterable<number>): void; | ||
} | ||
interface DOMStringList { | ||
@@ -63,4 +93,8 @@ [Symbol.iterator](): IterableIterator<string>; | ||
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. */ | ||
transaction(storeNames: string | Iterable<string>, mode?: IDBTransactionMode): IDBTransaction; | ||
/** | ||
* 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; | ||
} | ||
@@ -73,2 +107,4 @@ | ||
* Throws an "InvalidStateError" DOMException if not called within an upgrade transaction. | ||
* | ||
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/createIndex) | ||
*/ | ||
@@ -79,13 +115,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>; | ||
generateKey(algorithm: RsaHashedKeyGenParams | EcKeyGenParams, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKeyPair>; | ||
generateKey(algorithm: AesKeyGenParams | HmacKeyGenParams | Pbkdf2Params, extractable: boolean, keyUsages: 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>; | ||
importKey(format: "jwk", keyData: JsonWebKey, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: KeyUsage[]): Promise<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>; | ||
@@ -105,2 +156,3 @@ } | ||
interface WEBGL_draw_buffers { | ||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_draw_buffers/drawBuffersWEBGL) */ | ||
drawBuffersWEBGL(buffers: Iterable<GLenum>): void; | ||
@@ -110,29 +162,54 @@ } | ||
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; | ||
multiDrawElementsInstancedWEBGL(mode: GLenum, countsList: Int32Array | Iterable<GLint>, countsOffset: GLuint, type: GLenum, offsetsList: Int32Array | Iterable<GLsizei>, offsetsOffset: GLuint, instanceCountsList: Int32Array | Iterable<GLsizei>, instanceCountsOffset: GLuint, drawcount: GLsizei): void; | ||
multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array | Iterable<GLint>, countsOffset: GLuint, type: GLenum, offsetsList: Int32Array | Iterable<GLsizei>, offsetsOffset: 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; | ||
} | ||
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; | ||
@@ -142,12 +219,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; | ||
@@ -157,5 +245,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; | ||
@@ -165,13 +257,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; | ||
} |
{ | ||
"name": "@vercel/ncc", | ||
"description": "Simple CLI for compiling a Node.js module into a single file, together with all its dependencies, gcc-style.", | ||
"version": "0.34.0", | ||
"version": "0.38.1", | ||
"repository": "vercel/ncc", | ||
@@ -17,29 +17,26 @@ "license": "MIT", | ||
"build-test-binary": "cd test/binary && node-gyp rebuild && cp build/Release/hello.node ../integration/hello.node", | ||
"codecov": "codecov", | ||
"test": "node --expose-gc --max_old_space_size=4096 node_modules/jest/bin/jest.js", | ||
"test-coverage": "node --expose-gc --max_old_space_size=4096 node_modules/jest/bin/jest.js --coverage --globals \"{\\\"coverage\\\":true}\" && codecov", | ||
"test-coverage": "node --expose-gc --max_old_space_size=4096 node_modules/jest/bin/jest.js --coverage --globals \"{\\\"coverage\\\":true}\"", | ||
"prepublishOnly": "node scripts/build.js --no-cache" | ||
}, | ||
"devDependencies": { | ||
"@azure/cosmos": "^3.12.3", | ||
"@bugsnag/js": "^7.11.0", | ||
"@azure/cosmos": "^3.17.3", | ||
"@bugsnag/js": "^7.21.0", | ||
"@ffmpeg-installer/ffmpeg": "^1.0.17", | ||
"@google-cloud/bigquery": "^5.7.0", | ||
"@google-cloud/firestore": "^4.14.0", | ||
"@sentry/node": "^6.10.0", | ||
"@slack/web-api": "^6.3.0", | ||
"@tensorflow/tfjs-node": "^3.12.0", | ||
"@vercel/webpack-asset-relocator-loader": "1.7.2", | ||
"analytics-node": "^6.0.0", | ||
"@google-cloud/firestore": "^6.7.0", | ||
"@sentry/node": "^7.66.0", | ||
"@slack/web-api": "^6.9.0", | ||
"@vercel/webpack-asset-relocator-loader": "1.7.3", | ||
"analytics-node": "^6.2.0", | ||
"apollo-server-express": "^2.2.2", | ||
"arg": "^5.0.0", | ||
"arg": "^5.0.2", | ||
"auth0": "^2.14.0", | ||
"aws-sdk": "^2.356.0", | ||
"aws-sdk": "^2.1448.0", | ||
"axios": "^0.21.1", | ||
"azure-storage": "^2.10.2", | ||
"browserify-middleware": "^8.1.1", | ||
"bytes": "^3.0.0", | ||
"canvas": "^2.2.0", | ||
"bytes": "^3.1.2", | ||
"canvas": "^2.11.2", | ||
"chromeless": "^1.5.2", | ||
"codecov": "^3.8.3", | ||
"consolidate": "^0.16.0", | ||
@@ -50,20 +47,20 @@ "copy": "^0.3.2", | ||
"esm": "^3.2.22", | ||
"express": "^4.16.4", | ||
"fetch-h2": "^3.0.0", | ||
"firebase": "^6.1.1", | ||
"firebase-admin": "^9.11.0", | ||
"express": "^4.18.2", | ||
"fetch-h2": "^3.0.2", | ||
"firebase": "^7.24.0", | ||
"firebase-admin": "^11.10.1", | ||
"fluent-ffmpeg": "^2.1.2", | ||
"fontkit": "^1.7.7", | ||
"get-folder-size": "^2.0.0", | ||
"glob": "^7.1.3", | ||
"got": "^11.8.2", | ||
"graceful-fs": "^4.1.15", | ||
"glob": "^8.0.3", | ||
"got": "^12.5.2", | ||
"graceful-fs": "^4.2.11", | ||
"graphql": "^15.5.1", | ||
"hot-shots": "^8.5.0", | ||
"ioredis": "^4.2.0", | ||
"isomorphic-unfetch": "^3.0.0", | ||
"ioredis": "^5.3.2", | ||
"isomorphic-unfetch": "^4.0.2", | ||
"jest": "^27.5.1", | ||
"jimp": "^0.16.1", | ||
"jugglingdb": "2.0.1", | ||
"koa": "^2.6.2", | ||
"koa": "^2.14.2", | ||
"leveldown": "^6.0.0", | ||
@@ -80,10 +77,10 @@ "license-webpack-plugin": "^4.0.2", | ||
"mysql": "^2.16.0", | ||
"node-gyp": "^8.4.1", | ||
"node-gyp": "^9.4.0", | ||
"npm": "^6.13.4", | ||
"oracledb": "^4.2.0", | ||
"passport": "^0.5.2", | ||
"oracledb": "^6.1.0", | ||
"passport": "^0.6.0", | ||
"passport-google-oauth": "^2.0.0", | ||
"path-platform": "^0.11.15", | ||
"pdfkit": "^0.12.1", | ||
"pg": "^8.7.1", | ||
"pdfkit": "^0.13.0", | ||
"pg": "^8.11.3", | ||
"pug": "^3.0.1", | ||
@@ -94,29 +91,26 @@ "react": "^17.0.2", | ||
"request": "^2.88.0", | ||
"rxjs": "^7.3.0", | ||
"rxjs": "^7.8.1", | ||
"saslprep": "^1.0.2", | ||
"sequelize": "^6.6.5", | ||
"sharp": "^0.28.3", | ||
"sequelize": "^6.32.1", | ||
"sharp": "^0.32.5", | ||
"shebang-loader": "^0.0.1", | ||
"socket.io": "^4.1.3", | ||
"socket.io": "^4.7.2", | ||
"source-map-support": "^0.5.9", | ||
"stripe": "^8.167.0", | ||
"swig": "^1.4.2", | ||
"terser": "^5.6.1", | ||
"terser": "^5.19.3", | ||
"the-answer": "^1.0.0", | ||
"tiny-json-http": "^7.0.2", | ||
"ts-loader": "^9.3.0", | ||
"tsconfig-paths": "^3.7.0", | ||
"tsconfig-paths-webpack-plugin": "^3.2.0", | ||
"tiny-json-http": "^7.5.1", | ||
"ts-loader": "^9.4.4", | ||
"tsconfig-paths": "^4.2.0", | ||
"tsconfig-paths-webpack-plugin": "^4.1.0", | ||
"twilio": "^3.23.2", | ||
"typescript": "^4.4.2", | ||
"vm2": "^3.6.6", | ||
"typescript": "^5.2.2", | ||
"vm2": "^3.9.19", | ||
"vue": "^2.5.17", | ||
"vue-server-renderer": "^2.5.17", | ||
"web-vitals": "^0.2.4", | ||
"webpack": "5.62.1", | ||
"webpack": "5.76.0", | ||
"when": "^3.7.8" | ||
}, | ||
"resolutions": { | ||
"grpc": "1.24.11" | ||
} | ||
} |
# ncc | ||
[![CI Status](https://github.com/vercel/ncc/workflows/CI/badge.svg)](https://github.com/vercel/ncc/actions?workflow=CI) | ||
[![codecov](https://codecov.io/gh/vercel/ncc/branch/main/graph/badge.svg)](https://codecov.io/gh/vercel/ncc) | ||
@@ -128,2 +127,3 @@ Simple CLI for compiling a Node.js module into a single file, | ||
license: '', // default does not generate a license file | ||
target: 'es2015', // default | ||
v8cache: false, // default | ||
@@ -155,2 +155,2 @@ quiet: false, // default | ||
- Files / assets are relocated based on a [static evaluator](https://github.com/zeit/webpack-asset-relocator-loader#how-it-works). Dynamic non-statically analyzable asset loads may not work out correctly | ||
- Files / assets are relocated based on a [static evaluator](https://github.com/vercel/webpack-asset-relocator-loader#how-it-works). Dynamic non-statically analyzable asset loads may not work out correctly |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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 not supported yet
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
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Mixed license
License(Experimental) Package contains multiple licenses.
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
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
Found 7 instances in 1 package
Copyleft License
License(Experimental) Copyleft license information was found.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Mixed license
License(Experimental) Package contains multiple licenses.
Found 1 instance in 1 package
Non-permissive License
License(Experimental) A license not known to be considered permissive was found.
Found 1 instance in 1 package
16586644
89
116
1
100
68377
11
68