mirror of
https://github.com/denoland/deno.git
synced 2024-11-21 15:04:11 -05:00
feat: TypeScript 5.4 (#23086)
Fork PR: https://github.com/denoland/TypeScript/pull/10 Closes #23080
This commit is contained in:
parent
6b95c53e48
commit
ac4a5f74b8
39 changed files with 5613 additions and 2672 deletions
|
@ -189,6 +189,7 @@ mod ts {
|
||||||
"es2015.symbol",
|
"es2015.symbol",
|
||||||
"es2015.symbol.wellknown",
|
"es2015.symbol.wellknown",
|
||||||
"es2016.array.include",
|
"es2016.array.include",
|
||||||
|
"es2016.intl",
|
||||||
"es2016",
|
"es2016",
|
||||||
"es2017",
|
"es2017",
|
||||||
"es2017.date",
|
"es2017.date",
|
||||||
|
@ -236,10 +237,12 @@ mod ts {
|
||||||
"es2023.collection",
|
"es2023.collection",
|
||||||
"esnext",
|
"esnext",
|
||||||
"esnext.array",
|
"esnext.array",
|
||||||
|
"esnext.collection",
|
||||||
"esnext.decorators",
|
"esnext.decorators",
|
||||||
"esnext.disposable",
|
"esnext.disposable",
|
||||||
"esnext.intl",
|
"esnext.intl",
|
||||||
"esnext.object",
|
"esnext.object",
|
||||||
|
"esnext.promise",
|
||||||
];
|
];
|
||||||
|
|
||||||
let path_dts = cwd.join("tsc/dts");
|
let path_dts = cwd.join("tsc/dts");
|
||||||
|
@ -449,7 +452,7 @@ fn main() {
|
||||||
);
|
);
|
||||||
|
|
||||||
let ts_version = ts::version();
|
let ts_version = ts::version();
|
||||||
debug_assert_eq!(ts_version, "5.3.3"); // bump this assertion when it changes
|
debug_assert_eq!(ts_version, "5.4.3"); // bump this assertion when it changes
|
||||||
println!("cargo:rustc-env=TS_VERSION={}", ts_version);
|
println!("cargo:rustc-env=TS_VERSION={}", ts_version);
|
||||||
println!("cargo:rerun-if-env-changed=TS_VERSION");
|
println!("cargo:rerun-if-env-changed=TS_VERSION");
|
||||||
|
|
||||||
|
|
|
@ -5023,6 +5023,7 @@ mod tests {
|
||||||
.unwrap();
|
.unwrap();
|
||||||
asset_names.sort();
|
asset_names.sort();
|
||||||
|
|
||||||
|
// if this test fails, update build.rs
|
||||||
expected_asset_names.sort();
|
expected_asset_names.sort();
|
||||||
assert_eq!(asset_names, expected_asset_names);
|
assert_eq!(asset_names, expected_asset_names);
|
||||||
|
|
||||||
|
|
6191
cli/tsc/00_typescript.js
vendored
6191
cli/tsc/00_typescript.js
vendored
File diff suppressed because it is too large
Load diff
|
@ -29,7 +29,7 @@ git checkout v3.9.7
|
||||||
git checkout -b branch_v3.9.7
|
git checkout -b branch_v3.9.7
|
||||||
git cherry pick <previous-release-branch-commit-we-did>
|
git cherry pick <previous-release-branch-commit-we-did>
|
||||||
npm install
|
npm install
|
||||||
gulp local
|
npx hereby
|
||||||
rsync built/local/typescript.js ~/src/deno/cli/tsc/00_typescript.js
|
rsync built/local/typescript.js ~/src/deno/cli/tsc/00_typescript.js
|
||||||
rsync --exclude=protocol.d.ts --exclude=tsserverlibrary.d.ts --exclude=typescriptServices.d.ts built/local/*.d.ts ~/src/deno/cli/tsc/dts/
|
rsync --exclude=protocol.d.ts --exclude=tsserverlibrary.d.ts --exclude=typescriptServices.d.ts built/local/*.d.ts ~/src/deno/cli/tsc/dts/
|
||||||
```
|
```
|
||||||
|
|
31
cli/tsc/dts/lib.deno.unstable.d.ts
vendored
31
cli/tsc/dts/lib.deno.unstable.d.ts
vendored
|
@ -539,15 +539,15 @@ declare namespace Deno {
|
||||||
*
|
*
|
||||||
* @category FFI
|
* @category FFI
|
||||||
*/
|
*/
|
||||||
export class UnsafeFnPointer<Fn extends ForeignFunction> {
|
export class UnsafeFnPointer<const Fn extends ForeignFunction> {
|
||||||
/** The pointer to the function. */
|
/** The pointer to the function. */
|
||||||
pointer: PointerObject<Fn>;
|
pointer: PointerObject<Fn>;
|
||||||
/** The definition of the function. */
|
/** The definition of the function. */
|
||||||
definition: Fn;
|
definition: Fn;
|
||||||
|
|
||||||
constructor(pointer: PointerObject<Fn>, definition: Const<Fn>);
|
constructor(pointer: PointerObject<NoInfer<Fn>>, definition: Fn);
|
||||||
/** @deprecated Properly type {@linkcode pointer} using {@linkcode NativeTypedFunction} or {@linkcode UnsafeCallbackDefinition} types. */
|
/** @deprecated Properly type {@linkcode pointer} using {@linkcode NativeTypedFunction} or {@linkcode UnsafeCallbackDefinition} types. */
|
||||||
constructor(pointer: PointerObject, definition: Const<Fn>);
|
constructor(pointer: PointerObject, definition: Fn);
|
||||||
|
|
||||||
/** Call the foreign function. */
|
/** Call the foreign function. */
|
||||||
call: FromForeignFunction<Fn>;
|
call: FromForeignFunction<Fn>;
|
||||||
|
@ -606,10 +606,11 @@ declare namespace Deno {
|
||||||
* @category FFI
|
* @category FFI
|
||||||
*/
|
*/
|
||||||
export class UnsafeCallback<
|
export class UnsafeCallback<
|
||||||
Definition extends UnsafeCallbackDefinition = UnsafeCallbackDefinition,
|
const Definition extends UnsafeCallbackDefinition =
|
||||||
|
UnsafeCallbackDefinition,
|
||||||
> {
|
> {
|
||||||
constructor(
|
constructor(
|
||||||
definition: Const<Definition>,
|
definition: Definition,
|
||||||
callback: UnsafeCallbackFunction<
|
callback: UnsafeCallbackFunction<
|
||||||
Definition["parameters"],
|
Definition["parameters"],
|
||||||
Definition["result"]
|
Definition["result"]
|
||||||
|
@ -636,7 +637,7 @@ declare namespace Deno {
|
||||||
static threadSafe<
|
static threadSafe<
|
||||||
Definition extends UnsafeCallbackDefinition = UnsafeCallbackDefinition,
|
Definition extends UnsafeCallbackDefinition = UnsafeCallbackDefinition,
|
||||||
>(
|
>(
|
||||||
definition: Const<Definition>,
|
definition: Definition,
|
||||||
callback: UnsafeCallbackFunction<
|
callback: UnsafeCallbackFunction<
|
||||||
Definition["parameters"],
|
Definition["parameters"],
|
||||||
Definition["result"]
|
Definition["result"]
|
||||||
|
@ -701,20 +702,6 @@ declare namespace Deno {
|
||||||
close(): void;
|
close(): void;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* This magic code used to implement better type hints for {@linkcode Deno.dlopen}
|
|
||||||
*
|
|
||||||
* @category FFI
|
|
||||||
*/
|
|
||||||
type Cast<A, B> = A extends B ? A : B;
|
|
||||||
/** @category FFI */
|
|
||||||
type Const<T> = Cast<
|
|
||||||
T,
|
|
||||||
| (T extends string | number | bigint | boolean ? T : never)
|
|
||||||
| { [K in keyof T]: Const<T[K]> }
|
|
||||||
| []
|
|
||||||
>;
|
|
||||||
|
|
||||||
/** **UNSTABLE**: New API, yet to be vetted.
|
/** **UNSTABLE**: New API, yet to be vetted.
|
||||||
*
|
*
|
||||||
* Opens an external dynamic library and registers symbols, making foreign
|
* Opens an external dynamic library and registers symbols, making foreign
|
||||||
|
@ -761,9 +748,9 @@ declare namespace Deno {
|
||||||
* @tags allow-ffi
|
* @tags allow-ffi
|
||||||
* @category FFI
|
* @category FFI
|
||||||
*/
|
*/
|
||||||
export function dlopen<S extends ForeignLibraryInterface>(
|
export function dlopen<const S extends ForeignLibraryInterface>(
|
||||||
filename: string | URL,
|
filename: string | URL,
|
||||||
symbols: Const<S>,
|
symbols: S,
|
||||||
): DynamicLibrary<S>;
|
): DynamicLibrary<S>;
|
||||||
|
|
||||||
/** **UNSTABLE**: New API, yet to be vetted.
|
/** **UNSTABLE**: New API, yet to be vetted.
|
||||||
|
|
27
cli/tsc/dts/lib.dom.asynciterable.d.ts
vendored
27
cli/tsc/dts/lib.dom.asynciterable.d.ts
vendored
|
@ -1,7 +1,32 @@
|
||||||
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
|
/*! *****************************************************************************
|
||||||
|
Copyright (c) Microsoft Corporation. All rights reserved.
|
||||||
|
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
||||||
|
this file except in compliance with the License. You may obtain a copy of the
|
||||||
|
License at http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
|
||||||
|
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||||
|
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
||||||
|
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
||||||
|
MERCHANTABLITY OR NON-INFRINGEMENT.
|
||||||
|
|
||||||
|
See the Apache Version 2.0 License for specific language governing permissions
|
||||||
|
and limitations under the License.
|
||||||
|
***************************************************************************** */
|
||||||
|
|
||||||
|
|
||||||
/// <reference no-default-lib="true"/>
|
/// <reference no-default-lib="true"/>
|
||||||
|
|
||||||
|
/////////////////////////////
|
||||||
|
/// Window Async Iterable APIs
|
||||||
|
/////////////////////////////
|
||||||
|
|
||||||
|
interface FileSystemDirectoryHandle {
|
||||||
|
[Symbol.asyncIterator](): AsyncIterableIterator<[string, FileSystemHandle]>;
|
||||||
|
entries(): AsyncIterableIterator<[string, FileSystemHandle]>;
|
||||||
|
keys(): AsyncIterableIterator<string>;
|
||||||
|
values(): AsyncIterableIterator<FileSystemHandle>;
|
||||||
|
}
|
||||||
|
|
||||||
interface ReadableStream<R = any> {
|
interface ReadableStream<R = any> {
|
||||||
[Symbol.asyncIterator](options?: {
|
[Symbol.asyncIterator](options?: {
|
||||||
preventCancel?: boolean;
|
preventCancel?: boolean;
|
||||||
|
|
516
cli/tsc/dts/lib.dom.d.ts
vendored
516
cli/tsc/dts/lib.dom.d.ts
vendored
File diff suppressed because it is too large
Load diff
63
cli/tsc/dts/lib.dom.iterable.d.ts
vendored
63
cli/tsc/dts/lib.dom.iterable.d.ts
vendored
|
@ -152,6 +152,12 @@ interface Headers {
|
||||||
values(): IterableIterator<string>;
|
values(): IterableIterator<string>;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
interface Highlight extends Set<AbstractRange> {
|
||||||
|
}
|
||||||
|
|
||||||
|
interface HighlightRegistry extends Map<string, Highlight> {
|
||||||
|
}
|
||||||
|
|
||||||
interface IDBDatabase {
|
interface IDBDatabase {
|
||||||
/**
|
/**
|
||||||
* Returns a new transaction with the given mode ("readonly" or "readwrite") and scope which can be a single object store name or an array of names.
|
* Returns a new transaction with the given mode ("readonly" or "readwrite") and scope which can be a single object store name or an array of names.
|
||||||
|
@ -305,6 +311,7 @@ interface SubtleCrypto {
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/deriveKey) */
|
/** [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>;
|
deriveKey(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, derivedKeyType: AlgorithmIdentifier | AesDerivedKeyParams | HmacImportParams | HkdfParams | Pbkdf2Params, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKey>;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/generateKey) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/generateKey) */
|
||||||
|
generateKey(algorithm: "Ed25519", extractable: boolean, keyUsages: ReadonlyArray<"sign" | "verify">): Promise<CryptoKeyPair>;
|
||||||
generateKey(algorithm: RsaHashedKeyGenParams | EcKeyGenParams, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKeyPair>;
|
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: AesKeyGenParams | HmacKeyGenParams | Pbkdf2Params, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>;
|
||||||
generateKey(algorithm: AlgorithmIdentifier, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKeyPair | CryptoKey>;
|
generateKey(algorithm: AlgorithmIdentifier, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKeyPair | CryptoKey>;
|
||||||
|
@ -344,22 +351,22 @@ interface WEBGL_draw_buffers {
|
||||||
|
|
||||||
interface WEBGL_multi_draw {
|
interface WEBGL_multi_draw {
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawArraysInstancedWEBGL) */
|
/** [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;
|
multiDrawArraysInstancedWEBGL(mode: GLenum, firstsList: Int32Array | Iterable<GLint>, firstsOffset: number, countsList: Int32Array | Iterable<GLsizei>, countsOffset: number, instanceCountsList: Int32Array | Iterable<GLsizei>, instanceCountsOffset: number, drawcount: GLsizei): void;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawArraysWEBGL) */
|
/** [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;
|
multiDrawArraysWEBGL(mode: GLenum, firstsList: Int32Array | Iterable<GLint>, firstsOffset: number, countsList: Int32Array | Iterable<GLsizei>, countsOffset: number, drawcount: GLsizei): void;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawElementsInstancedWEBGL) */
|
/** [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;
|
multiDrawElementsInstancedWEBGL(mode: GLenum, countsList: Int32Array | Iterable<GLsizei>, countsOffset: number, type: GLenum, offsetsList: Int32Array | Iterable<GLsizei>, offsetsOffset: number, instanceCountsList: Int32Array | Iterable<GLsizei>, instanceCountsOffset: number, drawcount: GLsizei): void;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawElementsWEBGL) */
|
/** [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;
|
multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array | Iterable<GLsizei>, countsOffset: number, type: GLenum, offsetsList: Int32Array | Iterable<GLsizei>, offsetsOffset: number, drawcount: GLsizei): void;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface WebGL2RenderingContextBase {
|
interface WebGL2RenderingContextBase {
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) */
|
||||||
clearBufferfv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLfloat>, srcOffset?: GLuint): void;
|
clearBufferfv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLfloat>, srcOffset?: number): void;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) */
|
||||||
clearBufferiv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLint>, srcOffset?: GLuint): void;
|
clearBufferiv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLint>, srcOffset?: number): void;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) */
|
||||||
clearBufferuiv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLuint>, srcOffset?: GLuint): void;
|
clearBufferuiv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLuint>, srcOffset?: number): void;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/drawBuffers) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/drawBuffers) */
|
||||||
drawBuffers(buffers: Iterable<GLenum>): void;
|
drawBuffers(buffers: Iterable<GLenum>): void;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getActiveUniforms) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getActiveUniforms) */
|
||||||
|
@ -373,25 +380,25 @@ interface WebGL2RenderingContextBase {
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/transformFeedbackVaryings) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/transformFeedbackVaryings) */
|
||||||
transformFeedbackVaryings(program: WebGLProgram, varyings: Iterable<string>, bufferMode: GLenum): void;
|
transformFeedbackVaryings(program: WebGLProgram, varyings: Iterable<string>, bufferMode: GLenum): void;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */
|
||||||
uniform1uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: GLuint, srcLength?: GLuint): void;
|
uniform1uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: number, srcLength?: GLuint): void;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */
|
||||||
uniform2uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: GLuint, srcLength?: GLuint): void;
|
uniform2uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: number, srcLength?: GLuint): void;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */
|
||||||
uniform3uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: GLuint, srcLength?: GLuint): void;
|
uniform3uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: number, srcLength?: GLuint): void;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */
|
||||||
uniform4uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: GLuint, srcLength?: GLuint): void;
|
uniform4uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: number, srcLength?: GLuint): void;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */
|
/** [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;
|
uniformMatrix2x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */
|
/** [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;
|
uniformMatrix2x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */
|
/** [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;
|
uniformMatrix3x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */
|
/** [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;
|
uniformMatrix3x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */
|
/** [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;
|
uniformMatrix4x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */
|
/** [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;
|
uniformMatrix4x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/vertexAttribI) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/vertexAttribI) */
|
||||||
vertexAttribI4iv(index: GLuint, values: Iterable<GLint>): void;
|
vertexAttribI4iv(index: GLuint, values: Iterable<GLint>): void;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/vertexAttribI) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/vertexAttribI) */
|
||||||
|
@ -400,27 +407,27 @@ interface WebGL2RenderingContextBase {
|
||||||
|
|
||||||
interface WebGL2RenderingContextOverloads {
|
interface WebGL2RenderingContextOverloads {
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
|
||||||
uniform1fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
|
uniform1fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
|
||||||
uniform1iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: GLuint, srcLength?: GLuint): void;
|
uniform1iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: number, srcLength?: GLuint): void;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
|
||||||
uniform2fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
|
uniform2fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
|
||||||
uniform2iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: GLuint, srcLength?: GLuint): void;
|
uniform2iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: number, srcLength?: GLuint): void;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
|
||||||
uniform3fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
|
uniform3fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
|
||||||
uniform3iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: GLuint, srcLength?: GLuint): void;
|
uniform3iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: number, srcLength?: GLuint): void;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
|
||||||
uniform4fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
|
uniform4fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
|
||||||
uniform4iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: GLuint, srcLength?: GLuint): void;
|
uniform4iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: number, srcLength?: GLuint): void;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */
|
/** [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;
|
uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */
|
/** [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;
|
uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */
|
/** [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;
|
uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface WebGLRenderingContextBase {
|
interface WebGLRenderingContextBase {
|
||||||
|
|
1
cli/tsc/dts/lib.es2016.d.ts
vendored
1
cli/tsc/dts/lib.es2016.d.ts
vendored
|
@ -18,3 +18,4 @@ and limitations under the License.
|
||||||
|
|
||||||
/// <reference lib="es2015" />
|
/// <reference lib="es2015" />
|
||||||
/// <reference lib="es2016.array.include" />
|
/// <reference lib="es2016.array.include" />
|
||||||
|
/// <reference lib="es2016.intl" />
|
||||||
|
|
31
cli/tsc/dts/lib.es2016.intl.d.ts
vendored
Normal file
31
cli/tsc/dts/lib.es2016.intl.d.ts
vendored
Normal file
|
@ -0,0 +1,31 @@
|
||||||
|
/*! *****************************************************************************
|
||||||
|
Copyright (c) Microsoft Corporation. All rights reserved.
|
||||||
|
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
||||||
|
this file except in compliance with the License. You may obtain a copy of the
|
||||||
|
License at http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
|
||||||
|
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||||
|
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
||||||
|
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
||||||
|
MERCHANTABLITY OR NON-INFRINGEMENT.
|
||||||
|
|
||||||
|
See the Apache Version 2.0 License for specific language governing permissions
|
||||||
|
and limitations under the License.
|
||||||
|
***************************************************************************** */
|
||||||
|
|
||||||
|
|
||||||
|
/// <reference no-default-lib="true"/>
|
||||||
|
|
||||||
|
declare namespace Intl {
|
||||||
|
/**
|
||||||
|
* The `Intl.getCanonicalLocales()` method returns an array containing
|
||||||
|
* the canonical locale names. Duplicates will be omitted and elements
|
||||||
|
* will be validated as structurally valid language tags.
|
||||||
|
*
|
||||||
|
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/getCanonicalLocales)
|
||||||
|
*
|
||||||
|
* @param locale A list of String values for which to get the canonical locale names
|
||||||
|
* @returns An array containing the canonical and validated locale names.
|
||||||
|
*/
|
||||||
|
function getCanonicalLocales(locale?: string | readonly string[]): string[];
|
||||||
|
}
|
1
cli/tsc/dts/lib.es2018.full.d.ts
vendored
1
cli/tsc/dts/lib.es2018.full.d.ts
vendored
|
@ -21,3 +21,4 @@ and limitations under the License.
|
||||||
/// <reference lib="webworker.importscripts" />
|
/// <reference lib="webworker.importscripts" />
|
||||||
/// <reference lib="scripthost" />
|
/// <reference lib="scripthost" />
|
||||||
/// <reference lib="dom.iterable" />
|
/// <reference lib="dom.iterable" />
|
||||||
|
/// <reference lib="dom.asynciterable" />
|
||||||
|
|
11
cli/tsc/dts/lib.es2018.intl.d.ts
vendored
11
cli/tsc/dts/lib.es2018.intl.d.ts
vendored
|
@ -47,12 +47,13 @@ declare namespace Intl {
|
||||||
select(n: number): LDMLPluralRule;
|
select(n: number): LDMLPluralRule;
|
||||||
}
|
}
|
||||||
|
|
||||||
const PluralRules: {
|
interface PluralRulesConstructor {
|
||||||
new (locales?: string | string[], options?: PluralRulesOptions): PluralRules;
|
new (locales?: string | readonly string[], options?: PluralRulesOptions): PluralRules;
|
||||||
(locales?: string | string[], options?: PluralRulesOptions): PluralRules;
|
(locales?: string | readonly string[], options?: PluralRulesOptions): PluralRules;
|
||||||
|
supportedLocalesOf(locales: string | readonly string[], options?: { localeMatcher?: "lookup" | "best fit"; }): string[];
|
||||||
|
}
|
||||||
|
|
||||||
supportedLocalesOf(locales: string | string[], options?: { localeMatcher?: "lookup" | "best fit"; }): string[];
|
const PluralRules: PluralRulesConstructor;
|
||||||
};
|
|
||||||
|
|
||||||
// We can only have one definition for 'type' in TypeScript, and so you can learn where the keys come from here:
|
// We can only have one definition for 'type' in TypeScript, and so you can learn where the keys come from here:
|
||||||
type ES2018NumberFormatPartType = "literal" | "nan" | "infinity" | "percent" | "integer" | "group" | "decimal" | "fraction" | "plusSign" | "minusSign" | "percentSign" | "currency" | "code" | "symbol" | "name";
|
type ES2018NumberFormatPartType = "literal" | "nan" | "infinity" | "percent" | "integer" | "group" | "decimal" | "fraction" | "plusSign" | "minusSign" | "percentSign" | "currency" | "code" | "symbol" | "name";
|
||||||
|
|
1
cli/tsc/dts/lib.es2019.full.d.ts
vendored
1
cli/tsc/dts/lib.es2019.full.d.ts
vendored
|
@ -21,3 +21,4 @@ and limitations under the License.
|
||||||
/// <reference lib="webworker.importscripts" />
|
/// <reference lib="webworker.importscripts" />
|
||||||
/// <reference lib="scripthost" />
|
/// <reference lib="scripthost" />
|
||||||
/// <reference lib="dom.iterable" />
|
/// <reference lib="dom.iterable" />
|
||||||
|
/// <reference lib="dom.asynciterable" />
|
||||||
|
|
1
cli/tsc/dts/lib.es2020.full.d.ts
vendored
1
cli/tsc/dts/lib.es2020.full.d.ts
vendored
|
@ -21,3 +21,4 @@ and limitations under the License.
|
||||||
/// <reference lib="webworker.importscripts" />
|
/// <reference lib="webworker.importscripts" />
|
||||||
/// <reference lib="scripthost" />
|
/// <reference lib="scripthost" />
|
||||||
/// <reference lib="dom.iterable" />
|
/// <reference lib="dom.iterable" />
|
||||||
|
/// <reference lib="dom.asynciterable" />
|
||||||
|
|
52
cli/tsc/dts/lib.es2020.intl.d.ts
vendored
52
cli/tsc/dts/lib.es2020.intl.d.ts
vendored
|
@ -19,9 +19,11 @@ and limitations under the License.
|
||||||
/// <reference lib="es2018.intl" />
|
/// <reference lib="es2018.intl" />
|
||||||
declare namespace Intl {
|
declare namespace Intl {
|
||||||
/**
|
/**
|
||||||
* [Unicode BCP 47 Locale Identifiers](https://unicode.org/reports/tr35/#Unicode_Language_and_Locale_Identifiers) definition.
|
* A string that is a valid [Unicode BCP 47 Locale Identifier](https://unicode.org/reports/tr35/#Unicode_locale_identifier).
|
||||||
*
|
*
|
||||||
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#locales_argument).
|
* For example: "fa", "es-MX", "zh-Hant-TW".
|
||||||
|
*
|
||||||
|
* See [MDN - Intl - locales argument](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#locales_argument).
|
||||||
*/
|
*/
|
||||||
type UnicodeBCP47LocaleIdentifier = string;
|
type UnicodeBCP47LocaleIdentifier = string;
|
||||||
|
|
||||||
|
@ -89,16 +91,9 @@ declare namespace Intl {
|
||||||
type RelativeTimeFormatStyle = "long" | "short" | "narrow";
|
type RelativeTimeFormatStyle = "long" | "short" | "narrow";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* [BCP 47 language tag](http://tools.ietf.org/html/rfc5646) definition.
|
* The locale or locales to use
|
||||||
*
|
*
|
||||||
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#locales_argument).
|
* See [MDN - Intl - locales argument](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#locales_argument).
|
||||||
*/
|
|
||||||
type BCP47LanguageTag = string;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 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;
|
type LocalesArgument = UnicodeBCP47LocaleIdentifier | Locale | readonly (UnicodeBCP47LocaleIdentifier | Locale)[] | undefined;
|
||||||
|
|
||||||
|
@ -218,7 +213,7 @@ declare namespace Intl {
|
||||||
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/RelativeTimeFormat).
|
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/RelativeTimeFormat).
|
||||||
*/
|
*/
|
||||||
new (
|
new (
|
||||||
locales?: UnicodeBCP47LocaleIdentifier | UnicodeBCP47LocaleIdentifier[],
|
locales?: LocalesArgument,
|
||||||
options?: RelativeTimeFormatOptions,
|
options?: RelativeTimeFormatOptions,
|
||||||
): RelativeTimeFormat;
|
): RelativeTimeFormat;
|
||||||
|
|
||||||
|
@ -241,7 +236,7 @@ declare namespace Intl {
|
||||||
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/supportedLocalesOf).
|
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/supportedLocalesOf).
|
||||||
*/
|
*/
|
||||||
supportedLocalesOf(
|
supportedLocalesOf(
|
||||||
locales?: UnicodeBCP47LocaleIdentifier | UnicodeBCP47LocaleIdentifier[],
|
locales?: LocalesArgument,
|
||||||
options?: RelativeTimeFormatOptions,
|
options?: RelativeTimeFormatOptions,
|
||||||
): UnicodeBCP47LocaleIdentifier[];
|
): UnicodeBCP47LocaleIdentifier[];
|
||||||
};
|
};
|
||||||
|
@ -312,7 +307,7 @@ declare namespace Intl {
|
||||||
/** Attempts to remove information about the locale that would be added by calling `Locale.maximize()`. */
|
/** Attempts to remove information about the locale that would be added by calling `Locale.maximize()`. */
|
||||||
minimize(): Locale;
|
minimize(): Locale;
|
||||||
/** Returns the locale's full locale identifier string. */
|
/** Returns the locale's full locale identifier string. */
|
||||||
toString(): BCP47LanguageTag;
|
toString(): UnicodeBCP47LocaleIdentifier;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -330,7 +325,7 @@ declare namespace Intl {
|
||||||
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale).
|
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale).
|
||||||
*/
|
*/
|
||||||
const Locale: {
|
const Locale: {
|
||||||
new (tag: BCP47LanguageTag | Locale, options?: LocaleOptions): Locale;
|
new (tag: UnicodeBCP47LocaleIdentifier | Locale, options?: LocaleOptions): Locale;
|
||||||
};
|
};
|
||||||
|
|
||||||
type DisplayNamesFallback =
|
type DisplayNamesFallback =
|
||||||
|
@ -424,6 +419,31 @@ declare namespace Intl {
|
||||||
*
|
*
|
||||||
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames/supportedLocalesOf).
|
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames/supportedLocalesOf).
|
||||||
*/
|
*/
|
||||||
supportedLocalesOf(locales?: LocalesArgument, options?: { localeMatcher?: RelativeTimeFormatLocaleMatcher; }): BCP47LanguageTag[];
|
supportedLocalesOf(locales?: LocalesArgument, options?: { localeMatcher?: RelativeTimeFormatLocaleMatcher; }): UnicodeBCP47LocaleIdentifier[];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
interface CollatorConstructor {
|
||||||
|
new (locales?: LocalesArgument, options?: CollatorOptions): Collator;
|
||||||
|
(locales?: LocalesArgument, options?: CollatorOptions): Collator;
|
||||||
|
supportedLocalesOf(locales: LocalesArgument, options?: CollatorOptions): string[];
|
||||||
|
}
|
||||||
|
|
||||||
|
interface DateTimeFormatConstructor {
|
||||||
|
new (locales?: LocalesArgument, options?: DateTimeFormatOptions): DateTimeFormat;
|
||||||
|
(locales?: LocalesArgument, options?: DateTimeFormatOptions): DateTimeFormat;
|
||||||
|
supportedLocalesOf(locales: LocalesArgument, options?: DateTimeFormatOptions): string[];
|
||||||
|
}
|
||||||
|
|
||||||
|
interface NumberFormatConstructor {
|
||||||
|
new (locales?: LocalesArgument, options?: NumberFormatOptions): NumberFormat;
|
||||||
|
(locales?: LocalesArgument, options?: NumberFormatOptions): NumberFormat;
|
||||||
|
supportedLocalesOf(locales: LocalesArgument, options?: NumberFormatOptions): string[];
|
||||||
|
}
|
||||||
|
|
||||||
|
interface PluralRulesConstructor {
|
||||||
|
new (locales?: LocalesArgument, options?: PluralRulesOptions): PluralRules;
|
||||||
|
(locales?: LocalesArgument, options?: PluralRulesOptions): PluralRules;
|
||||||
|
|
||||||
|
supportedLocalesOf(locales: LocalesArgument, options?: { localeMatcher?: "lookup" | "best fit"; }): string[];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
16
cli/tsc/dts/lib.es2020.string.d.ts
vendored
16
cli/tsc/dts/lib.es2020.string.d.ts
vendored
|
@ -24,5 +24,19 @@ interface String {
|
||||||
* containing the results of that search.
|
* containing the results of that search.
|
||||||
* @param regexp A variable name or string literal containing the regular expression pattern and flags.
|
* @param regexp A variable name or string literal containing the regular expression pattern and flags.
|
||||||
*/
|
*/
|
||||||
matchAll(regexp: RegExp): IterableIterator<RegExpMatchArray>;
|
matchAll(regexp: RegExp): IterableIterator<RegExpExecArray>;
|
||||||
|
|
||||||
|
/** Converts all alphabetic characters to lowercase, taking into account the host environment's current locale. */
|
||||||
|
toLocaleLowerCase(locales?: Intl.LocalesArgument): string;
|
||||||
|
|
||||||
|
/** Returns a string where all alphabetic characters have been converted to uppercase, taking into account the host environment's current locale. */
|
||||||
|
toLocaleUpperCase(locales?: Intl.LocalesArgument): string;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Determines whether two strings are equivalent in the current or specified locale.
|
||||||
|
* @param that String to compare to target string
|
||||||
|
* @param locales A locale string or array of locale strings that contain one or more language or locale tags. If you include more than one locale string, list them in descending order of priority so that the first entry is the preferred locale. If you omit this parameter, the default locale of the JavaScript runtime is used. This parameter must conform to BCP 47 standards; see the Intl.Collator object for details.
|
||||||
|
* @param options An object that contains one or more properties that specify comparison options. see the Intl.Collator object for details.
|
||||||
|
*/
|
||||||
|
localeCompare(that: string, locales?: Intl.LocalesArgument, options?: Intl.CollatorOptions): number;
|
||||||
}
|
}
|
||||||
|
|
1
cli/tsc/dts/lib.es2021.full.d.ts
vendored
1
cli/tsc/dts/lib.es2021.full.d.ts
vendored
|
@ -21,3 +21,4 @@ and limitations under the License.
|
||||||
/// <reference lib="webworker.importscripts" />
|
/// <reference lib="webworker.importscripts" />
|
||||||
/// <reference lib="scripthost" />
|
/// <reference lib="scripthost" />
|
||||||
/// <reference lib="dom.iterable" />
|
/// <reference lib="dom.iterable" />
|
||||||
|
/// <reference lib="dom.asynciterable" />
|
||||||
|
|
4
cli/tsc/dts/lib.es2021.intl.d.ts
vendored
4
cli/tsc/dts/lib.es2021.intl.d.ts
vendored
|
@ -143,7 +143,7 @@ declare namespace Intl {
|
||||||
*
|
*
|
||||||
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat).
|
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat).
|
||||||
*/
|
*/
|
||||||
new (locales?: BCP47LanguageTag | BCP47LanguageTag[], options?: ListFormatOptions): ListFormat;
|
new (locales?: LocalesArgument, options?: ListFormatOptions): ListFormat;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns an array containing those of the provided locales that are
|
* Returns an array containing those of the provided locales that are
|
||||||
|
@ -161,6 +161,6 @@ declare namespace Intl {
|
||||||
*
|
*
|
||||||
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/supportedLocalesOf).
|
* [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[];
|
supportedLocalesOf(locales: LocalesArgument, options?: Pick<ListFormatOptions, "localeMatcher">): UnicodeBCP47LocaleIdentifier[];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
6
cli/tsc/dts/lib.es2021.promise.d.ts
vendored
6
cli/tsc/dts/lib.es2021.promise.d.ts
vendored
|
@ -45,10 +45,4 @@ interface PromiseConstructor {
|
||||||
* @returns A new Promise.
|
* @returns A new Promise.
|
||||||
*/
|
*/
|
||||||
any<T>(values: Iterable<T | PromiseLike<T>>): Promise<Awaited<T>>;
|
any<T>(values: Iterable<T | PromiseLike<T>>): Promise<Awaited<T>>;
|
||||||
|
|
||||||
/**
|
|
||||||
* Creates a Promise that can be resolved or rejected using provided functions.
|
|
||||||
* @returns An object containing `promise` promise object, `resolve` and `reject` functions.
|
|
||||||
*/
|
|
||||||
withResolvers<T>(): { promise: Promise<T>, resolve: (value: T | PromiseLike<T>) => void, reject: (reason?: any) => void };
|
|
||||||
}
|
}
|
||||||
|
|
1
cli/tsc/dts/lib.es2022.full.d.ts
vendored
1
cli/tsc/dts/lib.es2022.full.d.ts
vendored
|
@ -21,3 +21,4 @@ and limitations under the License.
|
||||||
/// <reference lib="webworker.importscripts" />
|
/// <reference lib="webworker.importscripts" />
|
||||||
/// <reference lib="scripthost" />
|
/// <reference lib="scripthost" />
|
||||||
/// <reference lib="dom.iterable" />
|
/// <reference lib="dom.iterable" />
|
||||||
|
/// <reference lib="dom.asynciterable" />
|
||||||
|
|
4
cli/tsc/dts/lib.es2022.intl.d.ts
vendored
4
cli/tsc/dts/lib.es2022.intl.d.ts
vendored
|
@ -89,7 +89,7 @@ declare namespace Intl {
|
||||||
*
|
*
|
||||||
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Segmenter).
|
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Segmenter).
|
||||||
*/
|
*/
|
||||||
new (locales?: BCP47LanguageTag | BCP47LanguageTag[], options?: SegmenterOptions): Segmenter;
|
new (locales?: LocalesArgument, options?: SegmenterOptions): Segmenter;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns an array containing those of the provided locales that are supported without having to fall back to the runtime's default locale.
|
* Returns an array containing those of the provided locales that are supported without having to fall back to the runtime's default locale.
|
||||||
|
@ -103,7 +103,7 @@ declare namespace Intl {
|
||||||
*
|
*
|
||||||
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Segmenter/supportedLocalesOf)
|
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Segmenter/supportedLocalesOf)
|
||||||
*/
|
*/
|
||||||
supportedLocalesOf(locales: BCP47LanguageTag | BCP47LanguageTag[], options?: Pick<SegmenterOptions, "localeMatcher">): BCP47LanguageTag[];
|
supportedLocalesOf(locales: LocalesArgument, options?: Pick<SegmenterOptions, "localeMatcher">): UnicodeBCP47LocaleIdentifier[];
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
1
cli/tsc/dts/lib.es2023.full.d.ts
vendored
1
cli/tsc/dts/lib.es2023.full.d.ts
vendored
|
@ -21,3 +21,4 @@ and limitations under the License.
|
||||||
/// <reference lib="webworker.importscripts" />
|
/// <reference lib="webworker.importscripts" />
|
||||||
/// <reference lib="scripthost" />
|
/// <reference lib="scripthost" />
|
||||||
/// <reference lib="dom.iterable" />
|
/// <reference lib="dom.iterable" />
|
||||||
|
/// <reference lib="dom.asynciterable" />
|
||||||
|
|
29
cli/tsc/dts/lib.es5.d.ts
vendored
29
cli/tsc/dts/lib.es5.d.ts
vendored
|
@ -644,6 +644,7 @@ interface ImportCallOptions {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The type for the `assert` property of the optional second argument to `import()`.
|
* The type for the `assert` property of the optional second argument to `import()`.
|
||||||
|
* @deprecated
|
||||||
*/
|
*/
|
||||||
interface ImportAssertions {
|
interface ImportAssertions {
|
||||||
[key: string]: string;
|
[key: string]: string;
|
||||||
|
@ -1666,6 +1667,11 @@ type Capitalize<S extends string> = intrinsic;
|
||||||
*/
|
*/
|
||||||
type Uncapitalize<S extends string> = intrinsic;
|
type Uncapitalize<S extends string> = intrinsic;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Marker for non-inference type position
|
||||||
|
*/
|
||||||
|
type NoInfer<T> = intrinsic;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Marker for contextual 'this' type
|
* Marker for contextual 'this' type
|
||||||
*/
|
*/
|
||||||
|
@ -4418,11 +4424,14 @@ declare namespace Intl {
|
||||||
compare(x: string, y: string): number;
|
compare(x: string, y: string): number;
|
||||||
resolvedOptions(): ResolvedCollatorOptions;
|
resolvedOptions(): ResolvedCollatorOptions;
|
||||||
}
|
}
|
||||||
var Collator: {
|
|
||||||
|
interface CollatorConstructor {
|
||||||
new (locales?: string | string[], options?: CollatorOptions): Collator;
|
new (locales?: string | string[], options?: CollatorOptions): Collator;
|
||||||
(locales?: string | string[], options?: CollatorOptions): Collator;
|
(locales?: string | string[], options?: CollatorOptions): Collator;
|
||||||
supportedLocalesOf(locales: string | string[], options?: CollatorOptions): string[];
|
supportedLocalesOf(locales: string | string[], options?: CollatorOptions): string[];
|
||||||
};
|
}
|
||||||
|
|
||||||
|
var Collator: CollatorConstructor;
|
||||||
|
|
||||||
interface NumberFormatOptions {
|
interface NumberFormatOptions {
|
||||||
localeMatcher?: string | undefined;
|
localeMatcher?: string | undefined;
|
||||||
|
@ -4454,12 +4463,15 @@ declare namespace Intl {
|
||||||
format(value: number): string;
|
format(value: number): string;
|
||||||
resolvedOptions(): ResolvedNumberFormatOptions;
|
resolvedOptions(): ResolvedNumberFormatOptions;
|
||||||
}
|
}
|
||||||
var NumberFormat: {
|
|
||||||
|
interface NumberFormatConstructor {
|
||||||
new (locales?: string | string[], options?: NumberFormatOptions): NumberFormat;
|
new (locales?: string | string[], options?: NumberFormatOptions): NumberFormat;
|
||||||
(locales?: string | string[], options?: NumberFormatOptions): NumberFormat;
|
(locales?: string | string[], options?: NumberFormatOptions): NumberFormat;
|
||||||
supportedLocalesOf(locales: string | string[], options?: NumberFormatOptions): string[];
|
supportedLocalesOf(locales: string | string[], options?: NumberFormatOptions): string[];
|
||||||
readonly prototype: NumberFormat;
|
readonly prototype: NumberFormat;
|
||||||
};
|
}
|
||||||
|
|
||||||
|
var NumberFormat: NumberFormatConstructor;
|
||||||
|
|
||||||
interface DateTimeFormatOptions {
|
interface DateTimeFormatOptions {
|
||||||
localeMatcher?: "best fit" | "lookup" | undefined;
|
localeMatcher?: "best fit" | "lookup" | undefined;
|
||||||
|
@ -4474,7 +4486,7 @@ declare namespace Intl {
|
||||||
timeZoneName?: "short" | "long" | "shortOffset" | "longOffset" | "shortGeneric" | "longGeneric" | undefined;
|
timeZoneName?: "short" | "long" | "shortOffset" | "longOffset" | "shortGeneric" | "longGeneric" | undefined;
|
||||||
formatMatcher?: "best fit" | "basic" | undefined;
|
formatMatcher?: "best fit" | "basic" | undefined;
|
||||||
hour12?: boolean | undefined;
|
hour12?: boolean | undefined;
|
||||||
timeZone?: string | (typeof globalThis extends { Temporal: { TimeZoneProtocol: infer T; }; } ? T : undefined) | undefined
|
timeZone?: string | (typeof globalThis extends { Temporal: { TimeZoneProtocol: infer T; }; } ? T : undefined) | undefined;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface ResolvedDateTimeFormatOptions {
|
interface ResolvedDateTimeFormatOptions {
|
||||||
|
@ -4498,12 +4510,15 @@ declare namespace Intl {
|
||||||
format(date?: Date | number): string;
|
format(date?: Date | number): string;
|
||||||
resolvedOptions(): ResolvedDateTimeFormatOptions;
|
resolvedOptions(): ResolvedDateTimeFormatOptions;
|
||||||
}
|
}
|
||||||
var DateTimeFormat: {
|
|
||||||
|
interface DateTimeFormatConstructor {
|
||||||
new (locales?: string | string[], options?: DateTimeFormatOptions): DateTimeFormat;
|
new (locales?: string | string[], options?: DateTimeFormatOptions): DateTimeFormat;
|
||||||
(locales?: string | string[], options?: DateTimeFormatOptions): DateTimeFormat;
|
(locales?: string | string[], options?: DateTimeFormatOptions): DateTimeFormat;
|
||||||
supportedLocalesOf(locales: string | string[], options?: DateTimeFormatOptions): string[];
|
supportedLocalesOf(locales: string | string[], options?: DateTimeFormatOptions): string[];
|
||||||
readonly prototype: DateTimeFormat;
|
readonly prototype: DateTimeFormat;
|
||||||
};
|
}
|
||||||
|
|
||||||
|
var DateTimeFormat: DateTimeFormatConstructor;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface String {
|
interface String {
|
||||||
|
|
29
cli/tsc/dts/lib.esnext.collection.d.ts
vendored
Normal file
29
cli/tsc/dts/lib.esnext.collection.d.ts
vendored
Normal file
|
@ -0,0 +1,29 @@
|
||||||
|
/*! *****************************************************************************
|
||||||
|
Copyright (c) Microsoft Corporation. All rights reserved.
|
||||||
|
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
||||||
|
this file except in compliance with the License. You may obtain a copy of the
|
||||||
|
License at http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
|
||||||
|
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||||
|
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
||||||
|
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
||||||
|
MERCHANTABLITY OR NON-INFRINGEMENT.
|
||||||
|
|
||||||
|
See the Apache Version 2.0 License for specific language governing permissions
|
||||||
|
and limitations under the License.
|
||||||
|
***************************************************************************** */
|
||||||
|
|
||||||
|
|
||||||
|
/// <reference no-default-lib="true"/>
|
||||||
|
|
||||||
|
interface MapConstructor {
|
||||||
|
/**
|
||||||
|
* Groups members of an iterable according to the return value of the passed callback.
|
||||||
|
* @param items An iterable.
|
||||||
|
* @param keySelector A callback which will be invoked for each item in items.
|
||||||
|
*/
|
||||||
|
groupBy<K, T>(
|
||||||
|
items: Iterable<T>,
|
||||||
|
keySelector: (item: T, index: number) => K,
|
||||||
|
): Map<K, T[]>;
|
||||||
|
}
|
3
cli/tsc/dts/lib.esnext.d.ts
vendored
3
cli/tsc/dts/lib.esnext.d.ts
vendored
|
@ -22,3 +22,6 @@ and limitations under the License.
|
||||||
/// <reference lib="esnext.object" />
|
/// <reference lib="esnext.object" />
|
||||||
/// <reference lib="esnext.decorators" />
|
/// <reference lib="esnext.decorators" />
|
||||||
/// <reference lib="esnext.disposable" />
|
/// <reference lib="esnext.disposable" />
|
||||||
|
/// <reference lib="esnext.promise" />
|
||||||
|
/// <reference lib="esnext.object" />
|
||||||
|
/// <reference lib="esnext.collection" />
|
||||||
|
|
2
cli/tsc/dts/lib.esnext.disposable.d.ts
vendored
2
cli/tsc/dts/lib.esnext.disposable.d.ts
vendored
|
@ -43,7 +43,7 @@ interface SuppressedError extends Error {
|
||||||
suppressed: any;
|
suppressed: any;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface SuppressedErrorConstructor extends ErrorConstructor {
|
interface SuppressedErrorConstructor {
|
||||||
new (error: any, suppressed: any, message?: string): SuppressedError;
|
new (error: any, suppressed: any, message?: string): SuppressedError;
|
||||||
(error: any, suppressed: any, message?: string): SuppressedError;
|
(error: any, suppressed: any, message?: string): SuppressedError;
|
||||||
readonly prototype: SuppressedError;
|
readonly prototype: SuppressedError;
|
||||||
|
|
1
cli/tsc/dts/lib.esnext.full.d.ts
vendored
1
cli/tsc/dts/lib.esnext.full.d.ts
vendored
|
@ -21,3 +21,4 @@ and limitations under the License.
|
||||||
/// <reference lib="webworker.importscripts" />
|
/// <reference lib="webworker.importscripts" />
|
||||||
/// <reference lib="scripthost" />
|
/// <reference lib="scripthost" />
|
||||||
/// <reference lib="dom.iterable" />
|
/// <reference lib="dom.iterable" />
|
||||||
|
/// <reference lib="dom.asynciterable" />
|
||||||
|
|
23
cli/tsc/dts/lib.esnext.object.d.ts
vendored
23
cli/tsc/dts/lib.esnext.object.d.ts
vendored
|
@ -13,20 +13,17 @@ See the Apache Version 2.0 License for specific language governing permissions
|
||||||
and limitations under the License.
|
and limitations under the License.
|
||||||
***************************************************************************** */
|
***************************************************************************** */
|
||||||
|
|
||||||
|
|
||||||
/// <reference no-default-lib="true"/>
|
/// <reference no-default-lib="true"/>
|
||||||
|
|
||||||
// NOTE(iuioiua): taken from https://github.com/microsoft/TypeScript/issues/47171#issuecomment-1697373352
|
|
||||||
// while we wait for these types to officially ship
|
|
||||||
interface ObjectConstructor {
|
interface ObjectConstructor {
|
||||||
groupBy<Item, Key extends PropertyKey>(
|
/**
|
||||||
items: Iterable<Item>,
|
* Groups members of an iterable according to the return value of the passed callback.
|
||||||
keySelector: (item: Item, index: number) => Key,
|
* @param items An iterable.
|
||||||
): Partial<Record<Key, Item[]>>;
|
* @param keySelector A callback which will be invoked for each item in items.
|
||||||
}
|
*/
|
||||||
|
groupBy<K extends PropertyKey, T>(
|
||||||
interface MapConstructor {
|
items: Iterable<T>,
|
||||||
groupBy<Item, Key>(
|
keySelector: (item: T, index: number) => K,
|
||||||
items: Iterable<Item>,
|
): Partial<Record<K, T[]>>;
|
||||||
keySelector: (item: Item, index: number) => Key,
|
|
||||||
): Map<Key, Item[]>;
|
|
||||||
}
|
}
|
||||||
|
|
35
cli/tsc/dts/lib.esnext.promise.d.ts
vendored
Normal file
35
cli/tsc/dts/lib.esnext.promise.d.ts
vendored
Normal file
|
@ -0,0 +1,35 @@
|
||||||
|
/*! *****************************************************************************
|
||||||
|
Copyright (c) Microsoft Corporation. All rights reserved.
|
||||||
|
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
||||||
|
this file except in compliance with the License. You may obtain a copy of the
|
||||||
|
License at http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
|
||||||
|
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||||
|
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
||||||
|
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
||||||
|
MERCHANTABLITY OR NON-INFRINGEMENT.
|
||||||
|
|
||||||
|
See the Apache Version 2.0 License for specific language governing permissions
|
||||||
|
and limitations under the License.
|
||||||
|
***************************************************************************** */
|
||||||
|
|
||||||
|
|
||||||
|
/// <reference no-default-lib="true"/>
|
||||||
|
|
||||||
|
interface PromiseWithResolvers<T> {
|
||||||
|
promise: Promise<T>;
|
||||||
|
resolve: (value: T | PromiseLike<T>) => void;
|
||||||
|
reject: (reason?: any) => void;
|
||||||
|
}
|
||||||
|
|
||||||
|
interface PromiseConstructor {
|
||||||
|
/**
|
||||||
|
* Creates a new Promise and returns it in an object, along with its resolve and reject functions.
|
||||||
|
* @returns An object with the properties `promise`, `resolve`, and `reject`.
|
||||||
|
*
|
||||||
|
* ```ts
|
||||||
|
* const { promise, resolve, reject } = Promise.withResolvers<T>();
|
||||||
|
* ```
|
||||||
|
*/
|
||||||
|
withResolvers<T>(): PromiseWithResolvers<T>;
|
||||||
|
}
|
28
cli/tsc/dts/lib.webworker.asynciterable.d.ts
vendored
Normal file
28
cli/tsc/dts/lib.webworker.asynciterable.d.ts
vendored
Normal file
|
@ -0,0 +1,28 @@
|
||||||
|
/*! *****************************************************************************
|
||||||
|
Copyright (c) Microsoft Corporation. All rights reserved.
|
||||||
|
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
||||||
|
this file except in compliance with the License. You may obtain a copy of the
|
||||||
|
License at http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
|
||||||
|
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||||
|
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
||||||
|
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
||||||
|
MERCHANTABLITY OR NON-INFRINGEMENT.
|
||||||
|
|
||||||
|
See the Apache Version 2.0 License for specific language governing permissions
|
||||||
|
and limitations under the License.
|
||||||
|
***************************************************************************** */
|
||||||
|
|
||||||
|
|
||||||
|
/// <reference no-default-lib="true"/>
|
||||||
|
|
||||||
|
/////////////////////////////
|
||||||
|
/// Worker Async Iterable APIs
|
||||||
|
/////////////////////////////
|
||||||
|
|
||||||
|
interface FileSystemDirectoryHandle {
|
||||||
|
[Symbol.asyncIterator](): AsyncIterableIterator<[string, FileSystemHandle]>;
|
||||||
|
entries(): AsyncIterableIterator<[string, FileSystemHandle]>;
|
||||||
|
keys(): AsyncIterableIterator<string>;
|
||||||
|
values(): AsyncIterableIterator<FileSystemHandle>;
|
||||||
|
}
|
313
cli/tsc/dts/lib.webworker.d.ts
vendored
313
cli/tsc/dts/lib.webworker.d.ts
vendored
|
@ -182,7 +182,7 @@ interface EcdsaParams extends Algorithm {
|
||||||
}
|
}
|
||||||
|
|
||||||
interface EncodedVideoChunkInit {
|
interface EncodedVideoChunkInit {
|
||||||
data: BufferSource;
|
data: AllowSharedBufferSource;
|
||||||
duration?: number;
|
duration?: number;
|
||||||
timestamp: number;
|
timestamp: number;
|
||||||
type: EncodedVideoChunkType;
|
type: EncodedVideoChunkType;
|
||||||
|
@ -267,7 +267,6 @@ interface FontFaceDescriptors {
|
||||||
stretch?: string;
|
stretch?: string;
|
||||||
style?: string;
|
style?: string;
|
||||||
unicodeRange?: string;
|
unicodeRange?: string;
|
||||||
variant?: string;
|
|
||||||
weight?: string;
|
weight?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -432,32 +431,21 @@ interface NavigationPreloadState {
|
||||||
headerValue?: string;
|
headerValue?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface NotificationAction {
|
|
||||||
action: string;
|
|
||||||
icon?: string;
|
|
||||||
title: string;
|
|
||||||
}
|
|
||||||
|
|
||||||
interface NotificationEventInit extends ExtendableEventInit {
|
interface NotificationEventInit extends ExtendableEventInit {
|
||||||
action?: string;
|
action?: string;
|
||||||
notification: Notification;
|
notification: Notification;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface NotificationOptions {
|
interface NotificationOptions {
|
||||||
actions?: NotificationAction[];
|
|
||||||
badge?: string;
|
badge?: string;
|
||||||
body?: string;
|
body?: string;
|
||||||
data?: any;
|
data?: any;
|
||||||
dir?: NotificationDirection;
|
dir?: NotificationDirection;
|
||||||
icon?: string;
|
icon?: string;
|
||||||
image?: string;
|
|
||||||
lang?: string;
|
lang?: string;
|
||||||
renotify?: boolean;
|
|
||||||
requireInteraction?: boolean;
|
requireInteraction?: boolean;
|
||||||
silent?: boolean | null;
|
silent?: boolean | null;
|
||||||
tag?: string;
|
tag?: string;
|
||||||
timestamp?: EpochTimeStamp;
|
|
||||||
vibrate?: VibratePattern;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
interface Pbkdf2Params extends Algorithm {
|
interface Pbkdf2Params extends Algorithm {
|
||||||
|
@ -535,16 +523,21 @@ interface QueuingStrategyInit {
|
||||||
|
|
||||||
interface RTCEncodedAudioFrameMetadata {
|
interface RTCEncodedAudioFrameMetadata {
|
||||||
contributingSources?: number[];
|
contributingSources?: number[];
|
||||||
|
payloadType?: number;
|
||||||
|
sequenceNumber?: number;
|
||||||
synchronizationSource?: number;
|
synchronizationSource?: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface RTCEncodedVideoFrameMetadata {
|
interface RTCEncodedVideoFrameMetadata {
|
||||||
|
contributingSources?: number[];
|
||||||
dependencies?: number[];
|
dependencies?: number[];
|
||||||
frameId?: number;
|
frameId?: number;
|
||||||
height?: number;
|
height?: number;
|
||||||
|
payloadType?: number;
|
||||||
spatialIndex?: number;
|
spatialIndex?: number;
|
||||||
synchronizationSource?: number;
|
synchronizationSource?: number;
|
||||||
temporalIndex?: number;
|
temporalIndex?: number;
|
||||||
|
timestamp?: number;
|
||||||
width?: number;
|
width?: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -605,6 +598,7 @@ interface RequestInit {
|
||||||
method?: string;
|
method?: string;
|
||||||
/** A string to indicate whether the request will use CORS, or will be restricted to same-origin URLs. Sets request's mode. */
|
/** A string to indicate whether the request will use CORS, or will be restricted to same-origin URLs. Sets request's mode. */
|
||||||
mode?: RequestMode;
|
mode?: RequestMode;
|
||||||
|
priority?: RequestPriority;
|
||||||
/** A string indicating whether request follows redirects, results in an error upon encountering a redirect, or returns the redirect (in an opaque fashion). Sets request's redirect. */
|
/** A string indicating whether request follows redirects, results in an error upon encountering a redirect, or returns the redirect (in an opaque fashion). Sets request's redirect. */
|
||||||
redirect?: RequestRedirect;
|
redirect?: RequestRedirect;
|
||||||
/** A string whose value is a same-origin URL, "about:client", or the empty string, to set request's referrer. */
|
/** A string whose value is a same-origin URL, "about:client", or the empty string, to set request's referrer. */
|
||||||
|
@ -775,7 +769,7 @@ interface VideoDecoderConfig {
|
||||||
codedHeight?: number;
|
codedHeight?: number;
|
||||||
codedWidth?: number;
|
codedWidth?: number;
|
||||||
colorSpace?: VideoColorSpaceInit;
|
colorSpace?: VideoColorSpaceInit;
|
||||||
description?: BufferSource;
|
description?: AllowSharedBufferSource;
|
||||||
displayAspectHeight?: number;
|
displayAspectHeight?: number;
|
||||||
displayAspectWidth?: number;
|
displayAspectWidth?: number;
|
||||||
hardwareAcceleration?: HardwareAcceleration;
|
hardwareAcceleration?: HardwareAcceleration;
|
||||||
|
@ -888,7 +882,7 @@ interface WebTransportOptions {
|
||||||
}
|
}
|
||||||
|
|
||||||
interface WebTransportSendStreamOptions {
|
interface WebTransportSendStreamOptions {
|
||||||
sendOrder?: number | null;
|
sendOrder?: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface WorkerOptions {
|
interface WorkerOptions {
|
||||||
|
@ -995,7 +989,9 @@ interface AbstractWorker {
|
||||||
}
|
}
|
||||||
|
|
||||||
interface AnimationFrameProvider {
|
interface AnimationFrameProvider {
|
||||||
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/cancelAnimationFrame) */
|
||||||
cancelAnimationFrame(handle: number): void;
|
cancelAnimationFrame(handle: number): void;
|
||||||
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/requestAnimationFrame) */
|
||||||
requestAnimationFrame(callback: FrameRequestCallback): number;
|
requestAnimationFrame(callback: FrameRequestCallback): number;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1682,10 +1678,20 @@ interface CanvasTextDrawingStyles {
|
||||||
font: string;
|
font: string;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/fontKerning) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/fontKerning) */
|
||||||
fontKerning: CanvasFontKerning;
|
fontKerning: CanvasFontKerning;
|
||||||
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/fontStretch) */
|
||||||
|
fontStretch: CanvasFontStretch;
|
||||||
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/fontVariantCaps) */
|
||||||
|
fontVariantCaps: CanvasFontVariantCaps;
|
||||||
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/letterSpacing) */
|
||||||
|
letterSpacing: string;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/textAlign) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/textAlign) */
|
||||||
textAlign: CanvasTextAlign;
|
textAlign: CanvasTextAlign;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/textBaseline) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/textBaseline) */
|
||||||
textBaseline: CanvasTextBaseline;
|
textBaseline: CanvasTextBaseline;
|
||||||
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/textRendering) */
|
||||||
|
textRendering: CanvasTextRendering;
|
||||||
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/wordSpacing) */
|
||||||
|
wordSpacing: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface CanvasTransform {
|
interface CanvasTransform {
|
||||||
|
@ -2245,6 +2251,7 @@ declare var DecompressionStream: {
|
||||||
interface DedicatedWorkerGlobalScopeEventMap extends WorkerGlobalScopeEventMap {
|
interface DedicatedWorkerGlobalScopeEventMap extends WorkerGlobalScopeEventMap {
|
||||||
"message": MessageEvent;
|
"message": MessageEvent;
|
||||||
"messageerror": MessageEvent;
|
"messageerror": MessageEvent;
|
||||||
|
"rtctransform": Event;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -2263,6 +2270,8 @@ interface DedicatedWorkerGlobalScope extends WorkerGlobalScope, AnimationFramePr
|
||||||
onmessage: ((this: DedicatedWorkerGlobalScope, ev: MessageEvent) => any) | null;
|
onmessage: ((this: DedicatedWorkerGlobalScope, ev: MessageEvent) => any) | null;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/messageerror_event) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/messageerror_event) */
|
||||||
onmessageerror: ((this: DedicatedWorkerGlobalScope, ev: MessageEvent) => any) | null;
|
onmessageerror: ((this: DedicatedWorkerGlobalScope, ev: MessageEvent) => any) | null;
|
||||||
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/rtctransform_event) */
|
||||||
|
onrtctransform: ((this: DedicatedWorkerGlobalScope, ev: Event) => any) | null;
|
||||||
/**
|
/**
|
||||||
* Aborts dedicatedWorkerGlobal.
|
* Aborts dedicatedWorkerGlobal.
|
||||||
*
|
*
|
||||||
|
@ -2378,7 +2387,7 @@ interface EncodedVideoChunk {
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedVideoChunk/type) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedVideoChunk/type) */
|
||||||
readonly type: EncodedVideoChunkType;
|
readonly type: EncodedVideoChunkType;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedVideoChunk/copyTo) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedVideoChunk/copyTo) */
|
||||||
copyTo(destination: BufferSource): void;
|
copyTo(destination: AllowSharedBufferSource): void;
|
||||||
}
|
}
|
||||||
|
|
||||||
declare var EncodedVideoChunk: {
|
declare var EncodedVideoChunk: {
|
||||||
|
@ -2783,7 +2792,11 @@ interface FileReader extends EventTarget {
|
||||||
abort(): void;
|
abort(): void;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/readAsArrayBuffer) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/readAsArrayBuffer) */
|
||||||
readAsArrayBuffer(blob: Blob): void;
|
readAsArrayBuffer(blob: Blob): void;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/readAsBinaryString) */
|
/**
|
||||||
|
* @deprecated
|
||||||
|
*
|
||||||
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/readAsBinaryString)
|
||||||
|
*/
|
||||||
readAsBinaryString(blob: Blob): void;
|
readAsBinaryString(blob: Blob): void;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/readAsDataURL) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/readAsDataURL) */
|
||||||
readAsDataURL(blob: Blob): void;
|
readAsDataURL(blob: Blob): void;
|
||||||
|
@ -2960,8 +2973,6 @@ interface FontFace {
|
||||||
style: string;
|
style: string;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/unicodeRange) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/unicodeRange) */
|
||||||
unicodeRange: string;
|
unicodeRange: string;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/variant) */
|
|
||||||
variant: string;
|
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/weight) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/weight) */
|
||||||
weight: string;
|
weight: string;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/load) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/load) */
|
||||||
|
@ -4122,6 +4133,8 @@ interface NotificationEventMap {
|
||||||
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification)
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification)
|
||||||
*/
|
*/
|
||||||
interface Notification extends EventTarget {
|
interface Notification extends EventTarget {
|
||||||
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/badge) */
|
||||||
|
readonly badge: string;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/body) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/body) */
|
||||||
readonly body: string;
|
readonly body: string;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/data) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/data) */
|
||||||
|
@ -4140,6 +4153,8 @@ interface Notification extends EventTarget {
|
||||||
onerror: ((this: Notification, ev: Event) => any) | null;
|
onerror: ((this: Notification, ev: Event) => any) | null;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/show_event) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/show_event) */
|
||||||
onshow: ((this: Notification, ev: Event) => any) | null;
|
onshow: ((this: Notification, ev: Event) => any) | null;
|
||||||
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/requireInteraction) */
|
||||||
|
readonly requireInteraction: boolean;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/silent) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/silent) */
|
||||||
readonly silent: boolean | null;
|
readonly silent: boolean | null;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/tag) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/tag) */
|
||||||
|
@ -4738,9 +4753,13 @@ declare var PushSubscriptionOptions: {
|
||||||
new(): PushSubscriptionOptions;
|
new(): PushSubscriptionOptions;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedAudioFrame) */
|
||||||
interface RTCEncodedAudioFrame {
|
interface RTCEncodedAudioFrame {
|
||||||
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedAudioFrame/data) */
|
||||||
data: ArrayBuffer;
|
data: ArrayBuffer;
|
||||||
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedAudioFrame/timestamp) */
|
||||||
readonly timestamp: number;
|
readonly timestamp: number;
|
||||||
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedAudioFrame/getMetadata) */
|
||||||
getMetadata(): RTCEncodedAudioFrameMetadata;
|
getMetadata(): RTCEncodedAudioFrameMetadata;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -4749,10 +4768,15 @@ declare var RTCEncodedAudioFrame: {
|
||||||
new(): RTCEncodedAudioFrame;
|
new(): RTCEncodedAudioFrame;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedVideoFrame) */
|
||||||
interface RTCEncodedVideoFrame {
|
interface RTCEncodedVideoFrame {
|
||||||
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedVideoFrame/data) */
|
||||||
data: ArrayBuffer;
|
data: ArrayBuffer;
|
||||||
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedVideoFrame/timestamp) */
|
||||||
readonly timestamp: number;
|
readonly timestamp: number;
|
||||||
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedVideoFrame/type) */
|
||||||
readonly type: RTCEncodedVideoFrameType;
|
readonly type: RTCEncodedVideoFrameType;
|
||||||
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedVideoFrame/getMetadata) */
|
||||||
getMetadata(): RTCEncodedVideoFrameMetadata;
|
getMetadata(): RTCEncodedVideoFrameMetadata;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -4761,6 +4785,36 @@ declare var RTCEncodedVideoFrame: {
|
||||||
new(): RTCEncodedVideoFrame;
|
new(): RTCEncodedVideoFrame;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpScriptTransformer) */
|
||||||
|
interface RTCRtpScriptTransformer extends EventTarget {
|
||||||
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpScriptTransformer/options) */
|
||||||
|
readonly options: any;
|
||||||
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpScriptTransformer/readable) */
|
||||||
|
readonly readable: ReadableStream;
|
||||||
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpScriptTransformer/writable) */
|
||||||
|
readonly writable: WritableStream;
|
||||||
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpScriptTransformer/generateKeyFrame) */
|
||||||
|
generateKeyFrame(rid?: string): Promise<number>;
|
||||||
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpScriptTransformer/sendKeyFrameRequest) */
|
||||||
|
sendKeyFrameRequest(): Promise<void>;
|
||||||
|
}
|
||||||
|
|
||||||
|
declare var RTCRtpScriptTransformer: {
|
||||||
|
prototype: RTCRtpScriptTransformer;
|
||||||
|
new(): RTCRtpScriptTransformer;
|
||||||
|
};
|
||||||
|
|
||||||
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCTransformEvent) */
|
||||||
|
interface RTCTransformEvent extends Event {
|
||||||
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCTransformEvent/transformer) */
|
||||||
|
readonly transformer: RTCRtpScriptTransformer;
|
||||||
|
}
|
||||||
|
|
||||||
|
declare var RTCTransformEvent: {
|
||||||
|
prototype: RTCTransformEvent;
|
||||||
|
new(): RTCTransformEvent;
|
||||||
|
};
|
||||||
|
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableByteStreamController) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableByteStreamController) */
|
||||||
interface ReadableByteStreamController {
|
interface ReadableByteStreamController {
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableByteStreamController/byobRequest) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableByteStreamController/byobRequest) */
|
||||||
|
@ -5130,6 +5184,7 @@ interface ServiceWorkerContainer extends EventTarget {
|
||||||
oncontrollerchange: ((this: ServiceWorkerContainer, ev: Event) => any) | null;
|
oncontrollerchange: ((this: ServiceWorkerContainer, ev: Event) => any) | null;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/message_event) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/message_event) */
|
||||||
onmessage: ((this: ServiceWorkerContainer, ev: MessageEvent) => any) | null;
|
onmessage: ((this: ServiceWorkerContainer, ev: MessageEvent) => any) | null;
|
||||||
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/messageerror_event) */
|
||||||
onmessageerror: ((this: ServiceWorkerContainer, ev: MessageEvent) => any) | null;
|
onmessageerror: ((this: ServiceWorkerContainer, ev: MessageEvent) => any) | null;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/ready) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/ready) */
|
||||||
readonly ready: Promise<ServiceWorkerRegistration>;
|
readonly ready: Promise<ServiceWorkerRegistration>;
|
||||||
|
@ -5192,6 +5247,7 @@ interface ServiceWorkerGlobalScope extends WorkerGlobalScope {
|
||||||
onpushsubscriptionchange: ((this: ServiceWorkerGlobalScope, ev: Event) => any) | null;
|
onpushsubscriptionchange: ((this: ServiceWorkerGlobalScope, ev: Event) => any) | null;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/registration) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/registration) */
|
||||||
readonly registration: ServiceWorkerRegistration;
|
readonly registration: ServiceWorkerRegistration;
|
||||||
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/serviceWorker) */
|
||||||
readonly serviceWorker: ServiceWorker;
|
readonly serviceWorker: ServiceWorker;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/skipWaiting) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/skipWaiting) */
|
||||||
skipWaiting(): Promise<void>;
|
skipWaiting(): Promise<void>;
|
||||||
|
@ -5500,6 +5556,24 @@ interface TextMetrics {
|
||||||
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/actualBoundingBoxRight)
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/actualBoundingBoxRight)
|
||||||
*/
|
*/
|
||||||
readonly actualBoundingBoxRight: number;
|
readonly actualBoundingBoxRight: number;
|
||||||
|
/**
|
||||||
|
* Returns the measurement described below.
|
||||||
|
*
|
||||||
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/alphabeticBaseline)
|
||||||
|
*/
|
||||||
|
readonly alphabeticBaseline: number;
|
||||||
|
/**
|
||||||
|
* Returns the measurement described below.
|
||||||
|
*
|
||||||
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/emHeightAscent)
|
||||||
|
*/
|
||||||
|
readonly emHeightAscent: number;
|
||||||
|
/**
|
||||||
|
* Returns the measurement described below.
|
||||||
|
*
|
||||||
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/emHeightDescent)
|
||||||
|
*/
|
||||||
|
readonly emHeightDescent: number;
|
||||||
/**
|
/**
|
||||||
* Returns the measurement described below.
|
* Returns the measurement described below.
|
||||||
*
|
*
|
||||||
|
@ -5512,6 +5586,18 @@ interface TextMetrics {
|
||||||
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/fontBoundingBoxDescent)
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/fontBoundingBoxDescent)
|
||||||
*/
|
*/
|
||||||
readonly fontBoundingBoxDescent: number;
|
readonly fontBoundingBoxDescent: number;
|
||||||
|
/**
|
||||||
|
* Returns the measurement described below.
|
||||||
|
*
|
||||||
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/hangingBaseline)
|
||||||
|
*/
|
||||||
|
readonly hangingBaseline: number;
|
||||||
|
/**
|
||||||
|
* Returns the measurement described below.
|
||||||
|
*
|
||||||
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/ideographicBaseline)
|
||||||
|
*/
|
||||||
|
readonly ideographicBaseline: number;
|
||||||
/**
|
/**
|
||||||
* Returns the measurement described below.
|
* Returns the measurement described below.
|
||||||
*
|
*
|
||||||
|
@ -5773,13 +5859,13 @@ interface VideoFrame {
|
||||||
clone(): VideoFrame;
|
clone(): VideoFrame;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/close) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/close) */
|
||||||
close(): void;
|
close(): void;
|
||||||
copyTo(destination: BufferSource, options?: VideoFrameCopyToOptions): Promise<PlaneLayout[]>;
|
copyTo(destination: AllowSharedBufferSource, options?: VideoFrameCopyToOptions): Promise<PlaneLayout[]>;
|
||||||
}
|
}
|
||||||
|
|
||||||
declare var VideoFrame: {
|
declare var VideoFrame: {
|
||||||
prototype: VideoFrame;
|
prototype: VideoFrame;
|
||||||
new(image: CanvasImageSource, init?: VideoFrameInit): VideoFrame;
|
new(image: CanvasImageSource, init?: VideoFrameInit): VideoFrame;
|
||||||
new(data: BufferSource, init: VideoFrameBufferInit): VideoFrame;
|
new(data: AllowSharedBufferSource, init: VideoFrameBufferInit): VideoFrame;
|
||||||
};
|
};
|
||||||
|
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_color_buffer_float) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_color_buffer_float) */
|
||||||
|
@ -5946,13 +6032,13 @@ interface WEBGL_lose_context {
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw) */
|
||||||
interface WEBGL_multi_draw {
|
interface WEBGL_multi_draw {
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawArraysInstancedWEBGL) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawArraysInstancedWEBGL) */
|
||||||
multiDrawArraysInstancedWEBGL(mode: GLenum, firstsList: Int32Array | GLint[], firstsOffset: GLuint, countsList: Int32Array | GLsizei[], countsOffset: GLuint, instanceCountsList: Int32Array | GLsizei[], instanceCountsOffset: GLuint, drawcount: GLsizei): void;
|
multiDrawArraysInstancedWEBGL(mode: GLenum, firstsList: Int32Array | GLint[], firstsOffset: number, countsList: Int32Array | GLsizei[], countsOffset: number, instanceCountsList: Int32Array | GLsizei[], instanceCountsOffset: number, drawcount: GLsizei): void;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawArraysWEBGL) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawArraysWEBGL) */
|
||||||
multiDrawArraysWEBGL(mode: GLenum, firstsList: Int32Array | GLint[], firstsOffset: GLuint, countsList: Int32Array | GLsizei[], countsOffset: GLuint, drawcount: GLsizei): void;
|
multiDrawArraysWEBGL(mode: GLenum, firstsList: Int32Array | GLint[], firstsOffset: number, countsList: Int32Array | GLsizei[], countsOffset: number, drawcount: GLsizei): void;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawElementsInstancedWEBGL) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawElementsInstancedWEBGL) */
|
||||||
multiDrawElementsInstancedWEBGL(mode: GLenum, countsList: Int32Array | GLsizei[], countsOffset: GLuint, type: GLenum, offsetsList: Int32Array | GLsizei[], offsetsOffset: GLuint, instanceCountsList: Int32Array | GLsizei[], instanceCountsOffset: GLuint, drawcount: GLsizei): void;
|
multiDrawElementsInstancedWEBGL(mode: GLenum, countsList: Int32Array | GLsizei[], countsOffset: number, type: GLenum, offsetsList: Int32Array | GLsizei[], offsetsOffset: number, instanceCountsList: Int32Array | GLsizei[], instanceCountsOffset: number, drawcount: GLsizei): void;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawElementsWEBGL) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawElementsWEBGL) */
|
||||||
multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array | GLsizei[], countsOffset: GLuint, type: GLenum, offsetsList: Int32Array | GLsizei[], offsetsOffset: GLuint, drawcount: GLsizei): void;
|
multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array | GLsizei[], countsOffset: number, type: GLenum, offsetsList: Int32Array | GLsizei[], offsetsOffset: number, drawcount: GLsizei): void;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext) */
|
||||||
|
@ -5974,7 +6060,6 @@ declare var WebGL2RenderingContext: {
|
||||||
readonly STENCIL: 0x1802;
|
readonly STENCIL: 0x1802;
|
||||||
readonly RED: 0x1903;
|
readonly RED: 0x1903;
|
||||||
readonly RGB8: 0x8051;
|
readonly RGB8: 0x8051;
|
||||||
readonly RGBA8: 0x8058;
|
|
||||||
readonly RGB10_A2: 0x8059;
|
readonly RGB10_A2: 0x8059;
|
||||||
readonly TEXTURE_BINDING_3D: 0x806A;
|
readonly TEXTURE_BINDING_3D: 0x806A;
|
||||||
readonly UNPACK_SKIP_IMAGES: 0x806D;
|
readonly UNPACK_SKIP_IMAGES: 0x806D;
|
||||||
|
@ -6485,6 +6570,7 @@ declare var WebGL2RenderingContext: {
|
||||||
readonly RENDERBUFFER: 0x8D41;
|
readonly RENDERBUFFER: 0x8D41;
|
||||||
readonly RGBA4: 0x8056;
|
readonly RGBA4: 0x8056;
|
||||||
readonly RGB5_A1: 0x8057;
|
readonly RGB5_A1: 0x8057;
|
||||||
|
readonly RGBA8: 0x8058;
|
||||||
readonly RGB565: 0x8D62;
|
readonly RGB565: 0x8D62;
|
||||||
readonly DEPTH_COMPONENT16: 0x81A5;
|
readonly DEPTH_COMPONENT16: 0x81A5;
|
||||||
readonly STENCIL_INDEX8: 0x8D48;
|
readonly STENCIL_INDEX8: 0x8D48;
|
||||||
|
@ -6543,19 +6629,19 @@ interface WebGL2RenderingContextBase {
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) */
|
||||||
clearBufferfi(buffer: GLenum, drawbuffer: GLint, depth: GLfloat, stencil: GLint): void;
|
clearBufferfi(buffer: GLenum, drawbuffer: GLint, depth: GLfloat, stencil: GLint): void;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) */
|
||||||
clearBufferfv(buffer: GLenum, drawbuffer: GLint, values: Float32List, srcOffset?: GLuint): void;
|
clearBufferfv(buffer: GLenum, drawbuffer: GLint, values: Float32List, srcOffset?: number): void;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) */
|
||||||
clearBufferiv(buffer: GLenum, drawbuffer: GLint, values: Int32List, srcOffset?: GLuint): void;
|
clearBufferiv(buffer: GLenum, drawbuffer: GLint, values: Int32List, srcOffset?: number): void;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) */
|
||||||
clearBufferuiv(buffer: GLenum, drawbuffer: GLint, values: Uint32List, srcOffset?: GLuint): void;
|
clearBufferuiv(buffer: GLenum, drawbuffer: GLint, values: Uint32List, srcOffset?: number): void;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clientWaitSync) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clientWaitSync) */
|
||||||
clientWaitSync(sync: WebGLSync, flags: GLbitfield, timeout: GLuint64): GLenum;
|
clientWaitSync(sync: WebGLSync, flags: GLbitfield, timeout: GLuint64): GLenum;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/compressedTexImage3D) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/compressedTexImage3D) */
|
||||||
compressedTexImage3D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, imageSize: GLsizei, offset: GLintptr): void;
|
compressedTexImage3D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, imageSize: GLsizei, offset: GLintptr): void;
|
||||||
compressedTexImage3D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, srcData: ArrayBufferView, srcOffset?: GLuint, srcLengthOverride?: GLuint): void;
|
compressedTexImage3D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, srcData: ArrayBufferView, srcOffset?: number, srcLengthOverride?: GLuint): void;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/compressedTexSubImage3D) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/compressedTexSubImage3D) */
|
||||||
compressedTexSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, format: GLenum, imageSize: GLsizei, offset: GLintptr): void;
|
compressedTexSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, format: GLenum, imageSize: GLsizei, offset: GLintptr): void;
|
||||||
compressedTexSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, format: GLenum, srcData: ArrayBufferView, srcOffset?: GLuint, srcLengthOverride?: GLuint): void;
|
compressedTexSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, format: GLenum, srcData: ArrayBufferView, srcOffset?: number, srcLengthOverride?: GLuint): void;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/copyBufferSubData) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/copyBufferSubData) */
|
||||||
copyBufferSubData(readTarget: GLenum, writeTarget: GLenum, readOffset: GLintptr, writeOffset: GLintptr, size: GLsizeiptr): void;
|
copyBufferSubData(readTarget: GLenum, writeTarget: GLenum, readOffset: GLintptr, writeOffset: GLintptr, size: GLsizeiptr): void;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/copyTexSubImage3D) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/copyTexSubImage3D) */
|
||||||
|
@ -6601,7 +6687,7 @@ interface WebGL2RenderingContextBase {
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getActiveUniforms) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getActiveUniforms) */
|
||||||
getActiveUniforms(program: WebGLProgram, uniformIndices: GLuint[], pname: GLenum): any;
|
getActiveUniforms(program: WebGLProgram, uniformIndices: GLuint[], pname: GLenum): any;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getBufferSubData) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getBufferSubData) */
|
||||||
getBufferSubData(target: GLenum, srcByteOffset: GLintptr, dstBuffer: ArrayBufferView, dstOffset?: GLuint, length?: GLuint): void;
|
getBufferSubData(target: GLenum, srcByteOffset: GLintptr, dstBuffer: ArrayBufferView, dstOffset?: number, length?: GLuint): void;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getFragDataLocation) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getFragDataLocation) */
|
||||||
getFragDataLocation(program: WebGLProgram, name: string): GLint;
|
getFragDataLocation(program: WebGLProgram, name: string): GLint;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getIndexedParameter) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getIndexedParameter) */
|
||||||
|
@ -6652,7 +6738,7 @@ interface WebGL2RenderingContextBase {
|
||||||
texImage3D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, format: GLenum, type: GLenum, pboOffset: GLintptr): void;
|
texImage3D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, format: GLenum, type: GLenum, pboOffset: GLintptr): void;
|
||||||
texImage3D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;
|
texImage3D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;
|
||||||
texImage3D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, format: GLenum, type: GLenum, srcData: ArrayBufferView | null): void;
|
texImage3D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, format: GLenum, type: GLenum, srcData: ArrayBufferView | null): void;
|
||||||
texImage3D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, format: GLenum, type: GLenum, srcData: ArrayBufferView, srcOffset: GLuint): void;
|
texImage3D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, format: GLenum, type: GLenum, srcData: ArrayBufferView, srcOffset: number): void;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/texStorage2D) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/texStorage2D) */
|
||||||
texStorage2D(target: GLenum, levels: GLsizei, internalformat: GLenum, width: GLsizei, height: GLsizei): void;
|
texStorage2D(target: GLenum, levels: GLsizei, internalformat: GLenum, width: GLsizei, height: GLsizei): void;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/texStorage3D) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/texStorage3D) */
|
||||||
|
@ -6660,39 +6746,39 @@ interface WebGL2RenderingContextBase {
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/texSubImage3D) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/texSubImage3D) */
|
||||||
texSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, format: GLenum, type: GLenum, pboOffset: GLintptr): void;
|
texSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, format: GLenum, type: GLenum, pboOffset: GLintptr): void;
|
||||||
texSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, format: GLenum, type: GLenum, source: TexImageSource): void;
|
texSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, format: GLenum, type: GLenum, source: TexImageSource): void;
|
||||||
texSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, format: GLenum, type: GLenum, srcData: ArrayBufferView | null, srcOffset?: GLuint): void;
|
texSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, format: GLenum, type: GLenum, srcData: ArrayBufferView | null, srcOffset?: number): void;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/transformFeedbackVaryings) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/transformFeedbackVaryings) */
|
||||||
transformFeedbackVaryings(program: WebGLProgram, varyings: string[], bufferMode: GLenum): void;
|
transformFeedbackVaryings(program: WebGLProgram, varyings: string[], bufferMode: GLenum): void;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */
|
||||||
uniform1ui(location: WebGLUniformLocation | null, v0: GLuint): void;
|
uniform1ui(location: WebGLUniformLocation | null, v0: GLuint): void;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */
|
||||||
uniform1uiv(location: WebGLUniformLocation | null, data: Uint32List, srcOffset?: GLuint, srcLength?: GLuint): void;
|
uniform1uiv(location: WebGLUniformLocation | null, data: Uint32List, srcOffset?: number, srcLength?: GLuint): void;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */
|
||||||
uniform2ui(location: WebGLUniformLocation | null, v0: GLuint, v1: GLuint): void;
|
uniform2ui(location: WebGLUniformLocation | null, v0: GLuint, v1: GLuint): void;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */
|
||||||
uniform2uiv(location: WebGLUniformLocation | null, data: Uint32List, srcOffset?: GLuint, srcLength?: GLuint): void;
|
uniform2uiv(location: WebGLUniformLocation | null, data: Uint32List, srcOffset?: number, srcLength?: GLuint): void;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */
|
||||||
uniform3ui(location: WebGLUniformLocation | null, v0: GLuint, v1: GLuint, v2: GLuint): void;
|
uniform3ui(location: WebGLUniformLocation | null, v0: GLuint, v1: GLuint, v2: GLuint): void;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */
|
||||||
uniform3uiv(location: WebGLUniformLocation | null, data: Uint32List, srcOffset?: GLuint, srcLength?: GLuint): void;
|
uniform3uiv(location: WebGLUniformLocation | null, data: Uint32List, srcOffset?: number, srcLength?: GLuint): void;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */
|
||||||
uniform4ui(location: WebGLUniformLocation | null, v0: GLuint, v1: GLuint, v2: GLuint, v3: GLuint): void;
|
uniform4ui(location: WebGLUniformLocation | null, v0: GLuint, v1: GLuint, v2: GLuint, v3: GLuint): void;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */
|
||||||
uniform4uiv(location: WebGLUniformLocation | null, data: Uint32List, srcOffset?: GLuint, srcLength?: GLuint): void;
|
uniform4uiv(location: WebGLUniformLocation | null, data: Uint32List, srcOffset?: number, srcLength?: GLuint): void;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformBlockBinding) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformBlockBinding) */
|
||||||
uniformBlockBinding(program: WebGLProgram, uniformBlockIndex: GLuint, uniformBlockBinding: GLuint): void;
|
uniformBlockBinding(program: WebGLProgram, uniformBlockIndex: GLuint, uniformBlockBinding: GLuint): void;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */
|
||||||
uniformMatrix2x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
|
uniformMatrix2x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: number, srcLength?: GLuint): void;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */
|
||||||
uniformMatrix2x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
|
uniformMatrix2x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: number, srcLength?: GLuint): void;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */
|
||||||
uniformMatrix3x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
|
uniformMatrix3x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: number, srcLength?: GLuint): void;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */
|
||||||
uniformMatrix3x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
|
uniformMatrix3x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: number, srcLength?: GLuint): void;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */
|
||||||
uniformMatrix4x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
|
uniformMatrix4x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: number, srcLength?: GLuint): void;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */
|
||||||
uniformMatrix4x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
|
uniformMatrix4x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: number, srcLength?: GLuint): void;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/vertexAttribDivisor) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/vertexAttribDivisor) */
|
||||||
vertexAttribDivisor(index: GLuint, divisor: GLuint): void;
|
vertexAttribDivisor(index: GLuint, divisor: GLuint): void;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/vertexAttribI) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/vertexAttribI) */
|
||||||
|
@ -6719,7 +6805,6 @@ interface WebGL2RenderingContextBase {
|
||||||
readonly STENCIL: 0x1802;
|
readonly STENCIL: 0x1802;
|
||||||
readonly RED: 0x1903;
|
readonly RED: 0x1903;
|
||||||
readonly RGB8: 0x8051;
|
readonly RGB8: 0x8051;
|
||||||
readonly RGBA8: 0x8058;
|
|
||||||
readonly RGB10_A2: 0x8059;
|
readonly RGB10_A2: 0x8059;
|
||||||
readonly TEXTURE_BINDING_3D: 0x806A;
|
readonly TEXTURE_BINDING_3D: 0x806A;
|
||||||
readonly UNPACK_SKIP_IMAGES: 0x806D;
|
readonly UNPACK_SKIP_IMAGES: 0x806D;
|
||||||
|
@ -6975,55 +7060,55 @@ interface WebGL2RenderingContextBase {
|
||||||
interface WebGL2RenderingContextOverloads {
|
interface WebGL2RenderingContextOverloads {
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/bufferData) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/bufferData) */
|
||||||
bufferData(target: GLenum, size: GLsizeiptr, usage: GLenum): void;
|
bufferData(target: GLenum, size: GLsizeiptr, usage: GLenum): void;
|
||||||
bufferData(target: GLenum, srcData: BufferSource | null, usage: GLenum): void;
|
bufferData(target: GLenum, srcData: AllowSharedBufferSource | null, usage: GLenum): void;
|
||||||
bufferData(target: GLenum, srcData: ArrayBufferView, usage: GLenum, srcOffset: GLuint, length?: GLuint): void;
|
bufferData(target: GLenum, srcData: ArrayBufferView, usage: GLenum, srcOffset: number, length?: GLuint): void;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/bufferSubData) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/bufferSubData) */
|
||||||
bufferSubData(target: GLenum, dstByteOffset: GLintptr, srcData: BufferSource): void;
|
bufferSubData(target: GLenum, dstByteOffset: GLintptr, srcData: AllowSharedBufferSource): void;
|
||||||
bufferSubData(target: GLenum, dstByteOffset: GLintptr, srcData: ArrayBufferView, srcOffset: GLuint, length?: GLuint): void;
|
bufferSubData(target: GLenum, dstByteOffset: GLintptr, srcData: ArrayBufferView, srcOffset: number, length?: GLuint): void;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/compressedTexImage2D) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/compressedTexImage2D) */
|
||||||
compressedTexImage2D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, border: GLint, imageSize: GLsizei, offset: GLintptr): void;
|
compressedTexImage2D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, border: GLint, imageSize: GLsizei, offset: GLintptr): void;
|
||||||
compressedTexImage2D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, border: GLint, srcData: ArrayBufferView, srcOffset?: GLuint, srcLengthOverride?: GLuint): void;
|
compressedTexImage2D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, border: GLint, srcData: ArrayBufferView, srcOffset?: number, srcLengthOverride?: GLuint): void;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/compressedTexSubImage2D) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/compressedTexSubImage2D) */
|
||||||
compressedTexSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, imageSize: GLsizei, offset: GLintptr): void;
|
compressedTexSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, imageSize: GLsizei, offset: GLintptr): void;
|
||||||
compressedTexSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, srcData: ArrayBufferView, srcOffset?: GLuint, srcLengthOverride?: GLuint): void;
|
compressedTexSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, srcData: ArrayBufferView, srcOffset?: number, srcLengthOverride?: GLuint): void;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/readPixels) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/readPixels) */
|
||||||
readPixels(x: GLint, y: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, dstData: ArrayBufferView | null): void;
|
readPixels(x: GLint, y: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, dstData: ArrayBufferView | null): void;
|
||||||
readPixels(x: GLint, y: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, offset: GLintptr): void;
|
readPixels(x: GLint, y: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, offset: GLintptr): void;
|
||||||
readPixels(x: GLint, y: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, dstData: ArrayBufferView, dstOffset: GLuint): void;
|
readPixels(x: GLint, y: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, dstData: ArrayBufferView, dstOffset: number): void;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/texImage2D) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/texImage2D) */
|
||||||
texImage2D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type: GLenum, pixels: ArrayBufferView | null): void;
|
texImage2D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type: GLenum, pixels: ArrayBufferView | null): void;
|
||||||
texImage2D(target: GLenum, level: GLint, internalformat: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;
|
texImage2D(target: GLenum, level: GLint, internalformat: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;
|
||||||
texImage2D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type: GLenum, pboOffset: GLintptr): void;
|
texImage2D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type: GLenum, pboOffset: GLintptr): void;
|
||||||
texImage2D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;
|
texImage2D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;
|
||||||
texImage2D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type: GLenum, srcData: ArrayBufferView, srcOffset: GLuint): void;
|
texImage2D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type: GLenum, srcData: ArrayBufferView, srcOffset: number): void;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/texSubImage2D) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/texSubImage2D) */
|
||||||
texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, pixels: ArrayBufferView | null): void;
|
texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, pixels: ArrayBufferView | null): void;
|
||||||
texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;
|
texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;
|
||||||
texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, pboOffset: GLintptr): void;
|
texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, pboOffset: GLintptr): void;
|
||||||
texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, source: TexImageSource): void;
|
texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, source: TexImageSource): void;
|
||||||
texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, srcData: ArrayBufferView, srcOffset: GLuint): void;
|
texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, srcData: ArrayBufferView, srcOffset: number): void;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
|
||||||
uniform1fv(location: WebGLUniformLocation | null, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
|
uniform1fv(location: WebGLUniformLocation | null, data: Float32List, srcOffset?: number, srcLength?: GLuint): void;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
|
||||||
uniform1iv(location: WebGLUniformLocation | null, data: Int32List, srcOffset?: GLuint, srcLength?: GLuint): void;
|
uniform1iv(location: WebGLUniformLocation | null, data: Int32List, srcOffset?: number, srcLength?: GLuint): void;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
|
||||||
uniform2fv(location: WebGLUniformLocation | null, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
|
uniform2fv(location: WebGLUniformLocation | null, data: Float32List, srcOffset?: number, srcLength?: GLuint): void;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
|
||||||
uniform2iv(location: WebGLUniformLocation | null, data: Int32List, srcOffset?: GLuint, srcLength?: GLuint): void;
|
uniform2iv(location: WebGLUniformLocation | null, data: Int32List, srcOffset?: number, srcLength?: GLuint): void;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
|
||||||
uniform3fv(location: WebGLUniformLocation | null, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
|
uniform3fv(location: WebGLUniformLocation | null, data: Float32List, srcOffset?: number, srcLength?: GLuint): void;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
|
||||||
uniform3iv(location: WebGLUniformLocation | null, data: Int32List, srcOffset?: GLuint, srcLength?: GLuint): void;
|
uniform3iv(location: WebGLUniformLocation | null, data: Int32List, srcOffset?: number, srcLength?: GLuint): void;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
|
||||||
uniform4fv(location: WebGLUniformLocation | null, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
|
uniform4fv(location: WebGLUniformLocation | null, data: Float32List, srcOffset?: number, srcLength?: GLuint): void;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
|
||||||
uniform4iv(location: WebGLUniformLocation | null, data: Int32List, srcOffset?: GLuint, srcLength?: GLuint): void;
|
uniform4iv(location: WebGLUniformLocation | null, data: Int32List, srcOffset?: number, srcLength?: GLuint): void;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */
|
||||||
uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
|
uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: number, srcLength?: GLuint): void;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */
|
||||||
uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
|
uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: number, srcLength?: GLuint): void;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */
|
||||||
uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
|
uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: number, srcLength?: GLuint): void;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -7392,6 +7477,7 @@ declare var WebGLRenderingContext: {
|
||||||
readonly RENDERBUFFER: 0x8D41;
|
readonly RENDERBUFFER: 0x8D41;
|
||||||
readonly RGBA4: 0x8056;
|
readonly RGBA4: 0x8056;
|
||||||
readonly RGB5_A1: 0x8057;
|
readonly RGB5_A1: 0x8057;
|
||||||
|
readonly RGBA8: 0x8058;
|
||||||
readonly RGB565: 0x8D62;
|
readonly RGB565: 0x8D62;
|
||||||
readonly DEPTH_COMPONENT16: 0x81A5;
|
readonly DEPTH_COMPONENT16: 0x81A5;
|
||||||
readonly STENCIL_INDEX8: 0x8D48;
|
readonly STENCIL_INDEX8: 0x8D48;
|
||||||
|
@ -7965,6 +8051,7 @@ interface WebGLRenderingContextBase {
|
||||||
readonly RENDERBUFFER: 0x8D41;
|
readonly RENDERBUFFER: 0x8D41;
|
||||||
readonly RGBA4: 0x8056;
|
readonly RGBA4: 0x8056;
|
||||||
readonly RGB5_A1: 0x8057;
|
readonly RGB5_A1: 0x8057;
|
||||||
|
readonly RGBA8: 0x8058;
|
||||||
readonly RGB565: 0x8D62;
|
readonly RGB565: 0x8D62;
|
||||||
readonly DEPTH_COMPONENT16: 0x81A5;
|
readonly DEPTH_COMPONENT16: 0x81A5;
|
||||||
readonly STENCIL_INDEX8: 0x8D48;
|
readonly STENCIL_INDEX8: 0x8D48;
|
||||||
|
@ -8006,9 +8093,9 @@ interface WebGLRenderingContextBase {
|
||||||
interface WebGLRenderingContextOverloads {
|
interface WebGLRenderingContextOverloads {
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/bufferData) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/bufferData) */
|
||||||
bufferData(target: GLenum, size: GLsizeiptr, usage: GLenum): void;
|
bufferData(target: GLenum, size: GLsizeiptr, usage: GLenum): void;
|
||||||
bufferData(target: GLenum, data: BufferSource | null, usage: GLenum): void;
|
bufferData(target: GLenum, data: AllowSharedBufferSource | null, usage: GLenum): void;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/bufferSubData) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/bufferSubData) */
|
||||||
bufferSubData(target: GLenum, offset: GLintptr, data: BufferSource): void;
|
bufferSubData(target: GLenum, offset: GLintptr, data: AllowSharedBufferSource): void;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/compressedTexImage2D) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/compressedTexImage2D) */
|
||||||
compressedTexImage2D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, border: GLint, data: ArrayBufferView): void;
|
compressedTexImage2D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, border: GLint, data: ArrayBufferView): void;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/compressedTexSubImage2D) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/compressedTexSubImage2D) */
|
||||||
|
@ -8290,13 +8377,13 @@ interface WebTransportDatagramDuplexStream {
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/incomingHighWaterMark) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/incomingHighWaterMark) */
|
||||||
incomingHighWaterMark: number;
|
incomingHighWaterMark: number;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/incomingMaxAge) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/incomingMaxAge) */
|
||||||
incomingMaxAge: number;
|
incomingMaxAge: number | null;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/maxDatagramSize) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/maxDatagramSize) */
|
||||||
readonly maxDatagramSize: number;
|
readonly maxDatagramSize: number;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/outgoingHighWaterMark) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/outgoingHighWaterMark) */
|
||||||
outgoingHighWaterMark: number;
|
outgoingHighWaterMark: number;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/outgoingMaxAge) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/outgoingMaxAge) */
|
||||||
outgoingMaxAge: number;
|
outgoingMaxAge: number | null;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/readable) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/readable) */
|
||||||
readonly readable: ReadableStream;
|
readonly readable: ReadableStream;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/writable) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/writable) */
|
||||||
|
@ -8792,44 +8879,44 @@ declare var XMLHttpRequestUpload: {
|
||||||
|
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console) */
|
||||||
interface Console {
|
interface Console {
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/assert) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/assert_static) */
|
||||||
assert(condition?: boolean, ...data: any[]): void;
|
assert(condition?: boolean, ...data: any[]): void;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/clear) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/clear_static) */
|
||||||
clear(): void;
|
clear(): void;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/count) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/count_static) */
|
||||||
count(label?: string): void;
|
count(label?: string): void;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/countReset) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/countReset_static) */
|
||||||
countReset(label?: string): void;
|
countReset(label?: string): void;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/debug) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/debug_static) */
|
||||||
debug(...data: any[]): void;
|
debug(...data: any[]): void;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/dir) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/dir_static) */
|
||||||
dir(item?: any, options?: any): void;
|
dir(item?: any, options?: any): void;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/dirxml) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/dirxml_static) */
|
||||||
dirxml(...data: any[]): void;
|
dirxml(...data: any[]): void;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/error) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/error_static) */
|
||||||
error(...data: any[]): void;
|
error(...data: any[]): void;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/group) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/group_static) */
|
||||||
group(...data: any[]): void;
|
group(...data: any[]): void;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/groupCollapsed) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/groupCollapsed_static) */
|
||||||
groupCollapsed(...data: any[]): void;
|
groupCollapsed(...data: any[]): void;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/groupEnd) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/groupEnd_static) */
|
||||||
groupEnd(): void;
|
groupEnd(): void;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/info) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/info_static) */
|
||||||
info(...data: any[]): void;
|
info(...data: any[]): void;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/log) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/log_static) */
|
||||||
log(...data: any[]): void;
|
log(...data: any[]): void;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/table) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/table_static) */
|
||||||
table(tabularData?: any, properties?: string[]): void;
|
table(tabularData?: any, properties?: string[]): void;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/time) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/time_static) */
|
||||||
time(label?: string): void;
|
time(label?: string): void;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/timeEnd) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/timeEnd_static) */
|
||||||
timeEnd(label?: string): void;
|
timeEnd(label?: string): void;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/timeLog) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/timeLog_static) */
|
||||||
timeLog(label?: string, ...data: any[]): void;
|
timeLog(label?: string, ...data: any[]): void;
|
||||||
timeStamp(label?: string): void;
|
timeStamp(label?: string): void;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/trace) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/trace_static) */
|
||||||
trace(...data: any[]): void;
|
trace(...data: any[]): void;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/warn) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/warn_static) */
|
||||||
warn(...data: any[]): void;
|
warn(...data: any[]): void;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -8845,11 +8932,11 @@ declare namespace WebAssembly {
|
||||||
(message?: string): CompileError;
|
(message?: string): CompileError;
|
||||||
};
|
};
|
||||||
|
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Global) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Global) */
|
||||||
interface Global<T extends ValueType = ValueType> {
|
interface Global<T extends ValueType = ValueType> {
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Global/value) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Global/value) */
|
||||||
value: ValueTypeMap[T];
|
value: ValueTypeMap[T];
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Global/valueOf) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Global/valueOf) */
|
||||||
valueOf(): ValueTypeMap[T];
|
valueOf(): ValueTypeMap[T];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -8858,9 +8945,9 @@ declare namespace WebAssembly {
|
||||||
new<T extends ValueType = ValueType>(descriptor: GlobalDescriptor<T>, v?: ValueTypeMap[T]): Global<T>;
|
new<T extends ValueType = ValueType>(descriptor: GlobalDescriptor<T>, v?: ValueTypeMap[T]): Global<T>;
|
||||||
};
|
};
|
||||||
|
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Instance) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Instance) */
|
||||||
interface Instance {
|
interface Instance {
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Instance/exports) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Instance/exports) */
|
||||||
readonly exports: Exports;
|
readonly exports: Exports;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -8878,11 +8965,11 @@ declare namespace WebAssembly {
|
||||||
(message?: string): LinkError;
|
(message?: string): LinkError;
|
||||||
};
|
};
|
||||||
|
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Memory) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Memory) */
|
||||||
interface Memory {
|
interface Memory {
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Memory/buffer) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Memory/buffer) */
|
||||||
readonly buffer: ArrayBuffer;
|
readonly buffer: ArrayBuffer;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Memory/grow) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Memory/grow) */
|
||||||
grow(delta: number): number;
|
grow(delta: number): number;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -8891,18 +8978,18 @@ declare namespace WebAssembly {
|
||||||
new(descriptor: MemoryDescriptor): Memory;
|
new(descriptor: MemoryDescriptor): Memory;
|
||||||
};
|
};
|
||||||
|
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Module) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Module) */
|
||||||
interface Module {
|
interface Module {
|
||||||
}
|
}
|
||||||
|
|
||||||
var Module: {
|
var Module: {
|
||||||
prototype: Module;
|
prototype: Module;
|
||||||
new(bytes: BufferSource): Module;
|
new(bytes: BufferSource): Module;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Module/customSections) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Module/customSections_static) */
|
||||||
customSections(moduleObject: Module, sectionName: string): ArrayBuffer[];
|
customSections(moduleObject: Module, sectionName: string): ArrayBuffer[];
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Module/exports) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Module/exports_static) */
|
||||||
exports(moduleObject: Module): ModuleExportDescriptor[];
|
exports(moduleObject: Module): ModuleExportDescriptor[];
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Module/imports) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Module/imports_static) */
|
||||||
imports(moduleObject: Module): ModuleImportDescriptor[];
|
imports(moduleObject: Module): ModuleImportDescriptor[];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -8915,15 +9002,15 @@ declare namespace WebAssembly {
|
||||||
(message?: string): RuntimeError;
|
(message?: string): RuntimeError;
|
||||||
};
|
};
|
||||||
|
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Table) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Table) */
|
||||||
interface Table {
|
interface Table {
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Table/length) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Table/length) */
|
||||||
readonly length: number;
|
readonly length: number;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Table/get) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Table/get) */
|
||||||
get(index: number): any;
|
get(index: number): any;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Table/grow) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Table/grow) */
|
||||||
grow(delta: number, value?: any): number;
|
grow(delta: number, value?: any): number;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Table/set) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Table/set) */
|
||||||
set(index: number, value?: any): void;
|
set(index: number, value?: any): void;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -8983,16 +9070,16 @@ declare namespace WebAssembly {
|
||||||
type Imports = Record<string, ModuleImports>;
|
type Imports = Record<string, ModuleImports>;
|
||||||
type ModuleImports = Record<string, ImportValue>;
|
type ModuleImports = Record<string, ImportValue>;
|
||||||
type ValueType = keyof ValueTypeMap;
|
type ValueType = keyof ValueTypeMap;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/compile) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/compile_static) */
|
||||||
function compile(bytes: BufferSource): Promise<Module>;
|
function compile(bytes: BufferSource): Promise<Module>;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/compileStreaming) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/compileStreaming_static) */
|
||||||
function compileStreaming(source: Response | PromiseLike<Response>): Promise<Module>;
|
function compileStreaming(source: Response | PromiseLike<Response>): Promise<Module>;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/instantiate) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/instantiate_static) */
|
||||||
function instantiate(bytes: BufferSource, importObject?: Imports): Promise<WebAssemblyInstantiatedSource>;
|
function instantiate(bytes: BufferSource, importObject?: Imports): Promise<WebAssemblyInstantiatedSource>;
|
||||||
function instantiate(moduleObject: Module, importObject?: Imports): Promise<Instance>;
|
function instantiate(moduleObject: Module, importObject?: Imports): Promise<Instance>;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/instantiateStreaming) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/instantiateStreaming_static) */
|
||||||
function instantiateStreaming(source: Response | PromiseLike<Response>, importObject?: Imports): Promise<WebAssemblyInstantiatedSource>;
|
function instantiateStreaming(source: Response | PromiseLike<Response>, importObject?: Imports): Promise<WebAssemblyInstantiatedSource>;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/validate) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/validate_static) */
|
||||||
function validate(bytes: BufferSource): boolean;
|
function validate(bytes: BufferSource): boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -9086,6 +9173,8 @@ declare var name: string;
|
||||||
declare var onmessage: ((this: DedicatedWorkerGlobalScope, ev: MessageEvent) => any) | null;
|
declare var onmessage: ((this: DedicatedWorkerGlobalScope, ev: MessageEvent) => any) | null;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/messageerror_event) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/messageerror_event) */
|
||||||
declare var onmessageerror: ((this: DedicatedWorkerGlobalScope, ev: MessageEvent) => any) | null;
|
declare var onmessageerror: ((this: DedicatedWorkerGlobalScope, ev: MessageEvent) => any) | null;
|
||||||
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/rtctransform_event) */
|
||||||
|
declare var onrtctransform: ((this: DedicatedWorkerGlobalScope, ev: Event) => any) | null;
|
||||||
/**
|
/**
|
||||||
* Aborts dedicatedWorkerGlobal.
|
* Aborts dedicatedWorkerGlobal.
|
||||||
*
|
*
|
||||||
|
@ -9188,7 +9277,9 @@ declare function setInterval(handler: TimerHandler, timeout?: number, ...argumen
|
||||||
declare function setTimeout(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;
|
declare function setTimeout(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/structuredClone) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/structuredClone) */
|
||||||
declare function structuredClone<T = any>(value: T, options?: StructuredSerializeOptions): T;
|
declare function structuredClone<T = any>(value: T, options?: StructuredSerializeOptions): T;
|
||||||
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/cancelAnimationFrame) */
|
||||||
declare function cancelAnimationFrame(handle: number): void;
|
declare function cancelAnimationFrame(handle: number): void;
|
||||||
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/requestAnimationFrame) */
|
||||||
declare function requestAnimationFrame(callback: FrameRequestCallback): number;
|
declare function requestAnimationFrame(callback: FrameRequestCallback): number;
|
||||||
declare function addEventListener<K extends keyof DedicatedWorkerGlobalScopeEventMap>(type: K, listener: (this: DedicatedWorkerGlobalScope, ev: DedicatedWorkerGlobalScopeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
declare function addEventListener<K extends keyof DedicatedWorkerGlobalScopeEventMap>(type: K, listener: (this: DedicatedWorkerGlobalScope, ev: DedicatedWorkerGlobalScopeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
||||||
declare function addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
declare function addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
||||||
|
@ -9244,7 +9335,6 @@ type TexImageSource = ImageBitmap | ImageData | OffscreenCanvas | VideoFrame;
|
||||||
type TimerHandler = string | Function;
|
type TimerHandler = string | Function;
|
||||||
type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | ReadableStream | WritableStream | TransformStream | VideoFrame | ArrayBuffer;
|
type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | ReadableStream | WritableStream | TransformStream | VideoFrame | ArrayBuffer;
|
||||||
type Uint32List = Uint32Array | GLuint[];
|
type Uint32List = Uint32Array | GLuint[];
|
||||||
type VibratePattern = number | number[];
|
|
||||||
type XMLHttpRequestBodyInit = Blob | BufferSource | FormData | URLSearchParams | string;
|
type XMLHttpRequestBodyInit = Blob | BufferSource | FormData | URLSearchParams | string;
|
||||||
type AlphaOption = "discard" | "keep";
|
type AlphaOption = "discard" | "keep";
|
||||||
type AvcBitstreamFormat = "annexb" | "avc";
|
type AvcBitstreamFormat = "annexb" | "avc";
|
||||||
|
@ -9306,6 +9396,7 @@ type RequestCache = "default" | "force-cache" | "no-cache" | "no-store" | "only-
|
||||||
type RequestCredentials = "include" | "omit" | "same-origin";
|
type RequestCredentials = "include" | "omit" | "same-origin";
|
||||||
type RequestDestination = "" | "audio" | "audioworklet" | "document" | "embed" | "font" | "frame" | "iframe" | "image" | "manifest" | "object" | "paintworklet" | "report" | "script" | "sharedworker" | "style" | "track" | "video" | "worker" | "xslt";
|
type RequestDestination = "" | "audio" | "audioworklet" | "document" | "embed" | "font" | "frame" | "iframe" | "image" | "manifest" | "object" | "paintworklet" | "report" | "script" | "sharedworker" | "style" | "track" | "video" | "worker" | "xslt";
|
||||||
type RequestMode = "cors" | "navigate" | "no-cors" | "same-origin";
|
type RequestMode = "cors" | "navigate" | "no-cors" | "same-origin";
|
||||||
|
type RequestPriority = "auto" | "high" | "low";
|
||||||
type RequestRedirect = "error" | "follow" | "manual";
|
type RequestRedirect = "error" | "follow" | "manual";
|
||||||
type ResizeQuality = "high" | "low" | "medium" | "pixelated";
|
type ResizeQuality = "high" | "low" | "medium" | "pixelated";
|
||||||
type ResponseType = "basic" | "cors" | "default" | "error" | "opaque" | "opaqueredirect";
|
type ResponseType = "basic" | "cors" | "default" | "error" | "opaque" | "opaqueredirect";
|
||||||
|
|
57
cli/tsc/dts/lib.webworker.iterable.d.ts
vendored
57
cli/tsc/dts/lib.webworker.iterable.d.ts
vendored
|
@ -127,6 +127,7 @@ interface SubtleCrypto {
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/deriveKey) */
|
/** [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>;
|
deriveKey(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, derivedKeyType: AlgorithmIdentifier | AesDerivedKeyParams | HmacImportParams | HkdfParams | Pbkdf2Params, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKey>;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/generateKey) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/generateKey) */
|
||||||
|
generateKey(algorithm: "Ed25519", extractable: boolean, keyUsages: ReadonlyArray<"sign" | "verify">): Promise<CryptoKeyPair>;
|
||||||
generateKey(algorithm: RsaHashedKeyGenParams | EcKeyGenParams, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKeyPair>;
|
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: AesKeyGenParams | HmacKeyGenParams | Pbkdf2Params, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>;
|
||||||
generateKey(algorithm: AlgorithmIdentifier, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKeyPair | CryptoKey>;
|
generateKey(algorithm: AlgorithmIdentifier, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKeyPair | CryptoKey>;
|
||||||
|
@ -154,22 +155,22 @@ interface WEBGL_draw_buffers {
|
||||||
|
|
||||||
interface WEBGL_multi_draw {
|
interface WEBGL_multi_draw {
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawArraysInstancedWEBGL) */
|
/** [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;
|
multiDrawArraysInstancedWEBGL(mode: GLenum, firstsList: Int32Array | Iterable<GLint>, firstsOffset: number, countsList: Int32Array | Iterable<GLsizei>, countsOffset: number, instanceCountsList: Int32Array | Iterable<GLsizei>, instanceCountsOffset: number, drawcount: GLsizei): void;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawArraysWEBGL) */
|
/** [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;
|
multiDrawArraysWEBGL(mode: GLenum, firstsList: Int32Array | Iterable<GLint>, firstsOffset: number, countsList: Int32Array | Iterable<GLsizei>, countsOffset: number, drawcount: GLsizei): void;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawElementsInstancedWEBGL) */
|
/** [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;
|
multiDrawElementsInstancedWEBGL(mode: GLenum, countsList: Int32Array | Iterable<GLsizei>, countsOffset: number, type: GLenum, offsetsList: Int32Array | Iterable<GLsizei>, offsetsOffset: number, instanceCountsList: Int32Array | Iterable<GLsizei>, instanceCountsOffset: number, drawcount: GLsizei): void;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawElementsWEBGL) */
|
/** [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;
|
multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array | Iterable<GLsizei>, countsOffset: number, type: GLenum, offsetsList: Int32Array | Iterable<GLsizei>, offsetsOffset: number, drawcount: GLsizei): void;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface WebGL2RenderingContextBase {
|
interface WebGL2RenderingContextBase {
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) */
|
||||||
clearBufferfv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLfloat>, srcOffset?: GLuint): void;
|
clearBufferfv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLfloat>, srcOffset?: number): void;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) */
|
||||||
clearBufferiv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLint>, srcOffset?: GLuint): void;
|
clearBufferiv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLint>, srcOffset?: number): void;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) */
|
||||||
clearBufferuiv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLuint>, srcOffset?: GLuint): void;
|
clearBufferuiv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLuint>, srcOffset?: number): void;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/drawBuffers) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/drawBuffers) */
|
||||||
drawBuffers(buffers: Iterable<GLenum>): void;
|
drawBuffers(buffers: Iterable<GLenum>): void;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getActiveUniforms) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getActiveUniforms) */
|
||||||
|
@ -183,25 +184,25 @@ interface WebGL2RenderingContextBase {
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/transformFeedbackVaryings) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/transformFeedbackVaryings) */
|
||||||
transformFeedbackVaryings(program: WebGLProgram, varyings: Iterable<string>, bufferMode: GLenum): void;
|
transformFeedbackVaryings(program: WebGLProgram, varyings: Iterable<string>, bufferMode: GLenum): void;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */
|
||||||
uniform1uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: GLuint, srcLength?: GLuint): void;
|
uniform1uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: number, srcLength?: GLuint): void;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */
|
||||||
uniform2uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: GLuint, srcLength?: GLuint): void;
|
uniform2uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: number, srcLength?: GLuint): void;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */
|
||||||
uniform3uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: GLuint, srcLength?: GLuint): void;
|
uniform3uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: number, srcLength?: GLuint): void;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */
|
||||||
uniform4uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: GLuint, srcLength?: GLuint): void;
|
uniform4uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: number, srcLength?: GLuint): void;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */
|
/** [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;
|
uniformMatrix2x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */
|
/** [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;
|
uniformMatrix2x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */
|
/** [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;
|
uniformMatrix3x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */
|
/** [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;
|
uniformMatrix3x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */
|
/** [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;
|
uniformMatrix4x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */
|
/** [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;
|
uniformMatrix4x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/vertexAttribI) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/vertexAttribI) */
|
||||||
vertexAttribI4iv(index: GLuint, values: Iterable<GLint>): void;
|
vertexAttribI4iv(index: GLuint, values: Iterable<GLint>): void;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/vertexAttribI) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/vertexAttribI) */
|
||||||
|
@ -210,27 +211,27 @@ interface WebGL2RenderingContextBase {
|
||||||
|
|
||||||
interface WebGL2RenderingContextOverloads {
|
interface WebGL2RenderingContextOverloads {
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
|
||||||
uniform1fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
|
uniform1fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
|
||||||
uniform1iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: GLuint, srcLength?: GLuint): void;
|
uniform1iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: number, srcLength?: GLuint): void;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
|
||||||
uniform2fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
|
uniform2fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
|
||||||
uniform2iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: GLuint, srcLength?: GLuint): void;
|
uniform2iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: number, srcLength?: GLuint): void;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
|
||||||
uniform3fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
|
uniform3fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
|
||||||
uniform3iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: GLuint, srcLength?: GLuint): void;
|
uniform3iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: number, srcLength?: GLuint): void;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
|
||||||
uniform4fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
|
uniform4fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
|
||||||
uniform4iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: GLuint, srcLength?: GLuint): void;
|
uniform4iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: number, srcLength?: GLuint): void;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */
|
/** [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;
|
uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */
|
/** [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;
|
uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */
|
/** [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;
|
uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface WebGLRenderingContextBase {
|
interface WebGLRenderingContextBase {
|
||||||
|
|
123
cli/tsc/dts/typescript.d.ts
vendored
123
cli/tsc/dts/typescript.d.ts
vendored
|
@ -49,9 +49,11 @@ declare namespace ts {
|
||||||
readonly fileName: Path;
|
readonly fileName: Path;
|
||||||
readonly packageName: string;
|
readonly packageName: string;
|
||||||
readonly projectRootPath: Path;
|
readonly projectRootPath: Path;
|
||||||
|
readonly id: number;
|
||||||
}
|
}
|
||||||
interface PackageInstalledResponse extends ProjectResponse {
|
interface PackageInstalledResponse extends ProjectResponse {
|
||||||
readonly kind: ActionPackageInstalled;
|
readonly kind: ActionPackageInstalled;
|
||||||
|
readonly id: number;
|
||||||
readonly success: boolean;
|
readonly success: boolean;
|
||||||
readonly message: string;
|
readonly message: string;
|
||||||
}
|
}
|
||||||
|
@ -203,7 +205,7 @@ declare namespace ts {
|
||||||
/**
|
/**
|
||||||
* Request to reload the project structure for all the opened files
|
* Request to reload the project structure for all the opened files
|
||||||
*/
|
*/
|
||||||
interface ReloadProjectsRequest extends Message {
|
interface ReloadProjectsRequest extends Request {
|
||||||
command: CommandTypes.ReloadProjects;
|
command: CommandTypes.ReloadProjects;
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
|
@ -1085,6 +1087,7 @@ declare namespace ts {
|
||||||
displayName: string;
|
displayName: string;
|
||||||
/**
|
/**
|
||||||
* Full display name of item to be renamed.
|
* Full display name of item to be renamed.
|
||||||
|
* If item to be renamed is a file, then this is the original text of the module specifer
|
||||||
*/
|
*/
|
||||||
fullDisplayName: string;
|
fullDisplayName: string;
|
||||||
/**
|
/**
|
||||||
|
@ -2930,6 +2933,13 @@ declare namespace ts {
|
||||||
* Default: `false`
|
* Default: `false`
|
||||||
*/
|
*/
|
||||||
readonly organizeImportsCaseFirst?: "upper" | "lower" | false;
|
readonly organizeImportsCaseFirst?: "upper" | "lower" | false;
|
||||||
|
/**
|
||||||
|
* Indicates where named type-only imports should sort. "inline" sorts named imports without regard to if the import is
|
||||||
|
* type-only.
|
||||||
|
*
|
||||||
|
* Default: `last`
|
||||||
|
*/
|
||||||
|
readonly organizeImportsTypeOrder?: "last" | "first" | "inline";
|
||||||
/**
|
/**
|
||||||
* Indicates whether {@link ReferencesResponseItem.lineText} is supported.
|
* Indicates whether {@link ReferencesResponseItem.lineText} is supported.
|
||||||
*/
|
*/
|
||||||
|
@ -3026,10 +3036,18 @@ declare namespace ts {
|
||||||
ES6 = "ES6",
|
ES6 = "ES6",
|
||||||
ES2015 = "ES2015",
|
ES2015 = "ES2015",
|
||||||
ESNext = "ESNext",
|
ESNext = "ESNext",
|
||||||
|
Node16 = "Node16",
|
||||||
|
NodeNext = "NodeNext",
|
||||||
|
Preserve = "Preserve",
|
||||||
}
|
}
|
||||||
enum ModuleResolutionKind {
|
enum ModuleResolutionKind {
|
||||||
Classic = "Classic",
|
Classic = "Classic",
|
||||||
|
/** @deprecated Renamed to `Node10` */
|
||||||
Node = "Node",
|
Node = "Node",
|
||||||
|
Node10 = "Node10",
|
||||||
|
Node16 = "Node16",
|
||||||
|
NodeNext = "NodeNext",
|
||||||
|
Bundler = "Bundler",
|
||||||
}
|
}
|
||||||
enum NewLineKind {
|
enum NewLineKind {
|
||||||
Crlf = "Crlf",
|
Crlf = "Crlf",
|
||||||
|
@ -3314,18 +3332,6 @@ declare namespace ts {
|
||||||
* Last version that was reported.
|
* Last version that was reported.
|
||||||
*/
|
*/
|
||||||
private lastReportedVersion;
|
private lastReportedVersion;
|
||||||
/**
|
|
||||||
* Current project's program version. (incremented everytime new program is created that is not complete reuse from the old one)
|
|
||||||
* This property is changed in 'updateGraph' based on the set of files in program
|
|
||||||
*/
|
|
||||||
private projectProgramVersion;
|
|
||||||
/**
|
|
||||||
* Current version of the project state. It is changed when:
|
|
||||||
* - new root file was added/removed
|
|
||||||
* - edit happen in some file that is currently included in the project.
|
|
||||||
* This property is different from projectStructureVersion since in most cases edits don't affect set of files in the project
|
|
||||||
*/
|
|
||||||
private projectStateVersion;
|
|
||||||
protected projectErrors: Diagnostic[] | undefined;
|
protected projectErrors: Diagnostic[] | undefined;
|
||||||
protected isInitialLoadPending: () => boolean;
|
protected isInitialLoadPending: () => boolean;
|
||||||
private readonly cancellationToken;
|
private readonly cancellationToken;
|
||||||
|
@ -3900,6 +3906,7 @@ declare namespace ts {
|
||||||
private static escapeFilenameForRegex;
|
private static escapeFilenameForRegex;
|
||||||
resetSafeList(): void;
|
resetSafeList(): void;
|
||||||
applySafeList(proj: protocol.ExternalProject): NormalizedPath[];
|
applySafeList(proj: protocol.ExternalProject): NormalizedPath[];
|
||||||
|
private applySafeListWorker;
|
||||||
openExternalProject(proj: protocol.ExternalProject): void;
|
openExternalProject(proj: protocol.ExternalProject): void;
|
||||||
hasDeferredExtension(): boolean;
|
hasDeferredExtension(): boolean;
|
||||||
private enableRequestedPluginsAsync;
|
private enableRequestedPluginsAsync;
|
||||||
|
@ -4164,7 +4171,7 @@ declare namespace ts {
|
||||||
subPath: string | undefined;
|
subPath: string | undefined;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
const versionMajorMinor = "5.3";
|
const versionMajorMinor = "5.4";
|
||||||
/** The version of the TypeScript compiler release */
|
/** The version of the TypeScript compiler release */
|
||||||
const version: string;
|
const version: string;
|
||||||
/**
|
/**
|
||||||
|
@ -6682,6 +6689,22 @@ declare namespace ts {
|
||||||
};
|
};
|
||||||
isSourceFileFromExternalLibrary(file: SourceFile): boolean;
|
isSourceFileFromExternalLibrary(file: SourceFile): boolean;
|
||||||
isSourceFileDefaultLibrary(file: SourceFile): boolean;
|
isSourceFileDefaultLibrary(file: SourceFile): boolean;
|
||||||
|
/**
|
||||||
|
* Calculates the final resolution mode for a given module reference node. This is the resolution mode explicitly provided via import
|
||||||
|
* attributes, if present, or the syntax the usage would have if emitted to JavaScript. In `--module node16` or `nodenext`, this may
|
||||||
|
* depend on the file's `impliedNodeFormat`. In `--module preserve`, it depends only on the input syntax of the reference. In other
|
||||||
|
* `module` modes, when overriding import attributes are not provided, this function returns `undefined`, as the result would have no
|
||||||
|
* impact on module resolution, emit, or type checking.
|
||||||
|
*/
|
||||||
|
getModeForUsageLocation(file: SourceFile, usage: StringLiteralLike): ResolutionMode;
|
||||||
|
/**
|
||||||
|
* Calculates the final resolution mode for an import at some index within a file's `imports` list. This is the resolution mode
|
||||||
|
* explicitly provided via import attributes, if present, or the syntax the usage would have if emitted to JavaScript. In
|
||||||
|
* `--module node16` or `nodenext`, this may depend on the file's `impliedNodeFormat`. In `--module preserve`, it depends only on the
|
||||||
|
* input syntax of the reference. In other `module` modes, when overriding import attributes are not provided, this function returns
|
||||||
|
* `undefined`, as the result would have no impact on module resolution, emit, or type checking.
|
||||||
|
*/
|
||||||
|
getModeForResolutionAtIndex(file: SourceFile, index: number): ResolutionMode;
|
||||||
getProjectReferences(): readonly ProjectReference[] | undefined;
|
getProjectReferences(): readonly ProjectReference[] | undefined;
|
||||||
getResolvedProjectReferences(): readonly (ResolvedProjectReference | undefined)[] | undefined;
|
getResolvedProjectReferences(): readonly (ResolvedProjectReference | undefined)[] | undefined;
|
||||||
}
|
}
|
||||||
|
@ -6861,6 +6884,20 @@ declare namespace ts {
|
||||||
* is `never`. Instead, use `type.flags & TypeFlags.Never`.
|
* is `never`. Instead, use `type.flags & TypeFlags.Never`.
|
||||||
*/
|
*/
|
||||||
getNeverType(): Type;
|
getNeverType(): Type;
|
||||||
|
/**
|
||||||
|
* Returns true if the "source" type is assignable to the "target" type.
|
||||||
|
*
|
||||||
|
* ```ts
|
||||||
|
* declare const abcLiteral: ts.Type; // Type of "abc"
|
||||||
|
* declare const stringType: ts.Type; // Type of string
|
||||||
|
*
|
||||||
|
* isTypeAssignableTo(abcLiteral, abcLiteral); // true; "abc" is assignable to "abc"
|
||||||
|
* isTypeAssignableTo(abcLiteral, stringType); // true; "abc" is assignable to string
|
||||||
|
* isTypeAssignableTo(stringType, abcLiteral); // false; string is not assignable to "abc"
|
||||||
|
* isTypeAssignableTo(stringType, stringType); // true; string is assignable to string
|
||||||
|
* ```
|
||||||
|
*/
|
||||||
|
isTypeAssignableTo(source: Type, target: Type): boolean;
|
||||||
/**
|
/**
|
||||||
* True if this type is the `Array` or `ReadonlyArray` type from lib.d.ts.
|
* True if this type is the `Array` or `ReadonlyArray` type from lib.d.ts.
|
||||||
* This function will _not_ return true if passed a type which
|
* This function will _not_ return true if passed a type which
|
||||||
|
@ -6876,6 +6913,7 @@ declare namespace ts {
|
||||||
* True if this type is assignable to `ReadonlyArray<any>`.
|
* True if this type is assignable to `ReadonlyArray<any>`.
|
||||||
*/
|
*/
|
||||||
isArrayLikeType(type: Type): boolean;
|
isArrayLikeType(type: Type): boolean;
|
||||||
|
resolveName(name: string, location: Node | undefined, meaning: SymbolFlags, excludeGlobals: boolean): Symbol | undefined;
|
||||||
getTypePredicateOfSignature(signature: Signature): TypePredicate | undefined;
|
getTypePredicateOfSignature(signature: Signature): TypePredicate | undefined;
|
||||||
/**
|
/**
|
||||||
* Depending on the operation performed, it may be appropriate to throw away the checker
|
* Depending on the operation performed, it may be appropriate to throw away the checker
|
||||||
|
@ -6921,6 +6959,7 @@ declare namespace ts {
|
||||||
None = 0,
|
None = 0,
|
||||||
NoTruncation = 1,
|
NoTruncation = 1,
|
||||||
WriteArrayAsGenericType = 2,
|
WriteArrayAsGenericType = 2,
|
||||||
|
GenerateNamesForShadowedTypeParams = 4,
|
||||||
UseStructuralFallback = 8,
|
UseStructuralFallback = 8,
|
||||||
WriteTypeArgumentsOfSignature = 32,
|
WriteTypeArgumentsOfSignature = 32,
|
||||||
UseFullyQualifiedType = 64,
|
UseFullyQualifiedType = 64,
|
||||||
|
@ -6940,7 +6979,7 @@ declare namespace ts {
|
||||||
InElementType = 2097152,
|
InElementType = 2097152,
|
||||||
InFirstTypeArgument = 4194304,
|
InFirstTypeArgument = 4194304,
|
||||||
InTypeAlias = 8388608,
|
InTypeAlias = 8388608,
|
||||||
NodeBuilderFlagsMask = 848330091,
|
NodeBuilderFlagsMask = 848330095,
|
||||||
}
|
}
|
||||||
enum SymbolFormatFlags {
|
enum SymbolFormatFlags {
|
||||||
None = 0,
|
None = 0,
|
||||||
|
@ -7014,6 +7053,7 @@ declare namespace ts {
|
||||||
Transient = 33554432,
|
Transient = 33554432,
|
||||||
Assignment = 67108864,
|
Assignment = 67108864,
|
||||||
ModuleExports = 134217728,
|
ModuleExports = 134217728,
|
||||||
|
All = -1,
|
||||||
Enum = 384,
|
Enum = 384,
|
||||||
Variable = 3,
|
Variable = 3,
|
||||||
Value = 111551,
|
Value = 111551,
|
||||||
|
@ -7082,6 +7122,8 @@ declare namespace ts {
|
||||||
ExportEquals = "export=",
|
ExportEquals = "export=",
|
||||||
Default = "default",
|
Default = "default",
|
||||||
This = "this",
|
This = "this",
|
||||||
|
InstantiationExpression = "__instantiationExpression",
|
||||||
|
ImportAttributes = "__importAttributes",
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* This represents a string whose leading underscore have been escaped by adding extra leading underscores.
|
* This represents a string whose leading underscore have been escaped by adding extra leading underscores.
|
||||||
|
@ -7646,6 +7688,7 @@ declare namespace ts {
|
||||||
ESNext = 99,
|
ESNext = 99,
|
||||||
Node16 = 100,
|
Node16 = 100,
|
||||||
NodeNext = 199,
|
NodeNext = 199,
|
||||||
|
Preserve = 200,
|
||||||
}
|
}
|
||||||
enum JsxEmit {
|
enum JsxEmit {
|
||||||
None = 0,
|
None = 0,
|
||||||
|
@ -7924,6 +7967,7 @@ declare namespace ts {
|
||||||
Unspecified = 4,
|
Unspecified = 4,
|
||||||
EmbeddedStatement = 5,
|
EmbeddedStatement = 5,
|
||||||
JsxAttributeValue = 6,
|
JsxAttributeValue = 6,
|
||||||
|
ImportTypeNodeAttributes = 7,
|
||||||
}
|
}
|
||||||
enum OuterExpressionKinds {
|
enum OuterExpressionKinds {
|
||||||
Parentheses = 1,
|
Parentheses = 1,
|
||||||
|
@ -8796,6 +8840,7 @@ declare namespace ts {
|
||||||
readonly organizeImportsNumericCollation?: boolean;
|
readonly organizeImportsNumericCollation?: boolean;
|
||||||
readonly organizeImportsAccentCollation?: boolean;
|
readonly organizeImportsAccentCollation?: boolean;
|
||||||
readonly organizeImportsCaseFirst?: "upper" | "lower" | false;
|
readonly organizeImportsCaseFirst?: "upper" | "lower" | false;
|
||||||
|
readonly organizeImportsTypeOrder?: "first" | "last" | "inline";
|
||||||
readonly excludeLibrarySymbolsInNavTo?: boolean;
|
readonly excludeLibrarySymbolsInNavTo?: boolean;
|
||||||
}
|
}
|
||||||
/** Represents a bigint literal value without requiring bigint support */
|
/** Represents a bigint literal value without requiring bigint support */
|
||||||
|
@ -9201,6 +9246,7 @@ declare namespace ts {
|
||||||
function isForInitializer(node: Node): node is ForInitializer;
|
function isForInitializer(node: Node): node is ForInitializer;
|
||||||
function isModuleBody(node: Node): node is ModuleBody;
|
function isModuleBody(node: Node): node is ModuleBody;
|
||||||
function isNamedImportBindings(node: Node): node is NamedImportBindings;
|
function isNamedImportBindings(node: Node): node is NamedImportBindings;
|
||||||
|
function isDeclarationStatement(node: Node): node is DeclarationStatement;
|
||||||
function isStatement(node: Node): node is Statement;
|
function isStatement(node: Node): node is Statement;
|
||||||
function isModuleReference(node: Node): node is ModuleReference;
|
function isModuleReference(node: Node): node is ModuleReference;
|
||||||
function isJsxTagNameExpression(node: Node): node is JsxTagNameExpression;
|
function isJsxTagNameExpression(node: Node): node is JsxTagNameExpression;
|
||||||
|
@ -9220,11 +9266,13 @@ declare namespace ts {
|
||||||
function isJSDocLinkLike(node: Node): node is JSDocLink | JSDocLinkCode | JSDocLinkPlain;
|
function isJSDocLinkLike(node: Node): node is JSDocLink | JSDocLinkCode | JSDocLinkPlain;
|
||||||
function hasRestParameter(s: SignatureDeclaration | JSDocSignature): boolean;
|
function hasRestParameter(s: SignatureDeclaration | JSDocSignature): boolean;
|
||||||
function isRestParameter(node: ParameterDeclaration | JSDocParameterTag): boolean;
|
function isRestParameter(node: ParameterDeclaration | JSDocParameterTag): boolean;
|
||||||
|
function isInternalDeclaration(node: Node, sourceFile?: SourceFile): boolean;
|
||||||
const unchangedTextChangeRange: TextChangeRange;
|
const unchangedTextChangeRange: TextChangeRange;
|
||||||
type ParameterPropertyDeclaration = ParameterDeclaration & {
|
type ParameterPropertyDeclaration = ParameterDeclaration & {
|
||||||
parent: ConstructorDeclaration;
|
parent: ConstructorDeclaration;
|
||||||
name: Identifier;
|
name: Identifier;
|
||||||
};
|
};
|
||||||
|
function isPartOfTypeNode(node: Node): boolean;
|
||||||
/**
|
/**
|
||||||
* This function checks multiple locations for JSDoc comments that apply to a host node.
|
* This function checks multiple locations for JSDoc comments that apply to a host node.
|
||||||
* At each location, the whole comment may apply to the node, or only a specific tag in
|
* At each location, the whole comment may apply to the node, or only a specific tag in
|
||||||
|
@ -9863,7 +9911,7 @@ declare namespace ts {
|
||||||
* @param visitor The callback used to visit each child.
|
* @param visitor The callback used to visit each child.
|
||||||
* @param context A lexical environment context for the visitor.
|
* @param context A lexical environment context for the visitor.
|
||||||
*/
|
*/
|
||||||
function visitEachChild<T extends Node>(node: T, visitor: Visitor, context: TransformationContext): T;
|
function visitEachChild<T extends Node>(node: T, visitor: Visitor, context: TransformationContext | undefined): T;
|
||||||
/**
|
/**
|
||||||
* Visits each child of a Node using the supplied visitor, possibly returning a new Node of the same kind in its place.
|
* Visits each child of a Node using the supplied visitor, possibly returning a new Node of the same kind in its place.
|
||||||
*
|
*
|
||||||
|
@ -9871,7 +9919,7 @@ declare namespace ts {
|
||||||
* @param visitor The callback used to visit each child.
|
* @param visitor The callback used to visit each child.
|
||||||
* @param context A lexical environment context for the visitor.
|
* @param context A lexical environment context for the visitor.
|
||||||
*/
|
*/
|
||||||
function visitEachChild<T extends Node>(node: T | undefined, visitor: Visitor, context: TransformationContext, nodesVisitor?: typeof visitNodes, tokenVisitor?: Visitor): T | undefined;
|
function visitEachChild<T extends Node>(node: T | undefined, visitor: Visitor, context: TransformationContext | undefined, nodesVisitor?: typeof visitNodes, tokenVisitor?: Visitor): T | undefined;
|
||||||
function getTsBuildInfoEmitOutputFilePath(options: CompilerOptions): string | undefined;
|
function getTsBuildInfoEmitOutputFilePath(options: CompilerOptions): string | undefined;
|
||||||
function getOutputFileNames(commandLine: ParsedCommandLine, inputFileName: string, ignoreCase: boolean): readonly string[];
|
function getOutputFileNames(commandLine: ParsedCommandLine, inputFileName: string, ignoreCase: boolean): readonly string[];
|
||||||
function createPrinter(printerOptions?: PrinterOptions, handlers?: PrintHandlers): Printer;
|
function createPrinter(printerOptions?: PrinterOptions, handlers?: PrintHandlers): Printer;
|
||||||
|
@ -9902,37 +9950,50 @@ declare namespace ts {
|
||||||
*/
|
*/
|
||||||
function getModeForFileReference(ref: FileReference | string, containingFileMode: ResolutionMode): ResolutionMode;
|
function getModeForFileReference(ref: FileReference | string, containingFileMode: ResolutionMode): ResolutionMode;
|
||||||
/**
|
/**
|
||||||
* Calculates the final resolution mode for an import at some index within a file's imports list. This is generally the explicitly
|
* Use `program.getModeForResolutionAtIndex`, which retrieves the correct `compilerOptions`, instead of this function whenever possible.
|
||||||
* defined mode of the import if provided, or, if not, the mode of the containing file (with some exceptions: import=require is always commonjs, dynamic import is always esm).
|
* Calculates the final resolution mode for an import at some index within a file's `imports` list. This is the resolution mode
|
||||||
* If you have an actual import node, prefer using getModeForUsageLocation on the reference string node.
|
* explicitly provided via import attributes, if present, or the syntax the usage would have if emitted to JavaScript. In
|
||||||
|
* `--module node16` or `nodenext`, this may depend on the file's `impliedNodeFormat`. In `--module preserve`, it depends only on the
|
||||||
|
* input syntax of the reference. In other `module` modes, when overriding import attributes are not provided, this function returns
|
||||||
|
* `undefined`, as the result would have no impact on module resolution, emit, or type checking.
|
||||||
* @param file File to fetch the resolution mode within
|
* @param file File to fetch the resolution mode within
|
||||||
* @param index Index into the file's complete resolution list to get the resolution of - this is a concatenation of the file's imports and module augmentations
|
* @param index Index into the file's complete resolution list to get the resolution of - this is a concatenation of the file's imports and module augmentations
|
||||||
|
* @param compilerOptions The compiler options for the program that owns the file. If the file belongs to a referenced project, the compiler options
|
||||||
|
* should be the options of the referenced project, not the referencing project.
|
||||||
*/
|
*/
|
||||||
function getModeForResolutionAtIndex(file: SourceFile, index: number): ResolutionMode;
|
function getModeForResolutionAtIndex(file: SourceFile, index: number, compilerOptions: CompilerOptions): ResolutionMode;
|
||||||
/**
|
/**
|
||||||
* Calculates the final resolution mode for a given module reference node. This is generally the explicitly provided resolution mode, if
|
* Use `program.getModeForUsageLocation`, which retrieves the correct `compilerOptions`, instead of this function whenever possible.
|
||||||
* one exists, or the mode of the containing source file. (Excepting import=require, which is always commonjs, and dynamic import, which is always esm).
|
* Calculates the final resolution mode for a given module reference node. This is the resolution mode explicitly provided via import
|
||||||
* Notably, this function always returns `undefined` if the containing file has an `undefined` `impliedNodeFormat` - this field is only set when
|
* attributes, if present, or the syntax the usage would have if emitted to JavaScript. In `--module node16` or `nodenext`, this may
|
||||||
* `moduleResolution` is `node16`+.
|
* depend on the file's `impliedNodeFormat`. In `--module preserve`, it depends only on the input syntax of the reference. In other
|
||||||
|
* `module` modes, when overriding import attributes are not provided, this function returns `undefined`, as the result would have no
|
||||||
|
* impact on module resolution, emit, or type checking.
|
||||||
* @param file The file the import or import-like reference is contained within
|
* @param file The file the import or import-like reference is contained within
|
||||||
* @param usage The module reference string
|
* @param usage The module reference string
|
||||||
|
* @param compilerOptions The compiler options for the program that owns the file. If the file belongs to a referenced project, the compiler options
|
||||||
|
* should be the options of the referenced project, not the referencing project.
|
||||||
* @returns The final resolution mode of the import
|
* @returns The final resolution mode of the import
|
||||||
*/
|
*/
|
||||||
function getModeForUsageLocation(file: {
|
function getModeForUsageLocation(
|
||||||
|
file: {
|
||||||
impliedNodeFormat?: ResolutionMode;
|
impliedNodeFormat?: ResolutionMode;
|
||||||
}, usage: StringLiteralLike): ModuleKind.CommonJS | ModuleKind.ESNext | undefined;
|
},
|
||||||
|
usage: StringLiteralLike,
|
||||||
|
compilerOptions: CompilerOptions,
|
||||||
|
): ModuleKind.CommonJS | ModuleKind.ESNext | undefined;
|
||||||
function getConfigFileParsingDiagnostics(configFileParseResult: ParsedCommandLine): readonly Diagnostic[];
|
function getConfigFileParsingDiagnostics(configFileParseResult: ParsedCommandLine): readonly Diagnostic[];
|
||||||
/**
|
/**
|
||||||
* A function for determining if a given file is esm or cjs format, assuming modern node module resolution rules, as configured by the
|
* A function for determining if a given file is esm or cjs format, assuming modern node module resolution rules, as configured by the
|
||||||
* `options` parameter.
|
* `options` parameter.
|
||||||
*
|
*
|
||||||
* @param fileName The normalized absolute path to check the format of (it need not exist on disk)
|
* @param fileName The file name to check the format of (it need not exist on disk)
|
||||||
* @param [packageJsonInfoCache] A cache for package file lookups - it's best to have a cache when this function is called often
|
* @param [packageJsonInfoCache] A cache for package file lookups - it's best to have a cache when this function is called often
|
||||||
* @param host The ModuleResolutionHost which can perform the filesystem lookups for package json data
|
* @param host The ModuleResolutionHost which can perform the filesystem lookups for package json data
|
||||||
* @param options The compiler options to perform the analysis under - relevant options are `moduleResolution` and `traceResolution`
|
* @param options The compiler options to perform the analysis under - relevant options are `moduleResolution` and `traceResolution`
|
||||||
* @returns `undefined` if the path has no relevant implied format, `ModuleKind.ESNext` for esm format, and `ModuleKind.CommonJS` for cjs format
|
* @returns `undefined` if the path has no relevant implied format, `ModuleKind.ESNext` for esm format, and `ModuleKind.CommonJS` for cjs format
|
||||||
*/
|
*/
|
||||||
function getImpliedNodeFormatForFile(fileName: Path, packageJsonInfoCache: PackageJsonInfoCache | undefined, host: ModuleResolutionHost, options: CompilerOptions): ResolutionMode;
|
function getImpliedNodeFormatForFile(fileName: string, packageJsonInfoCache: PackageJsonInfoCache | undefined, host: ModuleResolutionHost, options: CompilerOptions): ResolutionMode;
|
||||||
/**
|
/**
|
||||||
* Create a new 'Program' instance. A Program is an immutable collection of 'SourceFile's and a 'CompilerOptions'
|
* Create a new 'Program' instance. A Program is an immutable collection of 'SourceFile's and a 'CompilerOptions'
|
||||||
* that represent a compilation unit.
|
* that represent a compilation unit.
|
||||||
|
@ -11119,6 +11180,10 @@ declare namespace ts {
|
||||||
*/
|
*/
|
||||||
fileToRename?: string;
|
fileToRename?: string;
|
||||||
displayName: string;
|
displayName: string;
|
||||||
|
/**
|
||||||
|
* Full display name of item to be renamed.
|
||||||
|
* If item to be renamed is a file, then this is the original text of the module specifer
|
||||||
|
*/
|
||||||
fullDisplayName: string;
|
fullDisplayName: string;
|
||||||
kind: ScriptElementKind;
|
kind: ScriptElementKind;
|
||||||
kindModifiers: string;
|
kindModifiers: string;
|
||||||
|
|
|
@ -2688,7 +2688,7 @@ fn lsp_hover_jsdoc_symbol_link() {
|
||||||
"language": "typescript",
|
"language": "typescript",
|
||||||
"value": "function a(): void"
|
"value": "function a(): void"
|
||||||
},
|
},
|
||||||
"JSDoc [hello](file:///a/file.ts#L1,10) and [`b`](file:///a/file.ts#L5,7)"
|
"JSDoc [hello](file:///a/b.ts#L1,1) and [`b`](file:///a/file.ts#L5,7)"
|
||||||
],
|
],
|
||||||
"range": {
|
"range": {
|
||||||
"start": { "line": 7, "character": 9 },
|
"start": { "line": 7, "character": 9 },
|
||||||
|
@ -5050,7 +5050,7 @@ fn lsp_jsr_auto_import_completion() {
|
||||||
json!({ "triggerKind": 1 }),
|
json!({ "triggerKind": 1 }),
|
||||||
);
|
);
|
||||||
assert!(!list.is_incomplete);
|
assert!(!list.is_incomplete);
|
||||||
assert_eq!(list.items.len(), 261);
|
assert_eq!(list.items.len(), 262);
|
||||||
let item = list.items.iter().find(|i| i.label == "add").unwrap();
|
let item = list.items.iter().find(|i| i.label == "add").unwrap();
|
||||||
assert_eq!(&item.label, "add");
|
assert_eq!(&item.label, "add");
|
||||||
assert_eq!(
|
assert_eq!(
|
||||||
|
@ -5130,7 +5130,7 @@ fn lsp_jsr_auto_import_completion_import_map() {
|
||||||
json!({ "triggerKind": 1 }),
|
json!({ "triggerKind": 1 }),
|
||||||
);
|
);
|
||||||
assert!(!list.is_incomplete);
|
assert!(!list.is_incomplete);
|
||||||
assert_eq!(list.items.len(), 261);
|
assert_eq!(list.items.len(), 262);
|
||||||
let item = list.items.iter().find(|i| i.label == "add").unwrap();
|
let item = list.items.iter().find(|i| i.label == "add").unwrap();
|
||||||
assert_eq!(&item.label, "add");
|
assert_eq!(&item.label, "add");
|
||||||
assert_eq!(json!(&item.label_details), json!({ "description": "add" }));
|
assert_eq!(json!(&item.label_details), json!({ "description": "add" }));
|
||||||
|
@ -7648,7 +7648,18 @@ fn lsp_completions_npm() {
|
||||||
]
|
]
|
||||||
}),
|
}),
|
||||||
);
|
);
|
||||||
client.read_diagnostics();
|
let diagnostics = client.read_diagnostics();
|
||||||
|
assert_eq!(
|
||||||
|
diagnostics
|
||||||
|
.all()
|
||||||
|
.iter()
|
||||||
|
.map(|d| d.message.as_str())
|
||||||
|
.collect::<Vec<_>>(),
|
||||||
|
vec![
|
||||||
|
"'chalk' is declared but its value is never read.",
|
||||||
|
"Identifier expected."
|
||||||
|
]
|
||||||
|
);
|
||||||
|
|
||||||
let list = client.get_completion_list(
|
let list = client.get_completion_list(
|
||||||
"file:///a/file.ts",
|
"file:///a/file.ts",
|
||||||
|
@ -7659,9 +7670,14 @@ fn lsp_completions_npm() {
|
||||||
}),
|
}),
|
||||||
);
|
);
|
||||||
assert!(!list.is_incomplete);
|
assert!(!list.is_incomplete);
|
||||||
assert_eq!(list.items.len(), 3);
|
assert_eq!(
|
||||||
assert!(list.items.iter().any(|i| i.label == "default"));
|
list
|
||||||
assert!(list.items.iter().any(|i| i.label == "MyClass"));
|
.items
|
||||||
|
.iter()
|
||||||
|
.map(|i| i.label.as_str())
|
||||||
|
.collect::<Vec<_>>(),
|
||||||
|
vec!["default", "MyClass", "named"]
|
||||||
|
);
|
||||||
|
|
||||||
let res = client.write_request(
|
let res = client.write_request(
|
||||||
"completionItem/resolve",
|
"completionItem/resolve",
|
||||||
|
|
6
tests/specs/check/cjs_default_export/__test__.jsonc
Normal file
6
tests/specs/check/cjs_default_export/__test__.jsonc
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
{
|
||||||
|
"base": "npm",
|
||||||
|
"args": "check main.ts",
|
||||||
|
"output": "main.out",
|
||||||
|
"exitCode": 1
|
||||||
|
}
|
7
tests/specs/check/cjs_default_export/main.out
Normal file
7
tests/specs/check/cjs_default_export/main.out
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
Download http://localhost:4545/npm/registry/@denotest/cjs-default-export
|
||||||
|
Download http://localhost:4545/npm/registry/@denotest/cjs-default-export/1.0.0.tgz
|
||||||
|
Check file:///[WILDCARD]/main.ts
|
||||||
|
error: TS2322 [ERROR]: Type 'number' is not assignable to type 'string'.
|
||||||
|
export const Test: string = cjsDefault.default();
|
||||||
|
~~~~
|
||||||
|
at file:///[WILDCARD]/main.ts:4:14
|
4
tests/specs/check/cjs_default_export/main.ts
Normal file
4
tests/specs/check/cjs_default_export/main.ts
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
import cjsDefault from "npm:@denotest/cjs-default-export";
|
||||||
|
|
||||||
|
// should error since cjsDefault.default() is a number
|
||||||
|
export const Test: string = cjsDefault.default();
|
|
@ -6,5 +6,5 @@ Deno.test(function version() {
|
||||||
const pattern = /^\d+\.\d+\.\d+/;
|
const pattern = /^\d+\.\d+\.\d+/;
|
||||||
assert(pattern.test(Deno.version.deno));
|
assert(pattern.test(Deno.version.deno));
|
||||||
assert(pattern.test(Deno.version.v8));
|
assert(pattern.test(Deno.version.v8));
|
||||||
assertEquals(Deno.version.typescript, "5.3.3");
|
assertEquals(Deno.version.typescript, "5.4.3");
|
||||||
});
|
});
|
||||||
|
|
|
@ -4,7 +4,7 @@ import * as punycode from "node:punycode";
|
||||||
import { assertEquals } from "@std/assert/mod.ts";
|
import { assertEquals } from "@std/assert/mod.ts";
|
||||||
|
|
||||||
Deno.test("regression #19214", () => {
|
Deno.test("regression #19214", () => {
|
||||||
const input = "个<EFBFBD><EFBFBD>.hk";
|
const input = "个\uFFFD\uFFFD.hk";
|
||||||
|
|
||||||
assertEquals(punycode.toASCII(input), "xn--ciq6844ba.hk");
|
assertEquals(punycode.toASCII(input), "xn--ciq6844ba.hk");
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue