mirror of
https://github.com/denoland/deno.git
synced 2025-02-01 12:16:11 -05:00
m
This commit is contained in:
commit
12338040ec
277 changed files with 9370 additions and 22688 deletions
1
Cargo.lock
generated
1
Cargo.lock
generated
|
@ -8054,6 +8054,7 @@ dependencies = [
|
|||
"once_cell",
|
||||
"os_pipe",
|
||||
"parking_lot",
|
||||
"percent-encoding",
|
||||
"pretty_assertions",
|
||||
"prost",
|
||||
"prost-build",
|
||||
|
|
44
cli/build.rs
44
cli/build.rs
|
@ -133,7 +133,10 @@ mod ts {
|
|||
// Deno built-in type libraries
|
||||
"decorators",
|
||||
"decorators.legacy",
|
||||
"es5",
|
||||
"dom.asynciterable",
|
||||
"dom",
|
||||
"dom.extras",
|
||||
"dom.iterable",
|
||||
"es2015.collection",
|
||||
"es2015.core",
|
||||
"es2015",
|
||||
|
@ -145,10 +148,13 @@ mod ts {
|
|||
"es2015.symbol",
|
||||
"es2015.symbol.wellknown",
|
||||
"es2016.array.include",
|
||||
"es2016.intl",
|
||||
"es2016",
|
||||
"es2016.full",
|
||||
"es2016.intl",
|
||||
"es2017.arraybuffer",
|
||||
"es2017",
|
||||
"es2017.date",
|
||||
"es2017.full",
|
||||
"es2017.intl",
|
||||
"es2017.object",
|
||||
"es2017.sharedmemory",
|
||||
|
@ -157,11 +163,13 @@ mod ts {
|
|||
"es2018.asyncgenerator",
|
||||
"es2018.asynciterable",
|
||||
"es2018",
|
||||
"es2018.full",
|
||||
"es2018.intl",
|
||||
"es2018.promise",
|
||||
"es2018.regexp",
|
||||
"es2019.array",
|
||||
"es2019",
|
||||
"es2019.full",
|
||||
"es2019.intl",
|
||||
"es2019.object",
|
||||
"es2019.string",
|
||||
|
@ -169,6 +177,7 @@ mod ts {
|
|||
"es2020.bigint",
|
||||
"es2020",
|
||||
"es2020.date",
|
||||
"es2020.full",
|
||||
"es2020.intl",
|
||||
"es2020.number",
|
||||
"es2020.promise",
|
||||
|
@ -176,33 +185,48 @@ mod ts {
|
|||
"es2020.string",
|
||||
"es2020.symbol.wellknown",
|
||||
"es2021",
|
||||
"es2021.full",
|
||||
"es2021.intl",
|
||||
"es2021.promise",
|
||||
"es2021.string",
|
||||
"es2021.weakref",
|
||||
"es2022",
|
||||
"es2022.array",
|
||||
"es2022",
|
||||
"es2022.error",
|
||||
"es2022.full",
|
||||
"es2022.intl",
|
||||
"es2022.object",
|
||||
"es2022.regexp",
|
||||
"es2022.sharedmemory",
|
||||
"es2022.string",
|
||||
"es2023",
|
||||
"es2023.array",
|
||||
"es2023.collection",
|
||||
"es2023",
|
||||
"es2023.full",
|
||||
"es2023.intl",
|
||||
"esnext",
|
||||
"es2024.arraybuffer",
|
||||
"es2024.collection",
|
||||
"es2024",
|
||||
"es2024.full",
|
||||
"es2024.object",
|
||||
"es2024.promise",
|
||||
"es2024.regexp",
|
||||
"es2024.sharedmemory",
|
||||
"es2024.string",
|
||||
"es5",
|
||||
"es6",
|
||||
"esnext.array",
|
||||
"esnext.collection",
|
||||
"esnext",
|
||||
"esnext.decorators",
|
||||
"esnext.disposable",
|
||||
"esnext.full",
|
||||
"esnext.intl",
|
||||
"esnext.iterator",
|
||||
"esnext.object",
|
||||
"esnext.promise",
|
||||
"esnext.regexp",
|
||||
"esnext.string",
|
||||
"scripthost",
|
||||
"webworker.asynciterable",
|
||||
"webworker",
|
||||
"webworker.importscripts",
|
||||
"webworker.iterable",
|
||||
];
|
||||
|
||||
let path_dts = cwd.join("tsc/dts");
|
||||
|
|
|
@ -60,6 +60,8 @@ pub enum RootCertStoreLoadError {
|
|||
FailedAddPemFile(String),
|
||||
#[error("Failed opening CA file: {0}")]
|
||||
CaFileOpenError(String),
|
||||
#[error("Failed to load platform certificates: {0}")]
|
||||
FailedNativeCerts(String),
|
||||
}
|
||||
|
||||
/// Create and populate a root cert store based on the passed options and
|
||||
|
@ -89,7 +91,9 @@ pub fn get_root_cert_store(
|
|||
root_cert_store.extend(webpki_roots::TLS_SERVER_ROOTS.to_vec());
|
||||
}
|
||||
"system" => {
|
||||
let roots = load_native_certs().expect("could not load platform certs");
|
||||
let roots = load_native_certs().map_err(|err| {
|
||||
RootCertStoreLoadError::FailedNativeCerts(err.to_string())
|
||||
})?;
|
||||
for root in roots {
|
||||
if let Err(err) = root_cert_store
|
||||
.add(rustls::pki_types::CertificateDer::from(root.0.clone()))
|
||||
|
|
|
@ -14,7 +14,7 @@ pub fn otel_runtime_config() -> OtelRuntimeConfig {
|
|||
}
|
||||
|
||||
const GIT_COMMIT_HASH: &str = env!("GIT_COMMIT_HASH");
|
||||
const TYPESCRIPT: &str = "5.6.2";
|
||||
const TYPESCRIPT: &str = "5.7.3";
|
||||
const DENO_VERSION: &str = env!("DENO_VERSION");
|
||||
// TODO(bartlomieju): ideally we could remove this const.
|
||||
const IS_CANARY: bool = option_env!("DENO_CANARY").is_some();
|
||||
|
|
|
@ -1880,7 +1880,7 @@ impl Inner {
|
|||
})?;
|
||||
let asset_or_doc = self.get_asset_or_document(&action_data.specifier)?;
|
||||
let line_index = asset_or_doc.line_index();
|
||||
let refactor_edit_info = self
|
||||
let mut refactor_edit_info = self
|
||||
.ts_server
|
||||
.get_edits_for_refactor(
|
||||
self.snapshot(),
|
||||
|
@ -1901,34 +1901,19 @@ impl Inner {
|
|||
)),
|
||||
asset_or_doc.scope().cloned(),
|
||||
)
|
||||
.await;
|
||||
|
||||
match refactor_edit_info {
|
||||
Ok(mut refactor_edit_info) => {
|
||||
if kind_suffix == ".rewrite.function.returnType"
|
||||
|| kind_suffix == ".move.newFile"
|
||||
{
|
||||
refactor_edit_info.edits =
|
||||
fix_ts_import_changes(&refactor_edit_info.edits, self).map_err(
|
||||
|err| {
|
||||
error!("Unable to remap changes: {:#}", err);
|
||||
LspError::internal_error()
|
||||
},
|
||||
)?
|
||||
}
|
||||
code_action.edit = refactor_edit_info.to_workspace_edit(self)?;
|
||||
}
|
||||
Err(err) => {
|
||||
// TODO(nayeemrmn): Investigate cause for
|
||||
// https://github.com/denoland/deno/issues/27778. Prevent popups for
|
||||
// this error for now.
|
||||
if kind_suffix == ".move.newFile" {
|
||||
lsp_warn!("{:#}", err);
|
||||
} else {
|
||||
return Err(err);
|
||||
}
|
||||
}
|
||||
.await?;
|
||||
if kind_suffix == ".rewrite.function.returnType"
|
||||
|| kind_suffix == ".move.newFile"
|
||||
{
|
||||
refactor_edit_info.edits =
|
||||
fix_ts_import_changes(&refactor_edit_info.edits, self).map_err(
|
||||
|err| {
|
||||
error!("Unable to remap changes: {:#}", err);
|
||||
LspError::internal_error()
|
||||
},
|
||||
)?
|
||||
}
|
||||
code_action.edit = refactor_edit_info.to_workspace_edit(self)?;
|
||||
code_action
|
||||
} else {
|
||||
// The code action doesn't need to be resolved
|
||||
|
|
|
@ -6015,11 +6015,25 @@ mod tests {
|
|||
|
||||
// get some notification when the size of the assets grows
|
||||
let mut total_size = 0;
|
||||
for asset in assets {
|
||||
for asset in &assets {
|
||||
total_size += asset.text().len();
|
||||
}
|
||||
assert!(total_size > 0);
|
||||
assert!(total_size < 2_000_000); // currently as of TS 4.6, it's 0.7MB
|
||||
#[allow(clippy::print_stderr)]
|
||||
// currently as of TS 5.7, it's 3MB
|
||||
if total_size > 3_500_000 {
|
||||
let mut sizes = Vec::new();
|
||||
for asset in &assets {
|
||||
sizes.push((asset.specifier(), asset.text().len()));
|
||||
}
|
||||
sizes.sort_by_cached_key(|(_, size)| *size);
|
||||
sizes.reverse();
|
||||
for (specifier, size) in &sizes {
|
||||
eprintln!("{}: {}", specifier, size);
|
||||
}
|
||||
eprintln!("Total size: {}", total_size);
|
||||
panic!("Assets were quite large.");
|
||||
}
|
||||
}
|
||||
|
||||
#[tokio::test]
|
||||
|
|
|
@ -189,7 +189,7 @@ fn get_add_pkg_reqs_options(package_reqs: &[PackageReq]) -> AddPkgReqsOptions {
|
|||
// WARNING: When bumping this version, check if anything needs to be
|
||||
// updated in the `setNodeOnlyGlobalNames` call in 99_main_compiler.js
|
||||
types_node_version_req: Some(
|
||||
VersionReq::parse_from_npm("22.0.0 - 22.5.4").unwrap(),
|
||||
VersionReq::parse_from_npm("22.9.0 - 22.12.0").unwrap(),
|
||||
),
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
// Copyright 2018-2025 the Deno authors. MIT license.
|
||||
|
||||
pub static TS_VERSION: &str = "5.6.2";
|
||||
pub static TS_VERSION: &str = "5.7.3";
|
||||
|
|
22152
cli/tsc/00_typescript.js
vendored
22152
cli/tsc/00_typescript.js
vendored
File diff suppressed because one or more lines are too long
|
@ -234,7 +234,14 @@ function fromRelatedInformation({
|
|||
}
|
||||
if (start !== undefined && length !== undefined && file) {
|
||||
let startPos = file.getLineAndCharacterOfPosition(start);
|
||||
let sourceLine = file.getFullText().split("\n")[startPos.line];
|
||||
let endPos = file.getLineAndCharacterOfPosition(start + length);
|
||||
// ok to get because it's cached via file.getLineAndCharacterOfPosition
|
||||
const lineStarts = file.getLineStarts();
|
||||
/** @type {string | undefined} */
|
||||
let sourceLine = file.getFullText().slice(
|
||||
lineStarts[startPos.line],
|
||||
lineStarts[startPos.line + 1],
|
||||
).trimEnd();
|
||||
const originalFileName = file.fileName;
|
||||
const fileName = ops.op_remap_specifier
|
||||
? (ops.op_remap_specifier(file.fileName) ?? file.fileName)
|
||||
|
@ -244,12 +251,12 @@ function fromRelatedInformation({
|
|||
if (
|
||||
fileName.endsWith(".wasm") && originalFileName.endsWith(".wasm.d.mts")
|
||||
) {
|
||||
startPos = { line: 0, character: 0 };
|
||||
startPos = endPos = { line: 0, character: 0 };
|
||||
sourceLine = undefined;
|
||||
}
|
||||
return {
|
||||
start: startPos,
|
||||
end: file.getLineAndCharacterOfPosition(start + length),
|
||||
end: endPos,
|
||||
fileName,
|
||||
messageChain,
|
||||
messageText,
|
||||
|
@ -296,6 +303,9 @@ const IGNORED_DIAGNOSTICS = [
|
|||
// TS1479: The current file is a CommonJS module whose imports will produce 'require' calls;
|
||||
// however, the referenced file is an ECMAScript module and cannot be imported with 'require'.
|
||||
1479,
|
||||
// TS1543: Importing a JSON file into an ECMAScript module requires a 'type: \"json\"' import
|
||||
// attribute when 'module' is set to 'NodeNext'.
|
||||
1543,
|
||||
// TS2306: File '.../index.d.ts' is not a module.
|
||||
// We get this for `x-typescript-types` declaration files which don't export
|
||||
// anything. We prefer to treat these as modules with no exports.
|
||||
|
@ -408,10 +418,6 @@ export const host = {
|
|||
return projectVersion;
|
||||
},
|
||||
// @ts-ignore Undocumented method.
|
||||
getModuleSpecifierCache() {
|
||||
return moduleSpecifierCache;
|
||||
},
|
||||
// @ts-ignore Undocumented method.
|
||||
getCachedExportInfoMap() {
|
||||
return exportMapCache;
|
||||
},
|
||||
|
@ -421,7 +427,7 @@ export const host = {
|
|||
// @ts-ignore Undocumented method.
|
||||
toPath(fileName) {
|
||||
// @ts-ignore Undocumented function.
|
||||
ts.toPath(
|
||||
return ts.toPath(
|
||||
fileName,
|
||||
this.getCurrentDirectory(),
|
||||
this.getCanonicalFileName.bind(this),
|
||||
|
@ -716,9 +722,6 @@ export const host = {
|
|||
},
|
||||
};
|
||||
|
||||
// @ts-ignore Undocumented function.
|
||||
const moduleSpecifierCache = ts.server.createModuleSpecifierCache(host);
|
||||
|
||||
// @ts-ignore Undocumented function.
|
||||
const exportMapCache = ts.createCacheableExportInfoMap(host);
|
||||
|
||||
|
@ -747,35 +750,6 @@ export function filterMapDiagnostic(diagnostic) {
|
|||
return false;
|
||||
}
|
||||
|
||||
// ignore diagnostics resulting from the `ImportMeta` declaration in deno merging with
|
||||
// the one in @types/node. the types of the filename and dirname properties are different,
|
||||
// which causes tsc to error.
|
||||
const importMetaFilenameDirnameModifiersRe =
|
||||
/^All declarations of '(filename|dirname)'/;
|
||||
const importMetaFilenameDirnameTypesRe =
|
||||
/^Subsequent property declarations must have the same type.\s+Property '(filename|dirname)'/;
|
||||
// Declarations of X must have identical modifiers.
|
||||
if (diagnostic.code === 2687) {
|
||||
if (
|
||||
typeof diagnostic.messageText === "string" &&
|
||||
(importMetaFilenameDirnameModifiersRe.test(diagnostic.messageText)) &&
|
||||
(diagnostic.file?.fileName.startsWith("asset:///") ||
|
||||
diagnostic.file?.fileName?.includes("@types/node"))
|
||||
) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
// Subsequent property declarations must have the same type.
|
||||
if (diagnostic.code === 2717) {
|
||||
if (
|
||||
typeof diagnostic.messageText === "string" &&
|
||||
(importMetaFilenameDirnameTypesRe.test(diagnostic.messageText)) &&
|
||||
(diagnostic.file?.fileName.startsWith("asset:///") ||
|
||||
diagnostic.file?.fileName?.includes("@types/node"))
|
||||
) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
// make the diagnostic for using an `export =` in an es module a warning
|
||||
if (diagnostic.code === 1203) {
|
||||
diagnostic.category = ts.DiagnosticCategory.Warning;
|
||||
|
@ -789,33 +763,98 @@ export function filterMapDiagnostic(diagnostic) {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
// list of globals that should be kept in Node's globalThis
|
||||
ts.deno.setNodeOnlyGlobalNames([
|
||||
"__dirname",
|
||||
"__filename",
|
||||
"Buffer",
|
||||
"BufferConstructor",
|
||||
"BufferEncoding",
|
||||
"clearImmediate",
|
||||
"clearInterval",
|
||||
"clearTimeout",
|
||||
"console",
|
||||
"Console",
|
||||
"ErrorConstructor",
|
||||
"gc",
|
||||
"Global",
|
||||
"localStorage",
|
||||
"queueMicrotask",
|
||||
"RequestInit",
|
||||
"ResponseInit",
|
||||
"sessionStorage",
|
||||
"setImmediate",
|
||||
"setInterval",
|
||||
"setTimeout",
|
||||
ts.deno.setNodeOnlyGlobalNames(
|
||||
new Set([
|
||||
"__dirname",
|
||||
"__filename",
|
||||
'"buffer"',
|
||||
"Buffer",
|
||||
"BufferConstructor",
|
||||
"BufferEncoding",
|
||||
"clearImmediate",
|
||||
"clearInterval",
|
||||
"clearTimeout",
|
||||
"console",
|
||||
"Console",
|
||||
"crypto",
|
||||
"ErrorConstructor",
|
||||
"gc",
|
||||
"Global",
|
||||
"localStorage",
|
||||
"queueMicrotask",
|
||||
"RequestInit",
|
||||
"ResponseInit",
|
||||
"sessionStorage",
|
||||
"setImmediate",
|
||||
"setInterval",
|
||||
"setTimeout",
|
||||
]),
|
||||
);
|
||||
// List of globals in @types/node that collide with Deno's types.
|
||||
// When the `@types/node` package attempts to assign to these types
|
||||
// if the type is already in the global symbol table, then assignment
|
||||
// will be a no-op, but if the global type does not exist then the package can
|
||||
// create the global.
|
||||
const setTypesNodeIgnorableNames = new Set([
|
||||
"AbortController",
|
||||
"AbortSignal",
|
||||
"AsyncIteratorObject",
|
||||
"atob",
|
||||
"Blob",
|
||||
"BroadcastChannel",
|
||||
"btoa",
|
||||
"ByteLengthQueuingStrategy",
|
||||
"CompressionStream",
|
||||
"CountQueuingStrategy",
|
||||
"DecompressionStream",
|
||||
"Disposable",
|
||||
"DOMException",
|
||||
"Event",
|
||||
"EventSource",
|
||||
"EventTarget",
|
||||
"fetch",
|
||||
"File",
|
||||
"Float32Array",
|
||||
"Float64Array",
|
||||
"FormData",
|
||||
"Headers",
|
||||
"ImportMeta",
|
||||
"MessageChannel",
|
||||
"MessageEvent",
|
||||
"MessagePort",
|
||||
"performance",
|
||||
"PerformanceEntry",
|
||||
"PerformanceMark",
|
||||
"PerformanceMeasure",
|
||||
"ReadableByteStreamController",
|
||||
"ReadableStream",
|
||||
"ReadableStreamBYOBReader",
|
||||
"ReadableStreamBYOBRequest",
|
||||
"ReadableStreamDefaultController",
|
||||
"ReadableStreamDefaultReader",
|
||||
"ReadonlyArray",
|
||||
"Request",
|
||||
"Response",
|
||||
"Storage",
|
||||
"TextDecoder",
|
||||
"TextDecoderStream",
|
||||
"TextEncoder",
|
||||
"TextEncoderStream",
|
||||
"TransformStream",
|
||||
"TransformStreamDefaultController",
|
||||
"URL",
|
||||
"URLSearchParams",
|
||||
"WebSocket",
|
||||
"WritableStream",
|
||||
"WritableStreamDefaultController",
|
||||
"WritableStreamDefaultWriter",
|
||||
]);
|
||||
ts.deno.setTypesNodeIgnorableNames(setTypesNodeIgnorableNames);
|
||||
|
||||
export function getAssets() {
|
||||
/** @type {{ specifier: string; text: string; }[]} */
|
||||
|
|
28
cli/tsc/dts/lib.decorators.d.ts
vendored
28
cli/tsc/dts/lib.decorators.d.ts
vendored
|
@ -110,9 +110,9 @@ interface ClassMethodDecoratorContext<
|
|||
};
|
||||
|
||||
/**
|
||||
* Adds a callback to be invoked either before static initializers are run (when
|
||||
* decorating a `static` element), or before instance initializers are run (when
|
||||
* decorating a non-`static` element).
|
||||
* Adds a callback to be invoked either after static methods are defined but before
|
||||
* static initializers are run (when decorating a `static` element), or before instance
|
||||
* initializers are run (when decorating a non-`static` element).
|
||||
*
|
||||
* @example
|
||||
* ```ts
|
||||
|
@ -176,9 +176,9 @@ interface ClassGetterDecoratorContext<
|
|||
};
|
||||
|
||||
/**
|
||||
* Adds a callback to be invoked either before static initializers are run (when
|
||||
* decorating a `static` element), or before instance initializers are run (when
|
||||
* decorating a non-`static` element).
|
||||
* Adds a callback to be invoked either after static methods are defined but before
|
||||
* static initializers are run (when decorating a `static` element), or before instance
|
||||
* initializers are run (when decorating a non-`static` element).
|
||||
*/
|
||||
addInitializer(initializer: (this: This) => void): void;
|
||||
|
||||
|
@ -223,9 +223,9 @@ interface ClassSetterDecoratorContext<
|
|||
};
|
||||
|
||||
/**
|
||||
* Adds a callback to be invoked either before static initializers are run (when
|
||||
* decorating a `static` element), or before instance initializers are run (when
|
||||
* decorating a non-`static` element).
|
||||
* Adds a callback to be invoked either after static methods are defined but before
|
||||
* static initializers are run (when decorating a `static` element), or before instance
|
||||
* initializers are run (when decorating a non-`static` element).
|
||||
*/
|
||||
addInitializer(initializer: (this: This) => void): void;
|
||||
|
||||
|
@ -279,9 +279,8 @@ interface ClassAccessorDecoratorContext<
|
|||
};
|
||||
|
||||
/**
|
||||
* Adds a callback to be invoked either before static initializers are run (when
|
||||
* decorating a `static` element), or before instance initializers are run (when
|
||||
* decorating a non-`static` element).
|
||||
* Adds a callback to be invoked immediately after the auto `accessor` being
|
||||
* decorated is initialized (regardless if the `accessor` is `static` or not).
|
||||
*/
|
||||
addInitializer(initializer: (this: This) => void): void;
|
||||
|
||||
|
@ -376,9 +375,8 @@ interface ClassFieldDecoratorContext<
|
|||
};
|
||||
|
||||
/**
|
||||
* Adds a callback to be invoked either before static initializers are run (when
|
||||
* decorating a `static` element), or before instance initializers are run (when
|
||||
* decorating a non-`static` element).
|
||||
* Adds a callback to be invoked immediately after the field being decorated
|
||||
* is initialized (regardless if the field is `static` or not).
|
||||
*/
|
||||
addInitializer(initializer: (this: This) => void): void;
|
||||
|
||||
|
|
24
cli/tsc/dts/lib.deno.ns.d.ts
vendored
24
cli/tsc/dts/lib.deno.ns.d.ts
vendored
|
@ -1786,7 +1786,7 @@ declare namespace Deno {
|
|||
* }
|
||||
* ```
|
||||
*/
|
||||
readonly readable: ReadableStream<Uint8Array>;
|
||||
readonly readable: ReadableStream<Uint8Array<ArrayBuffer>>;
|
||||
/** A {@linkcode WritableStream} instance to write the contents of the
|
||||
* file. This makes it easy to interoperate with other web streams based
|
||||
* APIs.
|
||||
|
@ -1801,7 +1801,7 @@ declare namespace Deno {
|
|||
* }
|
||||
* ```
|
||||
*/
|
||||
readonly writable: WritableStream<Uint8Array>;
|
||||
readonly writable: WritableStream<Uint8Array<ArrayBufferLike>>;
|
||||
/** Write the contents of the array buffer (`p`) to the file.
|
||||
*
|
||||
* Resolves to the number of bytes written.
|
||||
|
@ -2268,7 +2268,7 @@ declare namespace Deno {
|
|||
*/
|
||||
close(): void;
|
||||
/** A readable stream interface to `stdin`. */
|
||||
readonly readable: ReadableStream<Uint8Array>;
|
||||
readonly readable: ReadableStream<Uint8Array<ArrayBuffer>>;
|
||||
/**
|
||||
* Set TTY to be under raw mode or not. In raw mode, characters are read and
|
||||
* returned as is, without being processed. All special processing of
|
||||
|
@ -2346,7 +2346,7 @@ declare namespace Deno {
|
|||
*/
|
||||
close(): void;
|
||||
/** A writable stream interface to `stdout`. */
|
||||
readonly writable: WritableStream<Uint8Array>;
|
||||
readonly writable: WritableStream<Uint8Array<ArrayBufferLike>>;
|
||||
/**
|
||||
* Checks if `stdout` is a TTY (terminal).
|
||||
*
|
||||
|
@ -2410,7 +2410,7 @@ declare namespace Deno {
|
|||
*/
|
||||
close(): void;
|
||||
/** A writable stream interface to `stderr`. */
|
||||
readonly writable: WritableStream<Uint8Array>;
|
||||
readonly writable: WritableStream<Uint8Array<ArrayBufferLike>>;
|
||||
/**
|
||||
* Checks if `stderr` is a TTY (terminal).
|
||||
*
|
||||
|
@ -2921,7 +2921,7 @@ declare namespace Deno {
|
|||
export function readFile(
|
||||
path: string | URL,
|
||||
options?: ReadFileOptions,
|
||||
): Promise<Uint8Array>;
|
||||
): Promise<Uint8Array<ArrayBuffer>>;
|
||||
|
||||
/** Synchronously reads and returns the entire contents of a file as an array
|
||||
* of bytes. `TextDecoder` can be used to transform the bytes to string if
|
||||
|
@ -2938,7 +2938,7 @@ declare namespace Deno {
|
|||
* @tags allow-read
|
||||
* @category File System
|
||||
*/
|
||||
export function readFileSync(path: string | URL): Uint8Array;
|
||||
export function readFileSync(path: string | URL): Uint8Array<ArrayBuffer>;
|
||||
|
||||
/** Provides information about a file and is returned by
|
||||
* {@linkcode Deno.stat}, {@linkcode Deno.lstat}, {@linkcode Deno.statSync},
|
||||
|
@ -3731,9 +3731,9 @@ declare namespace Deno {
|
|||
* @category Subprocess
|
||||
*/
|
||||
export class ChildProcess implements AsyncDisposable {
|
||||
get stdin(): WritableStream<Uint8Array>;
|
||||
get stdout(): ReadableStream<Uint8Array>;
|
||||
get stderr(): ReadableStream<Uint8Array>;
|
||||
get stdin(): WritableStream<Uint8Array<ArrayBufferLike>>;
|
||||
get stdout(): ReadableStream<Uint8Array<ArrayBuffer>>;
|
||||
get stderr(): ReadableStream<Uint8Array<ArrayBuffer>>;
|
||||
readonly pid: number;
|
||||
/** Get the status of the child. */
|
||||
readonly status: Promise<CommandStatus>;
|
||||
|
@ -3845,9 +3845,9 @@ declare namespace Deno {
|
|||
*/
|
||||
export interface CommandOutput extends CommandStatus {
|
||||
/** The buffered output from the child process' `stdout`. */
|
||||
readonly stdout: Uint8Array;
|
||||
readonly stdout: Uint8Array<ArrayBuffer>;
|
||||
/** The buffered output from the child process' `stderr`. */
|
||||
readonly stderr: Uint8Array;
|
||||
readonly stderr: Uint8Array<ArrayBuffer>;
|
||||
}
|
||||
|
||||
/** Option which can be specified when performing {@linkcode Deno.inspect}.
|
||||
|
|
371
cli/tsc/dts/lib.deno.unstable.d.ts
vendored
371
cli/tsc/dts/lib.deno.unstable.d.ts
vendored
|
@ -77,7 +77,8 @@ declare namespace Deno {
|
|||
* @category Network
|
||||
* @experimental
|
||||
*/
|
||||
export interface DatagramConn extends AsyncIterable<[Uint8Array, Addr]> {
|
||||
export interface DatagramConn
|
||||
extends AsyncIterable<[Uint8Array<ArrayBuffer>, Addr]> {
|
||||
/** Joins an IPv4 multicast group. */
|
||||
joinMulticastV4(
|
||||
address: string,
|
||||
|
@ -95,7 +96,7 @@ declare namespace Deno {
|
|||
* Messages are received in the format of a tuple containing the data array
|
||||
* and the address information.
|
||||
*/
|
||||
receive(p?: Uint8Array): Promise<[Uint8Array, Addr]>;
|
||||
receive(p?: Uint8Array): Promise<[Uint8Array<ArrayBuffer>, Addr]>;
|
||||
/** Sends a message to the target via the connection. The method resolves
|
||||
* with the number of bytes sent. */
|
||||
send(p: Uint8Array, addr: Addr): Promise<number>;
|
||||
|
@ -104,7 +105,9 @@ declare namespace Deno {
|
|||
close(): void;
|
||||
/** Return the address of the instance. */
|
||||
readonly addr: Addr;
|
||||
[Symbol.asyncIterator](): AsyncIterableIterator<[Uint8Array, Addr]>;
|
||||
[Symbol.asyncIterator](): AsyncIterableIterator<
|
||||
[Uint8Array<ArrayBuffer>, Addr]
|
||||
>;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -1402,8 +1405,8 @@ interface WebSocketStreamOptions {
|
|||
* @experimental
|
||||
*/
|
||||
interface WebSocketConnection {
|
||||
readable: ReadableStream<string | Uint8Array>;
|
||||
writable: WritableStream<string | Uint8Array>;
|
||||
readable: ReadableStream<string | Uint8Array<ArrayBuffer>>;
|
||||
writable: WritableStream<string | Uint8Array<ArrayBufferLike>>;
|
||||
extensions: string;
|
||||
protocol: string;
|
||||
}
|
||||
|
@ -2605,7 +2608,7 @@ declare namespace Temporal {
|
|||
* `Temporal.PlainDateTime` by combining it with a `Temporal.PlainDate` using the
|
||||
* `toPlainDateTime()` method.
|
||||
*
|
||||
* See https://tc39.es/proposal-temporal/docs/time.html for more details.
|
||||
* See https://tc39.es/proposal-temporal/docs/plaintime.html for more details.
|
||||
*
|
||||
* @category Temporal
|
||||
* @experimental
|
||||
|
@ -3110,7 +3113,7 @@ declare namespace Intl {
|
|||
* @category Platform
|
||||
* @experimental
|
||||
*/
|
||||
interface Float16Array {
|
||||
interface Float16Array<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> {
|
||||
/**
|
||||
* The size in bytes of each element in the array.
|
||||
*/
|
||||
|
@ -3119,7 +3122,7 @@ interface Float16Array {
|
|||
/**
|
||||
* The ArrayBuffer instance referenced by the array.
|
||||
*/
|
||||
readonly buffer: ArrayBufferLike;
|
||||
readonly buffer: TArrayBuffer;
|
||||
|
||||
/**
|
||||
* The length in bytes of the array.
|
||||
|
@ -3131,6 +3134,12 @@ interface Float16Array {
|
|||
*/
|
||||
readonly byteOffset: number;
|
||||
|
||||
/**
|
||||
* Returns the item located at the specified index.
|
||||
* @param index The zero-based index of the desired code unit. A negative index will count back from the last item.
|
||||
*/
|
||||
at(index: number): number | undefined;
|
||||
|
||||
/**
|
||||
* Returns the this object after copying a section of the array identified by start and end
|
||||
* to the same array starting at position target
|
||||
|
@ -3151,7 +3160,7 @@ interface Float16Array {
|
|||
* If thisArg is omitted, undefined is used as the this value.
|
||||
*/
|
||||
every(
|
||||
predicate: (value: number, index: number, array: Float16Array) => unknown,
|
||||
predicate: (value: number, index: number, array: this) => unknown,
|
||||
thisArg?: any,
|
||||
): boolean;
|
||||
|
||||
|
@ -3173,9 +3182,9 @@ interface Float16Array {
|
|||
* If thisArg is omitted, undefined is used as the this value.
|
||||
*/
|
||||
filter(
|
||||
predicate: (value: number, index: number, array: Float16Array) => any,
|
||||
predicate: (value: number, index: number, array: this) => any,
|
||||
thisArg?: any,
|
||||
): Float16Array;
|
||||
): Float16Array<ArrayBuffer>;
|
||||
|
||||
/**
|
||||
* Returns the value of the first element in the array where predicate is true, and undefined
|
||||
|
@ -3187,7 +3196,7 @@ interface Float16Array {
|
|||
* predicate. If it is not provided, undefined is used instead.
|
||||
*/
|
||||
find(
|
||||
predicate: (value: number, index: number, obj: Float16Array) => boolean,
|
||||
predicate: (value: number, index: number, obj: this) => boolean,
|
||||
thisArg?: any,
|
||||
): number | undefined;
|
||||
|
||||
|
@ -3201,7 +3210,51 @@ interface Float16Array {
|
|||
* predicate. If it is not provided, undefined is used instead.
|
||||
*/
|
||||
findIndex(
|
||||
predicate: (value: number, index: number, obj: Float16Array) => boolean,
|
||||
predicate: (value: number, index: number, obj: this) => boolean,
|
||||
thisArg?: any,
|
||||
): number;
|
||||
|
||||
/**
|
||||
* Returns the value of the last element in the array where predicate is true, and undefined
|
||||
* otherwise.
|
||||
* @param predicate findLast calls predicate once for each element of the array, in descending
|
||||
* order, until it finds one where predicate returns true. If such an element is found, findLast
|
||||
* immediately returns that element value. Otherwise, findLast returns undefined.
|
||||
* @param thisArg If provided, it will be used as the this value for each invocation of
|
||||
* predicate. If it is not provided, undefined is used instead.
|
||||
*/
|
||||
findLast<S extends number>(
|
||||
predicate: (
|
||||
value: number,
|
||||
index: number,
|
||||
array: this,
|
||||
) => value is S,
|
||||
thisArg?: any,
|
||||
): S | undefined;
|
||||
findLast(
|
||||
predicate: (
|
||||
value: number,
|
||||
index: number,
|
||||
array: this,
|
||||
) => unknown,
|
||||
thisArg?: any,
|
||||
): number | undefined;
|
||||
|
||||
/**
|
||||
* Returns the index of the last element in the array where predicate is true, and -1
|
||||
* otherwise.
|
||||
* @param predicate findLastIndex calls predicate once for each element of the array, in descending
|
||||
* order, until it finds one where predicate returns true. If such an element is found,
|
||||
* findLastIndex immediately returns that element index. Otherwise, findLastIndex returns -1.
|
||||
* @param thisArg If provided, it will be used as the this value for each invocation of
|
||||
* predicate. If it is not provided, undefined is used instead.
|
||||
*/
|
||||
findLastIndex(
|
||||
predicate: (
|
||||
value: number,
|
||||
index: number,
|
||||
array: this,
|
||||
) => unknown,
|
||||
thisArg?: any,
|
||||
): number;
|
||||
|
||||
|
@ -3213,10 +3266,17 @@ interface Float16Array {
|
|||
* If thisArg is omitted, undefined is used as the this value.
|
||||
*/
|
||||
forEach(
|
||||
callbackfn: (value: number, index: number, array: Float16Array) => void,
|
||||
callbackfn: (value: number, index: number, array: this) => void,
|
||||
thisArg?: any,
|
||||
): void;
|
||||
|
||||
/**
|
||||
* Determines whether an array includes a certain element, returning true or false as appropriate.
|
||||
* @param searchElement The element to search for.
|
||||
* @param fromIndex The position in this array at which to begin searching for searchElement.
|
||||
*/
|
||||
includes(searchElement: number, fromIndex?: number): boolean;
|
||||
|
||||
/**
|
||||
* Returns the index of the first occurrence of a value in an array.
|
||||
* @param searchElement The value to locate in the array.
|
||||
|
@ -3254,9 +3314,9 @@ interface Float16Array {
|
|||
* If thisArg is omitted, undefined is used as the this value.
|
||||
*/
|
||||
map(
|
||||
callbackfn: (value: number, index: number, array: Float16Array) => number,
|
||||
callbackfn: (value: number, index: number, array: this) => number,
|
||||
thisArg?: any,
|
||||
): Float16Array;
|
||||
): Float16Array<ArrayBuffer>;
|
||||
|
||||
/**
|
||||
* Calls the specified callback function for all the elements in an array. The return value of
|
||||
|
@ -3273,7 +3333,7 @@ interface Float16Array {
|
|||
previousValue: number,
|
||||
currentValue: number,
|
||||
currentIndex: number,
|
||||
array: Float16Array,
|
||||
array: this,
|
||||
) => number,
|
||||
): number;
|
||||
reduce(
|
||||
|
@ -3281,7 +3341,7 @@ interface Float16Array {
|
|||
previousValue: number,
|
||||
currentValue: number,
|
||||
currentIndex: number,
|
||||
array: Float16Array,
|
||||
array: this,
|
||||
) => number,
|
||||
initialValue: number,
|
||||
): number;
|
||||
|
@ -3301,7 +3361,7 @@ interface Float16Array {
|
|||
previousValue: U,
|
||||
currentValue: number,
|
||||
currentIndex: number,
|
||||
array: Float16Array,
|
||||
array: this,
|
||||
) => U,
|
||||
initialValue: U,
|
||||
): U;
|
||||
|
@ -3321,7 +3381,7 @@ interface Float16Array {
|
|||
previousValue: number,
|
||||
currentValue: number,
|
||||
currentIndex: number,
|
||||
array: Float16Array,
|
||||
array: this,
|
||||
) => number,
|
||||
): number;
|
||||
reduceRight(
|
||||
|
@ -3329,7 +3389,7 @@ interface Float16Array {
|
|||
previousValue: number,
|
||||
currentValue: number,
|
||||
currentIndex: number,
|
||||
array: Float16Array,
|
||||
array: this,
|
||||
) => number,
|
||||
initialValue: number,
|
||||
): number;
|
||||
|
@ -3349,7 +3409,7 @@ interface Float16Array {
|
|||
previousValue: U,
|
||||
currentValue: number,
|
||||
currentIndex: number,
|
||||
array: Float16Array,
|
||||
array: this,
|
||||
) => U,
|
||||
initialValue: U,
|
||||
): U;
|
||||
|
@ -3357,7 +3417,7 @@ interface Float16Array {
|
|||
/**
|
||||
* Reverses the elements in an Array.
|
||||
*/
|
||||
reverse(): Float16Array;
|
||||
reverse(): this;
|
||||
|
||||
/**
|
||||
* Sets a value or an array of values.
|
||||
|
@ -3371,7 +3431,7 @@ interface Float16Array {
|
|||
* @param start The beginning of the specified portion of the array.
|
||||
* @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'.
|
||||
*/
|
||||
slice(start?: number, end?: number): Float16Array;
|
||||
slice(start?: number, end?: number): Float16Array<ArrayBuffer>;
|
||||
|
||||
/**
|
||||
* Determines whether the specified callback function returns true for any element of an array.
|
||||
|
@ -3382,7 +3442,7 @@ interface Float16Array {
|
|||
* If thisArg is omitted, undefined is used as the this value.
|
||||
*/
|
||||
some(
|
||||
predicate: (value: number, index: number, array: Float16Array) => unknown,
|
||||
predicate: (value: number, index: number, array: this) => unknown,
|
||||
thisArg?: any,
|
||||
): boolean;
|
||||
|
||||
|
@ -3403,12 +3463,34 @@ interface Float16Array {
|
|||
* @param begin The index of the beginning of the array.
|
||||
* @param end The index of the end of the array.
|
||||
*/
|
||||
subarray(begin?: number, end?: number): Float16Array;
|
||||
subarray(begin?: number, end?: number): Float16Array<TArrayBuffer>;
|
||||
|
||||
/**
|
||||
* Converts a number to a string by using the current locale.
|
||||
*/
|
||||
toLocaleString(): string;
|
||||
toLocaleString(
|
||||
locales?: string | string[],
|
||||
options?: Intl.NumberFormatOptions,
|
||||
): string;
|
||||
|
||||
/**
|
||||
* Copies the array and returns the copy with the elements in reverse order.
|
||||
*/
|
||||
toReversed(): Float16Array<ArrayBuffer>;
|
||||
|
||||
/**
|
||||
* Copies and sorts the array.
|
||||
* @param compareFn Function used to determine the order of the elements. It is expected to return
|
||||
* a negative value if the first argument is less than the second argument, zero if they're equal, and a positive
|
||||
* value otherwise. If omitted, the elements are sorted in ascending order.
|
||||
* ```ts
|
||||
* const myNums = Float16Array.from([11.25, 2, -22.5, 1]);
|
||||
* myNums.toSorted((a, b) => a - b) // Float16Array<Buffer>(4) [-22.5, 1, 2, 11.5]
|
||||
* ```
|
||||
*/
|
||||
toSorted(
|
||||
compareFn?: (a: number, b: number) => number,
|
||||
): Float16Array<ArrayBuffer>;
|
||||
|
||||
/**
|
||||
* Returns a string representation of an array.
|
||||
|
@ -3416,9 +3498,37 @@ interface Float16Array {
|
|||
toString(): string;
|
||||
|
||||
/** Returns the primitive value of the specified object. */
|
||||
valueOf(): Float16Array;
|
||||
valueOf(): this;
|
||||
|
||||
/**
|
||||
* Copies the array and inserts the given number at the provided index.
|
||||
* @param index The index of the value to overwrite. If the index is
|
||||
* negative, then it replaces from the end of the array.
|
||||
* @param value The value to insert into the copied array.
|
||||
* @returns A copy of the original array with the inserted value.
|
||||
*/
|
||||
with(index: number, value: number): Float16Array<ArrayBuffer>;
|
||||
|
||||
[index: number]: number;
|
||||
|
||||
[Symbol.iterator](): ArrayIterator<number>;
|
||||
|
||||
/**
|
||||
* Returns an array of key, value pairs for every entry in the array
|
||||
*/
|
||||
entries(): ArrayIterator<[number, number]>;
|
||||
|
||||
/**
|
||||
* Returns an list of keys in the array
|
||||
*/
|
||||
keys(): ArrayIterator<number>;
|
||||
|
||||
/**
|
||||
* Returns an list of values in the array
|
||||
*/
|
||||
values(): ArrayIterator<number>;
|
||||
|
||||
readonly [Symbol.toStringTag]: "Float16Array";
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -3426,14 +3536,14 @@ interface Float16Array {
|
|||
* @experimental
|
||||
*/
|
||||
interface Float16ArrayConstructor {
|
||||
readonly prototype: Float16Array;
|
||||
new (length: number): Float16Array;
|
||||
new (array: ArrayLike<number> | ArrayBufferLike): Float16Array;
|
||||
new (
|
||||
buffer: ArrayBufferLike,
|
||||
readonly prototype: Float16Array<ArrayBufferLike>;
|
||||
new (length?: number): Float16Array<ArrayBuffer>;
|
||||
new (array: ArrayLike<number> | Iterable<number>): Float16Array<ArrayBuffer>;
|
||||
new <TArrayBuffer extends ArrayBufferLike = ArrayBuffer>(
|
||||
buffer: TArrayBuffer,
|
||||
byteOffset?: number,
|
||||
length?: number,
|
||||
): Float16Array;
|
||||
): Float16Array<TArrayBuffer>;
|
||||
|
||||
/**
|
||||
* The size in bytes of each element in the array.
|
||||
|
@ -3444,17 +3554,17 @@ interface Float16ArrayConstructor {
|
|||
* Returns a new array from a set of elements.
|
||||
* @param items A set of elements to include in the new array object.
|
||||
*/
|
||||
of(...items: number[]): Float16Array;
|
||||
of(...items: number[]): Float16Array<ArrayBuffer>;
|
||||
|
||||
/**
|
||||
* Creates an array from an array-like or iterable object.
|
||||
* @param arrayLike An array-like or iterable object to convert to an array.
|
||||
* @param arrayLike An array-like object to convert to an array.
|
||||
*/
|
||||
from(arrayLike: ArrayLike<number>): Float16Array;
|
||||
from(arrayLike: ArrayLike<number>): Float16Array<ArrayBuffer>;
|
||||
|
||||
/**
|
||||
* Creates an array from an array-like or iterable object.
|
||||
* @param arrayLike An array-like or iterable object to convert to an array.
|
||||
* @param arrayLike An array-like object to convert to an array.
|
||||
* @param mapfn A mapping function to call on every element of the array.
|
||||
* @param thisArg Value of 'this' used to invoke the mapfn.
|
||||
*/
|
||||
|
@ -3462,8 +3572,27 @@ interface Float16ArrayConstructor {
|
|||
arrayLike: ArrayLike<T>,
|
||||
mapfn: (v: T, k: number) => number,
|
||||
thisArg?: any,
|
||||
): Float16Array;
|
||||
): Float16Array<ArrayBuffer>;
|
||||
|
||||
/**
|
||||
* Creates an array from an array-like or iterable object.
|
||||
* @param elements An iterable object to convert to an array.
|
||||
*/
|
||||
from(elements: Iterable<number>): Float16Array<ArrayBuffer>;
|
||||
|
||||
/**
|
||||
* Creates an array from an array-like or iterable object.
|
||||
* @param elements An iterable object to convert to an array.
|
||||
* @param mapfn A mapping function to call on every element of the array.
|
||||
* @param thisArg Value of 'this' used to invoke the mapfn.
|
||||
*/
|
||||
from<T>(
|
||||
elements: Iterable<T>,
|
||||
mapfn?: (v: T, k: number) => number,
|
||||
thisArg?: any,
|
||||
): Float16Array<ArrayBuffer>;
|
||||
}
|
||||
|
||||
/**
|
||||
* @category Platform
|
||||
* @experimental
|
||||
|
@ -3474,169 +3603,30 @@ declare var Float16Array: Float16ArrayConstructor;
|
|||
* @category Platform
|
||||
* @experimental
|
||||
*/
|
||||
interface Float16Array {
|
||||
[Symbol.iterator](): IterableIterator<number>;
|
||||
interface Math {
|
||||
/**
|
||||
* Returns an array of key, value pairs for every entry in the array
|
||||
* Returns the nearest half precision float representation of a number.
|
||||
* @param x A numeric expression.
|
||||
*
|
||||
* @category Platform
|
||||
* @experimental
|
||||
*/
|
||||
entries(): IterableIterator<[number, number]>;
|
||||
/**
|
||||
* Returns an list of keys in the array
|
||||
*/
|
||||
keys(): IterableIterator<number>;
|
||||
/**
|
||||
* Returns an list of values in the array
|
||||
*/
|
||||
values(): IterableIterator<number>;
|
||||
f16round(x: number): number;
|
||||
}
|
||||
|
||||
/**
|
||||
* @category Platform
|
||||
* @experimental
|
||||
*/
|
||||
interface Float16Constructor {
|
||||
new (elements: Iterable<number>): Float16Array;
|
||||
|
||||
/**
|
||||
* Creates an array from an array-like or iterable object.
|
||||
* @param arrayLike An array-like or iterable object to convert to an array.
|
||||
* @param mapfn A mapping function to call on every element of the array.
|
||||
* @param thisArg Value of 'this' used to invoke the mapfn.
|
||||
*/
|
||||
from(
|
||||
arrayLike: Iterable<number>,
|
||||
mapfn?: (v: number, k: number) => number,
|
||||
thisArg?: any,
|
||||
): Float16Array;
|
||||
}
|
||||
|
||||
/**
|
||||
* @category Platform
|
||||
* @experimental
|
||||
*/
|
||||
interface Float16Array {
|
||||
readonly [Symbol.toStringTag]: "Float16Array";
|
||||
}
|
||||
|
||||
/**
|
||||
* @category Platform
|
||||
* @experimental
|
||||
*/
|
||||
interface Float16Array {
|
||||
/**
|
||||
* Determines whether an array includes a certain element, returning true or false as appropriate.
|
||||
* @param searchElement The element to search for.
|
||||
* @param fromIndex The position in this array at which to begin searching for searchElement.
|
||||
*/
|
||||
includes(searchElement: number, fromIndex?: number): boolean;
|
||||
}
|
||||
|
||||
/**
|
||||
* @category Platform
|
||||
* @experimental
|
||||
*/
|
||||
interface Float16ArrayConstructor {
|
||||
new (): Float16Array;
|
||||
}
|
||||
|
||||
/**
|
||||
* @category Platform
|
||||
* @experimental
|
||||
*/
|
||||
interface Float16Array {
|
||||
/**
|
||||
* Returns the item located at the specified index.
|
||||
* @param index The zero-based index of the desired code unit. A negative index will count back from the last item.
|
||||
*/
|
||||
at(index: number): number | undefined;
|
||||
}
|
||||
|
||||
/**
|
||||
* @category Platform
|
||||
* @experimental
|
||||
*/
|
||||
interface Float16Array {
|
||||
/**
|
||||
* Returns the value of the last element in the array where predicate is true, and undefined
|
||||
* otherwise.
|
||||
* @param predicate findLast calls predicate once for each element of the array, in descending
|
||||
* order, until it finds one where predicate returns true. If such an element is found, findLast
|
||||
* immediately returns that element value. Otherwise, findLast returns undefined.
|
||||
* @param thisArg If provided, it will be used as the this value for each invocation of
|
||||
* predicate. If it is not provided, undefined is used instead.
|
||||
*/
|
||||
findLast<S extends number>(
|
||||
predicate: (
|
||||
value: number,
|
||||
index: number,
|
||||
array: Float16Array,
|
||||
) => value is S,
|
||||
thisArg?: any,
|
||||
): S | undefined;
|
||||
findLast(
|
||||
predicate: (
|
||||
value: number,
|
||||
index: number,
|
||||
array: Float16Array,
|
||||
) => unknown,
|
||||
thisArg?: any,
|
||||
): number | undefined;
|
||||
|
||||
/**
|
||||
* Returns the index of the last element in the array where predicate is true, and -1
|
||||
* otherwise.
|
||||
* @param predicate findLastIndex calls predicate once for each element of the array, in descending
|
||||
* order, until it finds one where predicate returns true. If such an element is found,
|
||||
* findLastIndex immediately returns that element index. Otherwise, findLastIndex returns -1.
|
||||
* @param thisArg If provided, it will be used as the this value for each invocation of
|
||||
* predicate. If it is not provided, undefined is used instead.
|
||||
*/
|
||||
findLastIndex(
|
||||
predicate: (
|
||||
value: number,
|
||||
index: number,
|
||||
array: Float16Array,
|
||||
) => unknown,
|
||||
thisArg?: any,
|
||||
): number;
|
||||
|
||||
/**
|
||||
* Copies the array and returns the copy with the elements in reverse order.
|
||||
*/
|
||||
toReversed(): Float16Array;
|
||||
|
||||
/**
|
||||
* Copies and sorts the array.
|
||||
* @param compareFn Function used to determine the order of the elements. It is expected to return
|
||||
* a negative value if the first argument is less than the second argument, zero if they're equal, and a positive
|
||||
* value otherwise. If omitted, the elements are sorted in ascending order.
|
||||
* ```ts
|
||||
* const myNums = Float16Array.from([11.25, 2, -22.5, 1]);
|
||||
* myNums.toSorted((a, b) => a - b) // Float16Array(4) [-22.5, 1, 2, 11.5]
|
||||
* ```
|
||||
*/
|
||||
toSorted(compareFn?: (a: number, b: number) => number): Float16Array;
|
||||
|
||||
/**
|
||||
* Copies the array and inserts the given number at the provided index.
|
||||
* @param index The index of the value to overwrite. If the index is
|
||||
* negative, then it replaces from the end of the array.
|
||||
* @param value The value to insert into the copied array.
|
||||
* @returns A copy of the original array with the inserted value.
|
||||
*/
|
||||
with(index: number, value: number): Float16Array;
|
||||
}
|
||||
|
||||
/**
|
||||
* @category Platform
|
||||
* @experimental
|
||||
*/
|
||||
interface DataView {
|
||||
interface DataView<TArrayBuffer extends ArrayBufferLike> {
|
||||
/**
|
||||
* Gets the Float16 value at the specified byte offset from the start of the view. There is
|
||||
* no alignment constraint; multi-byte values may be fetched from any offset.
|
||||
* @param byteOffset The place in the buffer at which the value should be retrieved.
|
||||
* @param littleEndian If false or undefined, a big-endian value should be read.
|
||||
*
|
||||
* @category Platform
|
||||
* @experimental
|
||||
*/
|
||||
getFloat16(byteOffset: number, littleEndian?: boolean): number;
|
||||
|
||||
|
@ -3645,6 +3635,9 @@ interface DataView {
|
|||
* @param byteOffset The place in the buffer at which the value should be set.
|
||||
* @param value The value to set.
|
||||
* @param littleEndian If false or undefined, a big-endian value should be written.
|
||||
*
|
||||
* @category Platform
|
||||
* @experimental
|
||||
*/
|
||||
setFloat16(byteOffset: number, value: number, littleEndian?: boolean): void;
|
||||
}
|
||||
|
|
1336
cli/tsc/dts/lib.dom.d.ts
vendored
1336
cli/tsc/dts/lib.dom.d.ts
vendored
File diff suppressed because it is too large
Load diff
18
cli/tsc/dts/lib.es2015.core.d.ts
vendored
18
cli/tsc/dts/lib.es2015.core.d.ts
vendored
|
@ -560,38 +560,38 @@ interface StringConstructor {
|
|||
raw(template: { raw: readonly string[] | ArrayLike<string>; }, ...substitutions: any[]): string;
|
||||
}
|
||||
|
||||
interface Int8Array {
|
||||
interface Int8Array<TArrayBuffer extends ArrayBufferLike> {
|
||||
toLocaleString(locales: string | string[], options?: Intl.NumberFormatOptions): string;
|
||||
}
|
||||
|
||||
interface Uint8Array {
|
||||
interface Uint8Array<TArrayBuffer extends ArrayBufferLike> {
|
||||
toLocaleString(locales: string | string[], options?: Intl.NumberFormatOptions): string;
|
||||
}
|
||||
|
||||
interface Uint8ClampedArray {
|
||||
interface Uint8ClampedArray<TArrayBuffer extends ArrayBufferLike> {
|
||||
toLocaleString(locales: string | string[], options?: Intl.NumberFormatOptions): string;
|
||||
}
|
||||
|
||||
interface Int16Array {
|
||||
interface Int16Array<TArrayBuffer extends ArrayBufferLike> {
|
||||
toLocaleString(locales: string | string[], options?: Intl.NumberFormatOptions): string;
|
||||
}
|
||||
|
||||
interface Uint16Array {
|
||||
interface Uint16Array<TArrayBuffer extends ArrayBufferLike> {
|
||||
toLocaleString(locales: string | string[], options?: Intl.NumberFormatOptions): string;
|
||||
}
|
||||
|
||||
interface Int32Array {
|
||||
interface Int32Array<TArrayBuffer extends ArrayBufferLike> {
|
||||
toLocaleString(locales: string | string[], options?: Intl.NumberFormatOptions): string;
|
||||
}
|
||||
|
||||
interface Uint32Array {
|
||||
interface Uint32Array<TArrayBuffer extends ArrayBufferLike> {
|
||||
toLocaleString(locales: string | string[], options?: Intl.NumberFormatOptions): string;
|
||||
}
|
||||
|
||||
interface Float32Array {
|
||||
interface Float32Array<TArrayBuffer extends ArrayBufferLike> {
|
||||
toLocaleString(locales: string | string[], options?: Intl.NumberFormatOptions): string;
|
||||
}
|
||||
|
||||
interface Float64Array {
|
||||
interface Float64Array<TArrayBuffer extends ArrayBufferLike> {
|
||||
toLocaleString(locales: string | string[], options?: Intl.NumberFormatOptions): string;
|
||||
}
|
||||
|
|
117
cli/tsc/dts/lib.es2015.iterable.d.ts
vendored
117
cli/tsc/dts/lib.es2015.iterable.d.ts
vendored
|
@ -270,7 +270,7 @@ interface String {
|
|||
[Symbol.iterator](): StringIterator<string>;
|
||||
}
|
||||
|
||||
interface Int8Array {
|
||||
interface Int8Array<TArrayBuffer extends ArrayBufferLike> {
|
||||
[Symbol.iterator](): ArrayIterator<number>;
|
||||
/**
|
||||
* Returns an array of key, value pairs for every entry in the array
|
||||
|
@ -287,7 +287,7 @@ interface Int8Array {
|
|||
}
|
||||
|
||||
interface Int8ArrayConstructor {
|
||||
new (elements: Iterable<number>): Int8Array;
|
||||
new (elements: Iterable<number>): Int8Array<ArrayBuffer>;
|
||||
|
||||
/**
|
||||
* Creates an array from an array-like or iterable object.
|
||||
|
@ -295,10 +295,17 @@ interface Int8ArrayConstructor {
|
|||
* @param mapfn A mapping function to call on every element of the array.
|
||||
* @param thisArg Value of 'this' used to invoke the mapfn.
|
||||
*/
|
||||
from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Int8Array;
|
||||
from(arrayLike: Iterable<number>): Int8Array<ArrayBuffer>;
|
||||
/**
|
||||
* Creates an array from an array-like or iterable object.
|
||||
* @param arrayLike An array-like or iterable object to convert to an array.
|
||||
* @param mapfn A mapping function to call on every element of the array.
|
||||
* @param thisArg Value of 'this' used to invoke the mapfn.
|
||||
*/
|
||||
from<T>(arrayLike: Iterable<T>, mapfn?: (v: T, k: number) => number, thisArg?: any): Int8Array<ArrayBuffer>;
|
||||
}
|
||||
|
||||
interface Uint8Array {
|
||||
interface Uint8Array<TArrayBuffer extends ArrayBufferLike> {
|
||||
[Symbol.iterator](): ArrayIterator<number>;
|
||||
/**
|
||||
* Returns an array of key, value pairs for every entry in the array
|
||||
|
@ -315,7 +322,7 @@ interface Uint8Array {
|
|||
}
|
||||
|
||||
interface Uint8ArrayConstructor {
|
||||
new (elements: Iterable<number>): Uint8Array;
|
||||
new (elements: Iterable<number>): Uint8Array<ArrayBuffer>;
|
||||
|
||||
/**
|
||||
* Creates an array from an array-like or iterable object.
|
||||
|
@ -323,10 +330,17 @@ interface Uint8ArrayConstructor {
|
|||
* @param mapfn A mapping function to call on every element of the array.
|
||||
* @param thisArg Value of 'this' used to invoke the mapfn.
|
||||
*/
|
||||
from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Uint8Array;
|
||||
from(arrayLike: Iterable<number>): Uint8Array<ArrayBuffer>;
|
||||
/**
|
||||
* Creates an array from an array-like or iterable object.
|
||||
* @param arrayLike An array-like or iterable object to convert to an array.
|
||||
* @param mapfn A mapping function to call on every element of the array.
|
||||
* @param thisArg Value of 'this' used to invoke the mapfn.
|
||||
*/
|
||||
from<T>(arrayLike: Iterable<T>, mapfn?: (v: T, k: number) => number, thisArg?: any): Uint8Array<ArrayBuffer>;
|
||||
}
|
||||
|
||||
interface Uint8ClampedArray {
|
||||
interface Uint8ClampedArray<TArrayBuffer extends ArrayBufferLike> {
|
||||
[Symbol.iterator](): ArrayIterator<number>;
|
||||
/**
|
||||
* Returns an array of key, value pairs for every entry in the array
|
||||
|
@ -345,7 +359,7 @@ interface Uint8ClampedArray {
|
|||
}
|
||||
|
||||
interface Uint8ClampedArrayConstructor {
|
||||
new (elements: Iterable<number>): Uint8ClampedArray;
|
||||
new (elements: Iterable<number>): Uint8ClampedArray<ArrayBuffer>;
|
||||
|
||||
/**
|
||||
* Creates an array from an array-like or iterable object.
|
||||
|
@ -353,10 +367,17 @@ interface Uint8ClampedArrayConstructor {
|
|||
* @param mapfn A mapping function to call on every element of the array.
|
||||
* @param thisArg Value of 'this' used to invoke the mapfn.
|
||||
*/
|
||||
from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Uint8ClampedArray;
|
||||
from(arrayLike: Iterable<number>): Uint8ClampedArray<ArrayBuffer>;
|
||||
/**
|
||||
* Creates an array from an array-like or iterable object.
|
||||
* @param arrayLike An array-like or iterable object to convert to an array.
|
||||
* @param mapfn A mapping function to call on every element of the array.
|
||||
* @param thisArg Value of 'this' used to invoke the mapfn.
|
||||
*/
|
||||
from<T>(arrayLike: Iterable<T>, mapfn?: (v: T, k: number) => number, thisArg?: any): Uint8ClampedArray<ArrayBuffer>;
|
||||
}
|
||||
|
||||
interface Int16Array {
|
||||
interface Int16Array<TArrayBuffer extends ArrayBufferLike> {
|
||||
[Symbol.iterator](): ArrayIterator<number>;
|
||||
/**
|
||||
* Returns an array of key, value pairs for every entry in the array
|
||||
|
@ -375,7 +396,7 @@ interface Int16Array {
|
|||
}
|
||||
|
||||
interface Int16ArrayConstructor {
|
||||
new (elements: Iterable<number>): Int16Array;
|
||||
new (elements: Iterable<number>): Int16Array<ArrayBuffer>;
|
||||
|
||||
/**
|
||||
* Creates an array from an array-like or iterable object.
|
||||
|
@ -383,10 +404,17 @@ interface Int16ArrayConstructor {
|
|||
* @param mapfn A mapping function to call on every element of the array.
|
||||
* @param thisArg Value of 'this' used to invoke the mapfn.
|
||||
*/
|
||||
from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Int16Array;
|
||||
from(arrayLike: Iterable<number>): Int16Array<ArrayBuffer>;
|
||||
/**
|
||||
* Creates an array from an array-like or iterable object.
|
||||
* @param arrayLike An array-like or iterable object to convert to an array.
|
||||
* @param mapfn A mapping function to call on every element of the array.
|
||||
* @param thisArg Value of 'this' used to invoke the mapfn.
|
||||
*/
|
||||
from<T>(arrayLike: Iterable<T>, mapfn?: (v: T, k: number) => number, thisArg?: any): Int16Array<ArrayBuffer>;
|
||||
}
|
||||
|
||||
interface Uint16Array {
|
||||
interface Uint16Array<TArrayBuffer extends ArrayBufferLike> {
|
||||
[Symbol.iterator](): ArrayIterator<number>;
|
||||
/**
|
||||
* Returns an array of key, value pairs for every entry in the array
|
||||
|
@ -403,7 +431,7 @@ interface Uint16Array {
|
|||
}
|
||||
|
||||
interface Uint16ArrayConstructor {
|
||||
new (elements: Iterable<number>): Uint16Array;
|
||||
new (elements: Iterable<number>): Uint16Array<ArrayBuffer>;
|
||||
|
||||
/**
|
||||
* Creates an array from an array-like or iterable object.
|
||||
|
@ -411,10 +439,17 @@ interface Uint16ArrayConstructor {
|
|||
* @param mapfn A mapping function to call on every element of the array.
|
||||
* @param thisArg Value of 'this' used to invoke the mapfn.
|
||||
*/
|
||||
from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Uint16Array;
|
||||
from(arrayLike: Iterable<number>): Uint16Array<ArrayBuffer>;
|
||||
/**
|
||||
* Creates an array from an array-like or iterable object.
|
||||
* @param arrayLike An array-like or iterable object to convert to an array.
|
||||
* @param mapfn A mapping function to call on every element of the array.
|
||||
* @param thisArg Value of 'this' used to invoke the mapfn.
|
||||
*/
|
||||
from<T>(arrayLike: Iterable<T>, mapfn?: (v: T, k: number) => number, thisArg?: any): Uint16Array<ArrayBuffer>;
|
||||
}
|
||||
|
||||
interface Int32Array {
|
||||
interface Int32Array<TArrayBuffer extends ArrayBufferLike> {
|
||||
[Symbol.iterator](): ArrayIterator<number>;
|
||||
/**
|
||||
* Returns an array of key, value pairs for every entry in the array
|
||||
|
@ -431,7 +466,7 @@ interface Int32Array {
|
|||
}
|
||||
|
||||
interface Int32ArrayConstructor {
|
||||
new (elements: Iterable<number>): Int32Array;
|
||||
new (elements: Iterable<number>): Int32Array<ArrayBuffer>;
|
||||
|
||||
/**
|
||||
* Creates an array from an array-like or iterable object.
|
||||
|
@ -439,10 +474,17 @@ interface Int32ArrayConstructor {
|
|||
* @param mapfn A mapping function to call on every element of the array.
|
||||
* @param thisArg Value of 'this' used to invoke the mapfn.
|
||||
*/
|
||||
from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Int32Array;
|
||||
from(arrayLike: Iterable<number>): Int32Array<ArrayBuffer>;
|
||||
/**
|
||||
* Creates an array from an array-like or iterable object.
|
||||
* @param arrayLike An array-like or iterable object to convert to an array.
|
||||
* @param mapfn A mapping function to call on every element of the array.
|
||||
* @param thisArg Value of 'this' used to invoke the mapfn.
|
||||
*/
|
||||
from<T>(arrayLike: Iterable<T>, mapfn?: (v: T, k: number) => number, thisArg?: any): Int32Array<ArrayBuffer>;
|
||||
}
|
||||
|
||||
interface Uint32Array {
|
||||
interface Uint32Array<TArrayBuffer extends ArrayBufferLike> {
|
||||
[Symbol.iterator](): ArrayIterator<number>;
|
||||
/**
|
||||
* Returns an array of key, value pairs for every entry in the array
|
||||
|
@ -459,7 +501,7 @@ interface Uint32Array {
|
|||
}
|
||||
|
||||
interface Uint32ArrayConstructor {
|
||||
new (elements: Iterable<number>): Uint32Array;
|
||||
new (elements: Iterable<number>): Uint32Array<ArrayBuffer>;
|
||||
|
||||
/**
|
||||
* Creates an array from an array-like or iterable object.
|
||||
|
@ -467,10 +509,17 @@ interface Uint32ArrayConstructor {
|
|||
* @param mapfn A mapping function to call on every element of the array.
|
||||
* @param thisArg Value of 'this' used to invoke the mapfn.
|
||||
*/
|
||||
from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Uint32Array;
|
||||
from(arrayLike: Iterable<number>): Uint32Array<ArrayBuffer>;
|
||||
/**
|
||||
* Creates an array from an array-like or iterable object.
|
||||
* @param arrayLike An array-like or iterable object to convert to an array.
|
||||
* @param mapfn A mapping function to call on every element of the array.
|
||||
* @param thisArg Value of 'this' used to invoke the mapfn.
|
||||
*/
|
||||
from<T>(arrayLike: Iterable<T>, mapfn?: (v: T, k: number) => number, thisArg?: any): Uint32Array<ArrayBuffer>;
|
||||
}
|
||||
|
||||
interface Float32Array {
|
||||
interface Float32Array<TArrayBuffer extends ArrayBufferLike> {
|
||||
[Symbol.iterator](): ArrayIterator<number>;
|
||||
/**
|
||||
* Returns an array of key, value pairs for every entry in the array
|
||||
|
@ -487,7 +536,7 @@ interface Float32Array {
|
|||
}
|
||||
|
||||
interface Float32ArrayConstructor {
|
||||
new (elements: Iterable<number>): Float32Array;
|
||||
new (elements: Iterable<number>): Float32Array<ArrayBuffer>;
|
||||
|
||||
/**
|
||||
* Creates an array from an array-like or iterable object.
|
||||
|
@ -495,10 +544,17 @@ interface Float32ArrayConstructor {
|
|||
* @param mapfn A mapping function to call on every element of the array.
|
||||
* @param thisArg Value of 'this' used to invoke the mapfn.
|
||||
*/
|
||||
from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Float32Array;
|
||||
from(arrayLike: Iterable<number>): Float32Array<ArrayBuffer>;
|
||||
/**
|
||||
* Creates an array from an array-like or iterable object.
|
||||
* @param arrayLike An array-like or iterable object to convert to an array.
|
||||
* @param mapfn A mapping function to call on every element of the array.
|
||||
* @param thisArg Value of 'this' used to invoke the mapfn.
|
||||
*/
|
||||
from<T>(arrayLike: Iterable<T>, mapfn?: (v: T, k: number) => number, thisArg?: any): Float32Array<ArrayBuffer>;
|
||||
}
|
||||
|
||||
interface Float64Array {
|
||||
interface Float64Array<TArrayBuffer extends ArrayBufferLike> {
|
||||
[Symbol.iterator](): ArrayIterator<number>;
|
||||
/**
|
||||
* Returns an array of key, value pairs for every entry in the array
|
||||
|
@ -515,7 +571,7 @@ interface Float64Array {
|
|||
}
|
||||
|
||||
interface Float64ArrayConstructor {
|
||||
new (elements: Iterable<number>): Float64Array;
|
||||
new (elements: Iterable<number>): Float64Array<ArrayBuffer>;
|
||||
|
||||
/**
|
||||
* Creates an array from an array-like or iterable object.
|
||||
|
@ -523,5 +579,12 @@ interface Float64ArrayConstructor {
|
|||
* @param mapfn A mapping function to call on every element of the array.
|
||||
* @param thisArg Value of 'this' used to invoke the mapfn.
|
||||
*/
|
||||
from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Float64Array;
|
||||
from(arrayLike: Iterable<number>): Float64Array<ArrayBuffer>;
|
||||
/**
|
||||
* Creates an array from an array-like or iterable object.
|
||||
* @param arrayLike An array-like or iterable object to convert to an array.
|
||||
* @param mapfn A mapping function to call on every element of the array.
|
||||
* @param thisArg Value of 'this' used to invoke the mapfn.
|
||||
*/
|
||||
from<T>(arrayLike: Iterable<T>, mapfn?: (v: T, k: number) => number, thisArg?: any): Float64Array<ArrayBuffer>;
|
||||
}
|
||||
|
|
20
cli/tsc/dts/lib.es2015.symbol.wellknown.d.ts
vendored
20
cli/tsc/dts/lib.es2015.symbol.wellknown.d.ts
vendored
|
@ -272,43 +272,43 @@ interface ArrayBuffer {
|
|||
readonly [Symbol.toStringTag]: string;
|
||||
}
|
||||
|
||||
interface DataView {
|
||||
interface DataView<TArrayBuffer extends ArrayBufferLike> {
|
||||
readonly [Symbol.toStringTag]: string;
|
||||
}
|
||||
|
||||
interface Int8Array {
|
||||
interface Int8Array<TArrayBuffer extends ArrayBufferLike> {
|
||||
readonly [Symbol.toStringTag]: "Int8Array";
|
||||
}
|
||||
|
||||
interface Uint8Array {
|
||||
interface Uint8Array<TArrayBuffer extends ArrayBufferLike> {
|
||||
readonly [Symbol.toStringTag]: "Uint8Array";
|
||||
}
|
||||
|
||||
interface Uint8ClampedArray {
|
||||
interface Uint8ClampedArray<TArrayBuffer extends ArrayBufferLike> {
|
||||
readonly [Symbol.toStringTag]: "Uint8ClampedArray";
|
||||
}
|
||||
|
||||
interface Int16Array {
|
||||
interface Int16Array<TArrayBuffer extends ArrayBufferLike> {
|
||||
readonly [Symbol.toStringTag]: "Int16Array";
|
||||
}
|
||||
|
||||
interface Uint16Array {
|
||||
interface Uint16Array<TArrayBuffer extends ArrayBufferLike> {
|
||||
readonly [Symbol.toStringTag]: "Uint16Array";
|
||||
}
|
||||
|
||||
interface Int32Array {
|
||||
interface Int32Array<TArrayBuffer extends ArrayBufferLike> {
|
||||
readonly [Symbol.toStringTag]: "Int32Array";
|
||||
}
|
||||
|
||||
interface Uint32Array {
|
||||
interface Uint32Array<TArrayBuffer extends ArrayBufferLike> {
|
||||
readonly [Symbol.toStringTag]: "Uint32Array";
|
||||
}
|
||||
|
||||
interface Float32Array {
|
||||
interface Float32Array<TArrayBuffer extends ArrayBufferLike> {
|
||||
readonly [Symbol.toStringTag]: "Float32Array";
|
||||
}
|
||||
|
||||
interface Float64Array {
|
||||
interface Float64Array<TArrayBuffer extends ArrayBufferLike> {
|
||||
readonly [Symbol.toStringTag]: "Float64Array";
|
||||
}
|
||||
|
||||
|
|
18
cli/tsc/dts/lib.es2016.array.include.d.ts
vendored
18
cli/tsc/dts/lib.es2016.array.include.d.ts
vendored
|
@ -34,7 +34,7 @@ interface ReadonlyArray<T> {
|
|||
includes(searchElement: T, fromIndex?: number): boolean;
|
||||
}
|
||||
|
||||
interface Int8Array {
|
||||
interface Int8Array<TArrayBuffer extends ArrayBufferLike> {
|
||||
/**
|
||||
* Determines whether an array includes a certain element, returning true or false as appropriate.
|
||||
* @param searchElement The element to search for.
|
||||
|
@ -43,7 +43,7 @@ interface Int8Array {
|
|||
includes(searchElement: number, fromIndex?: number): boolean;
|
||||
}
|
||||
|
||||
interface Uint8Array {
|
||||
interface Uint8Array<TArrayBuffer extends ArrayBufferLike> {
|
||||
/**
|
||||
* Determines whether an array includes a certain element, returning true or false as appropriate.
|
||||
* @param searchElement The element to search for.
|
||||
|
@ -52,7 +52,7 @@ interface Uint8Array {
|
|||
includes(searchElement: number, fromIndex?: number): boolean;
|
||||
}
|
||||
|
||||
interface Uint8ClampedArray {
|
||||
interface Uint8ClampedArray<TArrayBuffer extends ArrayBufferLike> {
|
||||
/**
|
||||
* Determines whether an array includes a certain element, returning true or false as appropriate.
|
||||
* @param searchElement The element to search for.
|
||||
|
@ -61,7 +61,7 @@ interface Uint8ClampedArray {
|
|||
includes(searchElement: number, fromIndex?: number): boolean;
|
||||
}
|
||||
|
||||
interface Int16Array {
|
||||
interface Int16Array<TArrayBuffer extends ArrayBufferLike> {
|
||||
/**
|
||||
* Determines whether an array includes a certain element, returning true or false as appropriate.
|
||||
* @param searchElement The element to search for.
|
||||
|
@ -70,7 +70,7 @@ interface Int16Array {
|
|||
includes(searchElement: number, fromIndex?: number): boolean;
|
||||
}
|
||||
|
||||
interface Uint16Array {
|
||||
interface Uint16Array<TArrayBuffer extends ArrayBufferLike> {
|
||||
/**
|
||||
* Determines whether an array includes a certain element, returning true or false as appropriate.
|
||||
* @param searchElement The element to search for.
|
||||
|
@ -79,7 +79,7 @@ interface Uint16Array {
|
|||
includes(searchElement: number, fromIndex?: number): boolean;
|
||||
}
|
||||
|
||||
interface Int32Array {
|
||||
interface Int32Array<TArrayBuffer extends ArrayBufferLike> {
|
||||
/**
|
||||
* Determines whether an array includes a certain element, returning true or false as appropriate.
|
||||
* @param searchElement The element to search for.
|
||||
|
@ -88,7 +88,7 @@ interface Int32Array {
|
|||
includes(searchElement: number, fromIndex?: number): boolean;
|
||||
}
|
||||
|
||||
interface Uint32Array {
|
||||
interface Uint32Array<TArrayBuffer extends ArrayBufferLike> {
|
||||
/**
|
||||
* Determines whether an array includes a certain element, returning true or false as appropriate.
|
||||
* @param searchElement The element to search for.
|
||||
|
@ -97,7 +97,7 @@ interface Uint32Array {
|
|||
includes(searchElement: number, fromIndex?: number): boolean;
|
||||
}
|
||||
|
||||
interface Float32Array {
|
||||
interface Float32Array<TArrayBuffer extends ArrayBufferLike> {
|
||||
/**
|
||||
* Determines whether an array includes a certain element, returning true or false as appropriate.
|
||||
* @param searchElement The element to search for.
|
||||
|
@ -106,7 +106,7 @@ interface Float32Array {
|
|||
includes(searchElement: number, fromIndex?: number): boolean;
|
||||
}
|
||||
|
||||
interface Float64Array {
|
||||
interface Float64Array<TArrayBuffer extends ArrayBufferLike> {
|
||||
/**
|
||||
* Determines whether an array includes a certain element, returning true or false as appropriate.
|
||||
* @param searchElement The element to search for.
|
||||
|
|
2
cli/tsc/dts/lib.es2016.intl.d.ts
vendored
2
cli/tsc/dts/lib.es2016.intl.d.ts
vendored
|
@ -22,7 +22,7 @@ declare namespace Intl {
|
|||
* 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)
|
||||
* [MDN](https://developer.mozilla.org/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.
|
||||
|
|
21
cli/tsc/dts/lib.es2017.arraybuffer.d.ts
vendored
Normal file
21
cli/tsc/dts/lib.es2017.arraybuffer.d.ts
vendored
Normal file
|
@ -0,0 +1,21 @@
|
|||
/*! *****************************************************************************
|
||||
Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
||||
this file except in compliance with the License. You may obtain a copy of the
|
||||
License at http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
||||
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
||||
MERCHANTABLITY OR NON-INFRINGEMENT.
|
||||
|
||||
See the Apache Version 2.0 License for specific language governing permissions
|
||||
and limitations under the License.
|
||||
***************************************************************************** */
|
||||
|
||||
|
||||
/// <reference no-default-lib="true"/>
|
||||
|
||||
interface ArrayBufferConstructor {
|
||||
new (): ArrayBuffer;
|
||||
}
|
5
cli/tsc/dts/lib.es2017.d.ts
vendored
5
cli/tsc/dts/lib.es2017.d.ts
vendored
|
@ -17,9 +17,10 @@ and limitations under the License.
|
|||
/// <reference no-default-lib="true"/>
|
||||
|
||||
/// <reference lib="es2016" />
|
||||
/// <reference lib="es2017.arraybuffer" />
|
||||
/// <reference lib="es2017.date" />
|
||||
/// <reference lib="es2017.intl" />
|
||||
/// <reference lib="es2017.object" />
|
||||
/// <reference lib="es2017.sharedmemory" />
|
||||
/// <reference lib="es2017.string" />
|
||||
/// <reference lib="es2017.intl" />
|
||||
/// <reference lib="es2017.typedarrays" />
|
||||
/// <reference lib="es2017.date" />
|
||||
|
|
28
cli/tsc/dts/lib.es2017.sharedmemory.d.ts
vendored
28
cli/tsc/dts/lib.es2017.sharedmemory.d.ts
vendored
|
@ -28,14 +28,14 @@ interface SharedArrayBuffer {
|
|||
/**
|
||||
* Returns a section of an SharedArrayBuffer.
|
||||
*/
|
||||
slice(begin: number, end?: number): SharedArrayBuffer;
|
||||
slice(begin?: number, end?: number): SharedArrayBuffer;
|
||||
readonly [Symbol.species]: SharedArrayBuffer;
|
||||
readonly [Symbol.toStringTag]: "SharedArrayBuffer";
|
||||
}
|
||||
|
||||
interface SharedArrayBufferConstructor {
|
||||
readonly prototype: SharedArrayBuffer;
|
||||
new (byteLength: number): SharedArrayBuffer;
|
||||
new (byteLength?: number): SharedArrayBuffer;
|
||||
}
|
||||
declare var SharedArrayBuffer: SharedArrayBufferConstructor;
|
||||
|
||||
|
@ -49,28 +49,28 @@ interface Atomics {
|
|||
* Until this atomic operation completes, any other read or write operation against the array
|
||||
* will block.
|
||||
*/
|
||||
add(typedArray: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array, index: number, value: number): number;
|
||||
add(typedArray: Int8Array<ArrayBufferLike> | Uint8Array<ArrayBufferLike> | Int16Array<ArrayBufferLike> | Uint16Array<ArrayBufferLike> | Int32Array<ArrayBufferLike> | Uint32Array<ArrayBufferLike>, index: number, value: number): number;
|
||||
|
||||
/**
|
||||
* Stores the bitwise AND of a value with the value at the given position in the array,
|
||||
* returning the original value. Until this atomic operation completes, any other read or
|
||||
* write operation against the array will block.
|
||||
*/
|
||||
and(typedArray: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array, index: number, value: number): number;
|
||||
and(typedArray: Int8Array<ArrayBufferLike> | Uint8Array<ArrayBufferLike> | Int16Array<ArrayBufferLike> | Uint16Array<ArrayBufferLike> | Int32Array<ArrayBufferLike> | Uint32Array<ArrayBufferLike>, index: number, value: number): number;
|
||||
|
||||
/**
|
||||
* Replaces the value at the given position in the array if the original value equals the given
|
||||
* expected value, returning the original value. Until this atomic operation completes, any
|
||||
* other read or write operation against the array will block.
|
||||
*/
|
||||
compareExchange(typedArray: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array, index: number, expectedValue: number, replacementValue: number): number;
|
||||
compareExchange(typedArray: Int8Array<ArrayBufferLike> | Uint8Array<ArrayBufferLike> | Int16Array<ArrayBufferLike> | Uint16Array<ArrayBufferLike> | Int32Array<ArrayBufferLike> | Uint32Array<ArrayBufferLike>, index: number, expectedValue: number, replacementValue: number): number;
|
||||
|
||||
/**
|
||||
* Replaces the value at the given position in the array, returning the original value. Until
|
||||
* this atomic operation completes, any other read or write operation against the array will
|
||||
* block.
|
||||
*/
|
||||
exchange(typedArray: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array, index: number, value: number): number;
|
||||
exchange(typedArray: Int8Array<ArrayBufferLike> | Uint8Array<ArrayBufferLike> | Int16Array<ArrayBufferLike> | Uint16Array<ArrayBufferLike> | Int32Array<ArrayBufferLike> | Uint32Array<ArrayBufferLike>, index: number, value: number): number;
|
||||
|
||||
/**
|
||||
* Returns a value indicating whether high-performance algorithms can use atomic operations
|
||||
|
@ -83,27 +83,27 @@ interface Atomics {
|
|||
* Returns the value at the given position in the array. Until this atomic operation completes,
|
||||
* any other read or write operation against the array will block.
|
||||
*/
|
||||
load(typedArray: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array, index: number): number;
|
||||
load(typedArray: Int8Array<ArrayBufferLike> | Uint8Array<ArrayBufferLike> | Int16Array<ArrayBufferLike> | Uint16Array<ArrayBufferLike> | Int32Array<ArrayBufferLike> | Uint32Array<ArrayBufferLike>, index: number): number;
|
||||
|
||||
/**
|
||||
* Stores the bitwise OR of a value with the value at the given position in the array,
|
||||
* returning the original value. Until this atomic operation completes, any other read or write
|
||||
* operation against the array will block.
|
||||
*/
|
||||
or(typedArray: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array, index: number, value: number): number;
|
||||
or(typedArray: Int8Array<ArrayBufferLike> | Uint8Array<ArrayBufferLike> | Int16Array<ArrayBufferLike> | Uint16Array<ArrayBufferLike> | Int32Array<ArrayBufferLike> | Uint32Array<ArrayBufferLike>, index: number, value: number): number;
|
||||
|
||||
/**
|
||||
* Stores a value at the given position in the array, returning the new value. Until this
|
||||
* atomic operation completes, any other read or write operation against the array will block.
|
||||
*/
|
||||
store(typedArray: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array, index: number, value: number): number;
|
||||
store(typedArray: Int8Array<ArrayBufferLike> | Uint8Array<ArrayBufferLike> | Int16Array<ArrayBufferLike> | Uint16Array<ArrayBufferLike> | Int32Array<ArrayBufferLike> | Uint32Array<ArrayBufferLike>, index: number, value: number): number;
|
||||
|
||||
/**
|
||||
* Subtracts a value from the value at the given position in the array, returning the original
|
||||
* value. Until this atomic operation completes, any other read or write operation against the
|
||||
* array will block.
|
||||
*/
|
||||
sub(typedArray: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array, index: number, value: number): number;
|
||||
sub(typedArray: Int8Array<ArrayBufferLike> | Uint8Array<ArrayBufferLike> | Int16Array<ArrayBufferLike> | Uint16Array<ArrayBufferLike> | Int32Array<ArrayBufferLike> | Uint32Array<ArrayBufferLike>, index: number, value: number): number;
|
||||
|
||||
/**
|
||||
* If the value at the given position in the array is equal to the provided value, the current
|
||||
|
@ -111,23 +111,23 @@ interface Atomics {
|
|||
* `"timed-out"`) or until the agent is awoken (returning `"ok"`); otherwise, returns
|
||||
* `"not-equal"`.
|
||||
*/
|
||||
wait(typedArray: Int32Array, index: number, value: number, timeout?: number): "ok" | "not-equal" | "timed-out";
|
||||
wait(typedArray: Int32Array<ArrayBufferLike>, index: number, value: number, timeout?: number): "ok" | "not-equal" | "timed-out";
|
||||
|
||||
/**
|
||||
* Wakes up sleeping agents that are waiting on the given index of the array, returning the
|
||||
* number of agents that were awoken.
|
||||
* @param typedArray A shared Int32Array.
|
||||
* @param typedArray A shared Int32Array<ArrayBufferLike>.
|
||||
* @param index The position in the typedArray to wake up on.
|
||||
* @param count The number of sleeping agents to notify. Defaults to +Infinity.
|
||||
*/
|
||||
notify(typedArray: Int32Array, index: number, count?: number): number;
|
||||
notify(typedArray: Int32Array<ArrayBufferLike>, index: number, count?: number): number;
|
||||
|
||||
/**
|
||||
* Stores the bitwise XOR of a value with the value at the given position in the array,
|
||||
* returning the original value. Until this atomic operation completes, any other read or write
|
||||
* operation against the array will block.
|
||||
*/
|
||||
xor(typedArray: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array, index: number, value: number): number;
|
||||
xor(typedArray: Int8Array<ArrayBufferLike> | Uint8Array<ArrayBufferLike> | Int16Array<ArrayBufferLike> | Uint16Array<ArrayBufferLike> | Int32Array<ArrayBufferLike> | Uint32Array<ArrayBufferLike>, index: number, value: number): number;
|
||||
|
||||
readonly [Symbol.toStringTag]: "Atomics";
|
||||
}
|
||||
|
|
18
cli/tsc/dts/lib.es2017.typedarrays.d.ts
vendored
18
cli/tsc/dts/lib.es2017.typedarrays.d.ts
vendored
|
@ -17,37 +17,37 @@ and limitations under the License.
|
|||
/// <reference no-default-lib="true"/>
|
||||
|
||||
interface Int8ArrayConstructor {
|
||||
new (): Int8Array;
|
||||
new (): Int8Array<ArrayBuffer>;
|
||||
}
|
||||
|
||||
interface Uint8ArrayConstructor {
|
||||
new (): Uint8Array;
|
||||
new (): Uint8Array<ArrayBuffer>;
|
||||
}
|
||||
|
||||
interface Uint8ClampedArrayConstructor {
|
||||
new (): Uint8ClampedArray;
|
||||
new (): Uint8ClampedArray<ArrayBuffer>;
|
||||
}
|
||||
|
||||
interface Int16ArrayConstructor {
|
||||
new (): Int16Array;
|
||||
new (): Int16Array<ArrayBuffer>;
|
||||
}
|
||||
|
||||
interface Uint16ArrayConstructor {
|
||||
new (): Uint16Array;
|
||||
new (): Uint16Array<ArrayBuffer>;
|
||||
}
|
||||
|
||||
interface Int32ArrayConstructor {
|
||||
new (): Int32Array;
|
||||
new (): Int32Array<ArrayBuffer>;
|
||||
}
|
||||
|
||||
interface Uint32ArrayConstructor {
|
||||
new (): Uint32Array;
|
||||
new (): Uint32Array<ArrayBuffer>;
|
||||
}
|
||||
|
||||
interface Float32ArrayConstructor {
|
||||
new (): Float32Array;
|
||||
new (): Float32Array<ArrayBuffer>;
|
||||
}
|
||||
|
||||
interface Float64ArrayConstructor {
|
||||
new (): Float64Array;
|
||||
new (): Float64Array<ArrayBuffer>;
|
||||
}
|
||||
|
|
104
cli/tsc/dts/lib.es2020.bigint.d.ts
vendored
104
cli/tsc/dts/lib.es2020.bigint.d.ts
vendored
|
@ -20,7 +20,7 @@ and limitations under the License.
|
|||
|
||||
interface BigIntToLocaleStringOptions {
|
||||
/**
|
||||
* The locale matching algorithm to use.The default is "best fit". For information about this option, see the {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_negotiation Intl page}.
|
||||
* The locale matching algorithm to use.The default is "best fit". For information about this option, see the {@link https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_negotiation Intl page}.
|
||||
*/
|
||||
localeMatcher?: string;
|
||||
/**
|
||||
|
@ -146,12 +146,12 @@ declare var BigInt: BigIntConstructor;
|
|||
* A typed array of 64-bit signed integer values. The contents are initialized to 0. If the
|
||||
* requested number of bytes could not be allocated, an exception is raised.
|
||||
*/
|
||||
interface BigInt64Array {
|
||||
interface BigInt64Array<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> {
|
||||
/** The size in bytes of each element in the array. */
|
||||
readonly BYTES_PER_ELEMENT: number;
|
||||
|
||||
/** The ArrayBuffer instance referenced by the array. */
|
||||
readonly buffer: ArrayBufferLike;
|
||||
readonly buffer: TArrayBuffer;
|
||||
|
||||
/** The length in bytes of the array. */
|
||||
readonly byteLength: number;
|
||||
|
@ -181,7 +181,7 @@ interface BigInt64Array {
|
|||
* @param thisArg An object to which the this keyword can refer in the predicate function.
|
||||
* If thisArg is omitted, undefined is used as the this value.
|
||||
*/
|
||||
every(predicate: (value: bigint, index: number, array: BigInt64Array) => boolean, thisArg?: any): boolean;
|
||||
every(predicate: (value: bigint, index: number, array: BigInt64Array<TArrayBuffer>) => boolean, thisArg?: any): boolean;
|
||||
|
||||
/**
|
||||
* Changes all array elements from `start` to `end` index to a static `value` and returns the modified array
|
||||
|
@ -200,7 +200,7 @@ interface BigInt64Array {
|
|||
* @param thisArg An object to which the this keyword can refer in the predicate function.
|
||||
* If thisArg is omitted, undefined is used as the this value.
|
||||
*/
|
||||
filter(predicate: (value: bigint, index: number, array: BigInt64Array) => any, thisArg?: any): BigInt64Array;
|
||||
filter(predicate: (value: bigint, index: number, array: BigInt64Array<TArrayBuffer>) => any, thisArg?: any): BigInt64Array<ArrayBuffer>;
|
||||
|
||||
/**
|
||||
* Returns the value of the first element in the array where predicate is true, and undefined
|
||||
|
@ -211,7 +211,7 @@ interface BigInt64Array {
|
|||
* @param thisArg If provided, it will be used as the this value for each invocation of
|
||||
* predicate. If it is not provided, undefined is used instead.
|
||||
*/
|
||||
find(predicate: (value: bigint, index: number, array: BigInt64Array) => boolean, thisArg?: any): bigint | undefined;
|
||||
find(predicate: (value: bigint, index: number, array: BigInt64Array<TArrayBuffer>) => boolean, thisArg?: any): bigint | undefined;
|
||||
|
||||
/**
|
||||
* Returns the index of the first element in the array where predicate is true, and -1
|
||||
|
@ -222,7 +222,7 @@ interface BigInt64Array {
|
|||
* @param thisArg If provided, it will be used as the this value for each invocation of
|
||||
* predicate. If it is not provided, undefined is used instead.
|
||||
*/
|
||||
findIndex(predicate: (value: bigint, index: number, array: BigInt64Array) => boolean, thisArg?: any): number;
|
||||
findIndex(predicate: (value: bigint, index: number, array: BigInt64Array<TArrayBuffer>) => boolean, thisArg?: any): number;
|
||||
|
||||
/**
|
||||
* Performs the specified action for each element in an array.
|
||||
|
@ -231,7 +231,7 @@ interface BigInt64Array {
|
|||
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
|
||||
* If thisArg is omitted, undefined is used as the this value.
|
||||
*/
|
||||
forEach(callbackfn: (value: bigint, index: number, array: BigInt64Array) => void, thisArg?: any): void;
|
||||
forEach(callbackfn: (value: bigint, index: number, array: BigInt64Array<TArrayBuffer>) => void, thisArg?: any): void;
|
||||
|
||||
/**
|
||||
* Determines whether an array includes a certain element, returning true or false as appropriate.
|
||||
|
@ -277,7 +277,7 @@ interface BigInt64Array {
|
|||
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
|
||||
* If thisArg is omitted, undefined is used as the this value.
|
||||
*/
|
||||
map(callbackfn: (value: bigint, index: number, array: BigInt64Array) => bigint, thisArg?: any): BigInt64Array;
|
||||
map(callbackfn: (value: bigint, index: number, array: BigInt64Array<TArrayBuffer>) => bigint, thisArg?: any): BigInt64Array<ArrayBuffer>;
|
||||
|
||||
/**
|
||||
* Calls the specified callback function for all the elements in an array. The return value of
|
||||
|
@ -289,7 +289,7 @@ interface BigInt64Array {
|
|||
* the accumulation. The first call to the callbackfn function provides this value as an argument
|
||||
* instead of an array value.
|
||||
*/
|
||||
reduce(callbackfn: (previousValue: bigint, currentValue: bigint, currentIndex: number, array: BigInt64Array) => bigint): bigint;
|
||||
reduce(callbackfn: (previousValue: bigint, currentValue: bigint, currentIndex: number, array: BigInt64Array<TArrayBuffer>) => bigint): bigint;
|
||||
|
||||
/**
|
||||
* Calls the specified callback function for all the elements in an array. The return value of
|
||||
|
@ -301,7 +301,7 @@ interface BigInt64Array {
|
|||
* the accumulation. The first call to the callbackfn function provides this value as an argument
|
||||
* instead of an array value.
|
||||
*/
|
||||
reduce<U>(callbackfn: (previousValue: U, currentValue: bigint, currentIndex: number, array: BigInt64Array) => U, initialValue: U): U;
|
||||
reduce<U>(callbackfn: (previousValue: U, currentValue: bigint, currentIndex: number, array: BigInt64Array<TArrayBuffer>) => U, initialValue: U): U;
|
||||
|
||||
/**
|
||||
* Calls the specified callback function for all the elements in an array, in descending order.
|
||||
|
@ -313,7 +313,7 @@ interface BigInt64Array {
|
|||
* the accumulation. The first call to the callbackfn function provides this value as an
|
||||
* argument instead of an array value.
|
||||
*/
|
||||
reduceRight(callbackfn: (previousValue: bigint, currentValue: bigint, currentIndex: number, array: BigInt64Array) => bigint): bigint;
|
||||
reduceRight(callbackfn: (previousValue: bigint, currentValue: bigint, currentIndex: number, array: BigInt64Array<TArrayBuffer>) => bigint): bigint;
|
||||
|
||||
/**
|
||||
* Calls the specified callback function for all the elements in an array, in descending order.
|
||||
|
@ -325,7 +325,7 @@ interface BigInt64Array {
|
|||
* the accumulation. The first call to the callbackfn function provides this value as an argument
|
||||
* instead of an array value.
|
||||
*/
|
||||
reduceRight<U>(callbackfn: (previousValue: U, currentValue: bigint, currentIndex: number, array: BigInt64Array) => U, initialValue: U): U;
|
||||
reduceRight<U>(callbackfn: (previousValue: U, currentValue: bigint, currentIndex: number, array: BigInt64Array<TArrayBuffer>) => U, initialValue: U): U;
|
||||
|
||||
/** Reverses the elements in the array. */
|
||||
reverse(): this;
|
||||
|
@ -342,7 +342,7 @@ interface BigInt64Array {
|
|||
* @param start The beginning of the specified portion of the array.
|
||||
* @param end The end of the specified portion of the array.
|
||||
*/
|
||||
slice(start?: number, end?: number): BigInt64Array;
|
||||
slice(start?: number, end?: number): BigInt64Array<ArrayBuffer>;
|
||||
|
||||
/**
|
||||
* Determines whether the specified callback function returns true for any element of an array.
|
||||
|
@ -352,7 +352,7 @@ interface BigInt64Array {
|
|||
* @param thisArg An object to which the this keyword can refer in the predicate function.
|
||||
* If thisArg is omitted, undefined is used as the this value.
|
||||
*/
|
||||
some(predicate: (value: bigint, index: number, array: BigInt64Array) => boolean, thisArg?: any): boolean;
|
||||
some(predicate: (value: bigint, index: number, array: BigInt64Array<TArrayBuffer>) => boolean, thisArg?: any): boolean;
|
||||
|
||||
/**
|
||||
* Sorts the array.
|
||||
|
@ -366,7 +366,7 @@ interface BigInt64Array {
|
|||
* @param begin The index of the beginning of the array.
|
||||
* @param end The index of the end of the array.
|
||||
*/
|
||||
subarray(begin?: number, end?: number): BigInt64Array;
|
||||
subarray(begin?: number, end?: number): BigInt64Array<TArrayBuffer>;
|
||||
|
||||
/** Converts the array to a string by using the current locale. */
|
||||
toLocaleString(locales?: string | string[], options?: Intl.NumberFormatOptions): string;
|
||||
|
@ -375,7 +375,7 @@ interface BigInt64Array {
|
|||
toString(): string;
|
||||
|
||||
/** Returns the primitive value of the specified object. */
|
||||
valueOf(): BigInt64Array;
|
||||
valueOf(): BigInt64Array<TArrayBuffer>;
|
||||
|
||||
/** Yields each value in the array. */
|
||||
values(): ArrayIterator<bigint>;
|
||||
|
@ -386,12 +386,12 @@ interface BigInt64Array {
|
|||
|
||||
[index: number]: bigint;
|
||||
}
|
||||
|
||||
interface BigInt64ArrayConstructor {
|
||||
readonly prototype: BigInt64Array;
|
||||
new (length?: number): BigInt64Array;
|
||||
new (array: Iterable<bigint>): BigInt64Array;
|
||||
new (buffer: ArrayBufferLike, byteOffset?: number, length?: number): BigInt64Array;
|
||||
readonly prototype: BigInt64Array<ArrayBufferLike>;
|
||||
new (length?: number): BigInt64Array<ArrayBuffer>;
|
||||
new (array: ArrayLike<bigint> | Iterable<bigint>): BigInt64Array<ArrayBuffer>;
|
||||
new <TArrayBuffer extends ArrayBufferLike = ArrayBuffer>(buffer: TArrayBuffer, byteOffset?: number, length?: number): BigInt64Array<TArrayBuffer>;
|
||||
new (array: ArrayLike<bigint> | ArrayBuffer): BigInt64Array<ArrayBuffer>;
|
||||
|
||||
/** The size in bytes of each element in the array. */
|
||||
readonly BYTES_PER_ELEMENT: number;
|
||||
|
@ -400,7 +400,7 @@ interface BigInt64ArrayConstructor {
|
|||
* Returns a new array from a set of elements.
|
||||
* @param items A set of elements to include in the new array object.
|
||||
*/
|
||||
of(...items: bigint[]): BigInt64Array;
|
||||
of(...items: bigint[]): BigInt64Array<ArrayBuffer>;
|
||||
|
||||
/**
|
||||
* Creates an array from an array-like or iterable object.
|
||||
|
@ -408,22 +408,27 @@ interface BigInt64ArrayConstructor {
|
|||
* @param mapfn A mapping function to call on every element of the array.
|
||||
* @param thisArg Value of 'this' used to invoke the mapfn.
|
||||
*/
|
||||
from(arrayLike: ArrayLike<bigint>): BigInt64Array;
|
||||
from<U>(arrayLike: ArrayLike<U>, mapfn: (v: U, k: number) => bigint, thisArg?: any): BigInt64Array;
|
||||
from(arrayLike: ArrayLike<bigint>): BigInt64Array<ArrayBuffer>;
|
||||
/**
|
||||
* Creates an array from an array-like or iterable object.
|
||||
* @param arrayLike An array-like or iterable object to convert to an array.
|
||||
* @param mapfn A mapping function to call on every element of the array.
|
||||
* @param thisArg Value of 'this' used to invoke the mapfn.
|
||||
*/
|
||||
from<U>(arrayLike: ArrayLike<U>, mapfn: (v: U, k: number) => bigint, thisArg?: any): BigInt64Array<ArrayBuffer>;
|
||||
}
|
||||
|
||||
declare var BigInt64Array: BigInt64ArrayConstructor;
|
||||
|
||||
/**
|
||||
* A typed array of 64-bit unsigned integer values. The contents are initialized to 0. If the
|
||||
* requested number of bytes could not be allocated, an exception is raised.
|
||||
*/
|
||||
interface BigUint64Array {
|
||||
interface BigUint64Array<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> {
|
||||
/** The size in bytes of each element in the array. */
|
||||
readonly BYTES_PER_ELEMENT: number;
|
||||
|
||||
/** The ArrayBuffer instance referenced by the array. */
|
||||
readonly buffer: ArrayBufferLike;
|
||||
readonly buffer: TArrayBuffer;
|
||||
|
||||
/** The length in bytes of the array. */
|
||||
readonly byteLength: number;
|
||||
|
@ -453,7 +458,7 @@ interface BigUint64Array {
|
|||
* @param thisArg An object to which the this keyword can refer in the predicate function.
|
||||
* If thisArg is omitted, undefined is used as the this value.
|
||||
*/
|
||||
every(predicate: (value: bigint, index: number, array: BigUint64Array) => boolean, thisArg?: any): boolean;
|
||||
every(predicate: (value: bigint, index: number, array: BigUint64Array<TArrayBuffer>) => boolean, thisArg?: any): boolean;
|
||||
|
||||
/**
|
||||
* Changes all array elements from `start` to `end` index to a static `value` and returns the modified array
|
||||
|
@ -472,7 +477,7 @@ interface BigUint64Array {
|
|||
* @param thisArg An object to which the this keyword can refer in the predicate function.
|
||||
* If thisArg is omitted, undefined is used as the this value.
|
||||
*/
|
||||
filter(predicate: (value: bigint, index: number, array: BigUint64Array) => any, thisArg?: any): BigUint64Array;
|
||||
filter(predicate: (value: bigint, index: number, array: BigUint64Array<TArrayBuffer>) => any, thisArg?: any): BigUint64Array<ArrayBuffer>;
|
||||
|
||||
/**
|
||||
* Returns the value of the first element in the array where predicate is true, and undefined
|
||||
|
@ -483,7 +488,7 @@ interface BigUint64Array {
|
|||
* @param thisArg If provided, it will be used as the this value for each invocation of
|
||||
* predicate. If it is not provided, undefined is used instead.
|
||||
*/
|
||||
find(predicate: (value: bigint, index: number, array: BigUint64Array) => boolean, thisArg?: any): bigint | undefined;
|
||||
find(predicate: (value: bigint, index: number, array: BigUint64Array<TArrayBuffer>) => boolean, thisArg?: any): bigint | undefined;
|
||||
|
||||
/**
|
||||
* Returns the index of the first element in the array where predicate is true, and -1
|
||||
|
@ -494,7 +499,7 @@ interface BigUint64Array {
|
|||
* @param thisArg If provided, it will be used as the this value for each invocation of
|
||||
* predicate. If it is not provided, undefined is used instead.
|
||||
*/
|
||||
findIndex(predicate: (value: bigint, index: number, array: BigUint64Array) => boolean, thisArg?: any): number;
|
||||
findIndex(predicate: (value: bigint, index: number, array: BigUint64Array<TArrayBuffer>) => boolean, thisArg?: any): number;
|
||||
|
||||
/**
|
||||
* Performs the specified action for each element in an array.
|
||||
|
@ -503,7 +508,7 @@ interface BigUint64Array {
|
|||
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
|
||||
* If thisArg is omitted, undefined is used as the this value.
|
||||
*/
|
||||
forEach(callbackfn: (value: bigint, index: number, array: BigUint64Array) => void, thisArg?: any): void;
|
||||
forEach(callbackfn: (value: bigint, index: number, array: BigUint64Array<TArrayBuffer>) => void, thisArg?: any): void;
|
||||
|
||||
/**
|
||||
* Determines whether an array includes a certain element, returning true or false as appropriate.
|
||||
|
@ -549,7 +554,7 @@ interface BigUint64Array {
|
|||
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
|
||||
* If thisArg is omitted, undefined is used as the this value.
|
||||
*/
|
||||
map(callbackfn: (value: bigint, index: number, array: BigUint64Array) => bigint, thisArg?: any): BigUint64Array;
|
||||
map(callbackfn: (value: bigint, index: number, array: BigUint64Array<TArrayBuffer>) => bigint, thisArg?: any): BigUint64Array<ArrayBuffer>;
|
||||
|
||||
/**
|
||||
* Calls the specified callback function for all the elements in an array. The return value of
|
||||
|
@ -561,7 +566,7 @@ interface BigUint64Array {
|
|||
* the accumulation. The first call to the callbackfn function provides this value as an argument
|
||||
* instead of an array value.
|
||||
*/
|
||||
reduce(callbackfn: (previousValue: bigint, currentValue: bigint, currentIndex: number, array: BigUint64Array) => bigint): bigint;
|
||||
reduce(callbackfn: (previousValue: bigint, currentValue: bigint, currentIndex: number, array: BigUint64Array<TArrayBuffer>) => bigint): bigint;
|
||||
|
||||
/**
|
||||
* Calls the specified callback function for all the elements in an array. The return value of
|
||||
|
@ -573,7 +578,7 @@ interface BigUint64Array {
|
|||
* the accumulation. The first call to the callbackfn function provides this value as an argument
|
||||
* instead of an array value.
|
||||
*/
|
||||
reduce<U>(callbackfn: (previousValue: U, currentValue: bigint, currentIndex: number, array: BigUint64Array) => U, initialValue: U): U;
|
||||
reduce<U>(callbackfn: (previousValue: U, currentValue: bigint, currentIndex: number, array: BigUint64Array<TArrayBuffer>) => U, initialValue: U): U;
|
||||
|
||||
/**
|
||||
* Calls the specified callback function for all the elements in an array, in descending order.
|
||||
|
@ -585,7 +590,7 @@ interface BigUint64Array {
|
|||
* the accumulation. The first call to the callbackfn function provides this value as an
|
||||
* argument instead of an array value.
|
||||
*/
|
||||
reduceRight(callbackfn: (previousValue: bigint, currentValue: bigint, currentIndex: number, array: BigUint64Array) => bigint): bigint;
|
||||
reduceRight(callbackfn: (previousValue: bigint, currentValue: bigint, currentIndex: number, array: BigUint64Array<TArrayBuffer>) => bigint): bigint;
|
||||
|
||||
/**
|
||||
* Calls the specified callback function for all the elements in an array, in descending order.
|
||||
|
@ -597,7 +602,7 @@ interface BigUint64Array {
|
|||
* the accumulation. The first call to the callbackfn function provides this value as an argument
|
||||
* instead of an array value.
|
||||
*/
|
||||
reduceRight<U>(callbackfn: (previousValue: U, currentValue: bigint, currentIndex: number, array: BigUint64Array) => U, initialValue: U): U;
|
||||
reduceRight<U>(callbackfn: (previousValue: U, currentValue: bigint, currentIndex: number, array: BigUint64Array<TArrayBuffer>) => U, initialValue: U): U;
|
||||
|
||||
/** Reverses the elements in the array. */
|
||||
reverse(): this;
|
||||
|
@ -614,7 +619,7 @@ interface BigUint64Array {
|
|||
* @param start The beginning of the specified portion of the array.
|
||||
* @param end The end of the specified portion of the array.
|
||||
*/
|
||||
slice(start?: number, end?: number): BigUint64Array;
|
||||
slice(start?: number, end?: number): BigUint64Array<ArrayBuffer>;
|
||||
|
||||
/**
|
||||
* Determines whether the specified callback function returns true for any element of an array.
|
||||
|
@ -624,7 +629,7 @@ interface BigUint64Array {
|
|||
* @param thisArg An object to which the this keyword can refer in the predicate function.
|
||||
* If thisArg is omitted, undefined is used as the this value.
|
||||
*/
|
||||
some(predicate: (value: bigint, index: number, array: BigUint64Array) => boolean, thisArg?: any): boolean;
|
||||
some(predicate: (value: bigint, index: number, array: BigUint64Array<TArrayBuffer>) => boolean, thisArg?: any): boolean;
|
||||
|
||||
/**
|
||||
* Sorts the array.
|
||||
|
@ -638,7 +643,7 @@ interface BigUint64Array {
|
|||
* @param begin The index of the beginning of the array.
|
||||
* @param end The index of the end of the array.
|
||||
*/
|
||||
subarray(begin?: number, end?: number): BigUint64Array;
|
||||
subarray(begin?: number, end?: number): BigUint64Array<TArrayBuffer>;
|
||||
|
||||
/** Converts the array to a string by using the current locale. */
|
||||
toLocaleString(locales?: string | string[], options?: Intl.NumberFormatOptions): string;
|
||||
|
@ -647,7 +652,7 @@ interface BigUint64Array {
|
|||
toString(): string;
|
||||
|
||||
/** Returns the primitive value of the specified object. */
|
||||
valueOf(): BigUint64Array;
|
||||
valueOf(): BigUint64Array<TArrayBuffer>;
|
||||
|
||||
/** Yields each value in the array. */
|
||||
values(): ArrayIterator<bigint>;
|
||||
|
@ -658,12 +663,12 @@ interface BigUint64Array {
|
|||
|
||||
[index: number]: bigint;
|
||||
}
|
||||
|
||||
interface BigUint64ArrayConstructor {
|
||||
readonly prototype: BigUint64Array;
|
||||
new (length?: number): BigUint64Array;
|
||||
new (array: Iterable<bigint>): BigUint64Array;
|
||||
new (buffer: ArrayBufferLike, byteOffset?: number, length?: number): BigUint64Array;
|
||||
readonly prototype: BigUint64Array<ArrayBufferLike>;
|
||||
new (length?: number): BigUint64Array<ArrayBuffer>;
|
||||
new (array: ArrayLike<bigint> | Iterable<bigint>): BigUint64Array<ArrayBuffer>;
|
||||
new <TArrayBuffer extends ArrayBufferLike = ArrayBuffer>(buffer: TArrayBuffer, byteOffset?: number, length?: number): BigUint64Array<TArrayBuffer>;
|
||||
new (array: ArrayLike<bigint> | ArrayBuffer): BigUint64Array<ArrayBuffer>;
|
||||
|
||||
/** The size in bytes of each element in the array. */
|
||||
readonly BYTES_PER_ELEMENT: number;
|
||||
|
@ -672,7 +677,7 @@ interface BigUint64ArrayConstructor {
|
|||
* Returns a new array from a set of elements.
|
||||
* @param items A set of elements to include in the new array object.
|
||||
*/
|
||||
of(...items: bigint[]): BigUint64Array;
|
||||
of(...items: bigint[]): BigUint64Array<ArrayBuffer>;
|
||||
|
||||
/**
|
||||
* Creates an array from an array-like or iterable object.
|
||||
|
@ -683,10 +688,9 @@ interface BigUint64ArrayConstructor {
|
|||
from(arrayLike: ArrayLike<bigint>): BigUint64Array;
|
||||
from<U>(arrayLike: ArrayLike<U>, mapfn: (v: U, k: number) => bigint, thisArg?: any): BigUint64Array;
|
||||
}
|
||||
|
||||
declare var BigUint64Array: BigUint64ArrayConstructor;
|
||||
|
||||
interface DataView {
|
||||
interface DataView<TArrayBuffer extends ArrayBufferLike> {
|
||||
/**
|
||||
* Gets the BigInt64 value at the specified byte offset from the start of the view. There is
|
||||
* no alignment constraint; multi-byte values may be fetched from any offset.
|
||||
|
|
72
cli/tsc/dts/lib.es2020.intl.d.ts
vendored
72
cli/tsc/dts/lib.es2020.intl.d.ts
vendored
|
@ -23,14 +23,14 @@ declare namespace Intl {
|
|||
*
|
||||
* 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).
|
||||
* See [MDN - Intl - locales argument](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl#locales_argument).
|
||||
*/
|
||||
type UnicodeBCP47LocaleIdentifier = string;
|
||||
|
||||
/**
|
||||
* Unit to use in the relative time internationalized message.
|
||||
*
|
||||
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/format#Parameters).
|
||||
* [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/format#Parameters).
|
||||
*/
|
||||
type RelativeTimeFormatUnit =
|
||||
| "year"
|
||||
|
@ -57,7 +57,7 @@ declare namespace Intl {
|
|||
* but `formatToParts` only outputs singular (e.g. "day") not plural (e.g.
|
||||
* "days").
|
||||
*
|
||||
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/formatToParts#Using_formatToParts).
|
||||
* [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/formatToParts#Using_formatToParts).
|
||||
*/
|
||||
type RelativeTimeFormatUnitSingular =
|
||||
| "year"
|
||||
|
@ -79,21 +79,21 @@ declare namespace Intl {
|
|||
/**
|
||||
* The format of output message.
|
||||
*
|
||||
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/RelativeTimeFormat#Parameters).
|
||||
* [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/RelativeTimeFormat#Parameters).
|
||||
*/
|
||||
type RelativeTimeFormatNumeric = "always" | "auto";
|
||||
|
||||
/**
|
||||
* The length of the internationalized message.
|
||||
*
|
||||
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/RelativeTimeFormat#Parameters).
|
||||
* [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/RelativeTimeFormat#Parameters).
|
||||
*/
|
||||
type RelativeTimeFormatStyle = "long" | "short" | "narrow";
|
||||
|
||||
/**
|
||||
* The locale or locales to use
|
||||
*
|
||||
* See [MDN - Intl - locales argument](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#locales_argument).
|
||||
* See [MDN - Intl - locales argument](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl#locales_argument).
|
||||
*/
|
||||
type LocalesArgument = UnicodeBCP47LocaleIdentifier | Locale | readonly (UnicodeBCP47LocaleIdentifier | Locale)[] | undefined;
|
||||
|
||||
|
@ -101,7 +101,7 @@ declare namespace Intl {
|
|||
* An object with some or all of properties of `options` parameter
|
||||
* of `Intl.RelativeTimeFormat` constructor.
|
||||
*
|
||||
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/RelativeTimeFormat#Parameters).
|
||||
* [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/RelativeTimeFormat#Parameters).
|
||||
*/
|
||||
interface RelativeTimeFormatOptions {
|
||||
/** The locale matching algorithm to use. For information about this option, see [Intl page](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_negotiation). */
|
||||
|
@ -117,7 +117,7 @@ declare namespace Intl {
|
|||
* and formatting options computed during initialization
|
||||
* of the `Intl.RelativeTimeFormat` object
|
||||
*
|
||||
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/resolvedOptions#Description).
|
||||
* [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/resolvedOptions#Description).
|
||||
*/
|
||||
interface ResolvedRelativeTimeFormatOptions {
|
||||
locale: UnicodeBCP47LocaleIdentifier;
|
||||
|
@ -130,7 +130,7 @@ declare namespace Intl {
|
|||
* An object representing the relative time format in parts
|
||||
* that can be used for custom locale-aware formatting.
|
||||
*
|
||||
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/formatToParts#Using_formatToParts).
|
||||
* [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/formatToParts#Using_formatToParts).
|
||||
*/
|
||||
type RelativeTimeFormatPart =
|
||||
| {
|
||||
|
@ -166,7 +166,7 @@ declare namespace Intl {
|
|||
*
|
||||
* @returns {string} Internationalized relative time message as string
|
||||
*
|
||||
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/format).
|
||||
* [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/format).
|
||||
*/
|
||||
format(value: number, unit: RelativeTimeFormatUnit): string;
|
||||
|
||||
|
@ -179,14 +179,14 @@ declare namespace Intl {
|
|||
*
|
||||
* @throws `RangeError` if `unit` was given something other than `unit` possible values
|
||||
*
|
||||
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/formatToParts).
|
||||
* [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/formatToParts).
|
||||
*/
|
||||
formatToParts(value: number, unit: RelativeTimeFormatUnit): RelativeTimeFormatPart[];
|
||||
|
||||
/**
|
||||
* Provides access to the locale and options computed during initialization of this `Intl.RelativeTimeFormat` object.
|
||||
*
|
||||
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/resolvedOptions).
|
||||
* [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/resolvedOptions).
|
||||
*/
|
||||
resolvedOptions(): ResolvedRelativeTimeFormatOptions;
|
||||
}
|
||||
|
@ -195,22 +195,22 @@ declare namespace Intl {
|
|||
* The [`Intl.RelativeTimeFormat`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/RelativeTimeFormat)
|
||||
* object is a constructor for objects that enable language-sensitive relative time formatting.
|
||||
*
|
||||
* [Compatibility](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat#Browser_compatibility).
|
||||
* [Compatibility](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat#Browser_compatibility).
|
||||
*/
|
||||
const RelativeTimeFormat: {
|
||||
/**
|
||||
* Creates [Intl.RelativeTimeFormat](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RelativeTimeFormat) objects
|
||||
* Creates [Intl.RelativeTimeFormat](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/RelativeTimeFormat) objects
|
||||
*
|
||||
* @param locales - A string with a [BCP 47 language tag](http://tools.ietf.org/html/rfc5646), or an array of such strings.
|
||||
* For the general form and interpretation of the locales argument,
|
||||
* see the [`Intl` page](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_identification_and_negotiation).
|
||||
* see the [`Intl` page](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_identification_and_negotiation).
|
||||
*
|
||||
* @param options - An [object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/RelativeTimeFormat#Parameters)
|
||||
* @param options - An [object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/RelativeTimeFormat#Parameters)
|
||||
* with some or all of options of `RelativeTimeFormatOptions`.
|
||||
*
|
||||
* @returns [Intl.RelativeTimeFormat](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RelativeTimeFormat) object.
|
||||
* @returns [Intl.RelativeTimeFormat](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/RelativeTimeFormat) object.
|
||||
*
|
||||
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/RelativeTimeFormat).
|
||||
* [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/RelativeTimeFormat).
|
||||
*/
|
||||
new (
|
||||
locales?: LocalesArgument,
|
||||
|
@ -224,16 +224,16 @@ declare namespace Intl {
|
|||
*
|
||||
* @param locales - A string with a [BCP 47 language tag](http://tools.ietf.org/html/rfc5646), or an array of such strings.
|
||||
* For the general form and interpretation of the locales argument,
|
||||
* see the [`Intl` page](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_identification_and_negotiation).
|
||||
* see the [`Intl` page](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_identification_and_negotiation).
|
||||
*
|
||||
* @param options - An [object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/RelativeTimeFormat#Parameters)
|
||||
* @param options - An [object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/RelativeTimeFormat#Parameters)
|
||||
* with some or all of options of the formatting.
|
||||
*
|
||||
* @returns An array containing those of the provided locales
|
||||
* that are supported in date and time formatting
|
||||
* without having to fall back to the runtime's default locale.
|
||||
*
|
||||
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/supportedLocalesOf).
|
||||
* [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/supportedLocalesOf).
|
||||
*/
|
||||
supportedLocalesOf(
|
||||
locales?: LocalesArgument,
|
||||
|
@ -336,18 +336,18 @@ declare namespace Intl {
|
|||
}
|
||||
|
||||
/**
|
||||
* Constructor creates [Intl.Locale](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale)
|
||||
* Constructor creates [Intl.Locale](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale)
|
||||
* objects
|
||||
*
|
||||
* @param tag - A string with a [BCP 47 language tag](http://tools.ietf.org/html/rfc5646).
|
||||
* For the general form and interpretation of the locales argument,
|
||||
* see the [`Intl` page](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_identification_and_negotiation).
|
||||
* see the [`Intl` page](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_identification_and_negotiation).
|
||||
*
|
||||
* @param options - An [object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale/Locale#Parameters) with some or all of options of the locale.
|
||||
* @param options - An [object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale/Locale#Parameters) with some or all of options of the locale.
|
||||
*
|
||||
* @returns [Intl.Locale](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale) object.
|
||||
* @returns [Intl.Locale](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale) object.
|
||||
*
|
||||
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale).
|
||||
* [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale).
|
||||
*/
|
||||
const Locale: {
|
||||
new (tag: UnicodeBCP47LocaleIdentifier | Locale, options?: LocaleOptions): Locale;
|
||||
|
@ -388,7 +388,7 @@ declare namespace Intl {
|
|||
interface DisplayNames {
|
||||
/**
|
||||
* Receives a code and returns a string based on the locale and options provided when instantiating
|
||||
* [`Intl.DisplayNames()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames)
|
||||
* [`Intl.DisplayNames()`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames)
|
||||
*
|
||||
* @param code The `code` to provide depends on the `type` passed to display name during creation:
|
||||
* - If the type is `"region"`, code should be either an [ISO-3166 two letters region code](https://www.iso.org/iso-3166-country-codes.html),
|
||||
|
@ -399,35 +399,35 @@ declare namespace Intl {
|
|||
* `languageCode` is either a two letters ISO 639-1 language code or a three letters ISO 639-2 language code.
|
||||
* - If the type is `"currency"`, code should be a [3-letter ISO 4217 currency code](https://www.iso.org/iso-4217-currency-codes.html).
|
||||
*
|
||||
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames/of).
|
||||
* [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames/of).
|
||||
*/
|
||||
of(code: string): string | undefined;
|
||||
/**
|
||||
* Returns a new object with properties reflecting the locale and style formatting options computed during the construction of the current
|
||||
* [`Intl/DisplayNames`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames) object.
|
||||
* [`Intl/DisplayNames`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames) object.
|
||||
*
|
||||
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames/resolvedOptions).
|
||||
* [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames/resolvedOptions).
|
||||
*/
|
||||
resolvedOptions(): ResolvedDisplayNamesOptions;
|
||||
}
|
||||
|
||||
/**
|
||||
* The [`Intl.DisplayNames()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames)
|
||||
* The [`Intl.DisplayNames()`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames)
|
||||
* object enables the consistent translation of language, region and script display names.
|
||||
*
|
||||
* [Compatibility](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames#browser_compatibility).
|
||||
* [Compatibility](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames#browser_compatibility).
|
||||
*/
|
||||
const DisplayNames: {
|
||||
prototype: DisplayNames;
|
||||
|
||||
/**
|
||||
* @param locales A string with a BCP 47 language tag, or an array of such strings.
|
||||
* For the general form and interpretation of the `locales` argument, see the [Intl](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#locale_identification_and_negotiation)
|
||||
* For the general form and interpretation of the `locales` argument, see the [Intl](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl#locale_identification_and_negotiation)
|
||||
* page.
|
||||
*
|
||||
* @param options An object for setting up a display name.
|
||||
*
|
||||
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames/DisplayNames).
|
||||
* [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames/DisplayNames).
|
||||
*/
|
||||
new (locales: LocalesArgument, options: DisplayNamesOptions): DisplayNames;
|
||||
|
||||
|
@ -435,14 +435,14 @@ declare namespace Intl {
|
|||
* Returns an array containing those of the provided locales that are supported in display names without having to fall back to the runtime's default locale.
|
||||
*
|
||||
* @param locales A string with a BCP 47 language tag, or an array of such strings.
|
||||
* For the general form and interpretation of the `locales` argument, see the [Intl](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#locale_identification_and_negotiation)
|
||||
* For the general form and interpretation of the `locales` argument, see the [Intl](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl#locale_identification_and_negotiation)
|
||||
* page.
|
||||
*
|
||||
* @param options An object with a locale matcher.
|
||||
*
|
||||
* @returns An array of strings representing a subset of the given locale tags that are supported in display names without having to fall back to the runtime's default locale.
|
||||
*
|
||||
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames/supportedLocalesOf).
|
||||
* [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames/supportedLocalesOf).
|
||||
*/
|
||||
supportedLocalesOf(locales?: LocalesArgument, options?: { localeMatcher?: RelativeTimeFormatLocaleMatcher; }): UnicodeBCP47LocaleIdentifier[];
|
||||
};
|
||||
|
|
24
cli/tsc/dts/lib.es2020.sharedmemory.d.ts
vendored
24
cli/tsc/dts/lib.es2020.sharedmemory.d.ts
vendored
|
@ -16,60 +16,62 @@ and limitations under the License.
|
|||
|
||||
/// <reference no-default-lib="true"/>
|
||||
|
||||
/// <reference lib="es2020.bigint" />
|
||||
|
||||
interface Atomics {
|
||||
/**
|
||||
* Adds a value to the value at the given position in the array, returning the original value.
|
||||
* Until this atomic operation completes, any other read or write operation against the array
|
||||
* will block.
|
||||
*/
|
||||
add(typedArray: BigInt64Array | BigUint64Array, index: number, value: bigint): bigint;
|
||||
add(typedArray: BigInt64Array<ArrayBufferLike> | BigUint64Array<ArrayBufferLike>, index: number, value: bigint): bigint;
|
||||
|
||||
/**
|
||||
* Stores the bitwise AND of a value with the value at the given position in the array,
|
||||
* returning the original value. Until this atomic operation completes, any other read or
|
||||
* write operation against the array will block.
|
||||
*/
|
||||
and(typedArray: BigInt64Array | BigUint64Array, index: number, value: bigint): bigint;
|
||||
and(typedArray: BigInt64Array<ArrayBufferLike> | BigUint64Array<ArrayBufferLike>, index: number, value: bigint): bigint;
|
||||
|
||||
/**
|
||||
* Replaces the value at the given position in the array if the original value equals the given
|
||||
* expected value, returning the original value. Until this atomic operation completes, any
|
||||
* other read or write operation against the array will block.
|
||||
*/
|
||||
compareExchange(typedArray: BigInt64Array | BigUint64Array, index: number, expectedValue: bigint, replacementValue: bigint): bigint;
|
||||
compareExchange(typedArray: BigInt64Array<ArrayBufferLike> | BigUint64Array<ArrayBufferLike>, index: number, expectedValue: bigint, replacementValue: bigint): bigint;
|
||||
|
||||
/**
|
||||
* Replaces the value at the given position in the array, returning the original value. Until
|
||||
* this atomic operation completes, any other read or write operation against the array will
|
||||
* block.
|
||||
*/
|
||||
exchange(typedArray: BigInt64Array | BigUint64Array, index: number, value: bigint): bigint;
|
||||
exchange(typedArray: BigInt64Array<ArrayBufferLike> | BigUint64Array<ArrayBufferLike>, index: number, value: bigint): bigint;
|
||||
|
||||
/**
|
||||
* Returns the value at the given position in the array. Until this atomic operation completes,
|
||||
* any other read or write operation against the array will block.
|
||||
*/
|
||||
load(typedArray: BigInt64Array | BigUint64Array, index: number): bigint;
|
||||
load(typedArray: BigInt64Array<ArrayBufferLike> | BigUint64Array<ArrayBufferLike>, index: number): bigint;
|
||||
|
||||
/**
|
||||
* Stores the bitwise OR of a value with the value at the given position in the array,
|
||||
* returning the original value. Until this atomic operation completes, any other read or write
|
||||
* operation against the array will block.
|
||||
*/
|
||||
or(typedArray: BigInt64Array | BigUint64Array, index: number, value: bigint): bigint;
|
||||
or(typedArray: BigInt64Array<ArrayBufferLike> | BigUint64Array<ArrayBufferLike>, index: number, value: bigint): bigint;
|
||||
|
||||
/**
|
||||
* Stores a value at the given position in the array, returning the new value. Until this
|
||||
* atomic operation completes, any other read or write operation against the array will block.
|
||||
*/
|
||||
store(typedArray: BigInt64Array | BigUint64Array, index: number, value: bigint): bigint;
|
||||
store(typedArray: BigInt64Array<ArrayBufferLike> | BigUint64Array<ArrayBufferLike>, index: number, value: bigint): bigint;
|
||||
|
||||
/**
|
||||
* Subtracts a value from the value at the given position in the array, returning the original
|
||||
* value. Until this atomic operation completes, any other read or write operation against the
|
||||
* array will block.
|
||||
*/
|
||||
sub(typedArray: BigInt64Array | BigUint64Array, index: number, value: bigint): bigint;
|
||||
sub(typedArray: BigInt64Array<ArrayBufferLike> | BigUint64Array<ArrayBufferLike>, index: number, value: bigint): bigint;
|
||||
|
||||
/**
|
||||
* If the value at the given position in the array is equal to the provided value, the current
|
||||
|
@ -77,7 +79,7 @@ interface Atomics {
|
|||
* `"timed-out"`) or until the agent is awoken (returning `"ok"`); otherwise, returns
|
||||
* `"not-equal"`.
|
||||
*/
|
||||
wait(typedArray: BigInt64Array, index: number, value: bigint, timeout?: number): "ok" | "not-equal" | "timed-out";
|
||||
wait(typedArray: BigInt64Array<ArrayBufferLike>, index: number, value: bigint, timeout?: number): "ok" | "not-equal" | "timed-out";
|
||||
|
||||
/**
|
||||
* Wakes up sleeping agents that are waiting on the given index of the array, returning the
|
||||
|
@ -86,12 +88,12 @@ interface Atomics {
|
|||
* @param index The position in the typedArray to wake up on.
|
||||
* @param count The number of sleeping agents to notify. Defaults to +Infinity.
|
||||
*/
|
||||
notify(typedArray: BigInt64Array, index: number, count?: number): number;
|
||||
notify(typedArray: BigInt64Array<ArrayBufferLike>, index: number, count?: number): number;
|
||||
|
||||
/**
|
||||
* Stores the bitwise XOR of a value with the value at the given position in the array,
|
||||
* returning the original value. Until this atomic operation completes, any other read or write
|
||||
* operation against the array will block.
|
||||
*/
|
||||
xor(typedArray: BigInt64Array | BigUint64Array, index: number, value: bigint): bigint;
|
||||
xor(typedArray: BigInt64Array<ArrayBufferLike> | BigUint64Array<ArrayBufferLike>, index: number, value: bigint): bigint;
|
||||
}
|
||||
|
|
2
cli/tsc/dts/lib.es2020.string.d.ts
vendored
2
cli/tsc/dts/lib.es2020.string.d.ts
vendored
|
@ -16,6 +16,8 @@ and limitations under the License.
|
|||
|
||||
/// <reference no-default-lib="true"/>
|
||||
|
||||
/// <reference lib="es2015.iterable" />
|
||||
/// <reference lib="es2020.intl" />
|
||||
/// <reference lib="es2020.symbol.wellknown" />
|
||||
|
||||
interface String {
|
||||
|
|
34
cli/tsc/dts/lib.es2021.intl.d.ts
vendored
34
cli/tsc/dts/lib.es2021.intl.d.ts
vendored
|
@ -50,28 +50,28 @@ declare namespace Intl {
|
|||
/**
|
||||
* The locale matching algorithm to use.
|
||||
*
|
||||
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/ListFormat#parameters).
|
||||
* [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/ListFormat#parameters).
|
||||
*/
|
||||
type ListFormatLocaleMatcher = "lookup" | "best fit";
|
||||
|
||||
/**
|
||||
* The format of output message.
|
||||
*
|
||||
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/ListFormat#parameters).
|
||||
* [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/ListFormat#parameters).
|
||||
*/
|
||||
type ListFormatType = "conjunction" | "disjunction" | "unit";
|
||||
|
||||
/**
|
||||
* The length of the formatted message.
|
||||
*
|
||||
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/ListFormat#parameters).
|
||||
* [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/ListFormat#parameters).
|
||||
*/
|
||||
type ListFormatStyle = "long" | "short" | "narrow";
|
||||
|
||||
/**
|
||||
* An object with some or all properties of the `Intl.ListFormat` constructor `options` parameter.
|
||||
*
|
||||
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/ListFormat#parameters).
|
||||
* [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/ListFormat#parameters).
|
||||
*/
|
||||
interface ListFormatOptions {
|
||||
/** The locale matching algorithm to use. For information about this option, see [Intl page](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_negotiation). */
|
||||
|
@ -92,26 +92,26 @@ declare namespace Intl {
|
|||
/**
|
||||
* Returns a string with a language-specific representation of the list.
|
||||
*
|
||||
* @param list - An iterable object, such as an [Array](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array).
|
||||
* @param list - An iterable object, such as an [Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array).
|
||||
*
|
||||
* @throws `TypeError` if `list` includes something other than the possible values.
|
||||
*
|
||||
* @returns {string} A language-specific formatted string representing the elements of the list.
|
||||
*
|
||||
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/format).
|
||||
* [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/format).
|
||||
*/
|
||||
format(list: Iterable<string>): string;
|
||||
|
||||
/**
|
||||
* Returns an Array of objects representing the different components that can be used to format a list of values in a locale-aware fashion.
|
||||
*
|
||||
* @param list - An iterable object, such as an [Array](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array), to be formatted according to a locale.
|
||||
* @param list - An iterable object, such as an [Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array), to be formatted according to a locale.
|
||||
*
|
||||
* @throws `TypeError` if `list` includes something other than the possible values.
|
||||
*
|
||||
* @returns {{ type: "element" | "literal", value: string; }[]} An Array of components which contains the formatted parts from the list.
|
||||
*
|
||||
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/formatToParts).
|
||||
* [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/formatToParts).
|
||||
*/
|
||||
formatToParts(list: Iterable<string>): { type: "element" | "literal"; value: string; }[];
|
||||
|
||||
|
@ -120,7 +120,7 @@ declare namespace Intl {
|
|||
* formatting options computed during the construction of the current
|
||||
* `Intl.ListFormat` object.
|
||||
*
|
||||
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/resolvedOptions).
|
||||
* [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/resolvedOptions).
|
||||
*/
|
||||
resolvedOptions(): ResolvedListFormatOptions;
|
||||
}
|
||||
|
@ -129,19 +129,19 @@ declare namespace Intl {
|
|||
prototype: ListFormat;
|
||||
|
||||
/**
|
||||
* Creates [Intl.ListFormat](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat) objects that
|
||||
* Creates [Intl.ListFormat](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat) objects that
|
||||
* enable language-sensitive list formatting.
|
||||
*
|
||||
* @param locales - A string with a [BCP 47 language tag](http://tools.ietf.org/html/rfc5646), or an array of such strings.
|
||||
* For the general form and interpretation of the `locales` argument,
|
||||
* see the [`Intl` page](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_identification_and_negotiation).
|
||||
* see the [`Intl` page](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_identification_and_negotiation).
|
||||
*
|
||||
* @param options - An [object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/ListFormat#parameters)
|
||||
* @param options - An [object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/ListFormat#parameters)
|
||||
* with some or all options of `ListFormatOptions`.
|
||||
*
|
||||
* @returns [Intl.ListFormatOptions](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat) object.
|
||||
* @returns [Intl.ListFormatOptions](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat) object.
|
||||
*
|
||||
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat).
|
||||
* [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat).
|
||||
*/
|
||||
new (locales?: LocalesArgument, options?: ListFormatOptions): ListFormat;
|
||||
|
||||
|
@ -151,15 +151,15 @@ declare namespace Intl {
|
|||
*
|
||||
* @param locales - A string with a [BCP 47 language tag](http://tools.ietf.org/html/rfc5646), or an array of such strings.
|
||||
* For the general form and interpretation of the `locales` argument,
|
||||
* see the [`Intl` page](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_identification_and_negotiation).
|
||||
* see the [`Intl` page](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_identification_and_negotiation).
|
||||
*
|
||||
* @param options - An [object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/supportedLocalesOf#parameters).
|
||||
* @param options - An [object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/supportedLocalesOf#parameters).
|
||||
* with some or all possible options.
|
||||
*
|
||||
* @returns An array of strings representing a subset of the given locale tags that are supported in list
|
||||
* formatting without having to fall back to the runtime's default locale.
|
||||
*
|
||||
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/supportedLocalesOf).
|
||||
* [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/supportedLocalesOf).
|
||||
*/
|
||||
supportedLocalesOf(locales: LocalesArgument, options?: Pick<ListFormatOptions, "localeMatcher">): UnicodeBCP47LocaleIdentifier[];
|
||||
};
|
||||
|
|
2
cli/tsc/dts/lib.es2021.weakref.d.ts
vendored
2
cli/tsc/dts/lib.es2021.weakref.d.ts
vendored
|
@ -16,6 +16,8 @@ and limitations under the License.
|
|||
|
||||
/// <reference no-default-lib="true"/>
|
||||
|
||||
/// <reference lib="es2015.symbol.wellknown" />
|
||||
|
||||
interface WeakRef<T extends WeakKey> {
|
||||
readonly [Symbol.toStringTag]: "WeakRef";
|
||||
|
||||
|
|
22
cli/tsc/dts/lib.es2022.array.d.ts
vendored
22
cli/tsc/dts/lib.es2022.array.d.ts
vendored
|
@ -32,7 +32,7 @@ interface ReadonlyArray<T> {
|
|||
at(index: number): T | undefined;
|
||||
}
|
||||
|
||||
interface Int8Array {
|
||||
interface Int8Array<TArrayBuffer extends ArrayBufferLike> {
|
||||
/**
|
||||
* Returns the item located at the specified index.
|
||||
* @param index The zero-based index of the desired code unit. A negative index will count back from the last item.
|
||||
|
@ -40,7 +40,7 @@ interface Int8Array {
|
|||
at(index: number): number | undefined;
|
||||
}
|
||||
|
||||
interface Uint8Array {
|
||||
interface Uint8Array<TArrayBuffer extends ArrayBufferLike> {
|
||||
/**
|
||||
* Returns the item located at the specified index.
|
||||
* @param index The zero-based index of the desired code unit. A negative index will count back from the last item.
|
||||
|
@ -48,7 +48,7 @@ interface Uint8Array {
|
|||
at(index: number): number | undefined;
|
||||
}
|
||||
|
||||
interface Uint8ClampedArray {
|
||||
interface Uint8ClampedArray<TArrayBuffer extends ArrayBufferLike> {
|
||||
/**
|
||||
* Returns the item located at the specified index.
|
||||
* @param index The zero-based index of the desired code unit. A negative index will count back from the last item.
|
||||
|
@ -56,7 +56,7 @@ interface Uint8ClampedArray {
|
|||
at(index: number): number | undefined;
|
||||
}
|
||||
|
||||
interface Int16Array {
|
||||
interface Int16Array<TArrayBuffer extends ArrayBufferLike> {
|
||||
/**
|
||||
* Returns the item located at the specified index.
|
||||
* @param index The zero-based index of the desired code unit. A negative index will count back from the last item.
|
||||
|
@ -64,7 +64,7 @@ interface Int16Array {
|
|||
at(index: number): number | undefined;
|
||||
}
|
||||
|
||||
interface Uint16Array {
|
||||
interface Uint16Array<TArrayBuffer extends ArrayBufferLike> {
|
||||
/**
|
||||
* Returns the item located at the specified index.
|
||||
* @param index The zero-based index of the desired code unit. A negative index will count back from the last item.
|
||||
|
@ -72,7 +72,7 @@ interface Uint16Array {
|
|||
at(index: number): number | undefined;
|
||||
}
|
||||
|
||||
interface Int32Array {
|
||||
interface Int32Array<TArrayBuffer extends ArrayBufferLike> {
|
||||
/**
|
||||
* Returns the item located at the specified index.
|
||||
* @param index The zero-based index of the desired code unit. A negative index will count back from the last item.
|
||||
|
@ -80,7 +80,7 @@ interface Int32Array {
|
|||
at(index: number): number | undefined;
|
||||
}
|
||||
|
||||
interface Uint32Array {
|
||||
interface Uint32Array<TArrayBuffer extends ArrayBufferLike> {
|
||||
/**
|
||||
* Returns the item located at the specified index.
|
||||
* @param index The zero-based index of the desired code unit. A negative index will count back from the last item.
|
||||
|
@ -88,7 +88,7 @@ interface Uint32Array {
|
|||
at(index: number): number | undefined;
|
||||
}
|
||||
|
||||
interface Float32Array {
|
||||
interface Float32Array<TArrayBuffer extends ArrayBufferLike> {
|
||||
/**
|
||||
* Returns the item located at the specified index.
|
||||
* @param index The zero-based index of the desired code unit. A negative index will count back from the last item.
|
||||
|
@ -96,7 +96,7 @@ interface Float32Array {
|
|||
at(index: number): number | undefined;
|
||||
}
|
||||
|
||||
interface Float64Array {
|
||||
interface Float64Array<TArrayBuffer extends ArrayBufferLike> {
|
||||
/**
|
||||
* Returns the item located at the specified index.
|
||||
* @param index The zero-based index of the desired code unit. A negative index will count back from the last item.
|
||||
|
@ -104,7 +104,7 @@ interface Float64Array {
|
|||
at(index: number): number | undefined;
|
||||
}
|
||||
|
||||
interface BigInt64Array {
|
||||
interface BigInt64Array<TArrayBuffer extends ArrayBufferLike> {
|
||||
/**
|
||||
* Returns the item located at the specified index.
|
||||
* @param index The zero-based index of the desired code unit. A negative index will count back from the last item.
|
||||
|
@ -112,7 +112,7 @@ interface BigInt64Array {
|
|||
at(index: number): bigint | undefined;
|
||||
}
|
||||
|
||||
interface BigUint64Array {
|
||||
interface BigUint64Array<TArrayBuffer extends ArrayBufferLike> {
|
||||
/**
|
||||
* Returns the item located at the specified index.
|
||||
* @param index The zero-based index of the desired code unit. A negative index will count back from the last item.
|
||||
|
|
3
cli/tsc/dts/lib.es2022.d.ts
vendored
3
cli/tsc/dts/lib.es2022.d.ts
vendored
|
@ -21,6 +21,5 @@ and limitations under the License.
|
|||
/// <reference lib="es2022.error" />
|
||||
/// <reference lib="es2022.intl" />
|
||||
/// <reference lib="es2022.object" />
|
||||
/// <reference lib="es2022.sharedmemory" />
|
||||
/// <reference lib="es2022.string" />
|
||||
/// <reference lib="es2022.regexp" />
|
||||
/// <reference lib="es2022.string" />
|
||||
|
|
2
cli/tsc/dts/lib.es2022.error.d.ts
vendored
2
cli/tsc/dts/lib.es2022.error.d.ts
vendored
|
@ -16,6 +16,8 @@ and limitations under the License.
|
|||
|
||||
/// <reference no-default-lib="true"/>
|
||||
|
||||
/// <reference lib="es2021.promise" />
|
||||
|
||||
interface ErrorOptions {
|
||||
cause?: unknown;
|
||||
}
|
||||
|
|
18
cli/tsc/dts/lib.es2022.intl.d.ts
vendored
18
cli/tsc/dts/lib.es2022.intl.d.ts
vendored
|
@ -20,7 +20,7 @@ declare namespace Intl {
|
|||
/**
|
||||
* An object with some or all properties of the `Intl.Segmenter` constructor `options` parameter.
|
||||
*
|
||||
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Segmenter/Segmenter#parameters)
|
||||
* [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/Segmenter/Segmenter#parameters)
|
||||
*/
|
||||
interface SegmenterOptions {
|
||||
/** The locale matching algorithm to use. For information about this option, see [Intl page](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_negotiation). */
|
||||
|
@ -84,14 +84,14 @@ declare namespace Intl {
|
|||
*
|
||||
* @param locales - A string with a [BCP 47 language tag](http://tools.ietf.org/html/rfc5646), or an array of such strings.
|
||||
* For the general form and interpretation of the `locales` argument,
|
||||
* see the [`Intl` page](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_identification_and_negotiation).
|
||||
* see the [`Intl` page](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_identification_and_negotiation).
|
||||
*
|
||||
* @param options - An [object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Segmenter/Segmenter#parameters)
|
||||
* @param options - An [object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/Segmenter/Segmenter#parameters)
|
||||
* with some or all options of `SegmenterOptions`.
|
||||
*
|
||||
* @returns [Intl.Segmenter](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Segments) object.
|
||||
* @returns [Intl.Segmenter](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/Segments) object.
|
||||
*
|
||||
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Segmenter).
|
||||
* [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/Segmenter).
|
||||
*/
|
||||
new (locales?: LocalesArgument, options?: SegmenterOptions): Segmenter;
|
||||
|
||||
|
@ -100,19 +100,19 @@ declare namespace Intl {
|
|||
*
|
||||
* @param locales - A string with a [BCP 47 language tag](http://tools.ietf.org/html/rfc5646), or an array of such strings.
|
||||
* For the general form and interpretation of the `locales` argument,
|
||||
* see the [`Intl` page](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_identification_and_negotiation).
|
||||
* see the [`Intl` page](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_identification_and_negotiation).
|
||||
*
|
||||
* @param options An [object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Segmenter/supportedLocalesOf#parameters).
|
||||
* @param options An [object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/Segmenter/supportedLocalesOf#parameters).
|
||||
* with some or all possible options.
|
||||
*
|
||||
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Segmenter/supportedLocalesOf)
|
||||
* [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/Segmenter/supportedLocalesOf)
|
||||
*/
|
||||
supportedLocalesOf(locales: LocalesArgument, options?: Pick<SegmenterOptions, "localeMatcher">): UnicodeBCP47LocaleIdentifier[];
|
||||
};
|
||||
|
||||
/**
|
||||
* Returns a sorted array of the supported collation, calendar, currency, numbering system, timezones, and units by the implementation.
|
||||
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/supportedValuesOf)
|
||||
* [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/supportedValuesOf)
|
||||
*
|
||||
* @param key A string indicating the category of values to return.
|
||||
* @returns A sorted array of the supported values.
|
||||
|
|
198
cli/tsc/dts/lib.es2023.array.d.ts
vendored
198
cli/tsc/dts/lib.es2023.array.d.ts
vendored
|
@ -163,7 +163,7 @@ interface ReadonlyArray<T> {
|
|||
with(index: number, value: T): T[];
|
||||
}
|
||||
|
||||
interface Int8Array {
|
||||
interface Int8Array<TArrayBuffer extends ArrayBufferLike> {
|
||||
/**
|
||||
* Returns the value of the last element in the array where predicate is true, and undefined
|
||||
* otherwise.
|
||||
|
@ -177,12 +177,12 @@ interface Int8Array {
|
|||
predicate: (
|
||||
value: number,
|
||||
index: number,
|
||||
array: Int8Array,
|
||||
array: this,
|
||||
) => value is S,
|
||||
thisArg?: any,
|
||||
): S | undefined;
|
||||
findLast(
|
||||
predicate: (value: number, index: number, array: Int8Array) => unknown,
|
||||
predicate: (value: number, index: number, array: this) => unknown,
|
||||
thisArg?: any,
|
||||
): number | undefined;
|
||||
|
||||
|
@ -196,14 +196,14 @@ interface Int8Array {
|
|||
* predicate. If it is not provided, undefined is used instead.
|
||||
*/
|
||||
findLastIndex(
|
||||
predicate: (value: number, index: number, array: Int8Array) => unknown,
|
||||
predicate: (value: number, index: number, array: this) => unknown,
|
||||
thisArg?: any,
|
||||
): number;
|
||||
|
||||
/**
|
||||
* Copies the array and returns the copy with the elements in reverse order.
|
||||
*/
|
||||
toReversed(): Int8Array;
|
||||
toReversed(): Int8Array<ArrayBuffer>;
|
||||
|
||||
/**
|
||||
* Copies and sorts the array.
|
||||
|
@ -211,11 +211,11 @@ interface Int8Array {
|
|||
* a negative value if the first argument is less than the second argument, zero if they're equal, and a positive
|
||||
* value otherwise. If omitted, the elements are sorted in ascending order.
|
||||
* ```ts
|
||||
* const myNums = Int8Array.from([11, 2, 22, 1]);
|
||||
* myNums.toSorted((a, b) => a - b) // Int8Array(4) [1, 2, 11, 22]
|
||||
* const myNums = Int8Array<Buffer>.from([11, 2, 22, 1]);
|
||||
* myNums.toSorted((a, b) => a - b) // Int8Array<Buffer>(4) [1, 2, 11, 22]
|
||||
* ```
|
||||
*/
|
||||
toSorted(compareFn?: (a: number, b: number) => number): Int8Array;
|
||||
toSorted(compareFn?: (a: number, b: number) => number): Int8Array<ArrayBuffer>;
|
||||
|
||||
/**
|
||||
* Copies the array and inserts the given number at the provided index.
|
||||
|
@ -224,10 +224,10 @@ interface Int8Array {
|
|||
* @param value The value to insert into the copied array.
|
||||
* @returns A copy of the original array with the inserted value.
|
||||
*/
|
||||
with(index: number, value: number): Int8Array;
|
||||
with(index: number, value: number): Int8Array<ArrayBuffer>;
|
||||
}
|
||||
|
||||
interface Uint8Array {
|
||||
interface Uint8Array<TArrayBuffer extends ArrayBufferLike> {
|
||||
/**
|
||||
* Returns the value of the last element in the array where predicate is true, and undefined
|
||||
* otherwise.
|
||||
|
@ -241,12 +241,12 @@ interface Uint8Array {
|
|||
predicate: (
|
||||
value: number,
|
||||
index: number,
|
||||
array: Uint8Array,
|
||||
array: this,
|
||||
) => value is S,
|
||||
thisArg?: any,
|
||||
): S | undefined;
|
||||
findLast(
|
||||
predicate: (value: number, index: number, array: Uint8Array) => unknown,
|
||||
predicate: (value: number, index: number, array: this) => unknown,
|
||||
thisArg?: any,
|
||||
): number | undefined;
|
||||
|
||||
|
@ -260,14 +260,14 @@ interface Uint8Array {
|
|||
* predicate. If it is not provided, undefined is used instead.
|
||||
*/
|
||||
findLastIndex(
|
||||
predicate: (value: number, index: number, array: Uint8Array) => unknown,
|
||||
predicate: (value: number, index: number, array: this) => unknown,
|
||||
thisArg?: any,
|
||||
): number;
|
||||
|
||||
/**
|
||||
* Copies the array and returns the copy with the elements in reverse order.
|
||||
*/
|
||||
toReversed(): Uint8Array;
|
||||
toReversed(): Uint8Array<ArrayBuffer>;
|
||||
|
||||
/**
|
||||
* Copies and sorts the array.
|
||||
|
@ -275,11 +275,11 @@ interface Uint8Array {
|
|||
* a negative value if the first argument is less than the second argument, zero if they're equal, and a positive
|
||||
* value otherwise. If omitted, the elements are sorted in ascending order.
|
||||
* ```ts
|
||||
* const myNums = Uint8Array.from([11, 2, 22, 1]);
|
||||
* myNums.toSorted((a, b) => a - b) // Uint8Array(4) [1, 2, 11, 22]
|
||||
* const myNums = Uint8Array<Buffer>.from([11, 2, 22, 1]);
|
||||
* myNums.toSorted((a, b) => a - b) // Uint8Array<Buffer>(4) [1, 2, 11, 22]
|
||||
* ```
|
||||
*/
|
||||
toSorted(compareFn?: (a: number, b: number) => number): Uint8Array;
|
||||
toSorted(compareFn?: (a: number, b: number) => number): Uint8Array<ArrayBuffer>;
|
||||
|
||||
/**
|
||||
* Copies the array and inserts the given number at the provided index.
|
||||
|
@ -288,10 +288,10 @@ interface Uint8Array {
|
|||
* @param value The value to insert into the copied array.
|
||||
* @returns A copy of the original array with the inserted value.
|
||||
*/
|
||||
with(index: number, value: number): Uint8Array;
|
||||
with(index: number, value: number): Uint8Array<ArrayBuffer>;
|
||||
}
|
||||
|
||||
interface Uint8ClampedArray {
|
||||
interface Uint8ClampedArray<TArrayBuffer extends ArrayBufferLike> {
|
||||
/**
|
||||
* Returns the value of the last element in the array where predicate is true, and undefined
|
||||
* otherwise.
|
||||
|
@ -305,7 +305,7 @@ interface Uint8ClampedArray {
|
|||
predicate: (
|
||||
value: number,
|
||||
index: number,
|
||||
array: Uint8ClampedArray,
|
||||
array: this,
|
||||
) => value is S,
|
||||
thisArg?: any,
|
||||
): S | undefined;
|
||||
|
@ -313,7 +313,7 @@ interface Uint8ClampedArray {
|
|||
predicate: (
|
||||
value: number,
|
||||
index: number,
|
||||
array: Uint8ClampedArray,
|
||||
array: this,
|
||||
) => unknown,
|
||||
thisArg?: any,
|
||||
): number | undefined;
|
||||
|
@ -331,7 +331,7 @@ interface Uint8ClampedArray {
|
|||
predicate: (
|
||||
value: number,
|
||||
index: number,
|
||||
array: Uint8ClampedArray,
|
||||
array: this,
|
||||
) => unknown,
|
||||
thisArg?: any,
|
||||
): number;
|
||||
|
@ -339,7 +339,7 @@ interface Uint8ClampedArray {
|
|||
/**
|
||||
* Copies the array and returns the copy with the elements in reverse order.
|
||||
*/
|
||||
toReversed(): Uint8ClampedArray;
|
||||
toReversed(): Uint8ClampedArray<ArrayBuffer>;
|
||||
|
||||
/**
|
||||
* Copies and sorts the array.
|
||||
|
@ -347,11 +347,11 @@ interface Uint8ClampedArray {
|
|||
* a negative value if the first argument is less than the second argument, zero if they're equal, and a positive
|
||||
* value otherwise. If omitted, the elements are sorted in ascending order.
|
||||
* ```ts
|
||||
* const myNums = Uint8ClampedArray.from([11, 2, 22, 1]);
|
||||
* myNums.toSorted((a, b) => a - b) // Uint8ClampedArray(4) [1, 2, 11, 22]
|
||||
* const myNums = Uint8ClampedArray<Buffer>.from([11, 2, 22, 1]);
|
||||
* myNums.toSorted((a, b) => a - b) // Uint8ClampedArray<Buffer>(4) [1, 2, 11, 22]
|
||||
* ```
|
||||
*/
|
||||
toSorted(compareFn?: (a: number, b: number) => number): Uint8ClampedArray;
|
||||
toSorted(compareFn?: (a: number, b: number) => number): Uint8ClampedArray<ArrayBuffer>;
|
||||
|
||||
/**
|
||||
* Copies the array and inserts the given number at the provided index.
|
||||
|
@ -360,10 +360,10 @@ interface Uint8ClampedArray {
|
|||
* @param value The value to insert into the copied array.
|
||||
* @returns A copy of the original array with the inserted value.
|
||||
*/
|
||||
with(index: number, value: number): Uint8ClampedArray;
|
||||
with(index: number, value: number): Uint8ClampedArray<ArrayBuffer>;
|
||||
}
|
||||
|
||||
interface Int16Array {
|
||||
interface Int16Array<TArrayBuffer extends ArrayBufferLike> {
|
||||
/**
|
||||
* Returns the value of the last element in the array where predicate is true, and undefined
|
||||
* otherwise.
|
||||
|
@ -377,12 +377,12 @@ interface Int16Array {
|
|||
predicate: (
|
||||
value: number,
|
||||
index: number,
|
||||
array: Int16Array,
|
||||
array: this,
|
||||
) => value is S,
|
||||
thisArg?: any,
|
||||
): S | undefined;
|
||||
findLast(
|
||||
predicate: (value: number, index: number, array: Int16Array) => unknown,
|
||||
predicate: (value: number, index: number, array: this) => unknown,
|
||||
thisArg?: any,
|
||||
): number | undefined;
|
||||
|
||||
|
@ -396,14 +396,14 @@ interface Int16Array {
|
|||
* predicate. If it is not provided, undefined is used instead.
|
||||
*/
|
||||
findLastIndex(
|
||||
predicate: (value: number, index: number, array: Int16Array) => unknown,
|
||||
predicate: (value: number, index: number, array: this) => unknown,
|
||||
thisArg?: any,
|
||||
): number;
|
||||
|
||||
/**
|
||||
* Copies the array and returns the copy with the elements in reverse order.
|
||||
*/
|
||||
toReversed(): Int16Array;
|
||||
toReversed(): Int16Array<ArrayBuffer>;
|
||||
|
||||
/**
|
||||
* Copies and sorts the array.
|
||||
|
@ -411,11 +411,11 @@ interface Int16Array {
|
|||
* a negative value if the first argument is less than the second argument, zero if they're equal, and a positive
|
||||
* value otherwise. If omitted, the elements are sorted in ascending order.
|
||||
* ```ts
|
||||
* const myNums = Int16Array.from([11, 2, -22, 1]);
|
||||
* myNums.toSorted((a, b) => a - b) // Int16Array(4) [-22, 1, 2, 11]
|
||||
* const myNums = Int16Array<Buffer>.from([11, 2, -22, 1]);
|
||||
* myNums.toSorted((a, b) => a - b) // Int16Array<Buffer>(4) [-22, 1, 2, 11]
|
||||
* ```
|
||||
*/
|
||||
toSorted(compareFn?: (a: number, b: number) => number): Int16Array;
|
||||
toSorted(compareFn?: (a: number, b: number) => number): Int16Array<ArrayBuffer>;
|
||||
|
||||
/**
|
||||
* Copies the array and inserts the given number at the provided index.
|
||||
|
@ -424,10 +424,10 @@ interface Int16Array {
|
|||
* @param value The value to insert into the copied array.
|
||||
* @returns A copy of the original array with the inserted value.
|
||||
*/
|
||||
with(index: number, value: number): Int16Array;
|
||||
with(index: number, value: number): Int16Array<ArrayBuffer>;
|
||||
}
|
||||
|
||||
interface Uint16Array {
|
||||
interface Uint16Array<TArrayBuffer extends ArrayBufferLike> {
|
||||
/**
|
||||
* Returns the value of the last element in the array where predicate is true, and undefined
|
||||
* otherwise.
|
||||
|
@ -441,7 +441,7 @@ interface Uint16Array {
|
|||
predicate: (
|
||||
value: number,
|
||||
index: number,
|
||||
array: Uint16Array,
|
||||
array: this,
|
||||
) => value is S,
|
||||
thisArg?: any,
|
||||
): S | undefined;
|
||||
|
@ -449,7 +449,7 @@ interface Uint16Array {
|
|||
predicate: (
|
||||
value: number,
|
||||
index: number,
|
||||
array: Uint16Array,
|
||||
array: this,
|
||||
) => unknown,
|
||||
thisArg?: any,
|
||||
): number | undefined;
|
||||
|
@ -467,7 +467,7 @@ interface Uint16Array {
|
|||
predicate: (
|
||||
value: number,
|
||||
index: number,
|
||||
array: Uint16Array,
|
||||
array: this,
|
||||
) => unknown,
|
||||
thisArg?: any,
|
||||
): number;
|
||||
|
@ -475,7 +475,7 @@ interface Uint16Array {
|
|||
/**
|
||||
* Copies the array and returns the copy with the elements in reverse order.
|
||||
*/
|
||||
toReversed(): Uint16Array;
|
||||
toReversed(): Uint16Array<ArrayBuffer>;
|
||||
|
||||
/**
|
||||
* Copies and sorts the array.
|
||||
|
@ -483,11 +483,11 @@ interface Uint16Array {
|
|||
* a negative value if the first argument is less than the second argument, zero if they're equal, and a positive
|
||||
* value otherwise. If omitted, the elements are sorted in ascending order.
|
||||
* ```ts
|
||||
* const myNums = Uint16Array.from([11, 2, 22, 1]);
|
||||
* myNums.toSorted((a, b) => a - b) // Uint16Array(4) [1, 2, 11, 22]
|
||||
* const myNums = Uint16Array<Buffer>.from([11, 2, 22, 1]);
|
||||
* myNums.toSorted((a, b) => a - b) // Uint16Array<Buffer>(4) [1, 2, 11, 22]
|
||||
* ```
|
||||
*/
|
||||
toSorted(compareFn?: (a: number, b: number) => number): Uint16Array;
|
||||
toSorted(compareFn?: (a: number, b: number) => number): Uint16Array<ArrayBuffer>;
|
||||
|
||||
/**
|
||||
* Copies the array and inserts the given number at the provided index.
|
||||
|
@ -496,10 +496,10 @@ interface Uint16Array {
|
|||
* @param value The value to insert into the copied array.
|
||||
* @returns A copy of the original array with the inserted value.
|
||||
*/
|
||||
with(index: number, value: number): Uint16Array;
|
||||
with(index: number, value: number): Uint16Array<ArrayBuffer>;
|
||||
}
|
||||
|
||||
interface Int32Array {
|
||||
interface Int32Array<TArrayBuffer extends ArrayBufferLike> {
|
||||
/**
|
||||
* Returns the value of the last element in the array where predicate is true, and undefined
|
||||
* otherwise.
|
||||
|
@ -513,12 +513,12 @@ interface Int32Array {
|
|||
predicate: (
|
||||
value: number,
|
||||
index: number,
|
||||
array: Int32Array,
|
||||
array: this,
|
||||
) => value is S,
|
||||
thisArg?: any,
|
||||
): S | undefined;
|
||||
findLast(
|
||||
predicate: (value: number, index: number, array: Int32Array) => unknown,
|
||||
predicate: (value: number, index: number, array: this) => unknown,
|
||||
thisArg?: any,
|
||||
): number | undefined;
|
||||
|
||||
|
@ -532,14 +532,14 @@ interface Int32Array {
|
|||
* predicate. If it is not provided, undefined is used instead.
|
||||
*/
|
||||
findLastIndex(
|
||||
predicate: (value: number, index: number, array: Int32Array) => unknown,
|
||||
predicate: (value: number, index: number, array: this) => unknown,
|
||||
thisArg?: any,
|
||||
): number;
|
||||
|
||||
/**
|
||||
* Copies the array and returns the copy with the elements in reverse order.
|
||||
*/
|
||||
toReversed(): Int32Array;
|
||||
toReversed(): Int32Array<ArrayBuffer>;
|
||||
|
||||
/**
|
||||
* Copies and sorts the array.
|
||||
|
@ -547,11 +547,11 @@ interface Int32Array {
|
|||
* a negative value if the first argument is less than the second argument, zero if they're equal, and a positive
|
||||
* value otherwise. If omitted, the elements are sorted in ascending order.
|
||||
* ```ts
|
||||
* const myNums = Int32Array.from([11, 2, -22, 1]);
|
||||
* myNums.toSorted((a, b) => a - b) // Int32Array(4) [-22, 1, 2, 11]
|
||||
* const myNums = Int32Array<Buffer>.from([11, 2, -22, 1]);
|
||||
* myNums.toSorted((a, b) => a - b) // Int32Array<Buffer>(4) [-22, 1, 2, 11]
|
||||
* ```
|
||||
*/
|
||||
toSorted(compareFn?: (a: number, b: number) => number): Int32Array;
|
||||
toSorted(compareFn?: (a: number, b: number) => number): Int32Array<ArrayBuffer>;
|
||||
|
||||
/**
|
||||
* Copies the array and inserts the given number at the provided index.
|
||||
|
@ -560,10 +560,10 @@ interface Int32Array {
|
|||
* @param value The value to insert into the copied array.
|
||||
* @returns A copy of the original array with the inserted value.
|
||||
*/
|
||||
with(index: number, value: number): Int32Array;
|
||||
with(index: number, value: number): Int32Array<ArrayBuffer>;
|
||||
}
|
||||
|
||||
interface Uint32Array {
|
||||
interface Uint32Array<TArrayBuffer extends ArrayBufferLike> {
|
||||
/**
|
||||
* Returns the value of the last element in the array where predicate is true, and undefined
|
||||
* otherwise.
|
||||
|
@ -577,7 +577,7 @@ interface Uint32Array {
|
|||
predicate: (
|
||||
value: number,
|
||||
index: number,
|
||||
array: Uint32Array,
|
||||
array: this,
|
||||
) => value is S,
|
||||
thisArg?: any,
|
||||
): S | undefined;
|
||||
|
@ -585,7 +585,7 @@ interface Uint32Array {
|
|||
predicate: (
|
||||
value: number,
|
||||
index: number,
|
||||
array: Uint32Array,
|
||||
array: this,
|
||||
) => unknown,
|
||||
thisArg?: any,
|
||||
): number | undefined;
|
||||
|
@ -603,7 +603,7 @@ interface Uint32Array {
|
|||
predicate: (
|
||||
value: number,
|
||||
index: number,
|
||||
array: Uint32Array,
|
||||
array: this,
|
||||
) => unknown,
|
||||
thisArg?: any,
|
||||
): number;
|
||||
|
@ -611,7 +611,7 @@ interface Uint32Array {
|
|||
/**
|
||||
* Copies the array and returns the copy with the elements in reverse order.
|
||||
*/
|
||||
toReversed(): Uint32Array;
|
||||
toReversed(): Uint32Array<ArrayBuffer>;
|
||||
|
||||
/**
|
||||
* Copies and sorts the array.
|
||||
|
@ -619,11 +619,11 @@ interface Uint32Array {
|
|||
* a negative value if the first argument is less than the second argument, zero if they're equal, and a positive
|
||||
* value otherwise. If omitted, the elements are sorted in ascending order.
|
||||
* ```ts
|
||||
* const myNums = Uint32Array.from([11, 2, 22, 1]);
|
||||
* myNums.toSorted((a, b) => a - b) // Uint32Array(4) [1, 2, 11, 22]
|
||||
* const myNums = Uint32Array<Buffer>.from([11, 2, 22, 1]);
|
||||
* myNums.toSorted((a, b) => a - b) // Uint32Array<Buffer>(4) [1, 2, 11, 22]
|
||||
* ```
|
||||
*/
|
||||
toSorted(compareFn?: (a: number, b: number) => number): Uint32Array;
|
||||
toSorted(compareFn?: (a: number, b: number) => number): Uint32Array<ArrayBuffer>;
|
||||
|
||||
/**
|
||||
* Copies the array and inserts the given number at the provided index.
|
||||
|
@ -632,10 +632,10 @@ interface Uint32Array {
|
|||
* @param value The value to insert into the copied array.
|
||||
* @returns A copy of the original array with the inserted value.
|
||||
*/
|
||||
with(index: number, value: number): Uint32Array;
|
||||
with(index: number, value: number): Uint32Array<ArrayBuffer>;
|
||||
}
|
||||
|
||||
interface Float32Array {
|
||||
interface Float32Array<TArrayBuffer extends ArrayBufferLike> {
|
||||
/**
|
||||
* Returns the value of the last element in the array where predicate is true, and undefined
|
||||
* otherwise.
|
||||
|
@ -649,7 +649,7 @@ interface Float32Array {
|
|||
predicate: (
|
||||
value: number,
|
||||
index: number,
|
||||
array: Float32Array,
|
||||
array: this,
|
||||
) => value is S,
|
||||
thisArg?: any,
|
||||
): S | undefined;
|
||||
|
@ -657,7 +657,7 @@ interface Float32Array {
|
|||
predicate: (
|
||||
value: number,
|
||||
index: number,
|
||||
array: Float32Array,
|
||||
array: this,
|
||||
) => unknown,
|
||||
thisArg?: any,
|
||||
): number | undefined;
|
||||
|
@ -675,7 +675,7 @@ interface Float32Array {
|
|||
predicate: (
|
||||
value: number,
|
||||
index: number,
|
||||
array: Float32Array,
|
||||
array: this,
|
||||
) => unknown,
|
||||
thisArg?: any,
|
||||
): number;
|
||||
|
@ -683,7 +683,7 @@ interface Float32Array {
|
|||
/**
|
||||
* Copies the array and returns the copy with the elements in reverse order.
|
||||
*/
|
||||
toReversed(): Float32Array;
|
||||
toReversed(): Float32Array<ArrayBuffer>;
|
||||
|
||||
/**
|
||||
* Copies and sorts the array.
|
||||
|
@ -691,11 +691,11 @@ interface Float32Array {
|
|||
* a negative value if the first argument is less than the second argument, zero if they're equal, and a positive
|
||||
* value otherwise. If omitted, the elements are sorted in ascending order.
|
||||
* ```ts
|
||||
* const myNums = Float32Array.from([11.25, 2, -22.5, 1]);
|
||||
* myNums.toSorted((a, b) => a - b) // Float32Array(4) [-22.5, 1, 2, 11.5]
|
||||
* const myNums = Float32Array<Buffer>.from([11.25, 2, -22.5, 1]);
|
||||
* myNums.toSorted((a, b) => a - b) // Float32Array<Buffer>(4) [-22.5, 1, 2, 11.5]
|
||||
* ```
|
||||
*/
|
||||
toSorted(compareFn?: (a: number, b: number) => number): Float32Array;
|
||||
toSorted(compareFn?: (a: number, b: number) => number): Float32Array<ArrayBuffer>;
|
||||
|
||||
/**
|
||||
* Copies the array and inserts the given number at the provided index.
|
||||
|
@ -704,10 +704,10 @@ interface Float32Array {
|
|||
* @param value The value to insert into the copied array.
|
||||
* @returns A copy of the original array with the inserted value.
|
||||
*/
|
||||
with(index: number, value: number): Float32Array;
|
||||
with(index: number, value: number): Float32Array<ArrayBuffer>;
|
||||
}
|
||||
|
||||
interface Float64Array {
|
||||
interface Float64Array<TArrayBuffer extends ArrayBufferLike> {
|
||||
/**
|
||||
* Returns the value of the last element in the array where predicate is true, and undefined
|
||||
* otherwise.
|
||||
|
@ -721,7 +721,7 @@ interface Float64Array {
|
|||
predicate: (
|
||||
value: number,
|
||||
index: number,
|
||||
array: Float64Array,
|
||||
array: this,
|
||||
) => value is S,
|
||||
thisArg?: any,
|
||||
): S | undefined;
|
||||
|
@ -729,7 +729,7 @@ interface Float64Array {
|
|||
predicate: (
|
||||
value: number,
|
||||
index: number,
|
||||
array: Float64Array,
|
||||
array: this,
|
||||
) => unknown,
|
||||
thisArg?: any,
|
||||
): number | undefined;
|
||||
|
@ -747,7 +747,7 @@ interface Float64Array {
|
|||
predicate: (
|
||||
value: number,
|
||||
index: number,
|
||||
array: Float64Array,
|
||||
array: this,
|
||||
) => unknown,
|
||||
thisArg?: any,
|
||||
): number;
|
||||
|
@ -755,7 +755,7 @@ interface Float64Array {
|
|||
/**
|
||||
* Copies the array and returns the copy with the elements in reverse order.
|
||||
*/
|
||||
toReversed(): Float64Array;
|
||||
toReversed(): Float64Array<ArrayBuffer>;
|
||||
|
||||
/**
|
||||
* Copies and sorts the array.
|
||||
|
@ -763,11 +763,11 @@ interface Float64Array {
|
|||
* a negative value if the first argument is less than the second argument, zero if they're equal, and a positive
|
||||
* value otherwise. If omitted, the elements are sorted in ascending order.
|
||||
* ```ts
|
||||
* const myNums = Float64Array.from([11.25, 2, -22.5, 1]);
|
||||
* myNums.toSorted((a, b) => a - b) // Float64Array(4) [-22.5, 1, 2, 11.5]
|
||||
* const myNums = Float64Array<Buffer>.from([11.25, 2, -22.5, 1]);
|
||||
* myNums.toSorted((a, b) => a - b) // Float64Array<Buffer>(4) [-22.5, 1, 2, 11.5]
|
||||
* ```
|
||||
*/
|
||||
toSorted(compareFn?: (a: number, b: number) => number): Float64Array;
|
||||
toSorted(compareFn?: (a: number, b: number) => number): Float64Array<ArrayBuffer>;
|
||||
|
||||
/**
|
||||
* Copies the array and inserts the given number at the provided index.
|
||||
|
@ -776,10 +776,10 @@ interface Float64Array {
|
|||
* @param value The value to insert into the copied array.
|
||||
* @returns A copy of the original array with the inserted value.
|
||||
*/
|
||||
with(index: number, value: number): Float64Array;
|
||||
with(index: number, value: number): Float64Array<ArrayBuffer>;
|
||||
}
|
||||
|
||||
interface BigInt64Array {
|
||||
interface BigInt64Array<TArrayBuffer extends ArrayBufferLike> {
|
||||
/**
|
||||
* Returns the value of the last element in the array where predicate is true, and undefined
|
||||
* otherwise.
|
||||
|
@ -793,7 +793,7 @@ interface BigInt64Array {
|
|||
predicate: (
|
||||
value: bigint,
|
||||
index: number,
|
||||
array: BigInt64Array,
|
||||
array: this,
|
||||
) => value is S,
|
||||
thisArg?: any,
|
||||
): S | undefined;
|
||||
|
@ -801,7 +801,7 @@ interface BigInt64Array {
|
|||
predicate: (
|
||||
value: bigint,
|
||||
index: number,
|
||||
array: BigInt64Array,
|
||||
array: this,
|
||||
) => unknown,
|
||||
thisArg?: any,
|
||||
): bigint | undefined;
|
||||
|
@ -819,7 +819,7 @@ interface BigInt64Array {
|
|||
predicate: (
|
||||
value: bigint,
|
||||
index: number,
|
||||
array: BigInt64Array,
|
||||
array: this,
|
||||
) => unknown,
|
||||
thisArg?: any,
|
||||
): number;
|
||||
|
@ -827,7 +827,7 @@ interface BigInt64Array {
|
|||
/**
|
||||
* Copies the array and returns the copy with the elements in reverse order.
|
||||
*/
|
||||
toReversed(): BigInt64Array;
|
||||
toReversed(): BigInt64Array<ArrayBuffer>;
|
||||
|
||||
/**
|
||||
* Copies and sorts the array.
|
||||
|
@ -835,11 +835,11 @@ interface BigInt64Array {
|
|||
* a negative value if the first argument is less than the second argument, zero if they're equal, and a positive
|
||||
* value otherwise. If omitted, the elements are sorted in ascending order.
|
||||
* ```ts
|
||||
* const myNums = BigInt64Array.from([11n, 2n, -22n, 1n]);
|
||||
* myNums.toSorted((a, b) => Number(a - b)) // BigInt64Array(4) [-22n, 1n, 2n, 11n]
|
||||
* const myNums = BigInt64Array<Buffer>.from([11n, 2n, -22n, 1n]);
|
||||
* myNums.toSorted((a, b) => Number(a - b)) // BigInt64Array<Buffer>(4) [-22n, 1n, 2n, 11n]
|
||||
* ```
|
||||
*/
|
||||
toSorted(compareFn?: (a: bigint, b: bigint) => number): BigInt64Array;
|
||||
toSorted(compareFn?: (a: bigint, b: bigint) => number): BigInt64Array<ArrayBuffer>;
|
||||
|
||||
/**
|
||||
* Copies the array and inserts the given bigint at the provided index.
|
||||
|
@ -848,10 +848,10 @@ interface BigInt64Array {
|
|||
* @param value The value to insert into the copied array.
|
||||
* @returns A copy of the original array with the inserted value.
|
||||
*/
|
||||
with(index: number, value: bigint): BigInt64Array;
|
||||
with(index: number, value: bigint): BigInt64Array<ArrayBuffer>;
|
||||
}
|
||||
|
||||
interface BigUint64Array {
|
||||
interface BigUint64Array<TArrayBuffer extends ArrayBufferLike> {
|
||||
/**
|
||||
* Returns the value of the last element in the array where predicate is true, and undefined
|
||||
* otherwise.
|
||||
|
@ -865,7 +865,7 @@ interface BigUint64Array {
|
|||
predicate: (
|
||||
value: bigint,
|
||||
index: number,
|
||||
array: BigUint64Array,
|
||||
array: this,
|
||||
) => value is S,
|
||||
thisArg?: any,
|
||||
): S | undefined;
|
||||
|
@ -873,7 +873,7 @@ interface BigUint64Array {
|
|||
predicate: (
|
||||
value: bigint,
|
||||
index: number,
|
||||
array: BigUint64Array,
|
||||
array: this,
|
||||
) => unknown,
|
||||
thisArg?: any,
|
||||
): bigint | undefined;
|
||||
|
@ -891,7 +891,7 @@ interface BigUint64Array {
|
|||
predicate: (
|
||||
value: bigint,
|
||||
index: number,
|
||||
array: BigUint64Array,
|
||||
array: this,
|
||||
) => unknown,
|
||||
thisArg?: any,
|
||||
): number;
|
||||
|
@ -899,7 +899,7 @@ interface BigUint64Array {
|
|||
/**
|
||||
* Copies the array and returns the copy with the elements in reverse order.
|
||||
*/
|
||||
toReversed(): BigUint64Array;
|
||||
toReversed(): BigUint64Array<ArrayBuffer>;
|
||||
|
||||
/**
|
||||
* Copies and sorts the array.
|
||||
|
@ -907,11 +907,11 @@ interface BigUint64Array {
|
|||
* a negative value if the first argument is less than the second argument, zero if they're equal, and a positive
|
||||
* value otherwise. If omitted, the elements are sorted in ascending order.
|
||||
* ```ts
|
||||
* const myNums = BigUint64Array.from([11n, 2n, 22n, 1n]);
|
||||
* myNums.toSorted((a, b) => Number(a - b)) // BigUint64Array(4) [1n, 2n, 11n, 22n]
|
||||
* const myNums = BigUint64Array<Buffer>.from([11n, 2n, 22n, 1n]);
|
||||
* myNums.toSorted((a, b) => Number(a - b)) // BigUint64Array<Buffer>(4) [1n, 2n, 11n, 22n]
|
||||
* ```
|
||||
*/
|
||||
toSorted(compareFn?: (a: bigint, b: bigint) => number): BigUint64Array;
|
||||
toSorted(compareFn?: (a: bigint, b: bigint) => number): BigUint64Array<ArrayBuffer>;
|
||||
|
||||
/**
|
||||
* Copies the array and inserts the given bigint at the provided index.
|
||||
|
@ -920,5 +920,5 @@ interface BigUint64Array {
|
|||
* @param value The value to insert into the copied array.
|
||||
* @returns A copy of the original array with the inserted value.
|
||||
*/
|
||||
with(index: number, value: bigint): BigUint64Array;
|
||||
with(index: number, value: bigint): BigUint64Array<ArrayBuffer>;
|
||||
}
|
||||
|
|
65
cli/tsc/dts/lib.es2024.arraybuffer.d.ts
vendored
Normal file
65
cli/tsc/dts/lib.es2024.arraybuffer.d.ts
vendored
Normal file
|
@ -0,0 +1,65 @@
|
|||
/*! *****************************************************************************
|
||||
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 ArrayBuffer {
|
||||
/**
|
||||
* If this ArrayBuffer is resizable, returns the maximum byte length given during construction; returns the byte length if not.
|
||||
*
|
||||
* [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer/maxByteLength)
|
||||
*/
|
||||
get maxByteLength(): number;
|
||||
|
||||
/**
|
||||
* Returns true if this ArrayBuffer can be resized.
|
||||
*
|
||||
* [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer/resizable)
|
||||
*/
|
||||
get resizable(): boolean;
|
||||
|
||||
/**
|
||||
* Resizes the ArrayBuffer to the specified size (in bytes).
|
||||
*
|
||||
* [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer/resize)
|
||||
*/
|
||||
resize(newByteLength?: number): void;
|
||||
|
||||
/**
|
||||
* Returns a boolean indicating whether or not this buffer has been detached (transferred).
|
||||
*
|
||||
* [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer/detached)
|
||||
*/
|
||||
get detached(): boolean;
|
||||
|
||||
/**
|
||||
* Creates a new ArrayBuffer with the same byte content as this buffer, then detaches this buffer.
|
||||
*
|
||||
* [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer/transfer)
|
||||
*/
|
||||
transfer(newByteLength?: number): ArrayBuffer;
|
||||
|
||||
/**
|
||||
* Creates a new non-resizable ArrayBuffer with the same byte content as this buffer, then detaches this buffer.
|
||||
*
|
||||
* [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer/transferToFixedLength)
|
||||
*/
|
||||
transferToFixedLength(newByteLength?: number): ArrayBuffer;
|
||||
}
|
||||
|
||||
interface ArrayBufferConstructor {
|
||||
new (byteLength: number, options?: { maxByteLength?: number; }): ArrayBuffer;
|
||||
}
|
29
cli/tsc/dts/lib.es2024.collection.d.ts
vendored
Normal file
29
cli/tsc/dts/lib.es2024.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[]>;
|
||||
}
|
26
cli/tsc/dts/lib.es2024.d.ts
vendored
Normal file
26
cli/tsc/dts/lib.es2024.d.ts
vendored
Normal file
|
@ -0,0 +1,26 @@
|
|||
/*! *****************************************************************************
|
||||
Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
||||
this file except in compliance with the License. You may obtain a copy of the
|
||||
License at http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
||||
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
||||
MERCHANTABLITY OR NON-INFRINGEMENT.
|
||||
|
||||
See the Apache Version 2.0 License for specific language governing permissions
|
||||
and limitations under the License.
|
||||
***************************************************************************** */
|
||||
|
||||
|
||||
/// <reference no-default-lib="true"/>
|
||||
|
||||
/// <reference lib="es2023" />
|
||||
/// <reference lib="es2024.arraybuffer" />
|
||||
/// <reference lib="es2024.collection" />
|
||||
/// <reference lib="es2024.object" />
|
||||
/// <reference lib="es2024.promise" />
|
||||
/// <reference lib="es2024.regexp" />
|
||||
/// <reference lib="es2024.sharedmemory" />
|
||||
/// <reference lib="es2024.string" />
|
24
cli/tsc/dts/lib.es2024.full.d.ts
vendored
Normal file
24
cli/tsc/dts/lib.es2024.full.d.ts
vendored
Normal file
|
@ -0,0 +1,24 @@
|
|||
/*! *****************************************************************************
|
||||
Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
||||
this file except in compliance with the License. You may obtain a copy of the
|
||||
License at http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
||||
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
||||
MERCHANTABLITY OR NON-INFRINGEMENT.
|
||||
|
||||
See the Apache Version 2.0 License for specific language governing permissions
|
||||
and limitations under the License.
|
||||
***************************************************************************** */
|
||||
|
||||
|
||||
/// <reference no-default-lib="true"/>
|
||||
|
||||
/// <reference lib="es2024" />
|
||||
/// <reference lib="dom" />
|
||||
/// <reference lib="webworker.importscripts" />
|
||||
/// <reference lib="scripthost" />
|
||||
/// <reference lib="dom.iterable" />
|
||||
/// <reference lib="dom.asynciterable" />
|
|
@ -16,6 +16,8 @@ and limitations under the License.
|
|||
|
||||
/// <reference no-default-lib="true"/>
|
||||
|
||||
/// <reference lib="es2020.bigint" />
|
||||
|
||||
interface Atomics {
|
||||
/**
|
||||
* A non-blocking, asynchronous version of wait which is usable on the main thread.
|
||||
|
@ -37,3 +39,30 @@ interface Atomics {
|
|||
*/
|
||||
waitAsync(typedArray: BigInt64Array, index: number, value: bigint, timeout?: number): { async: false; value: "not-equal" | "timed-out"; } | { async: true; value: Promise<"ok" | "timed-out">; };
|
||||
}
|
||||
|
||||
interface SharedArrayBuffer {
|
||||
/**
|
||||
* Returns true if this SharedArrayBuffer can be grown.
|
||||
*
|
||||
* [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/SharedArrayBuffer/growable)
|
||||
*/
|
||||
get growable(): boolean;
|
||||
|
||||
/**
|
||||
* If this SharedArrayBuffer is growable, returns the maximum byte length given during construction; returns the byte length if not.
|
||||
*
|
||||
* [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/SharedArrayBuffer/maxByteLength)
|
||||
*/
|
||||
get maxByteLength(): number;
|
||||
|
||||
/**
|
||||
* Grows the SharedArrayBuffer to the specified size (in bytes).
|
||||
*
|
||||
* [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/SharedArrayBuffer/grow)
|
||||
*/
|
||||
grow(newByteLength?: number): void;
|
||||
}
|
||||
|
||||
interface SharedArrayBufferConstructor {
|
||||
new (byteLength: number, options?: { maxByteLength?: number; }): SharedArrayBuffer;
|
||||
}
|
504
cli/tsc/dts/lib.es5.d.ts
vendored
504
cli/tsc/dts/lib.es5.d.ts
vendored
File diff suppressed because it is too large
Load diff
2
cli/tsc/dts/lib.esnext.array.d.ts
vendored
2
cli/tsc/dts/lib.esnext.array.d.ts
vendored
|
@ -31,5 +31,5 @@ interface ArrayConstructor {
|
|||
* Each return value is awaited before being added to result array.
|
||||
* @param thisArg Value of 'this' used when executing mapfn.
|
||||
*/
|
||||
fromAsync<T, U>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T> | ArrayLike<T>, mapFn: (value: Awaited<T>) => U, thisArg?: any): Promise<Awaited<U>[]>;
|
||||
fromAsync<T, U>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T> | ArrayLike<T>, mapFn: (value: Awaited<T>, index: number) => U, thisArg?: any): Promise<Awaited<U>[]>;
|
||||
}
|
||||
|
|
12
cli/tsc/dts/lib.esnext.collection.d.ts
vendored
12
cli/tsc/dts/lib.esnext.collection.d.ts
vendored
|
@ -16,17 +16,7 @@ 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[]>;
|
||||
}
|
||||
/// <reference lib="es2024.collection" />
|
||||
|
||||
interface ReadonlySetLike<T> {
|
||||
/**
|
||||
|
|
6
cli/tsc/dts/lib.esnext.d.ts
vendored
6
cli/tsc/dts/lib.esnext.d.ts
vendored
|
@ -16,14 +16,10 @@ and limitations under the License.
|
|||
|
||||
/// <reference no-default-lib="true"/>
|
||||
|
||||
/// <reference lib="es2023" />
|
||||
/// <reference lib="es2024" />
|
||||
/// <reference lib="esnext.intl" />
|
||||
/// <reference lib="esnext.decorators" />
|
||||
/// <reference lib="esnext.disposable" />
|
||||
/// <reference lib="esnext.promise" />
|
||||
/// <reference lib="esnext.object" />
|
||||
/// <reference lib="esnext.collection" />
|
||||
/// <reference lib="esnext.array" />
|
||||
/// <reference lib="esnext.regexp" />
|
||||
/// <reference lib="esnext.string" />
|
||||
/// <reference lib="esnext.iterator" />
|
||||
|
|
344
cli/tsc/dts/lib.webworker.d.ts
vendored
344
cli/tsc/dts/lib.webworker.d.ts
vendored
|
@ -65,6 +65,59 @@ interface AudioConfiguration {
|
|||
spatialRendering?: boolean;
|
||||
}
|
||||
|
||||
interface AudioDataCopyToOptions {
|
||||
format?: AudioSampleFormat;
|
||||
frameCount?: number;
|
||||
frameOffset?: number;
|
||||
planeIndex: number;
|
||||
}
|
||||
|
||||
interface AudioDataInit {
|
||||
data: BufferSource;
|
||||
format: AudioSampleFormat;
|
||||
numberOfChannels: number;
|
||||
numberOfFrames: number;
|
||||
sampleRate: number;
|
||||
timestamp: number;
|
||||
transfer?: ArrayBuffer[];
|
||||
}
|
||||
|
||||
interface AudioDecoderConfig {
|
||||
codec: string;
|
||||
description?: BufferSource;
|
||||
numberOfChannels: number;
|
||||
sampleRate: number;
|
||||
}
|
||||
|
||||
interface AudioDecoderInit {
|
||||
error: WebCodecsErrorCallback;
|
||||
output: AudioDataOutputCallback;
|
||||
}
|
||||
|
||||
interface AudioDecoderSupport {
|
||||
config?: AudioDecoderConfig;
|
||||
supported?: boolean;
|
||||
}
|
||||
|
||||
interface AudioEncoderConfig {
|
||||
bitrate?: number;
|
||||
bitrateMode?: BitrateMode;
|
||||
codec: string;
|
||||
numberOfChannels: number;
|
||||
opus?: OpusEncoderConfig;
|
||||
sampleRate: number;
|
||||
}
|
||||
|
||||
interface AudioEncoderInit {
|
||||
error: WebCodecsErrorCallback;
|
||||
output: EncodedAudioChunkOutputCallback;
|
||||
}
|
||||
|
||||
interface AudioEncoderSupport {
|
||||
config?: AudioEncoderConfig;
|
||||
supported?: boolean;
|
||||
}
|
||||
|
||||
interface AvcEncoderConfig {
|
||||
format?: AvcBitstreamFormat;
|
||||
}
|
||||
|
@ -181,6 +234,18 @@ interface EcdsaParams extends Algorithm {
|
|||
hash: HashAlgorithmIdentifier;
|
||||
}
|
||||
|
||||
interface EncodedAudioChunkInit {
|
||||
data: AllowSharedBufferSource;
|
||||
duration?: number;
|
||||
timestamp: number;
|
||||
transfer?: ArrayBuffer[];
|
||||
type: EncodedAudioChunkType;
|
||||
}
|
||||
|
||||
interface EncodedAudioChunkMetadata {
|
||||
decoderConfig?: AudioDecoderConfig;
|
||||
}
|
||||
|
||||
interface EncodedVideoChunkInit {
|
||||
data: AllowSharedBufferSource;
|
||||
duration?: number;
|
||||
|
@ -448,6 +513,15 @@ interface NotificationOptions {
|
|||
tag?: string;
|
||||
}
|
||||
|
||||
interface OpusEncoderConfig {
|
||||
complexity?: number;
|
||||
format?: OpusBitstreamFormat;
|
||||
frameDuration?: number;
|
||||
packetlossperc?: number;
|
||||
usedtx?: boolean;
|
||||
useinbandfec?: boolean;
|
||||
}
|
||||
|
||||
interface Pbkdf2Params extends Algorithm {
|
||||
hash: HashAlgorithmIdentifier;
|
||||
iterations: number;
|
||||
|
@ -768,6 +842,7 @@ interface VideoConfiguration {
|
|||
colorGamut?: ColorGamut;
|
||||
contentType: string;
|
||||
framerate: number;
|
||||
hasAlphaChannel?: boolean;
|
||||
hdrMetadataType?: HdrMetadataType;
|
||||
height: number;
|
||||
scalabilityMode?: string;
|
||||
|
@ -803,6 +878,7 @@ interface VideoEncoderConfig {
|
|||
bitrate?: number;
|
||||
bitrateMode?: VideoEncoderBitrateMode;
|
||||
codec: string;
|
||||
contentHint?: string;
|
||||
displayHeight?: number;
|
||||
displayWidth?: number;
|
||||
framerate?: number;
|
||||
|
@ -814,9 +890,14 @@ interface VideoEncoderConfig {
|
|||
}
|
||||
|
||||
interface VideoEncoderEncodeOptions {
|
||||
avc?: VideoEncoderEncodeOptionsForAvc;
|
||||
keyFrame?: boolean;
|
||||
}
|
||||
|
||||
interface VideoEncoderEncodeOptionsForAvc {
|
||||
quantizer?: number | null;
|
||||
}
|
||||
|
||||
interface VideoEncoderInit {
|
||||
error: WebCodecsErrorCallback;
|
||||
output: EncodedVideoChunkOutputCallback;
|
||||
|
@ -841,6 +922,8 @@ interface VideoFrameBufferInit {
|
|||
}
|
||||
|
||||
interface VideoFrameCopyToOptions {
|
||||
colorSpace?: PredefinedColorSpace;
|
||||
format?: VideoPixelFormat;
|
||||
layout?: PlaneLayout[];
|
||||
rect?: DOMRectInit;
|
||||
}
|
||||
|
@ -1008,6 +1091,113 @@ interface AnimationFrameProvider {
|
|||
requestAnimationFrame(callback: FrameRequestCallback): number;
|
||||
}
|
||||
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioData) */
|
||||
interface AudioData {
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioData/duration) */
|
||||
readonly duration: number;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioData/format) */
|
||||
readonly format: AudioSampleFormat | null;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioData/numberOfChannels) */
|
||||
readonly numberOfChannels: number;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioData/numberOfFrames) */
|
||||
readonly numberOfFrames: number;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioData/sampleRate) */
|
||||
readonly sampleRate: number;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioData/timestamp) */
|
||||
readonly timestamp: number;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioData/allocationSize) */
|
||||
allocationSize(options: AudioDataCopyToOptions): number;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioData/clone) */
|
||||
clone(): AudioData;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioData/close) */
|
||||
close(): void;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioData/copyTo) */
|
||||
copyTo(destination: AllowSharedBufferSource, options: AudioDataCopyToOptions): void;
|
||||
}
|
||||
|
||||
declare var AudioData: {
|
||||
prototype: AudioData;
|
||||
new(init: AudioDataInit): AudioData;
|
||||
};
|
||||
|
||||
interface AudioDecoderEventMap {
|
||||
"dequeue": Event;
|
||||
}
|
||||
|
||||
/**
|
||||
* Available only in secure contexts.
|
||||
*
|
||||
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioDecoder)
|
||||
*/
|
||||
interface AudioDecoder extends EventTarget {
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioDecoder/decodeQueueSize) */
|
||||
readonly decodeQueueSize: number;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioDecoder/dequeue_event) */
|
||||
ondequeue: ((this: AudioDecoder, ev: Event) => any) | null;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioDecoder/state) */
|
||||
readonly state: CodecState;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioDecoder/close) */
|
||||
close(): void;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioDecoder/configure) */
|
||||
configure(config: AudioDecoderConfig): void;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioDecoder/decode) */
|
||||
decode(chunk: EncodedAudioChunk): void;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioDecoder/flush) */
|
||||
flush(): Promise<void>;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioDecoder/reset) */
|
||||
reset(): void;
|
||||
addEventListener<K extends keyof AudioDecoderEventMap>(type: K, listener: (this: AudioDecoder, ev: AudioDecoderEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
||||
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
||||
removeEventListener<K extends keyof AudioDecoderEventMap>(type: K, listener: (this: AudioDecoder, ev: AudioDecoderEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
||||
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
||||
}
|
||||
|
||||
declare var AudioDecoder: {
|
||||
prototype: AudioDecoder;
|
||||
new(init: AudioDecoderInit): AudioDecoder;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioDecoder/isConfigSupported_static) */
|
||||
isConfigSupported(config: AudioDecoderConfig): Promise<AudioDecoderSupport>;
|
||||
};
|
||||
|
||||
interface AudioEncoderEventMap {
|
||||
"dequeue": Event;
|
||||
}
|
||||
|
||||
/**
|
||||
* Available only in secure contexts.
|
||||
*
|
||||
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioEncoder)
|
||||
*/
|
||||
interface AudioEncoder extends EventTarget {
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioEncoder/encodeQueueSize) */
|
||||
readonly encodeQueueSize: number;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioEncoder/dequeue_event) */
|
||||
ondequeue: ((this: AudioEncoder, ev: Event) => any) | null;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioEncoder/state) */
|
||||
readonly state: CodecState;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioEncoder/close) */
|
||||
close(): void;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioEncoder/configure) */
|
||||
configure(config: AudioEncoderConfig): void;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioEncoder/encode) */
|
||||
encode(data: AudioData): void;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioEncoder/flush) */
|
||||
flush(): Promise<void>;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioEncoder/reset) */
|
||||
reset(): void;
|
||||
addEventListener<K extends keyof AudioEncoderEventMap>(type: K, listener: (this: AudioEncoder, ev: AudioEncoderEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
||||
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
||||
removeEventListener<K extends keyof AudioEncoderEventMap>(type: K, listener: (this: AudioEncoder, ev: AudioEncoderEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
||||
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
||||
}
|
||||
|
||||
declare var AudioEncoder: {
|
||||
prototype: AudioEncoder;
|
||||
new(init: AudioEncoderInit): AudioEncoder;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioEncoder/isConfigSupported_static) */
|
||||
isConfigSupported(config: AudioEncoderConfig): Promise<AudioEncoderSupport>;
|
||||
};
|
||||
|
||||
/**
|
||||
* A file-like object of immutable, raw data. Blobs represent data that isn't necessarily in a JavaScript-native format. The File interface is based on Blob, inheriting blob functionality and expanding it to support files on the user's system.
|
||||
*
|
||||
|
@ -1809,6 +1999,8 @@ declare var CloseEvent: {
|
|||
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CompressionStream) */
|
||||
interface CompressionStream extends GenericTransformStream {
|
||||
readonly readable: ReadableStream<Uint8Array>;
|
||||
readonly writable: WritableStream<BufferSource>;
|
||||
}
|
||||
|
||||
declare var CompressionStream: {
|
||||
|
@ -1978,27 +2170,49 @@ declare var DOMException: {
|
|||
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix) */
|
||||
interface DOMMatrix extends DOMMatrixReadOnly {
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */
|
||||
a: number;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */
|
||||
b: number;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */
|
||||
c: number;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */
|
||||
d: number;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */
|
||||
e: number;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */
|
||||
f: number;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */
|
||||
m11: number;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */
|
||||
m12: number;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */
|
||||
m13: number;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */
|
||||
m14: number;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */
|
||||
m21: number;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */
|
||||
m22: number;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */
|
||||
m23: number;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */
|
||||
m24: number;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */
|
||||
m31: number;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */
|
||||
m32: number;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */
|
||||
m33: number;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */
|
||||
m34: number;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */
|
||||
m41: number;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */
|
||||
m42: number;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */
|
||||
m43: number;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */
|
||||
m44: number;
|
||||
invertSelf(): DOMMatrix;
|
||||
multiplySelf(other?: DOMMatrixInit): DOMMatrix;
|
||||
|
@ -2023,29 +2237,51 @@ declare var DOMMatrix: {
|
|||
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly) */
|
||||
interface DOMMatrixReadOnly {
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */
|
||||
readonly a: number;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */
|
||||
readonly b: number;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */
|
||||
readonly c: number;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */
|
||||
readonly d: number;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */
|
||||
readonly e: number;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */
|
||||
readonly f: number;
|
||||
readonly is2D: boolean;
|
||||
readonly isIdentity: boolean;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */
|
||||
readonly m11: number;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */
|
||||
readonly m12: number;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */
|
||||
readonly m13: number;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */
|
||||
readonly m14: number;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */
|
||||
readonly m21: number;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */
|
||||
readonly m22: number;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */
|
||||
readonly m23: number;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */
|
||||
readonly m24: number;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */
|
||||
readonly m31: number;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */
|
||||
readonly m32: number;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */
|
||||
readonly m33: number;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */
|
||||
readonly m34: number;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */
|
||||
readonly m41: number;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */
|
||||
readonly m42: number;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */
|
||||
readonly m43: number;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */
|
||||
readonly m44: number;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/flipX) */
|
||||
flipX(): DOMMatrix;
|
||||
|
@ -2213,6 +2449,8 @@ declare var DOMStringList: {
|
|||
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DecompressionStream) */
|
||||
interface DecompressionStream extends GenericTransformStream {
|
||||
readonly readable: ReadableStream<Uint8Array>;
|
||||
readonly writable: WritableStream<BufferSource>;
|
||||
}
|
||||
|
||||
declare var DecompressionStream: {
|
||||
|
@ -2223,7 +2461,7 @@ declare var DecompressionStream: {
|
|||
interface DedicatedWorkerGlobalScopeEventMap extends WorkerGlobalScopeEventMap {
|
||||
"message": MessageEvent;
|
||||
"messageerror": MessageEvent;
|
||||
"rtctransform": Event;
|
||||
"rtctransform": RTCTransformEvent;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -2243,7 +2481,7 @@ interface DedicatedWorkerGlobalScope extends WorkerGlobalScope, AnimationFramePr
|
|||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/messageerror_event) */
|
||||
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;
|
||||
onrtctransform: ((this: DedicatedWorkerGlobalScope, ev: RTCTransformEvent) => any) | null;
|
||||
/**
|
||||
* Aborts dedicatedWorkerGlobal.
|
||||
*
|
||||
|
@ -2348,6 +2586,25 @@ interface EXT_texture_norm16 {
|
|||
readonly RGBA16_SNORM_EXT: 0x8F9B;
|
||||
}
|
||||
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedAudioChunk) */
|
||||
interface EncodedAudioChunk {
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedAudioChunk/byteLength) */
|
||||
readonly byteLength: number;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedAudioChunk/duration) */
|
||||
readonly duration: number | null;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedAudioChunk/timestamp) */
|
||||
readonly timestamp: number;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedAudioChunk/type) */
|
||||
readonly type: EncodedAudioChunkType;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedAudioChunk/copyTo) */
|
||||
copyTo(destination: AllowSharedBufferSource): void;
|
||||
}
|
||||
|
||||
declare var EncodedAudioChunk: {
|
||||
prototype: EncodedAudioChunk;
|
||||
new(init: EncodedAudioChunkInit): EncodedAudioChunk;
|
||||
};
|
||||
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedVideoChunk) */
|
||||
interface EncodedVideoChunk {
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedVideoChunk/byteLength) */
|
||||
|
@ -2948,23 +3205,23 @@ interface FontFace {
|
|||
|
||||
declare var FontFace: {
|
||||
prototype: FontFace;
|
||||
new(family: string, source: string | BinaryData, descriptors?: FontFaceDescriptors): FontFace;
|
||||
new(family: string, source: string | BufferSource, descriptors?: FontFaceDescriptors): FontFace;
|
||||
};
|
||||
|
||||
interface FontFaceSetEventMap {
|
||||
"loading": Event;
|
||||
"loadingdone": Event;
|
||||
"loadingerror": Event;
|
||||
"loading": FontFaceSetLoadEvent;
|
||||
"loadingdone": FontFaceSetLoadEvent;
|
||||
"loadingerror": FontFaceSetLoadEvent;
|
||||
}
|
||||
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet) */
|
||||
interface FontFaceSet extends EventTarget {
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/loading_event) */
|
||||
onloading: ((this: FontFaceSet, ev: Event) => any) | null;
|
||||
onloading: ((this: FontFaceSet, ev: FontFaceSetLoadEvent) => any) | null;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/loadingdone_event) */
|
||||
onloadingdone: ((this: FontFaceSet, ev: Event) => any) | null;
|
||||
onloadingdone: ((this: FontFaceSet, ev: FontFaceSetLoadEvent) => any) | null;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/loadingerror_event) */
|
||||
onloadingerror: ((this: FontFaceSet, ev: Event) => any) | null;
|
||||
onloadingerror: ((this: FontFaceSet, ev: FontFaceSetLoadEvent) => any) | null;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/ready) */
|
||||
readonly ready: Promise<FontFaceSet>;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/status) */
|
||||
|
@ -2982,7 +3239,7 @@ interface FontFaceSet extends EventTarget {
|
|||
|
||||
declare var FontFaceSet: {
|
||||
prototype: FontFaceSet;
|
||||
new(initialFaces: FontFace[]): FontFaceSet;
|
||||
new(): FontFaceSet;
|
||||
};
|
||||
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSetLoadEvent) */
|
||||
|
@ -3693,7 +3950,7 @@ interface IDBTransaction extends EventTarget {
|
|||
/**
|
||||
* Returns a list of the names of object stores in the transaction's scope. For an upgrade transaction this is all object stores in the database.
|
||||
*
|
||||
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/ObjectStoreNames)
|
||||
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/objectStoreNames)
|
||||
*/
|
||||
readonly objectStoreNames: DOMStringList;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/abort_event) */
|
||||
|
@ -4258,7 +4515,7 @@ interface OES_vertex_array_object {
|
|||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_vertex_array_object/bindVertexArrayOES) */
|
||||
bindVertexArrayOES(arrayObject: WebGLVertexArrayObjectOES | null): void;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_vertex_array_object/createVertexArrayOES) */
|
||||
createVertexArrayOES(): WebGLVertexArrayObjectOES | null;
|
||||
createVertexArrayOES(): WebGLVertexArrayObjectOES;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_vertex_array_object/deleteVertexArrayOES) */
|
||||
deleteVertexArrayOES(arrayObject: WebGLVertexArrayObjectOES | null): void;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_vertex_array_object/isVertexArrayOES) */
|
||||
|
@ -4344,6 +4601,7 @@ declare var OffscreenCanvas: {
|
|||
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvasRenderingContext2D) */
|
||||
interface OffscreenCanvasRenderingContext2D extends CanvasCompositing, CanvasDrawImage, CanvasDrawPath, CanvasFillStrokeStyles, CanvasFilters, CanvasImageData, CanvasImageSmoothing, CanvasPath, CanvasPathDrawingStyles, CanvasRect, CanvasShadowStyles, CanvasState, CanvasText, CanvasTextDrawingStyles, CanvasTransform {
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/canvas) */
|
||||
readonly canvas: OffscreenCanvas;
|
||||
}
|
||||
|
||||
|
@ -4537,6 +4795,8 @@ interface PerformanceResourceTiming extends PerformanceEntry {
|
|||
readonly responseEnd: DOMHighResTimeStamp;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/responseStart) */
|
||||
readonly responseStart: DOMHighResTimeStamp;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/responseStatus) */
|
||||
readonly responseStatus: number;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/secureConnectionStart) */
|
||||
readonly secureConnectionStart: DOMHighResTimeStamp;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/serverTiming) */
|
||||
|
@ -4687,6 +4947,8 @@ interface PushMessageData {
|
|||
arrayBuffer(): ArrayBuffer;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushMessageData/blob) */
|
||||
blob(): Blob;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushMessageData/bytes) */
|
||||
bytes(): Uint8Array;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushMessageData/json) */
|
||||
json(): any;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushMessageData/text) */
|
||||
|
@ -4849,6 +5111,7 @@ declare var ReadableStream: {
|
|||
new(underlyingSource: UnderlyingByteSource, strategy?: { highWaterMark?: number }): ReadableStream<Uint8Array>;
|
||||
new<R = any>(underlyingSource: UnderlyingDefaultSource<R>, strategy?: QueuingStrategy<R>): ReadableStream<R>;
|
||||
new<R = any>(underlyingSource?: UnderlyingSource<R>, strategy?: QueuingStrategy<R>): ReadableStream<R>;
|
||||
from<R>(asyncIterable: AsyncIterable<R> | Iterable<R | PromiseLike<R>>): ReadableStream<R>;
|
||||
};
|
||||
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBReader) */
|
||||
|
@ -4861,7 +5124,7 @@ interface ReadableStreamBYOBReader extends ReadableStreamGenericReader {
|
|||
|
||||
declare var ReadableStreamBYOBReader: {
|
||||
prototype: ReadableStreamBYOBReader;
|
||||
new(stream: ReadableStream): ReadableStreamBYOBReader;
|
||||
new(stream: ReadableStream<Uint8Array>): ReadableStreamBYOBReader;
|
||||
};
|
||||
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBRequest) */
|
||||
|
@ -5363,7 +5626,7 @@ declare var StylePropertyMapReadOnly: {
|
|||
};
|
||||
|
||||
/**
|
||||
* This Web Crypto API interface provides a number of low-level cryptographic functions. It is accessed via the Crypto.subtle properties available in a window context (via globalThis.crypto).
|
||||
* This Web Crypto API interface provides a number of low-level cryptographic functions. It is accessed via the Crypto.subtle properties available in a window context (via Window.crypto).
|
||||
* Available only in secure contexts.
|
||||
*
|
||||
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto)
|
||||
|
@ -5372,7 +5635,7 @@ interface SubtleCrypto {
|
|||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/decrypt) */
|
||||
decrypt(algorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, key: CryptoKey, data: BufferSource): Promise<ArrayBuffer>;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/deriveBits) */
|
||||
deriveBits(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, length: number): Promise<ArrayBuffer>;
|
||||
deriveBits(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, length?: number | null): Promise<ArrayBuffer>;
|
||||
/** [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: KeyUsage[]): Promise<CryptoKey>;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/digest) */
|
||||
|
@ -6641,13 +6904,13 @@ interface WebGL2RenderingContextBase {
|
|||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/copyTexSubImage3D) */
|
||||
copyTexSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/createQuery) */
|
||||
createQuery(): WebGLQuery | null;
|
||||
createQuery(): WebGLQuery;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/createSampler) */
|
||||
createSampler(): WebGLSampler | null;
|
||||
createSampler(): WebGLSampler;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/createTransformFeedback) */
|
||||
createTransformFeedback(): WebGLTransformFeedback | null;
|
||||
createTransformFeedback(): WebGLTransformFeedback;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/createVertexArray) */
|
||||
createVertexArray(): WebGLVertexArrayObject | null;
|
||||
createVertexArray(): WebGLVertexArrayObject;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/deleteQuery) */
|
||||
deleteQuery(query: WebGLQuery | null): void;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/deleteSampler) */
|
||||
|
@ -7560,17 +7823,17 @@ interface WebGLRenderingContextBase {
|
|||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/copyTexSubImage2D) */
|
||||
copyTexSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/createBuffer) */
|
||||
createBuffer(): WebGLBuffer | null;
|
||||
createBuffer(): WebGLBuffer;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/createFramebuffer) */
|
||||
createFramebuffer(): WebGLFramebuffer | null;
|
||||
createFramebuffer(): WebGLFramebuffer;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/createProgram) */
|
||||
createProgram(): WebGLProgram | null;
|
||||
createProgram(): WebGLProgram;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/createRenderbuffer) */
|
||||
createRenderbuffer(): WebGLRenderbuffer | null;
|
||||
createRenderbuffer(): WebGLRenderbuffer;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/createShader) */
|
||||
createShader(type: GLenum): WebGLShader | null;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/createTexture) */
|
||||
createTexture(): WebGLTexture | null;
|
||||
createTexture(): WebGLTexture;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/cullFace) */
|
||||
cullFace(mode: GLenum): void;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/deleteBuffer) */
|
||||
|
@ -8458,7 +8721,7 @@ interface WindowOrWorkerGlobalScope {
|
|||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/createImageBitmap) */
|
||||
createImageBitmap(image: ImageBitmapSource, options?: ImageBitmapOptions): Promise<ImageBitmap>;
|
||||
createImageBitmap(image: ImageBitmapSource, sx: number, sy: number, sw: number, sh: number, options?: ImageBitmapOptions): Promise<ImageBitmap>;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/fetch) */
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/fetch) */
|
||||
fetch(input: RequestInfo | URL, init?: RequestInit): Promise<Response>;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/queueMicrotask) */
|
||||
queueMicrotask(callback: VoidFunction): void;
|
||||
|
@ -8882,7 +9145,7 @@ interface Console {
|
|||
clear(): void;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/count_static) */
|
||||
count(label?: string): void;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/countreset_static) */
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/countReset_static) */
|
||||
countReset(label?: string): void;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/debug_static) */
|
||||
debug(...data: any[]): void;
|
||||
|
@ -8894,9 +9157,9 @@ interface Console {
|
|||
error(...data: any[]): void;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/group_static) */
|
||||
group(...data: any[]): void;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/groupcollapsed_static) */
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/groupCollapsed_static) */
|
||||
groupCollapsed(...data: any[]): void;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/groupend_static) */
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/groupEnd_static) */
|
||||
groupEnd(): void;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/info_static) */
|
||||
info(...data: any[]): void;
|
||||
|
@ -8906,9 +9169,9 @@ interface Console {
|
|||
table(tabularData?: any, properties?: string[]): void;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/time_static) */
|
||||
time(label?: string): void;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/timeend_static) */
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/timeEnd_static) */
|
||||
timeEnd(label?: string): void;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/timelog_static) */
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/timeLog_static) */
|
||||
timeLog(label?: string, ...data: any[]): void;
|
||||
timeStamp(label?: string): void;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/trace_static) */
|
||||
|
@ -9078,6 +9341,14 @@ declare namespace WebAssembly {
|
|||
function validate(bytes: BufferSource): boolean;
|
||||
}
|
||||
|
||||
interface AudioDataOutputCallback {
|
||||
(output: AudioData): void;
|
||||
}
|
||||
|
||||
interface EncodedAudioChunkOutputCallback {
|
||||
(output: EncodedAudioChunk, metadata?: EncodedAudioChunkMetadata): void;
|
||||
}
|
||||
|
||||
interface EncodedVideoChunkOutputCallback {
|
||||
(chunk: EncodedVideoChunk, metadata?: EncodedVideoChunkMetadata): void;
|
||||
}
|
||||
|
@ -9169,7 +9440,7 @@ declare var onmessage: ((this: DedicatedWorkerGlobalScope, ev: MessageEvent) =>
|
|||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/messageerror_event) */
|
||||
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;
|
||||
declare var onrtctransform: ((this: DedicatedWorkerGlobalScope, ev: RTCTransformEvent) => any) | null;
|
||||
/**
|
||||
* Aborts dedicatedWorkerGlobal.
|
||||
*
|
||||
|
@ -9262,7 +9533,7 @@ declare function clearTimeout(id: number | undefined): void;
|
|||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/createImageBitmap) */
|
||||
declare function createImageBitmap(image: ImageBitmapSource, options?: ImageBitmapOptions): Promise<ImageBitmap>;
|
||||
declare function createImageBitmap(image: ImageBitmapSource, sx: number, sy: number, sw: number, sh: number, options?: ImageBitmapOptions): Promise<ImageBitmap>;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/fetch) */
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/fetch) */
|
||||
declare function fetch(input: RequestInfo | URL, init?: RequestInit): Promise<Response>;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/queueMicrotask) */
|
||||
declare function queueMicrotask(callback: VoidFunction): void;
|
||||
|
@ -9285,7 +9556,6 @@ declare function removeEventListener(type: string, listener: EventListenerOrEven
|
|||
type AlgorithmIdentifier = Algorithm | string;
|
||||
type AllowSharedBufferSource = ArrayBuffer | ArrayBufferView;
|
||||
type BigInteger = Uint8Array;
|
||||
type BinaryData = ArrayBuffer | ArrayBufferView;
|
||||
type BlobPart = BufferSource | Blob | string;
|
||||
type BodyInit = ReadableStream | XMLHttpRequestBodyInit;
|
||||
type BufferSource = ArrayBufferView | ArrayBuffer;
|
||||
|
@ -9330,12 +9600,14 @@ type ReportList = Report[];
|
|||
type RequestInfo = Request | string;
|
||||
type TexImageSource = ImageBitmap | ImageData | OffscreenCanvas | VideoFrame;
|
||||
type TimerHandler = string | Function;
|
||||
type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | MediaSourceHandle | ReadableStream | WritableStream | TransformStream | VideoFrame | ArrayBuffer;
|
||||
type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | MediaSourceHandle | ReadableStream | WritableStream | TransformStream | AudioData | VideoFrame | ArrayBuffer;
|
||||
type Uint32List = Uint32Array | GLuint[];
|
||||
type XMLHttpRequestBodyInit = Blob | BufferSource | FormData | URLSearchParams | string;
|
||||
type AlphaOption = "discard" | "keep";
|
||||
type AudioSampleFormat = "f32" | "f32-planar" | "s16" | "s16-planar" | "s32" | "s32-planar" | "u8" | "u8-planar";
|
||||
type AvcBitstreamFormat = "annexb" | "avc";
|
||||
type BinaryType = "arraybuffer" | "blob";
|
||||
type BitrateMode = "constant" | "variable";
|
||||
type CSSMathOperator = "clamp" | "invert" | "max" | "min" | "negate" | "product" | "sum";
|
||||
type CSSNumericBaseType = "angle" | "flex" | "frequency" | "length" | "percent" | "resolution" | "time";
|
||||
type CanvasDirection = "inherit" | "ltr" | "rtl";
|
||||
|
@ -9354,6 +9626,7 @@ type ColorGamut = "p3" | "rec2020" | "srgb";
|
|||
type ColorSpaceConversion = "default" | "none";
|
||||
type CompressionFormat = "deflate" | "deflate-raw" | "gzip";
|
||||
type DocumentVisibilityState = "hidden" | "visible";
|
||||
type EncodedAudioChunkType = "delta" | "key";
|
||||
type EncodedVideoChunkType = "delta" | "key";
|
||||
type EndingType = "native" | "transparent";
|
||||
type FileSystemHandleKind = "directory" | "file";
|
||||
|
@ -9380,7 +9653,8 @@ type MediaEncodingType = "record" | "webrtc";
|
|||
type NotificationDirection = "auto" | "ltr" | "rtl";
|
||||
type NotificationPermission = "default" | "denied" | "granted";
|
||||
type OffscreenRenderingContextId = "2d" | "bitmaprenderer" | "webgl" | "webgl2" | "webgpu";
|
||||
type PermissionName = "geolocation" | "notifications" | "persistent-storage" | "push" | "screen-wake-lock" | "xr-spatial-tracking";
|
||||
type OpusBitstreamFormat = "ogg" | "opus";
|
||||
type PermissionName = "geolocation" | "midi" | "notifications" | "persistent-storage" | "push" | "screen-wake-lock" | "storage-access";
|
||||
type PermissionState = "denied" | "granted" | "prompt";
|
||||
type PredefinedColorSpace = "display-p3" | "srgb";
|
||||
type PremultiplyAlpha = "default" | "none" | "premultiply";
|
||||
|
|
3594
cli/tsc/dts/typescript.d.ts
vendored
3594
cli/tsc/dts/typescript.d.ts
vendored
File diff suppressed because it is too large
Load diff
12
ext/net/lib.deno_net.d.ts
vendored
12
ext/net/lib.deno_net.d.ts
vendored
|
@ -136,8 +136,8 @@ declare namespace Deno {
|
|||
/** Make the connection not block the event loop from finishing. */
|
||||
unref(): void;
|
||||
|
||||
readonly readable: ReadableStream<Uint8Array>;
|
||||
readonly writable: WritableStream<Uint8Array>;
|
||||
readonly readable: ReadableStream<Uint8Array<ArrayBuffer>>;
|
||||
readonly writable: WritableStream<Uint8Array<ArrayBufferLike>>;
|
||||
}
|
||||
|
||||
/** @category Network */
|
||||
|
@ -751,7 +751,7 @@ declare namespace Deno {
|
|||
* `maxDatagramSize`. */
|
||||
sendDatagram(data: Uint8Array): Promise<void>;
|
||||
/** Receive a datagram. */
|
||||
readDatagram(): Promise<Uint8Array>;
|
||||
readDatagram(): Promise<Uint8Array<ArrayBuffer>>;
|
||||
|
||||
/** The endpoint for this connection. */
|
||||
readonly endpoint: QuicEndpoint;
|
||||
|
@ -800,7 +800,8 @@ declare namespace Deno {
|
|||
* @experimental
|
||||
* @category Network
|
||||
*/
|
||||
export interface QuicSendStream extends WritableStream<Uint8Array> {
|
||||
export interface QuicSendStream
|
||||
extends WritableStream<Uint8Array<ArrayBufferLike>> {
|
||||
/** Indicates the send priority of this stream relative to other streams for
|
||||
* which the value has been set. */
|
||||
sendOrder: number;
|
||||
|
@ -817,7 +818,8 @@ declare namespace Deno {
|
|||
* @experimental
|
||||
* @category Network
|
||||
*/
|
||||
export interface QuicReceiveStream extends ReadableStream<Uint8Array> {
|
||||
export interface QuicReceiveStream
|
||||
extends ReadableStream<Uint8Array<ArrayBuffer>> {
|
||||
/**
|
||||
* 62-bit stream ID, unique within this connection.
|
||||
*/
|
||||
|
|
|
@ -113,6 +113,9 @@ pub enum ConnError {
|
|||
#[error("Invalid URL {0}")]
|
||||
InvalidUrl(Url),
|
||||
#[class(type)]
|
||||
#[error("Invalid Path {0}")]
|
||||
InvalidPath(String),
|
||||
#[class(type)]
|
||||
#[error(transparent)]
|
||||
InvalidHeaderName(#[from] http::header::InvalidHeaderName),
|
||||
#[class(type)]
|
||||
|
@ -150,6 +153,7 @@ pub async fn op_node_http_request_with_conn<P>(
|
|||
state: Rc<RefCell<OpState>>,
|
||||
#[serde] method: ByteString,
|
||||
#[string] url: String,
|
||||
#[string] request_path: Option<String>,
|
||||
#[serde] headers: Vec<(ByteString, ByteString)>,
|
||||
#[smi] body: Option<ResourceId>,
|
||||
#[smi] conn_rid: ResourceId,
|
||||
|
@ -247,11 +251,17 @@ where
|
|||
*request.method_mut() = method.clone();
|
||||
let path = url_parsed.path();
|
||||
let query = url_parsed.query();
|
||||
*request.uri_mut() = query
|
||||
.map(|q| format!("{}?{}", path, q))
|
||||
.unwrap_or_else(|| path.to_string())
|
||||
.parse()
|
||||
.map_err(|_| ConnError::InvalidUrl(url_parsed.clone()))?;
|
||||
if let Some(request_path) = request_path {
|
||||
*request.uri_mut() = request_path
|
||||
.parse()
|
||||
.map_err(|_| ConnError::InvalidPath(request_path.clone()))?;
|
||||
} else {
|
||||
*request.uri_mut() = query
|
||||
.map(|q| format!("{}?{}", path, q))
|
||||
.unwrap_or_else(|| path.to_string())
|
||||
.parse()
|
||||
.map_err(|_| ConnError::InvalidUrl(url_parsed.clone()))?;
|
||||
}
|
||||
*request.headers_mut() = header_map;
|
||||
|
||||
if let Some((username, password)) = maybe_authority {
|
||||
|
|
|
@ -49,4 +49,7 @@ pub enum SqliteError {
|
|||
#[class(generic)]
|
||||
#[error("Invalid constructor")]
|
||||
InvalidConstructor,
|
||||
#[class(range)]
|
||||
#[error("The value of column {0} is too large to be represented as a JavaScript number: {1}")]
|
||||
NumberTooLarge(i32, i64),
|
||||
}
|
||||
|
|
|
@ -12,6 +12,9 @@ use serde::Serialize;
|
|||
|
||||
use super::SqliteError;
|
||||
|
||||
// ECMA-262, 15th edition, 21.1.2.6. Number.MAX_SAFE_INTEGER (2^53-1)
|
||||
const MAX_SAFE_JS_INTEGER: i64 = 9007199254740991;
|
||||
|
||||
#[derive(Serialize)]
|
||||
#[serde(rename_all = "camelCase")]
|
||||
pub struct RunStatementResult {
|
||||
|
@ -122,17 +125,19 @@ impl StatementSync {
|
|||
&self,
|
||||
index: i32,
|
||||
scope: &mut v8::HandleScope<'a>,
|
||||
) -> v8::Local<'a, v8::Value> {
|
||||
) -> Result<v8::Local<'a, v8::Value>, SqliteError> {
|
||||
// SAFETY: `self.inner` is a valid pointer to a sqlite3_stmt
|
||||
// as it lives as long as the StatementSync instance.
|
||||
unsafe {
|
||||
match ffi::sqlite3_column_type(self.inner, index) {
|
||||
Ok(match ffi::sqlite3_column_type(self.inner, index) {
|
||||
ffi::SQLITE_INTEGER => {
|
||||
let value = ffi::sqlite3_column_int64(self.inner, index);
|
||||
if self.use_big_ints.get() {
|
||||
v8::BigInt::new_from_i64(scope, value).into()
|
||||
} else {
|
||||
} else if value.abs() <= MAX_SAFE_JS_INTEGER {
|
||||
v8::Integer::new(scope, value as _).into()
|
||||
} else {
|
||||
return Err(SqliteError::NumberTooLarge(index, value));
|
||||
}
|
||||
}
|
||||
ffi::SQLITE_FLOAT => {
|
||||
|
@ -155,14 +160,14 @@ impl StatementSync {
|
|||
let size = ffi::sqlite3_column_bytes(self.inner, index);
|
||||
let value =
|
||||
std::slice::from_raw_parts(value as *const u8, size as usize);
|
||||
let value =
|
||||
v8::ArrayBuffer::new_backing_store_from_vec(value.to_vec())
|
||||
.make_shared();
|
||||
v8::ArrayBuffer::with_backing_store(scope, &value).into()
|
||||
let bs = v8::ArrayBuffer::new_backing_store_from_vec(value.to_vec())
|
||||
.make_shared();
|
||||
let ab = v8::ArrayBuffer::with_backing_store(scope, &bs);
|
||||
v8::Uint8Array::new(scope, ab, 0, size as _).unwrap().into()
|
||||
}
|
||||
ffi::SQLITE_NULL => v8::null(scope).into(),
|
||||
_ => v8::undefined(scope).into(),
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -183,7 +188,7 @@ impl StatementSync {
|
|||
let mut values = Vec::with_capacity(num_cols);
|
||||
|
||||
for (index, name) in iter {
|
||||
let value = self.column_value(index, scope);
|
||||
let value = self.column_value(index, scope)?;
|
||||
let name =
|
||||
v8::String::new_from_utf8(scope, name, v8::NewStringType::Normal)
|
||||
.unwrap()
|
||||
|
@ -261,6 +266,20 @@ impl StatementSync {
|
|||
ffi::SQLITE_TRANSIENT(),
|
||||
);
|
||||
}
|
||||
} else if value.is_big_int() {
|
||||
let value: v8::Local<v8::BigInt> = value.try_into().unwrap();
|
||||
let (as_int, lossless) = value.i64_value();
|
||||
if !lossless {
|
||||
return Err(SqliteError::FailedBind(
|
||||
"BigInt value is too large to bind",
|
||||
));
|
||||
}
|
||||
|
||||
// SAFETY: `self.inner` is a valid pointer to a sqlite3_stmt
|
||||
// as it lives as long as the StatementSync instance.
|
||||
unsafe {
|
||||
ffi::sqlite3_bind_int64(raw, i + 1, as_int);
|
||||
}
|
||||
} else {
|
||||
return Err(SqliteError::FailedBind("Unsupported type"));
|
||||
}
|
||||
|
|
|
@ -479,6 +479,7 @@ class ClientRequest extends OutgoingMessage {
|
|||
this._req = await op_node_http_request_with_conn(
|
||||
this.method,
|
||||
url,
|
||||
this._createRequestPath(),
|
||||
headers,
|
||||
this._bodyWriteRid,
|
||||
baseConnRid,
|
||||
|
@ -817,6 +818,15 @@ class ClientRequest extends OutgoingMessage {
|
|||
return url.href;
|
||||
}
|
||||
|
||||
_createRequestPath(): string | undefined {
|
||||
// If the path starts with protocol, pass this to op_node_http_request_with_conn
|
||||
// This will be used as Request.uri in hyper for supporting http proxy
|
||||
if (this.path?.startsWith("http://") || this.path?.startsWith("https://")) {
|
||||
return this.path;
|
||||
}
|
||||
return undefined;
|
||||
}
|
||||
|
||||
setTimeout(msecs: number, callback?: () => void) {
|
||||
if (msecs === 0) {
|
||||
if (this._timeout) {
|
||||
|
|
|
@ -780,6 +780,7 @@ const process = new Process();
|
|||
|
||||
/* Set owned property */
|
||||
process.versions = versions;
|
||||
process.env = env;
|
||||
|
||||
Object.defineProperty(process, Symbol.toStringTag, {
|
||||
enumerable: false,
|
||||
|
|
22
ext/url/lib.deno_url.d.ts
vendored
22
ext/url/lib.deno_url.d.ts
vendored
|
@ -5,6 +5,12 @@
|
|||
/// <reference no-default-lib="true" />
|
||||
/// <reference lib="esnext" />
|
||||
|
||||
/** @category URL */
|
||||
interface URLSearchParamsIterator<T>
|
||||
extends IteratorObject<T, BuiltinIteratorReturn, unknown> {
|
||||
[Symbol.iterator](): URLSearchParamsIterator<T>;
|
||||
}
|
||||
|
||||
/** @category URL */
|
||||
interface URLSearchParams {
|
||||
/** Appends a specified key/value pair as a new search parameter.
|
||||
|
@ -102,7 +108,7 @@ interface URLSearchParams {
|
|||
* }
|
||||
* ```
|
||||
*/
|
||||
keys(): IterableIterator<string>;
|
||||
keys(): URLSearchParamsIterator<string>;
|
||||
|
||||
/** Returns an iterator allowing to go through all values contained
|
||||
* in this object.
|
||||
|
@ -114,7 +120,7 @@ interface URLSearchParams {
|
|||
* }
|
||||
* ```
|
||||
*/
|
||||
values(): IterableIterator<string>;
|
||||
values(): URLSearchParamsIterator<string>;
|
||||
|
||||
/** Returns an iterator allowing to go through all key/value
|
||||
* pairs contained in this object.
|
||||
|
@ -126,7 +132,7 @@ interface URLSearchParams {
|
|||
* }
|
||||
* ```
|
||||
*/
|
||||
entries(): IterableIterator<[string, string]>;
|
||||
entries(): URLSearchParamsIterator<[string, string]>;
|
||||
|
||||
/** Returns an iterator allowing to go through all key/value
|
||||
* pairs contained in this object.
|
||||
|
@ -138,7 +144,7 @@ interface URLSearchParams {
|
|||
* }
|
||||
* ```
|
||||
*/
|
||||
[Symbol.iterator](): IterableIterator<[string, string]>;
|
||||
[Symbol.iterator](): URLSearchParamsIterator<[string, string]>;
|
||||
|
||||
/** Returns a query string suitable for use in a URL.
|
||||
*
|
||||
|
@ -154,14 +160,18 @@ interface URLSearchParams {
|
|||
* searchParams.size
|
||||
* ```
|
||||
*/
|
||||
size: number;
|
||||
readonly size: number;
|
||||
}
|
||||
|
||||
/** @category URL */
|
||||
declare var URLSearchParams: {
|
||||
readonly prototype: URLSearchParams;
|
||||
new (
|
||||
init?: Iterable<string[]> | Record<string, string> | string,
|
||||
init?:
|
||||
| Iterable<string[]>
|
||||
| Record<string, string>
|
||||
| string
|
||||
| URLSearchParams,
|
||||
): URLSearchParams;
|
||||
};
|
||||
|
||||
|
|
|
@ -34,16 +34,16 @@ fn cache_matching_package_json_dep_should_not_install_all() {
|
|||
let temp_dir = context.temp_dir();
|
||||
temp_dir.write(
|
||||
"package.json",
|
||||
r#"{ "dependencies": { "@types/node": "18.8.2", "@denotest/esm-basic": "*" } }"#,
|
||||
r#"{ "dependencies": { "@types/node": "22.12.0", "@denotest/esm-basic": "*" } }"#,
|
||||
);
|
||||
let output = context
|
||||
.new_command()
|
||||
.args("cache npm:@types/node@18.8.2")
|
||||
.args("cache npm:@types/node@22.12.0")
|
||||
.run();
|
||||
output.assert_matches_text(concat!(
|
||||
"Download http://localhost:4260/@types/node\n",
|
||||
"Download http://localhost:4260/@types/node/node-18.8.2.tgz\n",
|
||||
"Initialize @types/node@18.8.2\n",
|
||||
"Initialize @types/node@22.12.0\n",
|
||||
));
|
||||
}
|
||||
|
||||
|
|
|
@ -250,7 +250,7 @@ fn permissions_prompt_allow_all() {
|
|||
));
|
||||
console.human_delay();
|
||||
console.write_line_raw("A");
|
||||
console.expect("✅ Granted all run access.");
|
||||
console.expect("Granted all run access.");
|
||||
// "read" permissions
|
||||
console.expect(concat!(
|
||||
"┏ ⚠️ Deno requests read access to \"FOO\".\r\n",
|
||||
|
@ -262,7 +262,7 @@ fn permissions_prompt_allow_all() {
|
|||
));
|
||||
console.human_delay();
|
||||
console.write_line_raw("A");
|
||||
console.expect("✅ Granted all read access.");
|
||||
console.expect("Granted all read access.");
|
||||
// "write" permissions
|
||||
console.expect(concat!(
|
||||
"┏ ⚠️ Deno requests write access to \"FOO\".\r\n",
|
||||
|
@ -274,7 +274,7 @@ fn permissions_prompt_allow_all() {
|
|||
));
|
||||
console.human_delay();
|
||||
console.write_line_raw("A");
|
||||
console.expect("✅ Granted all write access.");
|
||||
console.expect("Granted all write access.");
|
||||
// "net" permissions
|
||||
console.expect(concat!(
|
||||
"┏ ⚠️ Deno requests net access to \"foo\".\r\n",
|
||||
|
@ -286,7 +286,7 @@ fn permissions_prompt_allow_all() {
|
|||
));
|
||||
console.human_delay();
|
||||
console.write_line_raw("A");
|
||||
console.expect("✅ Granted all net access.");
|
||||
console.expect("Granted all net access.");
|
||||
// "env" permissions
|
||||
console.expect(concat!(
|
||||
"┏ ⚠️ Deno requests env access to \"FOO\".\r\n",
|
||||
|
@ -298,7 +298,7 @@ fn permissions_prompt_allow_all() {
|
|||
));
|
||||
console.human_delay();
|
||||
console.write_line_raw("A");
|
||||
console.expect("✅ Granted all env access.");
|
||||
console.expect("Granted all env access.");
|
||||
// "sys" permissions
|
||||
console.expect(concat!(
|
||||
"┏ ⚠️ Deno requests sys access to \"loadavg\".\r\n",
|
||||
|
@ -310,7 +310,7 @@ fn permissions_prompt_allow_all() {
|
|||
));
|
||||
console.human_delay();
|
||||
console.write_line_raw("A");
|
||||
console.expect("✅ Granted all sys access.");
|
||||
console.expect("Granted all sys access.");
|
||||
// "ffi" permissions
|
||||
console.expect(concat!(
|
||||
"┏ ⚠️ Deno requests ffi access to \"FOO\".\r\n",
|
||||
|
@ -322,7 +322,7 @@ fn permissions_prompt_allow_all() {
|
|||
));
|
||||
console.human_delay();
|
||||
console.write_line_raw("A");
|
||||
console.expect("✅ Granted all ffi access.")
|
||||
console.expect("Granted all ffi access.")
|
||||
},
|
||||
);
|
||||
}
|
||||
|
@ -343,7 +343,7 @@ fn permissions_prompt_allow_all_2() {
|
|||
));
|
||||
console.human_delay();
|
||||
console.write_line_raw("A");
|
||||
console.expect("✅ Granted all env access.");
|
||||
console.expect("Granted all env access.");
|
||||
|
||||
// "sys" permissions
|
||||
console.expect(concat!(
|
||||
|
@ -356,7 +356,7 @@ fn permissions_prompt_allow_all_2() {
|
|||
));
|
||||
console.human_delay();
|
||||
console.write_line_raw("A");
|
||||
console.expect("✅ Granted all sys access.");
|
||||
console.expect("Granted all sys access.");
|
||||
|
||||
let text = console.read_until("Allow? [y/n/A] (y = yes, allow; n = no, deny; A = allow all read permissions)");
|
||||
// "read" permissions
|
||||
|
@ -371,7 +371,7 @@ fn permissions_prompt_allow_all_2() {
|
|||
));
|
||||
console.human_delay();
|
||||
console.write_line_raw("A");
|
||||
console.expect("✅ Granted all read access.");
|
||||
console.expect("Granted all read access.");
|
||||
});
|
||||
}
|
||||
|
||||
|
@ -427,7 +427,7 @@ fn permissions_cache() {
|
|||
));
|
||||
console.human_delay();
|
||||
console.write_line_raw("y");
|
||||
console.expect("✅ Granted read access to \"foo\".");
|
||||
console.expect("Granted read access to \"foo\".");
|
||||
console.expect("granted");
|
||||
console.expect("prompt");
|
||||
});
|
||||
|
@ -455,7 +455,7 @@ fn permissions_trace() {
|
|||
|
||||
console.human_delay();
|
||||
console.write_line_raw("y");
|
||||
console.expect("✅ Granted sys access to \"hostname\".");
|
||||
console.expect("Granted sys access to \"hostname\".");
|
||||
});
|
||||
}
|
||||
|
||||
|
@ -2762,20 +2762,38 @@ fn stdio_streams_are_locked_in_permission_prompt() {
|
|||
// The worker is blocked, so nothing else should get written here
|
||||
console.human_delay();
|
||||
console.write_line_raw("i");
|
||||
// We ensure that nothing gets written here between the permission prompt and this text, despire the delay
|
||||
// We ensure that nothing gets written here between the permission prompt and this text, despite the delay
|
||||
let newline = if cfg!(target_os = "linux") {
|
||||
"^J"
|
||||
} else {
|
||||
"\r\n"
|
||||
};
|
||||
console.expect_raw_next(format!("i{newline}\u{1b}[1A\u{1b}[0J┗ Unrecognized option. Allow? [y/n/A] (y = yes, allow; n = no, deny; A = allow all read permissions) > "));
|
||||
console.human_delay();
|
||||
console.write_line_raw("y");
|
||||
// We ensure that nothing gets written here between the permission prompt and this text, despire the delay
|
||||
console.expect_raw_next(format!("y{newline}\x1b[6A\x1b[0J✅ Granted read access to \""));
|
||||
if cfg!(windows) {
|
||||
// it's too difficult to inspect the raw text on windows because the console
|
||||
// outputs a bunch of control characters, so we instead rely on the last assertion
|
||||
// in this test that checks to ensure we didn't receive any malicious output during
|
||||
// the permission prompts
|
||||
console.expect("Unrecognized option. Allow? [y/n/A] (y = yes, allow; n = no, deny; A = allow all read permissions) >");
|
||||
console.human_delay();
|
||||
console.write_line_raw("y");
|
||||
console.expect("Granted read access to");
|
||||
} else {
|
||||
console.expect_raw_next(format!("i{newline}\u{1b}[1A\u{1b}[0J┗ Unrecognized option. Allow? [y/n/A] (y = yes, allow; n = no, deny; A = allow all read permissions) > "));
|
||||
console.human_delay();
|
||||
console.write_line_raw("y");
|
||||
// We ensure that nothing gets written here between the permission prompt and this text, despite the delay
|
||||
console.expect_raw_next(format!("y{newline}\x1b[6A\x1b[0J✅ Granted read access to \""));
|
||||
}
|
||||
|
||||
// Back to spamming!
|
||||
console.expect(malicious_output);
|
||||
|
||||
// Ensure during the permission prompt showing we didn't receive any malicious output
|
||||
let all_text = console.all_output();
|
||||
let start_prompt_index = all_text.find("Allow?").unwrap();
|
||||
let end_prompt_index = all_text.find("Granted read access to").unwrap();
|
||||
let prompt_text = &all_text[start_prompt_index..end_prompt_index];
|
||||
assert!(!prompt_text.contains(malicious_output), "Prompt text: {:?}", prompt_text);
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
@ -55,6 +55,5 @@
|
|||
},
|
||||
"author": "The Babel Team (https://babel.dev/team)",
|
||||
"license": "MIT",
|
||||
"readmeFilename": "",
|
||||
"bugs": "https://github.com/babel/babel/issues?utf8=%E2%9C%93&q=is%3Aissue+label%3A%22pkg%3A+parser+%28babylon%29%22+is%3Aopen"
|
||||
}
|
||||
|
|
|
@ -112,6 +112,5 @@
|
|||
"bugs": {
|
||||
"url": "https://github.com/yargs/cliui/issues"
|
||||
},
|
||||
"license": "ISC",
|
||||
"readmeFilename": "README.md"
|
||||
"license": "ISC"
|
||||
}
|
||||
|
|
|
@ -56,6 +56,5 @@
|
|||
"bugs": {
|
||||
"url": "https://github.com/inspect-js/has-package-exports/issues"
|
||||
},
|
||||
"license": "MIT",
|
||||
"readmeFilename": ""
|
||||
"license": "MIT"
|
||||
}
|
||||
|
|
|
@ -93,6 +93,5 @@
|
|||
"homepage": "https://github.com/npm/agent#readme",
|
||||
"bugs": {
|
||||
"url": "https://github.com/npm/agent/issues"
|
||||
},
|
||||
"readmeFilename": "README.md"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -79,6 +79,5 @@
|
|||
"homepage": "https://github.com/npm/fs#readme",
|
||||
"bugs": {
|
||||
"url": "https://github.com/npm/fs/issues"
|
||||
},
|
||||
"readmeFilename": "README.md"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -127,6 +127,5 @@
|
|||
"homepage": "https://github.com/open-telemetry/opentelemetry-js/tree/main/api",
|
||||
"bugs": {
|
||||
"url": "https://github.com/open-telemetry/opentelemetry-js/issues"
|
||||
},
|
||||
"readmeFilename": "README.md"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -61,6 +61,5 @@
|
|||
"bugs": {
|
||||
"url": "https://github.com/pkgjs/parseargs/issues"
|
||||
},
|
||||
"license": "MIT",
|
||||
"readmeFilename": "README.md"
|
||||
"license": "MIT"
|
||||
}
|
||||
|
|
|
@ -54,6 +54,5 @@
|
|||
"_hasShrinkwrap": false
|
||||
}
|
||||
},
|
||||
"license": "MIT",
|
||||
"readmeFilename": ""
|
||||
"license": "MIT"
|
||||
}
|
||||
|
|
Binary file not shown.
Binary file not shown.
BIN
tests/registry/npm/@types/node/node-22.12.0.tgz
Normal file
BIN
tests/registry/npm/@types/node/node-22.12.0.tgz
Normal file
Binary file not shown.
Binary file not shown.
|
@ -1,98 +1,29 @@
|
|||
{
|
||||
"name": "@types/node",
|
||||
"dist-tags": {
|
||||
"ts4.9": "22.5.4",
|
||||
"ts5.5": "22.5.4",
|
||||
"ts5.6": "22.5.4",
|
||||
"ts5.7": "22.5.4",
|
||||
"ts4.8": "22.5.4",
|
||||
"ts5.2": "22.5.4",
|
||||
"ts5.3": "22.5.4",
|
||||
"ts5.4": "22.5.4",
|
||||
"ts5.1": "22.5.4",
|
||||
"ts5.0": "22.5.4",
|
||||
"latest": "22.5.4"
|
||||
"ts5.8": "22.12.0",
|
||||
"ts5.0": "22.12.0",
|
||||
"ts5.4": "22.12.0",
|
||||
"ts5.6": "22.12.0",
|
||||
"latest": "22.12.0",
|
||||
"ts5.3": "22.12.0",
|
||||
"ts5.7": "22.12.0",
|
||||
"ts5.1": "22.12.0",
|
||||
"ts5.5": "22.12.0",
|
||||
"ts5.2": "22.12.0"
|
||||
},
|
||||
"versions": {
|
||||
"18.8.2": {
|
||||
"22.12.0": {
|
||||
"name": "@types/node",
|
||||
"version": "18.8.2",
|
||||
"version": "22.12.0",
|
||||
"license": "MIT",
|
||||
"_id": "@types/node@18.8.2",
|
||||
"_id": "@types/node@22.12.0",
|
||||
"dist": {
|
||||
"shasum": "17d42c6322d917764dd3d2d3a10d7884925de067",
|
||||
"tarball": "http://localhost:4260/@types/node/node-18.8.2.tgz",
|
||||
"fileCount": 124,
|
||||
"integrity": "sha512-cRMwIgdDN43GO4xMWAfJAecYn8wV4JbsOGHNfNUIDiuYkUYAR5ec4Rj7IO2SAhFPEfpPtLtUTbbny/TCT7aDwA==",
|
||||
"unpackedSize": 3524549
|
||||
},
|
||||
"main": "",
|
||||
"types": "index.d.ts",
|
||||
"scripts": {},
|
||||
"repository": {
|
||||
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git",
|
||||
"type": "git",
|
||||
"directory": "types/node"
|
||||
},
|
||||
"description": "TypeScript definitions for Node.js",
|
||||
"directories": {},
|
||||
"dependencies": {},
|
||||
"typesVersions": {
|
||||
"<4.9.0-0": {
|
||||
"*": [
|
||||
"ts4.8/*"
|
||||
]
|
||||
}
|
||||
},
|
||||
"_hasShrinkwrap": false,
|
||||
"typeScriptVersion": "4.1",
|
||||
"typesPublisherContentHash": "034172ea945b66afc6502e6be34d6fb957c596091e39cf43672e8aca563a8c66"
|
||||
},
|
||||
"18.16.19": {
|
||||
"name": "@types/node",
|
||||
"version": "18.16.19",
|
||||
"license": "MIT",
|
||||
"_id": "@types/node@18.16.19",
|
||||
"dist": {
|
||||
"shasum": "cb03fca8910fdeb7595b755126a8a78144714eea",
|
||||
"tarball": "http://localhost:4260/@types/node/node-18.16.19.tgz",
|
||||
"fileCount": 125,
|
||||
"integrity": "sha512-IXl7o+R9iti9eBW4Wg2hx1xQDig183jj7YLn8F7udNceyfkbn1ZxmzZXuak20gR40D7pIkIY1kYGx5VIGbaHKA==",
|
||||
"unpackedSize": 3677153
|
||||
},
|
||||
"main": "",
|
||||
"types": "index.d.ts",
|
||||
"scripts": {},
|
||||
"repository": {
|
||||
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git",
|
||||
"type": "git",
|
||||
"directory": "types/node"
|
||||
},
|
||||
"description": "TypeScript definitions for Node.js",
|
||||
"directories": {},
|
||||
"dependencies": {},
|
||||
"typesVersions": {
|
||||
"<=4.8": {
|
||||
"*": [
|
||||
"ts4.8/*"
|
||||
]
|
||||
}
|
||||
},
|
||||
"_hasShrinkwrap": false,
|
||||
"typeScriptVersion": "4.3",
|
||||
"typesPublisherContentHash": "e0763594b4075c74150a6024cd39f92797ea5c273540e3a5fe0a63a791ffa0c8"
|
||||
},
|
||||
"22.5.4": {
|
||||
"name": "@types/node",
|
||||
"version": "22.5.4",
|
||||
"license": "MIT",
|
||||
"_id": "@types/node@22.5.4",
|
||||
"dist": {
|
||||
"shasum": "83f7d1f65bc2ed223bdbf57c7884f1d5a4fa84e8",
|
||||
"tarball": "http://localhost:4260/@types/node/node-22.5.4.tgz",
|
||||
"fileCount": 66,
|
||||
"integrity": "sha512-FDuKUJQm/ju9fT/SeX/6+gBzoPzlVCzfzmGkwKvRHQVxi4BntVbyIwf6a4Xn62mrvndLiml6z/UBXIdEVjQLXg==",
|
||||
"unpackedSize": 2203331
|
||||
"shasum": "bf8af3b2af0837b5a62a368756ff2b705ae0048c",
|
||||
"tarball": "http://localhost:4260/@types/node/node-22.12.0.tgz",
|
||||
"fileCount": 76,
|
||||
"integrity": "sha512-Fll2FZ1riMjNmlmJOdAyY5pUbkftXslB5DgEzlIuNaiWhXd00FhWxVC/r4yV/4wBb9JfImTu+jiSvXTkJ7F/gA==",
|
||||
"unpackedSize": 2296605
|
||||
},
|
||||
"main": "",
|
||||
"types": "index.d.ts",
|
||||
|
@ -105,11 +36,19 @@
|
|||
"description": "TypeScript definitions for node",
|
||||
"directories": {},
|
||||
"dependencies": {
|
||||
"undici-types": "~6.19.2"
|
||||
"undici-types": "~6.20.0"
|
||||
},
|
||||
"typesVersions": {
|
||||
"<=5.6": {
|
||||
"*": [
|
||||
"ts5.6/*"
|
||||
]
|
||||
}
|
||||
},
|
||||
"_hasShrinkwrap": false,
|
||||
"typeScriptVersion": "4.8",
|
||||
"typesPublisherContentHash": "6ee9a11eba834031423800320320aa873d6bf2b6f33603c13a2aa9d90b3803ee"
|
||||
"peerDependencies": {},
|
||||
"typeScriptVersion": "5.0",
|
||||
"typesPublisherContentHash": "d4bd811572964de73064ee6d85299d0dff56616e67d674f2ccdc3c824a4288b7"
|
||||
}
|
||||
},
|
||||
"license": "MIT",
|
||||
|
@ -119,6 +58,5 @@
|
|||
"type": "git",
|
||||
"directory": "types/node"
|
||||
},
|
||||
"description": "TypeScript definitions for node",
|
||||
"readmeFilename": ""
|
||||
"description": "TypeScript definitions for node"
|
||||
}
|
||||
|
|
|
@ -39,6 +39,5 @@
|
|||
"type": "git",
|
||||
"directory": "types/prop-types"
|
||||
},
|
||||
"description": "TypeScript definitions for prop-types",
|
||||
"readmeFilename": ""
|
||||
"description": "TypeScript definitions for prop-types"
|
||||
}
|
||||
|
|
|
@ -85,6 +85,5 @@
|
|||
"type": "git",
|
||||
"directory": "types/react"
|
||||
},
|
||||
"description": "TypeScript definitions for react",
|
||||
"readmeFilename": ""
|
||||
"description": "TypeScript definitions for react"
|
||||
}
|
||||
|
|
|
@ -66,6 +66,5 @@
|
|||
"bugs": {
|
||||
"url": "https://github.com/vuejs/core/issues"
|
||||
},
|
||||
"license": "MIT",
|
||||
"readmeFilename": "README.md"
|
||||
"license": "MIT"
|
||||
}
|
||||
|
|
|
@ -66,6 +66,5 @@
|
|||
"bugs": {
|
||||
"url": "https://github.com/vuejs/core/issues"
|
||||
},
|
||||
"license": "MIT",
|
||||
"readmeFilename": "README.md"
|
||||
"license": "MIT"
|
||||
}
|
||||
|
|
|
@ -83,6 +83,5 @@
|
|||
"bugs": {
|
||||
"url": "https://github.com/vuejs/core/issues"
|
||||
},
|
||||
"license": "MIT",
|
||||
"readmeFilename": "README.md"
|
||||
"license": "MIT"
|
||||
}
|
||||
|
|
|
@ -58,6 +58,5 @@
|
|||
"bugs": {
|
||||
"url": "https://github.com/vuejs/core/issues"
|
||||
},
|
||||
"license": "MIT",
|
||||
"readmeFilename": "README.md"
|
||||
"license": "MIT"
|
||||
}
|
||||
|
|
|
@ -65,6 +65,5 @@
|
|||
"bugs": {
|
||||
"url": "https://github.com/vuejs/core/issues"
|
||||
},
|
||||
"license": "MIT",
|
||||
"readmeFilename": "README.md"
|
||||
"license": "MIT"
|
||||
}
|
||||
|
|
|
@ -64,6 +64,5 @@
|
|||
"bugs": {
|
||||
"url": "https://github.com/vuejs/core/issues"
|
||||
},
|
||||
"license": "MIT",
|
||||
"readmeFilename": "README.md"
|
||||
"license": "MIT"
|
||||
}
|
||||
|
|
|
@ -61,6 +61,5 @@
|
|||
"bugs": {
|
||||
"url": "https://github.com/vuejs/core/issues"
|
||||
},
|
||||
"license": "MIT",
|
||||
"readmeFilename": "README.md"
|
||||
"license": "MIT"
|
||||
}
|
||||
|
|
|
@ -65,6 +65,5 @@
|
|||
"bugs": {
|
||||
"url": "https://github.com/vuejs/core/issues"
|
||||
},
|
||||
"license": "MIT",
|
||||
"readmeFilename": "README.md"
|
||||
"license": "MIT"
|
||||
}
|
||||
|
|
|
@ -64,6 +64,5 @@
|
|||
"bugs": {
|
||||
"url": "https://github.com/vuejs/core/issues"
|
||||
},
|
||||
"license": "MIT",
|
||||
"readmeFilename": "README.md"
|
||||
"license": "MIT"
|
||||
}
|
||||
|
|
|
@ -56,6 +56,5 @@
|
|||
"bugs": {
|
||||
"url": "https://github.com/vuejs/core/issues"
|
||||
},
|
||||
"license": "MIT",
|
||||
"readmeFilename": "README.md"
|
||||
"license": "MIT"
|
||||
}
|
||||
|
|
|
@ -74,6 +74,5 @@
|
|||
"homepage": "https://github.com/npm/abbrev-js#readme",
|
||||
"bugs": {
|
||||
"url": "https://github.com/npm/abbrev-js/issues"
|
||||
},
|
||||
"readmeFilename": "README.md"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -81,6 +81,5 @@
|
|||
"bugs": {
|
||||
"url": "https://github.com/TooTallNate/proxy-agents/issues"
|
||||
},
|
||||
"license": "MIT",
|
||||
"readmeFilename": "README.md"
|
||||
"license": "MIT"
|
||||
}
|
||||
|
|
|
@ -65,6 +65,5 @@
|
|||
"bugs": {
|
||||
"url": "https://github.com/sindresorhus/aggregate-error/issues"
|
||||
},
|
||||
"license": "MIT",
|
||||
"readmeFilename": "readme.md"
|
||||
"license": "MIT"
|
||||
}
|
||||
|
|
|
@ -95,6 +95,5 @@
|
|||
"bugs": {
|
||||
"url": "https://github.com/ajv-validator/ajv-formats/issues"
|
||||
},
|
||||
"license": "MIT",
|
||||
"readmeFilename": ""
|
||||
"license": "MIT"
|
||||
}
|
||||
|
|
|
@ -147,6 +147,5 @@
|
|||
"bugs": {
|
||||
"url": "https://github.com/ajv-validator/ajv/issues"
|
||||
},
|
||||
"license": "MIT",
|
||||
"readmeFilename": "README.md"
|
||||
"license": "MIT"
|
||||
}
|
||||
|
|
|
@ -156,6 +156,5 @@
|
|||
"bugs": {
|
||||
"url": "https://github.com/chalk/ansi-regex/issues"
|
||||
},
|
||||
"license": "MIT",
|
||||
"readmeFilename": ""
|
||||
"license": "MIT"
|
||||
}
|
||||
|
|
|
@ -115,6 +115,5 @@
|
|||
"bugs": {
|
||||
"url": "https://github.com/chalk/ansi-styles/issues"
|
||||
},
|
||||
"license": "MIT",
|
||||
"readmeFilename": "readme.md"
|
||||
"license": "MIT"
|
||||
}
|
||||
|
|
|
@ -58,7 +58,6 @@
|
|||
"type": "git",
|
||||
"url": "git+https://github.com/joyent/node-asn1.git"
|
||||
},
|
||||
"readmeFilename": "README.md",
|
||||
"homepage": "https://github.com/joyent/node-asn1#readme",
|
||||
"bugs": {
|
||||
"url": "https://github.com/joyent/node-asn1/issues"
|
||||
|
|
|
@ -60,6 +60,5 @@
|
|||
"bugs": {
|
||||
"url": "https://github.com/chaijs/assertion-error/issues"
|
||||
},
|
||||
"license": "MIT",
|
||||
"readmeFilename": "README.md"
|
||||
"license": "MIT"
|
||||
}
|
||||
|
|
|
@ -75,6 +75,5 @@
|
|||
"bugs": {
|
||||
"url": "https://github.com/juliangruber/balanced-match/issues"
|
||||
},
|
||||
"license": "MIT",
|
||||
"readmeFilename": "README.md"
|
||||
"license": "MIT"
|
||||
}
|
||||
|
|
|
@ -41,7 +41,6 @@
|
|||
}
|
||||
},
|
||||
"license": "BSD-3-Clause",
|
||||
"readmeFilename": "README.md",
|
||||
"homepage": "https://github.com/joyent/node-bcrypt-pbkdf#readme",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
|
|
|
@ -79,6 +79,5 @@
|
|||
"bugs": {
|
||||
"url": "https://github.com/juliangruber/brace-expansion/issues"
|
||||
},
|
||||
"license": "MIT",
|
||||
"readmeFilename": "README.md"
|
||||
"license": "MIT"
|
||||
}
|
||||
|
|
|
@ -68,6 +68,5 @@
|
|||
"type": "git",
|
||||
"url": "git+https://github.com/websockets/bufferutil.git"
|
||||
},
|
||||
"description": "WebSocket buffer utils",
|
||||
"readmeFilename": "README.md"
|
||||
"description": "WebSocket buffer utils"
|
||||
}
|
||||
|
|
|
@ -66,6 +66,5 @@
|
|||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/mscdex/buildcheck/issues"
|
||||
},
|
||||
"readmeFilename": "README.md"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -104,6 +104,5 @@
|
|||
"homepage": "https://github.com/npm/cacache#readme",
|
||||
"bugs": {
|
||||
"url": "https://github.com/npm/cacache/issues"
|
||||
},
|
||||
"readmeFilename": "README.md"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -61,6 +61,5 @@
|
|||
"bugs": {
|
||||
"url": "https://github.com/sindresorhus/camelcase/issues"
|
||||
},
|
||||
"license": "MIT",
|
||||
"readmeFilename": "readme.md"
|
||||
"license": "MIT"
|
||||
}
|
||||
|
|
|
@ -79,7 +79,6 @@
|
|||
"type": "git",
|
||||
"url": "git+https://github.com/chaijs/chai.git"
|
||||
},
|
||||
"readmeFilename": "README.md",
|
||||
"homepage": "http://chaijs.com",
|
||||
"bugs": {
|
||||
"url": "https://github.com/chaijs/chai/issues"
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Reference in a new issue