diff --git a/.gitignore b/.gitignore
index 1b218945a18..b5aecdbe35d 100644
--- a/.gitignore
+++ b/.gitignore
@@ -23,6 +23,8 @@ tests/services/browser/typescriptServices.js
src/harness/*.js
src/compiler/diagnosticInformationMap.generated.ts
src/compiler/diagnosticMessages.generated.json
+src/parser/diagnosticInformationMap.generated.ts
+src/parser/diagnosticMessages.generated.json
rwc-report.html
*.swp
build.json
@@ -44,6 +46,7 @@ scripts/configurePrerelease.js
scripts/open-user-pr.js
scripts/processDiagnosticMessages.d.ts
scripts/processDiagnosticMessages.js
+scripts/produceLKG.js
scripts/importDefinitelyTypedTests/importDefinitelyTypedTests.js
scripts/generateLocalizedDiagnosticMessages.js
scripts/*.js.map
diff --git a/Jakefile.js b/Jakefile.js
index a6483355c73..7a16c681b6e 100644
--- a/Jakefile.js
+++ b/Jakefile.js
@@ -2,33 +2,14 @@
// @ts-check
///
-var fs = require("fs");
-var os = require("os");
-var path = require("path");
-var child_process = require("child_process");
-var fold = require("travis-fold");
-var ts = require("./lib/typescript");
+const fs = require("fs");
+const os = require("os");
+const path = require("path");
+const fold = require("travis-fold");
+const ts = require("./lib/typescript");
+const del = require("del");
const getDirSize = require("./scripts/build/getDirSize");
-// Variables
-var compilerDirectory = "src/compiler/";
-var serverDirectory = "src/server/";
-var harnessDirectory = "src/harness/";
-var libraryDirectory = "src/lib/";
-var scriptsDirectory = "scripts/";
-var unittestsDirectory = "src/harness/unittests/";
-var docDirectory = "doc/";
-var lclDirectory = "src/loc/lcl";
-
-var builtDirectory = "built/";
-var builtLocalDirectory = "built/local/";
-var LKGDirectory = "lib/";
-
-var copyright = "CopyrightNotice.txt";
-var thirdParty = "ThirdPartyNoticeText.txt";
-
-var defaultTestTimeout = 40000;
-
// add node_modules to path so we don't need global modules, prefer the modules by adding them first
var nodeModulesPathPrefix = path.resolve("./node_modules/.bin/") + path.delimiter;
if (process.env.path !== undefined) {
@@ -38,721 +19,370 @@ else if (process.env.PATH !== undefined) {
process.env.PATH = nodeModulesPathPrefix + process.env.PATH;
}
-/**
- * @param diagnostics {ts.Diagnostic[]}
- * @param [pretty] {boolean}
- */
-function diagnosticsToString(diagnostics, pretty) {
- const host = {
- getCurrentDirectory() { return process.cwd(); },
- getCanonicalFileName(fileName) { return fileName; },
- getNewLine() { return os.EOL; }
- };
- return pretty ? ts.formatDiagnosticsWithColorAndContext(diagnostics, host) :
- ts.formatDiagnostics(diagnostics, host);
-}
-
-/** @param diagnostics {ts.Diagnostic[]} */
-function reportDiagnostics(diagnostics) {
- console.log(diagnosticsToString(diagnostics, process.stdout.isTTY));
-}
-
-/** @param jsonPath {string} */
-function readJson(jsonPath) {
- const jsonText = fs.readFileSync(jsonPath, "utf8");
- const result = ts.parseConfigFileTextToJson(jsonPath, jsonText);
- if (result.error) {
- reportDiagnostics([result.error]);
- throw new Error("An error occurred during parse.");
- }
- return result.config;
-}
-
-/** @param configPath {string} */
-function filesFromConfig(configPath) {
- const config = readJson(configPath);
- const configFileContent = ts.parseJsonConfigFileContent(config, ts.sys, path.dirname(configPath));
- if (configFileContent.errors && configFileContent.errors.length) {
- reportDiagnostics(configFileContent.errors);
- throw new Error("An error occurred during parse.");
- }
- return configFileContent.fileNames;
-}
-
-function toNs(diff) {
- return diff[0] * 1e9 + diff[1];
-}
-
-function mark() {
- if (!fold.isTravis()) return;
- var stamp = process.hrtime();
- var id = Math.floor(Math.random() * 0xFFFFFFFF).toString(16);
- console.log("travis_time:start:" + id + "\r");
- return {
- stamp: stamp,
- id: id
- };
-}
-
-function measure(marker) {
- if (!fold.isTravis()) return;
- var diff = process.hrtime(marker.stamp);
- var total = [marker.stamp[0] + diff[0], marker.stamp[1] + diff[1]];
- console.log("travis_time:end:" + marker.id + ":start=" + toNs(marker.stamp) + ",finish=" + toNs(total) + ",duration=" + toNs(diff) + "\r");
-}
-
-function removeConstModifierFromEnumDeclarations(text) {
- return text.replace(/^(\s*)(export )?const enum (\S+) {(\s*)$/gm, '$1$2enum $3 {$4');
-}
-
-var compilerSources = filesFromConfig("./src/compiler/tsconfig.json");
-var servicesSources = filesFromConfig("./src/services/tsconfig.json");
-var cancellationTokenSources = filesFromConfig(path.join(serverDirectory, "cancellationToken/tsconfig.json"));
-var typingsInstallerSources = filesFromConfig(path.join(serverDirectory, "typingsInstaller/tsconfig.json"));
-var watchGuardSources = filesFromConfig(path.join(serverDirectory, "watchGuard/tsconfig.json"));
-var serverSources = filesFromConfig(path.join(serverDirectory, "tsconfig.json"));
-var languageServiceLibrarySources = filesFromConfig(path.join(serverDirectory, "tsconfig.library.json"));
-var harnessSources = filesFromConfig("./src/harness/tsconfig.json");
-
-var typesMapOutputPath = path.join(builtLocalDirectory, 'typesMap.json');
-
-/** @type {{ libs: string[], paths?: Record, sources?: Record }} */
-var libraries = readJson("./src/lib/libs.json");
-
-/**
- * .lcg file is what localization team uses to know what messages to localize.
- * The file is always generated in 'enu\diagnosticMessages.generated.json.lcg'
- */
-var generatedLCGFile = path.join(builtLocalDirectory, "enu", "diagnosticMessages.generated.json.lcg");
-
-/**
- * The localization target produces the two following transformations:
- * 1. 'src\loc\lcl\\diagnosticMessages.generated.json.lcl' => 'built\local\\diagnosticMessages.generated.json'
- * convert localized resources into a .json file the compiler can understand
- * 2. 'src\compiler\diagnosticMessages.generated.json' => 'built\local\ENU\diagnosticMessages.generated.json.lcg'
- * generate the lcg file (source of messages to localize) from the diagnosticMessages.generated.json
- */
-var localizationTargets = ["cs", "de", "es", "fr", "it", "ja", "ko", "pl", "pt-br", "ru", "tr", "zh-cn", "zh-tw"].map(function (f) {
- return path.join(builtLocalDirectory, f);
-}).concat(path.dirname(generatedLCGFile));
-
-// Prepends the contents of prefixFile to destinationFile
-function prependFile(prefixFile, destinationFile) {
- if (!fs.existsSync(prefixFile)) {
- fail(prefixFile + " does not exist!");
- }
- if (!fs.existsSync(destinationFile)) {
- fail(destinationFile + " failed to be created!");
- }
- var temp = "temptemp";
- jake.cpR(prefixFile, temp, { silent: true });
- fs.appendFileSync(temp, fs.readFileSync(destinationFile));
- fs.renameSync(temp, destinationFile);
-}
-
-// concatenate a list of sourceFiles to a destinationFile
-function concatenateFiles(destinationFile, sourceFiles) {
- var temp = "temptemp";
- // append all files in sequence
- var text = "";
- for (var i = 0; i < sourceFiles.length; i++) {
- if (!fs.existsSync(sourceFiles[i])) {
- fail(sourceFiles[i] + " does not exist!");
- }
- if (i > 0) { text += "\n\n"; }
- text += fs.readFileSync(sourceFiles[i]).toString().replace(/\r?\n/g, "\n");
- }
- fs.writeFileSync(temp, text);
- // Move the file to the final destination
- fs.renameSync(temp, destinationFile);
-}
-
-var useDebugMode = true;
-var host = process.env.TYPESCRIPT_HOST || process.env.host || "node";
-var compilerFilename = "tsc.js";
-var LKGCompiler = path.join(LKGDirectory, compilerFilename);
-var builtLocalCompiler = path.join(builtLocalDirectory, compilerFilename);
-
-/**
- * Compiles a file from a list of sources
- * @param {string} outFile the target file name
- * @param {string[]} sources an array of the names of the source files
- * @param {string[]} prereqs prerequisite tasks to compiling the file
- * @param {string[]} prefixes a list of files to prepend to the target file
- * @param {boolean} useBuiltCompiler true to use the built compiler, false to use the LKG
- * @param {object} [opts] property bag containing auxiliary options
- * @param {boolean} [opts.noOutFile] true to compile without using --out
- * @param {boolean} [opts.generateDeclarations] true to compile using --declaration
- * @param {string} [opts.outDir] value for '--outDir' command line option
- * @param {boolean} [opts.keepComments] false to compile using --removeComments
- * @param {boolean} [opts.preserveConstEnums] true if compiler should keep const enums in code
- * @param {boolean} [opts.noResolve] true if compiler should not include non-rooted files in compilation
- * @param {boolean} [opts.stripInternal] true if compiler should remove declarations marked as internal
- * @param {boolean} [opts.inlineSourceMap] true if compiler should inline sourceMap
- * @param {string[]} [opts.types] array of types to include in compilation
- * @param {string} [opts.lib] explicit libs to include.
- * @param {function(): void} [callback] a function to execute after the compilation process ends
- */
-function compileFile(outFile, sources, prereqs, prefixes, useBuiltCompiler, opts, callback) {
- file(outFile, prereqs, function() {
- var startCompileTime = mark();
- opts = opts || {};
- var compilerPath = useBuiltCompiler ? builtLocalCompiler : LKGCompiler;
- var options = "--noImplicitAny --noImplicitThis --alwaysStrict --noEmitOnError";
- if (opts.types) {
- options += " --types " + opts.types.join(",");
- }
- options += " --pretty";
- // Keep comments when specifically requested
- // or when in debug mode.
- if (!(opts.keepComments || useDebugMode)) {
- options += " --removeComments";
- }
-
- if (opts.generateDeclarations) {
- options += " --declaration";
- }
-
- if (opts.preserveConstEnums || useDebugMode) {
- options += " --preserveConstEnums";
- }
-
- if (opts.outDir) {
- options += " --outDir " + opts.outDir;
- }
-
- if (!opts.noOutFile) {
- options += " --out " + outFile;
- }
- else {
- options += " --module commonjs";
- }
-
- if (opts.noResolve) {
- options += " --noResolve";
- }
-
- if (useDebugMode) {
- if (opts.inlineSourceMap) {
- options += " --inlineSourceMap --inlineSources";
- }
- else {
- options += " --sourcemap";
- }
- }
- options += " --newLine LF";
-
- if (opts.stripInternal) {
- options += " --stripInternal";
- }
- options += " --target es5";
- if (opts.lib) {
- options += " --lib " + opts.lib;
- }
- else {
- options += " --lib es5";
- }
- options += " --noUnusedLocals --noUnusedParameters --strictNullChecks";
-
- var cmd = host + " " + compilerPath + " " + options + " ";
- cmd = cmd + sources.join(" ");
- console.log(cmd + "\n");
-
- var ex = jake.createExec([cmd]);
- // Add listeners for output and error
- ex.addListener("stdout", function (output) {
- process.stdout.write(output);
- });
- ex.addListener("stderr", function (error) {
- process.stderr.write(error);
- });
- ex.addListener("cmdEnd", function () {
- if (!useDebugMode && prefixes && fs.existsSync(outFile)) {
- for (var i in prefixes) {
- prependFile(prefixes[i], outFile);
- }
- }
-
- if (callback) {
- callback();
- }
-
- measure(startCompileTime);
- complete();
- });
- ex.addListener("error", function () {
- fs.unlinkSync(outFile);
- fail("Compilation of " + outFile + " unsuccessful");
- measure(startCompileTime);
- });
- ex.run();
- }, { async: true });
-}
-
-// Prerequisite task for built directory and library typings
-directory(builtLocalDirectory);
-
-var libraryTargets = libraries.libs.map(function (lib) {
- var relativeSources = ["header.d.ts"].concat(libraries.sources && libraries.sources[lib] || [lib + ".d.ts"]);
- var relativeTarget = libraries.paths && libraries.paths[lib] || ("lib." + lib + ".d.ts");
- var sources = [copyright].concat(relativeSources.map(s => path.join(libraryDirectory, s)));
- var target = path.join(builtLocalDirectory, relativeTarget);
- file(target, [builtLocalDirectory].concat(sources), function () {
- concatenateFiles(target, sources);
- });
- return target;
-});
-
-// Lib target to build the library files
-desc("Builds the library targets");
-task("lib", libraryTargets);
-
-
-// Generate diagnostics
-var processDiagnosticMessagesJs = path.join(scriptsDirectory, "processDiagnosticMessages.js");
-var processDiagnosticMessagesTs = path.join(scriptsDirectory, "processDiagnosticMessages.ts");
-var processDiagnosticMessagesSources = filesFromConfig("./scripts/processDiagnosticMessages.tsconfig.json");
-
-var diagnosticMessagesJson = path.join(compilerDirectory, "diagnosticMessages.json");
-var diagnosticInfoMapTs = path.join(compilerDirectory, "diagnosticInformationMap.generated.ts");
-var generatedDiagnosticMessagesJSON = path.join(compilerDirectory, "diagnosticMessages.generated.json");
-var builtGeneratedDiagnosticMessagesJSON = path.join(builtLocalDirectory, "diagnosticMessages.generated.json");
-
-file(processDiagnosticMessagesTs);
-
-// processDiagnosticMessages script
-compileFile(processDiagnosticMessagesJs,
- processDiagnosticMessagesSources,
- processDiagnosticMessagesSources,
- [],
- /*useBuiltCompiler*/ false);
-
-// Localize diagnostics script
-var generateLocalizedDiagnosticMessagesJs = path.join(scriptsDirectory, "generateLocalizedDiagnosticMessages.js");
-var generateLocalizedDiagnosticMessagesTs = path.join(scriptsDirectory, "generateLocalizedDiagnosticMessages.ts");
-
-file(generateLocalizedDiagnosticMessagesTs);
-
-compileFile(generateLocalizedDiagnosticMessagesJs,
- [generateLocalizedDiagnosticMessagesTs],
- [generateLocalizedDiagnosticMessagesTs],
- [],
- /*useBuiltCompiler*/ false, { noOutFile: true, types: ["node", "xml2js"] });
-
-// Localize diagnostics
-file(generatedLCGFile, [generateLocalizedDiagnosticMessagesJs, diagnosticInfoMapTs, generatedDiagnosticMessagesJSON], function () {
- var cmd = host + " " + generateLocalizedDiagnosticMessagesJs + " " + lclDirectory + " " + builtLocalDirectory + " " + generatedDiagnosticMessagesJSON;
- console.log(cmd);
- var ex = jake.createExec([cmd]);
- // Add listeners for output and error
- ex.addListener("stdout", function (output) {
- process.stdout.write(output);
- });
- ex.addListener("stderr", function (error) {
- process.stderr.write(error);
- });
- ex.addListener("cmdEnd", function () {
- complete();
- });
- ex.run();
-}, { async: true });
-
-task("localize", [generatedLCGFile]);
-
-var buildProtocolTs = path.join(scriptsDirectory, "buildProtocol.ts");
-var buildProtocolJs = path.join(scriptsDirectory, "buildProtocol.js");
-var buildProtocolDts = path.join(builtLocalDirectory, "protocol.d.ts");
-var typescriptServicesDts = path.join(builtLocalDirectory, "typescriptServices.d.ts");
-
-file(buildProtocolTs);
-
-compileFile(buildProtocolJs,
- [buildProtocolTs],
- [buildProtocolTs],
- [],
- /*useBuiltCompiler*/ false,
- { noOutFile: true, lib: "es6" });
-
-file(buildProtocolDts, [buildProtocolTs, buildProtocolJs, typescriptServicesDts], function() {
-
- var protocolTs = path.join(serverDirectory, "protocol.ts");
-
- var cmd = host + " " + buildProtocolJs + " "+ protocolTs + " " + typescriptServicesDts + " " + buildProtocolDts;
- console.log(cmd);
- var ex = jake.createExec([cmd]);
- // Add listeners for output and error
- ex.addListener("stdout", function (output) {
- process.stdout.write(output);
- });
- ex.addListener("stderr", function (error) {
- process.stderr.write(error);
- });
- ex.addListener("cmdEnd", function () {
- complete();
- });
- ex.run();
-}, { async: true });
-
-// The generated diagnostics map; built for the compiler and for the 'generate-diagnostics' task
-file(diagnosticInfoMapTs, [processDiagnosticMessagesJs, diagnosticMessagesJson], function () {
- var cmd = host + " " + processDiagnosticMessagesJs + " " + diagnosticMessagesJson;
- console.log(cmd);
- var ex = jake.createExec([cmd]);
- // Add listeners for output and error
- ex.addListener("stdout", function (output) {
- process.stdout.write(output);
- });
- ex.addListener("stderr", function (error) {
- process.stderr.write(error);
- });
- ex.addListener("cmdEnd", function () {
- complete();
- });
- ex.run();
-}, { async: true });
-
-file(builtGeneratedDiagnosticMessagesJSON, [generatedDiagnosticMessagesJSON], function () {
- if (fs.existsSync(builtLocalDirectory)) {
- jake.cpR(generatedDiagnosticMessagesJSON, builtGeneratedDiagnosticMessagesJSON);
- }
-});
-
-desc("Generates a diagnostic file in TypeScript based on an input JSON file");
-task("generate-diagnostics", [diagnosticInfoMapTs]);
-
-// Publish nightly
-var configurePrereleaseJs = path.join(scriptsDirectory, "configurePrerelease.js");
-var configurePrereleaseTs = path.join(scriptsDirectory, "configurePrerelease.ts");
-var packageJson = "package.json";
-var versionFile = path.join(compilerDirectory, "core.ts");
-
-file(configurePrereleaseTs);
-
-compileFile(/*outfile*/configurePrereleaseJs,
- /*sources*/[configurePrereleaseTs],
- /*prereqs*/[configurePrereleaseTs],
- /*prefixes*/[],
- /*useBuiltCompiler*/ false,
- { noOutFile: true, generateDeclarations: false, keepComments: false, noResolve: false, stripInternal: false });
-
-task("setDebugMode", function () {
- useDebugMode = true;
-});
-
-task("configure-nightly", [configurePrereleaseJs], function () {
- var cmd = host + " " + configurePrereleaseJs + " dev " + packageJson + " " + versionFile;
- console.log(cmd);
- exec(cmd);
-}, { async: true });
-
-desc("Configure, build, test, and publish the nightly release.");
-task("publish-nightly", ["configure-nightly", "LKG", "clean", "setDebugMode", "runtests-parallel"], function () {
- var cmd = "npm publish --tag next";
- console.log(cmd);
- exec(cmd);
-});
-
-task("configure-insiders", [configurePrereleaseJs], function () {
- var cmd = host + " " + configurePrereleaseJs + " insiders " + packageJson + " " + versionFile;
- console.log(cmd);
- exec(cmd);
-}, { async: true });
-
-desc("Configure, build, test, and publish the insiders release.");
-task("publish-insiders", ["configure-insiders", "LKG", "clean", "setDebugMode", "runtests-parallel"], function () {
- var cmd = "npm publish --tag insiders";
- console.log(cmd);
- exec(cmd);
-});
-
-var importDefinitelyTypedTestsDirectory = path.join(scriptsDirectory, "importDefinitelyTypedTests");
-var importDefinitelyTypedTestsJs = path.join(importDefinitelyTypedTestsDirectory, "importDefinitelyTypedTests.js");
-var importDefinitelyTypedTestsTs = path.join(importDefinitelyTypedTestsDirectory, "importDefinitelyTypedTests.ts");
-
-file(importDefinitelyTypedTestsTs);
-file(importDefinitelyTypedTestsJs, ["tsd-scripts", importDefinitelyTypedTestsTs], function () {
- var cmd = host + " " + LKGCompiler + " -p " + importDefinitelyTypedTestsDirectory;
- console.log(cmd);
- exec(cmd);
-}, { async: true });
-
-task("importDefinitelyTypedTests", [importDefinitelyTypedTestsJs], function () {
- var cmd = host + " " + importDefinitelyTypedTestsJs + " ./ ../DefinitelyTyped";
- console.log(cmd);
- exec(cmd);
-}, { async: true });
-
-// Local target to build the compiler and services
-var tscFile = path.join(builtLocalDirectory, compilerFilename);
-compileFile(tscFile, compilerSources, [builtLocalDirectory, copyright].concat(compilerSources), [copyright], /*useBuiltCompiler:*/ false);
-
-var servicesFile = path.join(builtLocalDirectory, "typescriptServices.js");
-var standaloneDefinitionsFile = path.join(builtLocalDirectory, "typescriptServices.d.ts");
-var nodePackageFile = path.join(builtLocalDirectory, "typescript.js");
-var nodeDefinitionsFile = path.join(builtLocalDirectory, "typescript.d.ts");
-var nodeStandaloneDefinitionsFile = path.join(builtLocalDirectory, "typescript_standalone.d.ts");
-
-compileFile(servicesFile, servicesSources, [builtLocalDirectory, copyright].concat(servicesSources),
- /*prefixes*/[copyright],
- /*useBuiltCompiler*/ true,
- /*opts*/ {
- noOutFile: false,
- generateDeclarations: true,
- preserveConstEnums: true,
- keepComments: true,
- noResolve: false,
- stripInternal: true
- },
- /*callback*/ function () {
- jake.cpR(servicesFile, nodePackageFile, { silent: true });
-
- prependFile(copyright, standaloneDefinitionsFile);
-
- // Stanalone/web definition file using global 'ts' namespace
- jake.cpR(standaloneDefinitionsFile, nodeDefinitionsFile, { silent: true });
- var definitionFileContents = fs.readFileSync(nodeDefinitionsFile).toString();
- definitionFileContents = removeConstModifierFromEnumDeclarations(definitionFileContents);
- fs.writeFileSync(standaloneDefinitionsFile, definitionFileContents);
-
- // Official node package definition file, pointed to by 'typings' in package.json
- // Created by appending 'export = ts;' at the end of the standalone file to turn it into an external module
- var nodeDefinitionsFileContents = definitionFileContents + "\nexport = ts;";
- fs.writeFileSync(nodeDefinitionsFile, nodeDefinitionsFileContents);
-
- // Node package definition file to be distributed without the package. Created by replacing
- // 'ts' namespace with '"typescript"' as a module.
- var nodeStandaloneDefinitionsFileContents = definitionFileContents.replace(/declare (namespace|module) ts/g, 'declare module "typescript"');
- fs.writeFileSync(nodeStandaloneDefinitionsFile, nodeStandaloneDefinitionsFileContents);
- });
-
-file(typescriptServicesDts, [servicesFile]);
-
-var cancellationTokenFile = path.join(builtLocalDirectory, "cancellationToken.js");
-compileFile(cancellationTokenFile, cancellationTokenSources, [builtLocalDirectory].concat(cancellationTokenSources), /*prefixes*/ [copyright], /*useBuiltCompiler*/ true, { types: ["node"], outDir: builtLocalDirectory, noOutFile: true, lib: "es6" });
-
-var typingsInstallerFile = path.join(builtLocalDirectory, "typingsInstaller.js");
-compileFile(typingsInstallerFile, typingsInstallerSources, [builtLocalDirectory].concat(typingsInstallerSources), /*prefixes*/ [copyright], /*useBuiltCompiler*/ true, { types: ["node"], outDir: builtLocalDirectory, noOutFile: false, lib: "es6" });
-
-var watchGuardFile = path.join(builtLocalDirectory, "watchGuard.js");
-compileFile(watchGuardFile, watchGuardSources, [builtLocalDirectory].concat(watchGuardSources), /*prefixes*/ [copyright], /*useBuiltCompiler*/ true, { types: ["node"], outDir: builtLocalDirectory, noOutFile: false, lib: "es6" });
-
-var serverFile = path.join(builtLocalDirectory, "tsserver.js");
-compileFile(serverFile, serverSources, [builtLocalDirectory, copyright, cancellationTokenFile, typingsInstallerFile, watchGuardFile].concat(serverSources).concat(servicesSources), /*prefixes*/ [copyright], /*useBuiltCompiler*/ true, { types: ["node"], preserveConstEnums: true, lib: "es6" });
-var tsserverLibraryFile = path.join(builtLocalDirectory, "tsserverlibrary.js");
-var tsserverLibraryDefinitionFile = path.join(builtLocalDirectory, "tsserverlibrary.d.ts");
-file(typesMapOutputPath, /** @type {*} */(function() {
- var content = fs.readFileSync(path.join(serverDirectory, 'typesMap.json'));
- // Validate that it's valid JSON
- try {
- JSON.parse(content.toString());
- } catch (e) {
- console.log("Parse error in typesMap.json: " + e);
- }
- fs.writeFileSync(typesMapOutputPath, content);
-}));
-compileFile(
- tsserverLibraryFile,
- languageServiceLibrarySources,
- [builtLocalDirectory, copyright, builtLocalCompiler].concat(languageServiceLibrarySources).concat(libraryTargets),
- /*prefixes*/[copyright],
- /*useBuiltCompiler*/ true,
- { noOutFile: false, generateDeclarations: true, stripInternal: true, preserveConstEnums: true, keepComments: true },
- /*callback*/ function () {
- prependFile(copyright, tsserverLibraryDefinitionFile);
-
- // Appending exports at the end of the server library
- var tsserverLibraryDefinitionFileContents =
- fs.readFileSync(tsserverLibraryDefinitionFile).toString() +
- "\nexport = ts;" +
- "\nexport as namespace ts;";
- tsserverLibraryDefinitionFileContents = removeConstModifierFromEnumDeclarations(tsserverLibraryDefinitionFileContents);
-
- fs.writeFileSync(tsserverLibraryDefinitionFile, tsserverLibraryDefinitionFileContents);
- });
-
-// Local target to build the language service server library
-desc("Builds language service server library");
-task("lssl", [tsserverLibraryFile, tsserverLibraryDefinitionFile, typesMapOutputPath]);
-
-desc("Emit the start of the build fold");
-task("build-fold-start", [], function () {
- if (fold.isTravis()) console.log(fold.start("build"));
-});
-
-desc("Emit the end of the build fold");
-task("build-fold-end", [], function () {
- if (fold.isTravis()) console.log(fold.end("build"));
-});
+const host = process.env.TYPESCRIPT_HOST || process.env.host || "node";
+
+const locales = ["cs", "de", "es", "fr", "it", "ja", "ko", "pl", "pt-br", "ru", "tr", "zh-cn", "zh-tw"];
+
+const defaultTestTimeout = 40000;
+
+let useDebugMode = true;
+
+const TaskNames = {
+ local: "local",
+ runtests: "runtests",
+ runtestsParallel: "runtests-parallel",
+ buildRules: "build-rules",
+ clean: "clean",
+ lib: "lib",
+ buildFoldStart: "build-fold-start",
+ buildFoldEnd: "build-fold-end",
+ generateDiagnostics: "generate-diagnostics",
+ coreBuild: "core-build",
+ lkg: "LKG",
+ release: "release",
+ lssl: "lssl",
+ lint: "lint",
+ scripts: "scripts",
+ localize: "localize",
+ configureInsiders: "configure-insiders",
+ publishInsiders: "publish-insiders",
+ configureNightly: "configure-nightly",
+ publishNightly: "publish-nightly"
+};
+
+const Paths = {};
+Paths.lkg = "lib";
+Paths.lkgCompiler = "lib/tsc.js";
+Paths.built = "built";
+Paths.builtLocal = "built/local";
+Paths.builtLocalCompiler = "built/local/tsc.js";
+Paths.builtLocalTSServer = "built/local/tsserver.js";
+Paths.builtLocalRun = "built/local/run.js";
+Paths.typesMapOutput = "built/local/typesMap.json";
+Paths.servicesFile = "built/local/typescriptServices.js";
+Paths.servicesDefinitionFile = "built/local/typescriptServices.d.ts";
+Paths.typescriptDefinitionFile = "built/local/typescript.d.ts";
+Paths.typescriptStandaloneDefinitionFile = "built/local/typescript_standalone.d.ts";
+Paths.tsserverLibraryDefinitionFile = "built/local/tsserverlibrary.d.ts";
+Paths.baselines = {};
+Paths.baselines.local = "tests/baselines/local";
+Paths.baselines.localTest262 = "tests/baselines/test262/local";
+Paths.baselines.localRwc = "tests/baselines/rwc/local";
+Paths.baselines.reference = "tests/baselines/reference";
+Paths.baselines.referenceTest262 = "tests/baselines/test262/reference";
+Paths.baselines.referenceRwc = "tests/baselines/rwc/reference";
+Paths.copyright = "CopyrightNotice.txt";
+Paths.thirdParty = "ThirdPartyNoticeText.txt";
+Paths.processDiagnosticMessagesJs = "scripts/processDiagnosticMessages.js";
+Paths.diagnosticInformationMap = "src/compiler/diagnosticInformationMap.generated.ts";
+Paths.diagnosticMessagesJson = "src/compiler/diagnosticMessages.json";
+Paths.diagnosticGeneratedJson = "src/compiler/diagnosticMessages.generated.json";
+Paths.builtDiagnosticGeneratedJson = "built/local/diagnosticMessages.generated.json";
+Paths.lcl = "src/loc/lcl"
+Paths.locLcg = "built/local/enu/diagnosticMessages.generated.json.lcg";
+Paths.generatedLCGFile = path.join(Paths.builtLocal, "enu", "diagnosticMessages.generated.json.lcg");
+Paths.library = "src/lib";
+Paths.srcServer = "src/server";
+Paths.scripts = {};
+Paths.scripts.generateLocalizedDiagnosticMessages = "scripts/generateLocalizedDiagnosticMessages.js";
+Paths.scripts.processDiagnosticMessages = "scripts/processDiagnosticMessages.js";
+Paths.scripts.produceLKG = "scripts/produceLKG.js";
+Paths.scripts.configurePrerelease = "scripts/configurePrerelease.js";
+Paths.packageJson = "package.json";
+Paths.versionFile = "src/compiler/core.ts";
+
+const ConfigFileFor = {
+ tsc: "src/tsc",
+ tsserver: "src/tsserver",
+ runjs: "src/testRunner",
+ lint: "scripts/tslint",
+ scripts: "scripts",
+ all: "src"
+};
+
+const ExpectedLKGFiles = [
+ "tsc.js",
+ "tsserver.js",
+ "typescriptServices.js",
+ "typescriptServices.d.ts",
+ "typescript.js",
+ "typescript.d.ts",
+ "cancellationToken.js",
+ "typingsInstaller.js",
+ "protocol.d.ts",
+ "watchGuard.js"
+];
+
+directory(Paths.builtLocal);
// Local target to build the compiler and services
desc("Builds the full compiler and services");
-task("local", ["build-fold-start", "generate-diagnostics", "lib", tscFile, servicesFile, nodeDefinitionsFile, serverFile, buildProtocolDts, builtGeneratedDiagnosticMessagesJSON, "lssl", "localize", "build-fold-end"]);
+task(TaskNames.local, [
+ TaskNames.buildFoldStart,
+ TaskNames.coreBuild,
+ TaskNames.localize,
+ TaskNames.buildFoldEnd
+]);
-// Local target to build only tsc.js
-desc("Builds only the compiler");
-task("tsc", ["generate-diagnostics", "lib", tscFile]);
+task("default", [TaskNames.local]);
-// Local target to build the compiler and services
-desc("Sets release mode flag");
+const RunTestsPrereqs = [TaskNames.lib, Paths.servicesDefinitionFile, Paths.tsserverLibraryDefinitionFile];
+desc("Runs all the tests in parallel using the built run.js file. Optional arguments are: t[ests]=category1|category2|... d[ebug]=true.");
+task(TaskNames.runtestsParallel, RunTestsPrereqs, function () {
+ tsbuild([ConfigFileFor.runjs], true, () => {
+ runConsoleTests("min", /*parallel*/ true);
+ });
+}, { async: true });
+
+desc("Runs all the tests in parallel using the built run.js file. Optional arguments are: t[ests]=category1|category2|... d[ebug]=true.");
+task(TaskNames.runtests, RunTestsPrereqs, function () {
+ tsbuild([ConfigFileFor.runjs], true, () => {
+ runConsoleTests('mocha-fivemat-progress-reporter', /*runInParallel*/ false);
+ });
+}, { async: true });
+
+desc("Generates a diagnostic file in TypeScript based on an input JSON file");
+task(TaskNames.generateDiagnostics, [Paths.diagnosticInformationMap]);
+
+const libraryTargets = getLibraryTargets();
+desc("Builds the library targets");
+task(TaskNames.lib, libraryTargets);
+
+desc("Builds internal scripts");
+task(TaskNames.scripts, [TaskNames.coreBuild], function() {
+ tsbuild([ConfigFileFor.scripts], true, () => {
+ complete();
+ });
+}, { async: true });
+
+// Makes a new LKG. This target does not build anything, but errors if not all the outputs are present in the built/local directory
+desc("Makes a new LKG out of the built js files");
+task(TaskNames.lkg, [
+ TaskNames.scripts,
+ TaskNames.release,
+ TaskNames.local,
+ Paths.servicesDefinitionFile,
+ Paths.tsserverLibraryDefinitionFile,
+ ...libraryTargets
+], () => {
+ const sizeBefore = getDirSize(Paths.lkg);
+
+ exec(`${host} ${Paths.scripts.produceLKG}`, () => {
+ const sizeAfter = getDirSize(Paths.lkg);
+ if (sizeAfter > (sizeBefore * 1.10)) {
+ throw new Error("The lib folder increased by 10% or more. This likely indicates a bug.");
+ }
+
+ complete();
+ });
+}, { async: true });
+
+desc("Makes the most recent test results the new baseline, overwriting the old baseline");
+task("baseline-accept", function () {
+ acceptBaseline(Paths.baselines.local, Paths.baselines.reference);
+});
+
+desc("Makes the most recent rwc test results the new baseline, overwriting the old baseline");
+task("baseline-accept-rwc", function () {
+ acceptBaseline(Paths.baselines.localRwc, Paths.baselines.referenceRwc);
+});
+
+desc("Makes the most recent test262 test results the new baseline, overwriting the old baseline");
+task("baseline-accept-test262", function () {
+ acceptBaseline(Paths.baselines.localTest262, Paths.baselines.referenceTest262);
+});
+
+desc("Runs tslint on the compiler sources. Optional arguments are: f[iles]=regex");
+task(TaskNames.lint, [TaskNames.buildRules], () => {
+ if (fold.isTravis()) console.log(fold.start("lint"));
+ function lint(project, cb) {
+ const fix = process.env.fix || process.env.f;
+ const cmd = `node node_modules/tslint/bin/tslint --project ${project} --formatters-dir ./built/local/tslint/formatters --format autolinkableStylish${fix ? " --fix" : ""}`;
+ exec(cmd, cb);
+ }
+ lint("scripts/tslint/tsconfig.json", () => lint("src/tsconfig-base.json", () => {
+ if (fold.isTravis()) console.log(fold.end("lint"));
+ complete();
+ }));
+}, { async: true });
+
+desc("Diffs the compiler baselines using the diff tool specified by the 'DIFF' environment variable");
+task('diff', function () {
+ var cmd = `"${getDiffTool()}" ${Paths.baselines.reference} ${Paths.baselines.local}`;
+ exec(cmd);
+}, { async: true });
+
+desc("Diffs the RWC baselines using the diff tool specified by the 'DIFF' environment variable");
+task('diff-rwc', function () {
+ var cmd = `"${getDiffTool()}" ${Paths.baselines.referenceRwc} ${Paths.baselines.localRwc}`;
+ exec(cmd);
+}, { async: true });
+
+task(TaskNames.configureNightly, [TaskNames.scripts], function () {
+ const cmd = `${host} ${Paths.scripts.configurePrerelease} dev ${Paths.packageJson} ${Paths.versionFile}`;
+ exec(cmd, () => complete());
+}, { async: true });
+
+desc("Configure, build, test, and publish the nightly release.");
+task(TaskNames.publishNightly, [TaskNames.coreBuild, TaskNames.configureNightly, TaskNames.lkg, "setDebugMode", "runtests-parallel"], function () {
+ var cmd = "npm publish --tag next";
+ exec(cmd, () => complete());
+}, { async: true });
+
+task(TaskNames.configureInsiders, [TaskNames.scripts], function () {
+ const cmd = `${host} ${Paths.scripts.configurePrerelease} insiders ${Paths.packageJson} ${Paths.versionFile}`;
+ exec(cmd, () => complete());
+}, { async: true });
+
+desc("Configure, build, test, and publish the insiders release.");
+task(TaskNames.publishInsiders, [TaskNames.coreBuild, TaskNames.configureInsiders, TaskNames.lkg, "setDebugMode", "runtests-parallel"], function () {
+ var cmd = "npm publish --tag insiders";
+ exec(cmd, () => complete());
+}, { async: true });
+
+desc("Sets the release mode flag");
task("release", function () {
useDebugMode = false;
});
-// Set the default task to "local"
-task("default", ["local"]);
-
-// Cleans the built directory
-desc("Cleans the compiler output, declare files, and tests");
-task("clean", function () {
- jake.rmRf(builtDirectory);
+desc("Clears the release mode flag");
+task("setDebugMode", function () {
+ useDebugMode = true;
});
-// Generate Markdown spec
-var word2mdJs = path.join(scriptsDirectory, "word2md.js");
-var word2mdTs = path.join(scriptsDirectory, "word2md.ts");
-var specWord = path.join(docDirectory, "TypeScript Language Specification.docx");
-var specMd = path.join(docDirectory, "spec.md");
+desc("Generates localized diagnostic messages");
+task(TaskNames.localize, [Paths.generatedLCGFile]);
-file(word2mdTs);
+desc("Emit the start of the build fold");
+task(TaskNames.buildFoldStart, [], function () {
+ if (fold.isTravis()) console.log(fold.start("build"));
+});
-// word2md script
-compileFile(word2mdJs,
- [word2mdTs],
- [word2mdTs],
- [],
- /*useBuiltCompiler*/ false,
- {
- lib: "scripthost,es5"
- });
+desc("Emit the end of the build fold");
+task(TaskNames.buildFoldEnd, [], function () {
+ if (fold.isTravis()) console.log(fold.end("build"));
+});
-// The generated spec.md; built for the 'generate-spec' task
-file(specMd, [word2mdJs, specWord], function () {
- var specWordFullPath = path.resolve(specWord);
- var specMDFullPath = path.resolve(specMd);
- var cmd = "cscript //nologo " + word2mdJs + ' "' + specWordFullPath + '" ' + '"' + specMDFullPath + '"';
- console.log(cmd);
- child_process.exec(cmd, function () {
+desc("Compiles tslint rules to js");
+task(TaskNames.buildRules, [], function () {
+ tsbuild(ConfigFileFor.lint, false, () => complete());
+}, { async: true });
+
+desc("Cleans the compiler output, declare files, and tests");
+task(TaskNames.clean, function () {
+ jake.rmRf(Paths.built);
+});
+
+desc("Generates the LCG file for localization");
+task("localize", [Paths.generatedLCGFile]);
+
+task(TaskNames.coreBuild, [Paths.diagnosticInformationMap, TaskNames.lib], function () {
+ tsbuild(ConfigFileFor.all, true, () => {
complete();
});
}, { async: true });
+file(Paths.diagnosticMessagesJson);
-desc("Generates a Markdown version of the Language Specification");
-task("generate-spec", [specMd]);
-
-
-// Makes a new LKG. This target does not build anything, but errors if not all the outputs are present in the built/local directory
-desc("Makes a new LKG out of the built js files");
-task("LKG", ["clean", "release", "local"].concat(libraryTargets), () => {
- const sizeBefore = getDirSize(LKGDirectory);
- var expectedFiles = [tscFile, servicesFile, serverFile, nodePackageFile, nodeDefinitionsFile, standaloneDefinitionsFile, tsserverLibraryFile, tsserverLibraryDefinitionFile, cancellationTokenFile, typingsInstallerFile, buildProtocolDts, watchGuardFile].
- concat(libraryTargets).
- concat(localizationTargets);
- var missingFiles = expectedFiles.filter(f => !fs.existsSync(f));
- if (missingFiles.length > 0) {
- fail(new Error("Cannot replace the LKG unless all built targets are present in directory " + builtLocalDirectory +
- ". The following files are missing:\n" + missingFiles.join("\n")));
+file(Paths.typesMapOutput, /** @type {*} */(function () {
+ var content = readFileSync(path.join(Paths.srcServer, 'typesMap.json'));
+ // Validate that it's valid JSON
+ try {
+ JSON.parse(content);
+ } catch (e) {
+ console.log("Parse error in typesMap.json: " + e);
}
- // Copy all the targets into the LKG directory
- jake.mkdirP(LKGDirectory);
- expectedFiles.forEach(f => jake.cpR(f, LKGDirectory));
+ fs.writeFileSync(Paths.typesMapOutput, content);
+}));
- const sizeAfter = getDirSize(LKGDirectory);
- if (sizeAfter > (sizeBefore * 1.10)) {
- throw new Error("The lib folder increased by 10% or more. This likely indicates a bug.");
+file(Paths.builtDiagnosticGeneratedJson, [Paths.diagnosticGeneratedJson], function () {
+ if (fs.existsSync(Paths.builtLocal)) {
+ jake.cpR(Paths.diagnosticGeneratedJson, Paths.builtDiagnosticGeneratedJson);
}
});
-// Test directory
-directory(builtLocalDirectory);
+// Localized diagnostics
+file(Paths.generatedLCGFile, [TaskNames.scripts, Paths.diagnosticInformationMap, Paths.diagnosticGeneratedJson], function () {
+ const cmd = `${host} ${Paths.scripts.generateLocalizedDiagnosticMessages} ${Paths.lcl} ${Paths.builtLocal} ${Paths.diagnosticGeneratedJson}`
+ exec(cmd, complete);
+}, { async: true });
-// Task to build the tests infrastructure using the built compiler
-var run = path.join(builtLocalDirectory, "run.js");
-compileFile(
- /*outFile*/ run,
- /*source*/ harnessSources,
- /*prereqs*/[builtLocalDirectory, tscFile, tsserverLibraryFile].concat(libraryTargets).concat(servicesSources).concat(harnessSources),
- /*prefixes*/[],
- /*useBuiltCompiler:*/ true,
- /*opts*/ { types: ["node", "mocha", "chai"], lib: "es6" });
-var internalTests = "internal/";
-
-var localBaseline = "tests/baselines/local/";
-var refBaseline = "tests/baselines/reference/";
-
-var localRwcBaseline = path.join(internalTests, "baselines/rwc/local");
-var refRwcBaseline = path.join(internalTests, "baselines/rwc/reference");
-
-var localTest262Baseline = path.join(internalTests, "baselines/test262/local");
-var refTest262Baseline = path.join(internalTests, "baselines/test262/reference");
-
-desc("Builds the test infrastructure using the built compiler");
-task("tests", ["local", run].concat(libraryTargets));
-
-function exec(cmd, completeHandler, errorHandler) {
- var ex = jake.createExec([cmd], /** @type {jake.ExecOptions} */({ windowsVerbatimArguments: true, interactive: true }));
- // Add listeners for output and error
- ex.addListener("stdout", function (output) {
- process.stdout.write(output);
+// The generated diagnostics map; built for the compiler and for the 'generate-diagnostics' task
+file(Paths.diagnosticInformationMap, [Paths.diagnosticMessagesJson], function () {
+ tsbuild(ConfigFileFor.scripts, true, () => {
+ const cmd = `${host} ${Paths.scripts.processDiagnosticMessages} ${Paths.diagnosticMessagesJson}`;
+ exec(cmd, complete);
});
- ex.addListener("stderr", function (error) {
- process.stderr.write(error);
- });
- ex.addListener("cmdEnd", function () {
- if (completeHandler) {
- completeHandler();
- }
+}, { async: true });
+
+// tsserverlibrary.d.ts
+file(Paths.tsserverLibraryDefinitionFile, [TaskNames.coreBuild], function() {
+ const sources = ["compiler.d.ts", "jsTyping.d.ts", "services.d.ts", "server.d.ts"].map(f => path.join(Paths.builtLocal, f));
+ let output = "";
+ for (const f of sources) {
+ output = output + "\n" + removeConstModifierFromEnumDeclarations(readFileSync(f));
+ }
+ output = output + "\nexport = ts;\nexport as namespace ts;";
+ fs.writeFileSync(Paths.tsserverLibraryDefinitionFile, output, { encoding: "utf-8" });
+});
+
+// typescriptservices.d.ts
+file(Paths.servicesDefinitionFile, [TaskNames.coreBuild], function() {
+ // Generate a config file
+ const files = [];
+ recur(`src/services/tsconfig.json`);
+
+ const config = {
+ extends: "../../src/tsconfig-base",
+ compilerOptions: {
+ "stripInternal": true,
+ "outFile": "typescriptServices.js"
+ },
+ files
+ };
+
+ const configFilePath = `built/local/typescriptServices.tsconfig.json`;
+ fs.writeFileSync(configFilePath, JSON.stringify(config, undefined, 2));
+ tsbuild(configFilePath, false, () => {
+ const servicesContent = readFileSync(Paths.servicesDefinitionFile);
+ const servicesContentWithoutConstEnums = removeConstModifierFromEnumDeclarations(servicesContent);
+ fs.writeFileSync(Paths.servicesDefinitionFile, servicesContentWithoutConstEnums);
+
+ // Also build typescript.d.ts
+ fs.writeFileSync(Paths.typescriptDefinitionFile, servicesContentWithoutConstEnums + "\r\nexport = ts", { encoding: "utf-8" });
+ // And typescript_standalone.d.ts
+ fs.writeFileSync(Paths.typescriptStandaloneDefinitionFile, servicesContentWithoutConstEnums.replace(/declare (namespace|module) ts(\..+)? \{/g, 'declare module "typescript" {'), { encoding: "utf-8"});
+
complete();
});
- ex.addListener("error", function (e, status) {
- if (errorHandler) {
- errorHandler(e, status);
+
+ function recur(configPath) {
+ const cfgFile = readJson(configPath);
+ if (cfgFile.references) {
+ for (const ref of cfgFile.references) {
+ recur(path.join(path.dirname(configPath), ref.path, "tsconfig.json"));
+ }
}
- else {
- fail("Process exited with code " + status);
+ for (const file of cfgFile.files) {
+ files.push(path.join(`../../`, path.dirname(configPath), file));
}
+ }
+}, { async: true });
+
+function getLibraryTargets() {
+ /** @type {{ libs: string[], paths?: Record, sources?: Record }} */
+ const libraries = readJson("./src/lib/libs.json");
+ return libraries.libs.map(function (lib) {
+ const relativeSources = ["header.d.ts"].concat(libraries.sources && libraries.sources[lib] || [lib + ".d.ts"]);
+ const relativeTarget = libraries.paths && libraries.paths[lib] || ("lib." + lib + ".d.ts");
+ const sources = [Paths.copyright].concat(relativeSources.map(s => path.join(Paths.library, s)));
+ const target = path.join(Paths.builtLocal, relativeTarget);
+ file(target, [Paths.builtLocal].concat(sources), function () {
+ concatenateFiles(target, sources);
+ });
+ return target;
});
-
- ex.run();
-}
-
-const del = require("del");
-function cleanTestDirs() {
- // Clean the local baselines directory
- if (fs.existsSync(localBaseline)) {
- del.sync(localBaseline);
- }
-
- // Clean the local Rwc baselines directory
- if (fs.existsSync(localRwcBaseline)) {
- del.sync(localRwcBaseline);
- }
-
- jake.mkdirP(localRwcBaseline);
- jake.mkdirP(localTest262Baseline);
- jake.mkdirP(localBaseline);
-}
-
-// used to pass data from jake command line directly to run.js
-function writeTestConfigFile(tests, runners, light, taskConfigsFolder, workerCount, stackTraceLimit, colors, testTimeout) {
- var testConfigContents = JSON.stringify({
- runners: runners ? runners.split(",") : undefined,
- test: tests ? [tests] : undefined,
- light: light,
- workerCount: workerCount,
- taskConfigsFolder: taskConfigsFolder,
- stackTraceLimit: stackTraceLimit,
- noColor: !colors,
- timeout: testTimeout
- });
- fs.writeFileSync('test.config', testConfigContents);
-}
-
-function deleteTemporaryProjectOutput() {
- if (fs.existsSync(path.join(localBaseline, "projectOutput/"))) {
- jake.rmRf(path.join(localBaseline, "projectOutput/"));
- }
}
function runConsoleTests(defaultReporter, runInParallel) {
@@ -761,22 +391,29 @@ function runConsoleTests(defaultReporter, runInParallel) {
cleanTestDirs();
}
- var debug = process.env.debug || process.env["debug-brk"] || process.env.d;
- var inspect = process.env.inspect || process.env["inspect-brk"] || process.env.i;
- var testTimeout = process.env.timeout || defaultTestTimeout;
- var runners = process.env.runners || process.env.runner || process.env.ru;
- var tests = process.env.test || process.env.tests || process.env.t;
- var light = process.env.light === undefined || process.env.light !== "false";
- var stackTraceLimit = process.env.stackTraceLimit;
- var testConfigFile = 'test.config';
+ let testTimeout = process.env.timeout || defaultTestTimeout;
+ const debug = process.env.debug || process.env["debug-brk"] || process.env.d;
+ const inspect = process.env.inspect || process.env["inspect-brk"] || process.env.i;
+ const runners = process.env.runners || process.env.runner || process.env.ru;
+ const tests = process.env.test || process.env.tests || process.env.t;
+ const light = process.env.light === undefined || process.env.light !== "false";
+ const stackTraceLimit = process.env.stackTraceLimit;
+ const colorsFlag = process.env.color || process.env.colors;
+ const colors = colorsFlag !== "false" && colorsFlag !== "0";
+ const reporter = process.env.reporter || process.env.r || defaultReporter;
+ const bail = process.env.bail || process.env.b;
+ const lintFlag = process.env.lint !== 'false';
+ const testConfigFile = 'test.config';
+
if (fs.existsSync(testConfigFile)) {
fs.unlinkSync(testConfigFile);
}
- var workerCount, taskConfigsFolder;
+
+ let workerCount, taskConfigsFolder;
if (runInParallel) {
// generate name to store task configuration files
- var prefix = os.tmpdir() + "/ts-tests";
- var i = 1;
+ const prefix = os.tmpdir() + "/ts-tests";
+ let i = 1;
do {
taskConfigsFolder = prefix + i;
i++;
@@ -794,88 +431,65 @@ function runConsoleTests(defaultReporter, runInParallel) {
writeTestConfigFile(tests, runners, light, taskConfigsFolder, workerCount, stackTraceLimit, colors, testTimeout);
}
- var colorsFlag = process.env.color || process.env.colors;
- var colors = colorsFlag !== "false" && colorsFlag !== "0";
- var reporter = process.env.reporter || process.env.r || defaultReporter;
- var bail = process.env.bail || process.env.b;
- var lintFlag = process.env.lint !== 'false';
-
// timeout normally isn't necessary but Travis-CI has been timing out on compiler baselines occasionally
// default timeout is 2sec which really should be enough, but maybe we just need a small amount longer
if (!runInParallel) {
- var startTime = mark();
+ var startTime = Travis.mark();
var args = [];
args.push("-R", reporter);
- if (tests) {
- args.push("-g", `"${tests}"`);
- }
- if (colors) {
- args.push("--colors");
- }
- else {
- args.push("--no-colors");
- }
- if (bail) {
- args.push("--bail");
- }
+ if (tests) args.push("-g", `"${tests}"`);
+ args.push(colors ? "--colors" : "--no-colors");
+ if (bail) args.push("--bail");
if (inspect) {
args.unshift("--inspect-brk");
- }
- else if (debug) {
- args.unshift("--debug-brk");
- }
- else {
+ } else {
args.push("-t", testTimeout);
}
- args.push(run);
+ args.push(Paths.builtLocalRun);
var cmd = "mocha " + args.join(" ");
- console.log(cmd);
-
var savedNodeEnv = process.env.NODE_ENV;
process.env.NODE_ENV = "development";
exec(cmd, function () {
process.env.NODE_ENV = savedNodeEnv;
- measure(startTime);
- runLinter();
+ Travis.measure(startTime);
+ runLinterAndComplete();
finish();
}, function (e, status) {
process.env.NODE_ENV = savedNodeEnv;
- measure(startTime);
+ Travis.measure(startTime);
finish(status);
});
-
}
else {
var savedNodeEnv = process.env.NODE_ENV;
process.env.NODE_ENV = "development";
- var startTime = mark();
- exec(host + " " + run, function () {
+ var startTime = Travis.mark();
+ const cmd = `${host} ${Paths.builtLocalRun}`;
+ exec(cmd, function () {
+ // Tests succeeded; run 'lint' task
process.env.NODE_ENV = savedNodeEnv;
- measure(startTime);
- runLinter();
- finish();
+ Travis.measure(startTime);
+ runLinterAndComplete();
}, function (e, status) {
+ // Tests failed
process.env.NODE_ENV = savedNodeEnv;
- measure(startTime);
+ Travis.measure(startTime);
finish(status);
});
}
- function failWithStatus(status) {
- fail("Process exited with code " + status);
- }
-
function finish(errorStatus) {
deleteTemporaryProjectOutput();
if (errorStatus !== undefined) {
- failWithStatus(errorStatus);
+ fail("Process exited with code " + errorStatus);
}
else {
complete();
}
}
- function runLinter() {
+
+ function runLinterAndComplete() {
if (!lintFlag || dirty) {
return;
}
@@ -885,97 +499,128 @@ function runConsoleTests(defaultReporter, runInParallel) {
});
lint.invoke();
}
+
+ function deleteTemporaryProjectOutput() {
+ if (fs.existsSync(path.join(Paths.baselines.local, "projectOutput/"))) {
+ jake.rmRf(path.join(Paths.baselines.local, "projectOutput/"));
+ }
+ }
}
-desc("Runs all the tests in parallel using the built run.js file. Optional arguments are: t[ests]=category1|category2|... d[ebug]=true.");
-task("runtests-parallel", ["build-rules", "tests", builtLocalDirectory], function () {
- runConsoleTests('min', /*runInParallel*/ true);
-}, { async: true });
-
-desc("Runs the tests using the built run.js file. Optional arguments are: t[ests]=regex r[eporter]=[list|spec|json|] d[ebug]=true color[s]=false lint=true bail=false dirty=false.");
-task("runtests", ["build-rules", "tests", builtLocalDirectory], function() {
- runConsoleTests('mocha-fivemat-progress-reporter', /*runInParallel*/ false);
-}, { async: true });
-
-desc("Generates code coverage data via instanbul");
-task("generate-code-coverage", ["tests", builtLocalDirectory], function () {
- var testTimeout = process.env.timeout || defaultTestTimeout;
- var cmd = 'istanbul cover node_modules/mocha/bin/_mocha -- -R min -t ' + testTimeout + ' ' + run;
- console.log(cmd);
- exec(cmd);
-}, { async: true });
-
-// Browser tests
-var nodeServerOutFile = "tests/webTestServer.js";
-var nodeServerInFile = "tests/webTestServer.ts";
-compileFile(nodeServerOutFile, [nodeServerInFile], [builtLocalDirectory, tscFile], [], /*useBuiltCompiler:*/ true, { noOutFile: true, lib: "es6" });
-
-desc("Runs browserify on run.js to produce a file suitable for running tests in the browser");
-task("browserify", [], function() {
- // Shell out to `gulp`, since we do the work to handle sourcemaps correctly w/o inline maps there
- var cmd = 'gulp browserify --silent';
- exec(cmd);
-}, { async: true });
-
-desc("Runs the tests using the built run.js file like 'jake runtests'. Syntax is jake runtests-browser. Additional optional parameters tests=[regex], browser=[chrome|IE]");
-task("runtests-browser", ["browserify", nodeServerOutFile], function () {
- cleanTestDirs();
- host = "node";
- var browser = process.env.browser || process.env.b || (os.platform() === "win32" ? "edge" : "chrome");
- var runners = process.env.runners || process.env.runner || process.env.ru;
- var tests = process.env.test || process.env.tests || process.env.t;
- var light = process.env.light || false;
- var testConfigFile = 'test.config';
- if (fs.existsSync(testConfigFile)) {
- fs.unlinkSync(testConfigFile);
- }
- if (tests || runners || light) {
- writeTestConfigFile(tests, runners, light);
- }
-
- tests = tests ? tests : '';
- var cmd = host + " tests/webTestServer.js " + browser + " " + JSON.stringify(tests);
- console.log(cmd);
- exec(cmd);
-}, { async: true });
-
-function getDiffTool() {
- var program = process.env['DIFF'];
- if (!program) {
- fail("Add the 'DIFF' environment variable to the path of the program you want to use.");
- }
- return program;
+// used to pass data from jake command line directly to run.js
+function writeTestConfigFile(tests, runners, light, taskConfigsFolder, workerCount, stackTraceLimit, colors, testTimeout) {
+ var testConfigContents = JSON.stringify({
+ runners: runners ? runners.split(",") : undefined,
+ test: tests ? [tests] : undefined,
+ light: light,
+ workerCount: workerCount,
+ taskConfigsFolder: taskConfigsFolder,
+ stackTraceLimit: stackTraceLimit,
+ noColor: !colors,
+ timeout: testTimeout
+ });
+ fs.writeFileSync('test.config', testConfigContents, { encoding: "utf-8" });
}
-// Baseline Diff
-desc("Diffs the compiler baselines using the diff tool specified by the 'DIFF' environment variable");
-task('diff', function () {
- var cmd = '"' + getDiffTool() + '" ' + refBaseline + ' ' + localBaseline;
+function cleanTestDirs() {
+ // Clean the local baselines directory
+ if (fs.existsSync(Paths.baselines.local)) {
+ del.sync(Paths.baselines.local);
+ }
+
+ // Clean the local Rwc baselines directory
+ if (fs.existsSync(Paths.baselines.localRwc)) {
+ del.sync(Paths.baselines.localRwc);
+ }
+
+ jake.mkdirP(Paths.baselines.local);
+ jake.mkdirP(Paths.baselines.localTest262);
+}
+
+function tsbuild(tsconfigPath, useLkg = true, done = undefined) {
+ const startCompileTime = Travis.mark();
+ const compilerPath = useLkg ? Paths.lkgCompiler : Paths.builtLocalCompiler;
+ const cmd = `${host} ${compilerPath} -b ${Array.isArray(tsconfigPath) ? tsconfigPath.join(" ") : tsconfigPath}`;
+
+ exec(cmd, () => {
+ // Success
+ Travis.measure(startCompileTime);
+ done ? done() : complete();
+ }, () => {
+ // Fail
+ Travis.measure(startCompileTime);
+ fail(`Compilation of ${tsconfigPath} unsuccessful`);
+ });
+}
+
+const Travis = {
+ mark() {
+ if (!fold.isTravis()) return;
+ var stamp = process.hrtime();
+ var id = Math.floor(Math.random() * 0xFFFFFFFF).toString(16);
+ console.log("travis_time:start:" + id + "\r");
+ return {
+ stamp: stamp,
+ id: id
+ };
+ },
+ measure(marker) {
+ if (!fold.isTravis()) return;
+ var diff = process.hrtime(marker.stamp);
+ var total = [marker.stamp[0] + diff[0], marker.stamp[1] + diff[1]];
+ console.log("travis_time:end:" + marker.id + ":start=" + toNs(marker.stamp) + ",finish=" + toNs(total) + ",duration=" + toNs(diff) + "\r");
+ }
+};
+
+function buildLocalizedTargets() {
+ /**
+ * The localization target produces the two following transformations:
+ * 1. 'src\loc\lcl\\diagnosticMessages.generated.json.lcl' => 'built\local\\diagnosticMessages.generated.json'
+ * convert localized resources into a .json file the compiler can understand
+ * 2. 'src\compiler\diagnosticMessages.generated.json' => 'built\local\ENU\diagnosticMessages.generated.json.lcg'
+ * generate the lcg file (source of messages to localize) from the diagnosticMessages.generated.json
+ */
+ const localizationTargets = ["cs", "de", "es", "fr", "it", "ja", "ko", "pl", "pt-br", "ru", "tr", "zh-cn", "zh-tw"]
+ .map(f => path.join(Paths.builtLocal,f))
+ .concat(path.dirname(Paths.generatedLCGFile));
+}
+
+function toNs(diff) {
+ return diff[0] * 1e9 + diff[1];
+}
+
+function exec(cmd, successHandler, errorHandler) {
+ var ex = jake.createExec([cmd], /** @type {jake.ExecOptions} */({ windowsVerbatimArguments: true, interactive: true }));
+ // Add listeners for output and error
+ ex.addListener("stdout", function (output) {
+ process.stdout.write(output);
+ });
+ ex.addListener("stderr", function (error) {
+ process.stderr.write(error);
+ });
+ ex.addListener("cmdEnd", function () {
+ if (successHandler) {
+ successHandler();
+ }
+ });
+ ex.addListener("error", function (e, status) {
+ if (errorHandler) {
+ errorHandler(e, status);
+ }
+ else {
+ fail("Process exited with code " + status);
+ }
+ });
+
console.log(cmd);
- exec(cmd);
-}, { async: true });
-
-desc("Diffs the RWC baselines using the diff tool specified by the 'DIFF' environment variable");
-task('diff-rwc', function () {
- var cmd = '"' + getDiffTool() + '" ' + refRwcBaseline + ' ' + localRwcBaseline;
- console.log(cmd);
- exec(cmd);
-}, { async: true });
-
-desc("Builds the test sources and automation in debug mode");
-task("tests-debug", ["setDebugMode", "tests"]);
-
-
-// Makes the test results the new baseline
-desc("Makes the most recent test results the new baseline, overwriting the old baseline");
-task("baseline-accept", function () {
- acceptBaseline(localBaseline, refBaseline);
-});
+ ex.run();
+}
function acceptBaseline(sourceFolder, targetFolder) {
console.log('Accept baselines from ' + sourceFolder + ' to ' + targetFolder);
var deleteEnding = '.delete';
+ jake.mkdirP(targetFolder);
acceptBaselineFolder(sourceFolder, targetFolder);
function acceptBaselineFolder(sourceFolder, targetFolder) {
@@ -1006,124 +651,86 @@ function acceptBaseline(sourceFolder, targetFolder) {
}
}
-desc("Makes the most recent rwc test results the new baseline, overwriting the old baseline");
-task("baseline-accept-rwc", function () {
- acceptBaseline(localRwcBaseline, refRwcBaseline);
-});
-
-desc("Makes the most recent test262 test results the new baseline, overwriting the old baseline");
-task("baseline-accept-test262", function () {
- acceptBaseline(localTest262Baseline, refTest262Baseline);
-});
-
-
-// Webhost
-var webhostPath = "tests/webhost/webtsc.ts";
-var webhostJsPath = "tests/webhost/webtsc.js";
-compileFile(webhostJsPath, [webhostPath], [tscFile, webhostPath].concat(libraryTargets), [], /*useBuiltCompiler*/true);
-
-desc("Builds the tsc web host");
-task("webhost", [webhostJsPath], function () {
- jake.cpR(path.join(builtLocalDirectory, "lib.d.ts"), "tests/webhost/", { silent: true });
-});
-
-// Perf compiler
-var perftscPath = "tests/perftsc.ts";
-var perftscJsPath = "built/local/perftsc.js";
-compileFile(perftscJsPath, [perftscPath], [tscFile, perftscPath, "tests/perfsys.ts"].concat(libraryTargets), [], /*useBuiltCompiler*/ true);
-desc("Builds augmented version of the compiler for perf tests");
-task("perftsc", [perftscJsPath]);
-
-// Instrumented compiler
-var loggedIOpath = harnessDirectory + 'loggedIO.ts';
-var loggedIOJsPath = builtLocalDirectory + 'loggedIO.js';
-file(loggedIOJsPath, [builtLocalDirectory, loggedIOpath], function () {
- var temp = builtLocalDirectory + 'temp';
- jake.mkdirP(temp);
- var options = "--target es5 --lib es6 --types --outdir " + temp + ' ' + loggedIOpath;
- var cmd = host + " " + LKGDirectory + compilerFilename + " " + options + " ";
- console.log(cmd + "\n");
- var ex = jake.createExec([cmd]);
- ex.addListener("cmdEnd", function () {
- fs.renameSync(temp + '/harness/loggedIO.js', loggedIOJsPath);
- jake.rmRf(temp);
- complete();
- });
- ex.run();
-}, { async: true });
-
-var instrumenterPath = harnessDirectory + 'instrumenter.ts';
-var instrumenterJsPath = builtLocalDirectory + 'instrumenter.js';
-compileFile(instrumenterJsPath, [instrumenterPath], [tscFile, instrumenterPath].concat(libraryTargets), [], /*useBuiltCompiler*/ true, { lib: "es6", types: ["node"], noOutFile: true, outDir: builtLocalDirectory });
-
-desc("Builds an instrumented tsc.js - run with test=[testname]");
-task('tsc-instrumented', [loggedIOJsPath, instrumenterJsPath, tscFile], function () {
- var test = process.env.test || process.env.tests || process.env.t || "iocapture";
- var cmd = host + ' ' + instrumenterJsPath + " record " + test + " " + builtLocalDirectory + compilerFilename;
- console.log(cmd);
- var ex = jake.createExec([cmd]);
- ex.addListener("cmdEnd", function () {
- complete();
- });
- ex.run();
-}, { async: true });
-
-desc("Updates the sublime plugin's tsserver");
-task("update-sublime", ["local", serverFile], function () {
- jake.cpR(serverFile, "../TypeScript-Sublime-Plugin/tsserver/");
- jake.cpR(serverFile + ".map", "../TypeScript-Sublime-Plugin/tsserver/");
-});
-
-var tslintRuleDir = "scripts/tslint/rules";
-var tslintRules = fs.readdirSync(tslintRuleDir);
-var tslintRulesFiles = tslintRules.map(function (p) {
- return path.join(tslintRuleDir, p);
-});
-var tslintRulesOutFiles = tslintRules.map(function (p) {
- return path.join(builtLocalDirectory, "tslint/rules", p.replace(".ts", ".js"));
-});
-var tslintFormattersDir = "scripts/tslint/formatters";
-var tslintFormatters = [
- "autolinkableStylishFormatter",
-];
-var tslintFormatterFiles = tslintFormatters.map(function (p) {
- return path.join(tslintFormattersDir, p + ".ts");
-});
-var tslintFormattersOutFiles = tslintFormatters.map(function (p) {
- return path.join(builtLocalDirectory, "tslint/formatters", p + ".js");
-});
-desc("Compiles tslint rules to js");
-task("build-rules", ["build-rules-start"].concat(tslintRulesOutFiles).concat(tslintFormattersOutFiles).concat(["build-rules-end"]));
-tslintRulesFiles.forEach(function (ruleFile, i) {
- compileFile(tslintRulesOutFiles[i], [ruleFile], [ruleFile], [], /*useBuiltCompiler*/ false,
- { noOutFile: true, generateDeclarations: false, outDir: path.join(builtLocalDirectory, "tslint/rules"), lib: "es6" });
-});
-tslintFormatterFiles.forEach(function (ruleFile, i) {
- compileFile(tslintFormattersOutFiles[i], [ruleFile], [ruleFile], [], /*useBuiltCompiler*/ false,
- { noOutFile: true, generateDeclarations: false, outDir: path.join(builtLocalDirectory, "tslint/formatters"), lib: "es6" });
-});
-
-desc("Emit the start of the build-rules fold");
-task("build-rules-start", [], function () {
- if (fold.isTravis()) console.log(fold.start("build-rules"));
-});
-
-desc("Emit the end of the build-rules fold");
-task("build-rules-end", [], function () {
- if (fold.isTravis()) console.log(fold.end("build-rules"));
-});
-
-desc("Runs tslint on the compiler sources. Optional arguments are: f[iles]=regex");
-task("lint", ["build-rules"], () => {
- if (fold.isTravis()) console.log(fold.start("lint"));
- function lint(project, cb) {
- const fix = process.env.fix || process.env.f;
- const cmd = `node node_modules/tslint/bin/tslint --project ${project} --formatters-dir ./built/local/tslint/formatters --format autolinkableStylish${fix ? " --fix" : ""}`;
- console.log("Linting: " + cmd);
- jake.exec([cmd], cb, /** @type {jake.ExecOptions} */({ interactive: true, windowsVerbatimArguments: true }));
+/** @param jsonPath {string} */
+function readJson(jsonPath) {
+ const jsonText = readFileSync(jsonPath);
+ const result = ts.parseConfigFileTextToJson(jsonPath, jsonText);
+ if (result.error) {
+ reportDiagnostics([result.error]);
+ throw new Error("An error occurred during parse.");
}
- lint("scripts/tslint/tsconfig.json", () => lint("src/tsconfig-base.json", () => {
- if (fold.isTravis()) console.log(fold.end("lint"));
- complete();
- }));
-});
+ return result.config;
+}
+
+/** @param diagnostics {ts.Diagnostic[]} */
+function reportDiagnostics(diagnostics) {
+ console.log(diagnosticsToString(diagnostics, process.stdout.isTTY));
+}
+
+/**
+ * @param diagnostics {ts.Diagnostic[]}
+ * @param [pretty] {boolean}
+ */
+function diagnosticsToString(diagnostics, pretty) {
+ const host = {
+ getCurrentDirectory() { return process.cwd(); },
+ getCanonicalFileName(fileName) { return fileName; },
+ getNewLine() { return os.EOL; }
+ };
+ return pretty ? ts.formatDiagnosticsWithColorAndContext(diagnostics, host) :
+ ts.formatDiagnostics(diagnostics, host);
+}
+
+/**
+ * Concatenate a list of sourceFiles to a destinationFile
+ * @param {string} destinationFile
+ * @param {string[]} sourceFiles
+ * @param {string} extraContent
+ */
+function concatenateFiles(destinationFile, sourceFiles, extraContent) {
+ var temp = "temptemp";
+ // append all files in sequence
+ var text = "";
+ for (var i = 0; i < sourceFiles.length; i++) {
+ if (!fs.existsSync(sourceFiles[i])) {
+ fail(sourceFiles[i] + " does not exist!");
+ }
+ if (i > 0) { text += "\n\n"; }
+ text += readFileSync(sourceFiles[i]).replace(/\r?\n/g, "\n");
+ }
+ if (extraContent) {
+ text += extraContent;
+ }
+ fs.writeFileSync(temp, text);
+ // Move the file to the final destination
+ fs.renameSync(temp, destinationFile);
+}
+
+function appendToFile(path, content) {
+ fs.writeFileSync(path, readFileSync(path) + "\r\n" + content);
+}
+
+/**
+ *
+ * @param {string} path
+ * @returns string
+ */
+function readFileSync(path) {
+ return fs.readFileSync(path, { encoding: "utf-8" });
+}
+
+function getDiffTool() {
+ var program = process.env['DIFF'];
+ if (!program) {
+ fail("Add the 'DIFF' environment variable to the path of the program you want to use.");
+ }
+ return program;
+}
+
+/**
+ * Replaces const enum declarations with non-const enums
+ * @param {string} text
+ */
+function removeConstModifierFromEnumDeclarations(text) {
+ return text.replace(/^(\s*)(export )?const enum (\S+) {(\s*)$/gm, '$1$2enum $3 {$4');
+}
diff --git a/README.md b/README.md
index 3200498b0cf..68b589efcce 100644
--- a/README.md
+++ b/README.md
@@ -61,29 +61,29 @@ Change to the TypeScript directory:
cd TypeScript
```
-Install Gulp tools and dev dependencies:
+Install Jake tools and dev dependencies:
```bash
-npm install -g gulp
+npm install -g jake
npm install
```
Use one of the following to build and test:
```
-gulp local # Build the compiler into built/local
-gulp clean # Delete the built compiler
-gulp LKG # Replace the last known good with the built one.
+jake local # Build the compiler into built/local
+jake clean # Delete the built compiler
+jake LKG # Replace the last known good with the built one.
# Bootstrapping step to be executed when the built compiler reaches a stable state.
-gulp tests # Build the test infrastructure using the built compiler.
-gulp runtests # Run tests using the built compiler and test infrastructure.
+jake tests # Build the test infrastructure using the built compiler.
+jake runtests # Run tests using the built compiler and test infrastructure.
# You can override the host or specify a test for this command.
# Use host= or tests=.
-gulp runtests-browser # Runs the tests using the built run.js file. Syntax is gulp runtests. Optional
+jake runtests-browser # Runs the tests using the built run.js file. Syntax is jake runtests. Optional
parameters 'host=', 'tests=[regex], reporter=[list|spec|json|]'.
-gulp baseline-accept # This replaces the baseline test results with the results obtained from gulp runtests.
-gulp lint # Runs tslint on the TypeScript source.
-gulp help # List the above commands.
+jake baseline-accept # This replaces the baseline test results with the results obtained from jake runtests.
+jake lint # Runs tslint on the TypeScript source.
+jake help # List the above commands.
```
diff --git a/lib/.gitattributes b/lib/.gitattributes
index fcadb2cf979..07764a78d98 100644
--- a/lib/.gitattributes
+++ b/lib/.gitattributes
@@ -1 +1 @@
-* text eol=lf
+* text eol=lf
\ No newline at end of file
diff --git a/lib/cancellationToken.js b/lib/cancellationToken.js
index 0e37b0689e0..d63145f3fc5 100644
--- a/lib/cancellationToken.js
+++ b/lib/cancellationToken.js
@@ -13,6 +13,7 @@ See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
+
"use strict";
var fs = require("fs");
function pipeExists(name) {
@@ -69,3 +70,4 @@ function createCancellationToken(args) {
}
}
module.exports = createCancellationToken;
+//# sourceMappingURL=cancellationToken.js.map
\ No newline at end of file
diff --git a/lib/cs/diagnosticMessages.generated.json b/lib/cs/diagnosticMessages.generated.json
index bd5bf11f505..7984aafd56b 100644
--- a/lib/cs/diagnosticMessages.generated.json
+++ b/lib/cs/diagnosticMessages.generated.json
@@ -208,6 +208,8 @@
"Cannot_find_a_tsconfig_json_file_at_the_specified_directory_Colon_0_5057": "Soubor tsconfig.json nejde najít v zadaném adresáři: {0}",
"Cannot_find_global_type_0_2318": "Globální typ {0} se nenašel.",
"Cannot_find_global_value_0_2468": "Globální hodnota {0} se nenašla.",
+ "Cannot_find_lib_definition_for_0_2726": "Nepovedlo se najít definici knihovny pro {0}.",
+ "Cannot_find_lib_definition_for_0_Did_you_mean_1_2727": "Nepovedlo se najít definici knihovny pro {0}. Neměli jste na mysli spíš {1}?",
"Cannot_find_module_0_2307": "Nenašel se modul {0}.",
"Cannot_find_name_0_2304": "Název {0} se nenašel.",
"Cannot_find_name_0_Did_you_mean_1_2552": "Nepovedlo se najít název {0}. Měli jste na mysli {1}?",
@@ -941,6 +943,7 @@
"Unexpected_end_of_text_1126": "Neočekávaný konec textu",
"Unexpected_token_1012": "Neočekávaný token",
"Unexpected_token_A_constructor_method_accessor_or_property_was_expected_1068": "Neočekávaný token. Očekával se konstruktor, metoda, přístupový objekt nebo vlastnost.",
+ "Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces_1069": "Neočekávaný token. Očekával se název parametru typu bez složených závorek.",
"Unexpected_token_expected_1179": "Neočekávaný token. Očekává se znak {.",
"Unknown_compiler_option_0_5023": "Neznámá možnost kompilátoru {0}",
"Unknown_option_excludes_Did_you_mean_exclude_6114": "Neznámá možnost excludes. Měli jste na mysli exclude?",
diff --git a/lib/de/diagnosticMessages.generated.json b/lib/de/diagnosticMessages.generated.json
index 01dc8cbf466..3f0933fad84 100644
--- a/lib/de/diagnosticMessages.generated.json
+++ b/lib/de/diagnosticMessages.generated.json
@@ -49,6 +49,8 @@
"A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged_2434": "Eine Namespacedeklaration darf nicht vor der Klasse oder Funktion positioniert werden, mit der sie zusammengeführt wird.",
"A_namespace_declaration_is_only_allowed_in_a_namespace_or_module_1235": "Eine Namespacedeklaration ist nur in einem Namespace oder Modul zulässig.",
"A_namespace_style_import_cannot_be_called_or_constructed_and_will_cause_a_failure_at_runtime_7038": "Ein Import im Namespacestil kann nicht aufgerufen oder erstellt werden und verursacht zur Laufzeit einen Fehler.",
+ "A_non_dry_build_would_build_project_0_6357": "A non-dry build would build project '{0}'",
+ "A_non_dry_build_would_delete_the_following_files_Colon_0_6356": "A non-dry build would delete the following files: {0}",
"A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation_2371": "Ein Parameterinitialisierer ist nur in einer Funktions- oder Konstruktorimplementierung zulässig.",
"A_parameter_property_cannot_be_declared_using_a_rest_parameter_1317": "Eine Parametereigenschaft darf nicht mithilfe eines rest-Parameters deklariert werden.",
"A_parameter_property_is_only_allowed_in_a_constructor_implementation_2369": "Eine Parametereigenschaft ist nur in einer Konstruktorimplementierung zulässig.",
@@ -189,6 +191,9 @@
"Binary_digit_expected_1177": "Es wurde eine Binärzahl erwartet.",
"Binding_element_0_implicitly_has_an_1_type_7031": "Das Bindungselement \"{0}\" weist implizit einen Typ \"{1}\" auf.",
"Block_scoped_variable_0_used_before_its_declaration_2448": "Die blockbezogene Variable \"{0}\" wurde vor ihrer Deklaration verwendet.",
+ "Build_all_projects_including_those_that_appear_to_be_up_to_date_6368": "Build all projects, including those that appear to be up to date",
+ "Build_one_or_more_projects_and_their_dependencies_if_out_of_date_6364": "Build one or more projects and their dependencies, if out of date",
+ "Building_project_0_6358": "Building project '{0}'...",
"Call_decorator_expression_90028": "Decorator-Ausdruck aufrufen",
"Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type_7020": "Eine Aufrufsignatur ohne Rückgabetypanmerkung weist implizit einen any-Rückgabetyp auf.",
"Call_target_does_not_contain_any_signatures_2346": "Das Aufrufziel enthält keine Signaturen.",
@@ -208,6 +213,8 @@
"Cannot_find_a_tsconfig_json_file_at_the_specified_directory_Colon_0_5057": "Im angegebenen Verzeichnis \"{0}\" wurde keine \"tsconfig.json\"-Datei gefunden.",
"Cannot_find_global_type_0_2318": "Der globale Typ \"{0}\" wurde nicht gefunden.",
"Cannot_find_global_value_0_2468": "Der globale Wert \"{0}\" wurde nicht gefunden.",
+ "Cannot_find_lib_definition_for_0_2726": "Die Bibliotheksdefinition für \"{0}\" wurde nicht gefunden.",
+ "Cannot_find_lib_definition_for_0_Did_you_mean_1_2727": "Die Bibliotheksdefinition für \"{0}\" wurde nicht gefunden. Meinten Sie \"{1}\"?",
"Cannot_find_module_0_2307": "Das Modul \"{0}\" wurde nicht gefunden.",
"Cannot_find_name_0_2304": "Der Name \"{0}\" wurde nicht gefunden.",
"Cannot_find_name_0_Did_you_mean_1_2552": "Der Name \"{0}\" wurde nicht gefunden. Meinten Sie \"{1}\"?",
@@ -282,6 +289,8 @@
"Convert_all_to_default_imports_95035": "Alle in Standardimporte konvertieren",
"Convert_function_0_to_class_95002": "Funktion \"{0}\" in Klasse konvertieren",
"Convert_function_to_an_ES2015_class_95001": "Funktion in eine ES2015-Klasse konvertieren",
+ "Convert_named_imports_to_namespace_import_95057": "Benannte Importe in Namespaceimport konvertieren",
+ "Convert_namespace_import_to_named_imports_95056": "Namespaceimport in benannte Importe konvertieren",
"Convert_require_to_import_95047": "\"require\" in \"import\" konvertieren",
"Convert_to_ES6_module_95017": "In ES6-Modul konvertieren",
"Convert_to_default_import_95013": "In Standardimport konvertieren",
@@ -300,6 +309,7 @@
"Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name_1207": "Decorators dürfen nicht auf mehrere get-/set-Zugriffsmethoden mit dem gleichen Namen angewendet werden.",
"Default_export_of_the_module_has_or_is_using_private_name_0_4082": "Der Standardexport des Moduls besitzt oder verwendet den privaten Namen \"{0}\".",
"Delete_all_unused_declarations_95024": "Alle nicht verwendeten Deklarationen löschen",
+ "Delete_the_outputs_of_all_projects_6365": "Delete the outputs of all projects",
"Deprecated_Use_jsxFactory_instead_Specify_the_object_invoked_for_createElement_when_targeting_react__6084": "[Veraltet] Verwenden Sie stattdessen \"--jsxFactory\". Geben Sie das Objekt an, das für \"createElement\" aufgerufen wurde, wenn das Ziel die JSX-Ausgabe \"react\" ist.",
"Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file_6170": "[Veraltet] Verwenden Sie stattdessen \"--outFile\". Verketten und Ausgeben in eine einzige Datei",
"Deprecated_Use_skipLibCheck_instead_Skip_type_checking_of_default_library_declaration_files_6160": "[Veraltet] Verwenden Sie stattdessen \"--skipLibCheck\". Überspringen Sie die Typüberprüfung der Standardbibliothek-Deklarationsdateien.",
@@ -350,6 +360,7 @@
"Enable_strict_checking_of_property_initialization_in_classes_6187": "Aktivieren Sie die strenge Überprüfung der Eigenschafteninitialisierung in Klassen.",
"Enable_strict_null_checks_6113": "Strenge NULL-Überprüfungen aktivieren.",
"Enable_tracing_of_the_name_resolution_process_6085": "Ablaufverfolgung des Namensauflösungsvorgangs aktivieren.",
+ "Enable_verbose_logging_6366": "Enable verbose logging",
"Enables_emit_interoperability_between_CommonJS_and_ES_Modules_via_creation_of_namespace_objects_for__7037": "Ermöglicht Ausgabeinteroperabilität zwischen CommonJS- und ES-Modulen durch die Erstellung von Namespaceobjekten für alle Importe. Impliziert \"AllowSyntheticDefaultImports\".",
"Enables_experimental_support_for_ES7_async_functions_6068": "Ermöglicht experimentelle Unterstützung für asynchrone ES7-Funktionen.",
"Enables_experimental_support_for_ES7_decorators_6065": "Ermöglicht experimentelle Unterstützung für asynchrone ES7-Decorators.",
@@ -584,6 +595,7 @@
"Not_all_code_paths_return_a_value_7030": "Nicht alle Codepfade geben einen Wert zurück.",
"Numeric_index_type_0_is_not_assignable_to_string_index_type_1_2413": "Der numerische Indextyp \"{0}\" kann dem Zeichenfolgen-Indextyp \"{1}\" nicht zugewiesen werden.",
"Numeric_separators_are_not_allowed_here_6188": "Numerische Trennzeichen sind hier nicht zulässig.",
+ "Object_is_of_type_unknown_2571": "Das Objekt ist vom Typ \"Unbekannt\".",
"Object_is_possibly_null_2531": "Das Objekt ist möglicherweise \"NULL\".",
"Object_is_possibly_null_or_undefined_2533": "Das Objekt ist möglicherweise \"NULL\" oder \"nicht definiert\".",
"Object_is_possibly_undefined_2532": "Das Objekt ist möglicherweise \"nicht definiert\".",
@@ -610,10 +622,12 @@
"Option_0_cannot_be_specified_without_specifying_option_1_5052": "Die Option \"{0}\" darf nicht ohne die Option \"{1}\" angegeben werden.",
"Option_0_cannot_be_specified_without_specifying_option_1_or_option_2_5069": "Die Option \"{0}\" kann nicht ohne die Option \"{1}\" oder \"{2}\" angegeben werden.",
"Option_0_should_have_array_of_strings_as_a_value_6103": "Die Option \"{0}\" muss ein Zeichenfolgenarray als Wert aufweisen.",
+ "Option_build_must_be_the_first_command_line_argument_6369": "Option '--build' must be the first command line argument.",
"Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES_5047": "Die Option \"isolatedModules\" kann nur verwendet werden, wenn entweder die Option \"--module\" angegeben ist oder die Option \"target\" den Wert \"ES2015\" oder höher aufweist.",
"Option_paths_cannot_be_used_without_specifying_baseUrl_option_5060": "Die \"path\"-Option kann nicht ohne Angabe der \"-baseUrl\"-Option angegeben werden.",
"Option_project_cannot_be_mixed_with_source_files_on_a_command_line_5042": "Die Option \"project\" darf nicht mit Quelldateien in einer Befehlszeile kombiniert werden.",
"Option_resolveJsonModule_cannot_be_specified_without_node_module_resolution_strategy_5070": "Die Option \"--resolveJsonModule\" kann nicht ohne die Modulauflösungsstrategie \"node\" angegeben werden.",
+ "Options_0_and_1_cannot_be_combined_6370": "Options '{0}' and '{1}' cannot be combined.",
"Options_Colon_6027": "Optionen:",
"Output_directory_for_generated_declaration_files_6166": "Ausgabeverzeichnis für erstellte Deklarationsdateien.",
"Output_file_0_from_project_1_does_not_exist_6309": "Die Ausgabedatei \"{0}\" aus dem Projekt \"{1}\" ist nicht vorhanden.",
@@ -661,7 +675,15 @@
"Print_names_of_generated_files_part_of_the_compilation_6154": "Drucknamen des generierten Dateiteils der Kompilierung.",
"Print_the_compiler_s_version_6019": "Die Version des Compilers ausgeben.",
"Print_this_message_6017": "Diese Nachricht ausgeben.",
+ "Project_0_can_t_be_built_because_its_dependency_1_has_errors_6363": "Project '{0}' can't be built because its dependency '{1}' has errors",
+ "Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date_6353": "Project '{0}' is out of date because its dependency '{1}' is out of date",
+ "Project_0_is_out_of_date_because_oldest_output_1_is_older_than_newest_input_2_6350": "Project '{0}' is out of date because oldest output '{1}' is older than newest input '{2}'",
+ "Project_0_is_out_of_date_because_output_file_1_does_not_exist_6352": "Project '{0}' is out of date because output file '{1}' does not exist",
+ "Project_0_is_up_to_date_6361": "Project '{0}' is up to date",
+ "Project_0_is_up_to_date_because_newest_input_1_is_older_than_oldest_output_2_6351": "Project '{0}' is up to date because newest input '{1}' is older than oldest output '{2}'",
+ "Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies_6354": "Project '{0}' is up to date with .d.ts files from its dependencies",
"Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0_6202": "Projektverweise dürfen keinen kreisförmigen Graphen bilden. Zyklus erkannt: {0}",
+ "Projects_in_this_build_Colon_0_6355": "Projects in this build: {0}",
"Projects_to_reference_6300": "Zu referenzierende Projekte",
"Property_0_does_not_exist_on_const_enum_1_2479": "Die Eigenschaft \"{0}\" ist für die const-Enumeration \"{1}\" nicht vorhanden.",
"Property_0_does_not_exist_on_type_1_2339": "Die Eigenschaft \"{0}\" ist für den Typ \"{1}\" nicht vorhanden.",
@@ -775,8 +797,11 @@
"Show_all_compiler_options_6169": "Alle Compileroptionen anzeigen.",
"Show_diagnostic_information_6149": "Diagnoseinformationen anzeigen.",
"Show_verbose_diagnostic_information_6150": "Ausführliche Diagnoseinformationen anzeigen.",
+ "Show_what_would_be_built_or_deleted_if_specified_with_clean_6367": "Show what would be built (or deleted, if specified with '--clean')",
"Signature_0_must_be_a_type_predicate_1224": "Die Signatur \"{0}\" muss ein Typprädikat sein.",
"Skip_type_checking_of_declaration_files_6012": "Überspringen Sie die Typüberprüfung von Deklarationsdateien.",
+ "Skipping_build_of_project_0_because_its_dependency_1_has_errors_6362": "Skipping build of project '{0}' because its dependency '{1}' has errors",
+ "Skipping_clean_because_not_all_projects_could_be_located_6371": "Skipping clean because not all projects could be located",
"Source_Map_Options_6175": "Quellzuordnungsoptionen",
"Specialized_overload_signature_is_not_assignable_to_any_non_specialized_signature_2382": "Eine spezialisierte Überladungssignatur kann keiner nicht spezialisierten Signatur zugewiesen werden.",
"Specifier_of_dynamic_import_cannot_be_spread_element_1325": "Der Spezifizierer des dynamischen Imports darf kein Spread-Element sein.",
@@ -938,6 +963,7 @@
"Unexpected_end_of_text_1126": "Unerwartetes Textende.",
"Unexpected_token_1012": "Unerwartetes Token.",
"Unexpected_token_A_constructor_method_accessor_or_property_was_expected_1068": "Unerwartetes Token. Ein Konstruktor, eine Methode, eine Zugriffsmethode oder eine Eigenschaft wurde erwartet.",
+ "Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces_1069": "Unerwartetes Token. Es wurde ein Typparametername ohne geschweifte Klammern erwartet.",
"Unexpected_token_expected_1179": "Unerwartetes Token. \"{\" wurde erwartet.",
"Unknown_compiler_option_0_5023": "Unbekannte Compileroption \"{0}\".",
"Unknown_option_excludes_Did_you_mean_exclude_6114": "Unbekannte Option \"exclude\". Meinten Sie \"exclude\"?",
@@ -951,6 +977,7 @@
"Unterminated_template_literal_1160": "Nicht abgeschlossenes Vorlagenliteral.",
"Untyped_function_calls_may_not_accept_type_arguments_2347": "Nicht typisierte Funktionsaufrufe dürfen keine Typargumente annehmen.",
"Unused_label_7028": "Nicht verwendete Bezeichnung.",
+ "Updating_output_timestamps_of_project_0_6359": "Updating output timestamps of project '{0}'...",
"Use_synthetic_default_member_95016": "Verwenden Sie den synthetischen Member \"default\".",
"Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher_2494": "Das Verwenden einer Zeichenfolge in einer for...of-Anweisung wird nur in ECMAScript 5 oder höher unterstützt.",
"VERSION_6036": "VERSION",
@@ -1011,6 +1038,7 @@
"const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN_2478": "Der const-Enumerationsmemberinitialisierer wurde in den unzulässigen Wert \"NaN\" ausgewertet.",
"const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_im_2475": "const-Enumerationen können nur in Eigenschaften- bzw. Indexzugriffsausdrücken oder auf der rechten Seite einer Importdeklaration oder Exportzuweisung verwendet werden.",
"delete_cannot_be_called_on_an_identifier_in_strict_mode_1102": "\"delete\" kann für einen Bezeichner im Strict-Modus nicht aufgerufen werden.",
+ "delete_this_Project_0_is_up_to_date_because_it_was_previously_built_6360": "delete this - Project '{0}' is up to date because it was previously built",
"enum_declarations_can_only_be_used_in_a_ts_file_8015": "enum-Deklarationen können nur in einer TS-Datei verwendet werden.",
"export_can_only_be_used_in_a_ts_file_8003": "\"export=\" kann nur in einer TS-Datei verwendet werden.",
"export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always__2668": "Der Modifizierer \"export\" kann nicht auf Umgebungsmodule und Modulerweiterungen angewendet werden, da diese immer sichtbar sind.",
diff --git a/lib/enu/diagnosticMessages.generated.json.lcg b/lib/enu/diagnosticMessages.generated.json.lcg
index dfa254800c9..3eb93d439d4 100644
--- a/lib/enu/diagnosticMessages.generated.json.lcg
+++ b/lib/enu/diagnosticMessages.generated.json.lcg
@@ -309,6 +309,18 @@
+ -
+
+
+
+
+
+ -
+
+
+
+
+
-
@@ -615,6 +627,12 @@
+ -
+
+
+
+
+
-
@@ -657,6 +675,12 @@
+ -
+
+
+
+
+
-
@@ -1149,6 +1173,24 @@
+ -
+
+
+
+
+
+ -
+
+
+
+
+
+ -
+
+
+
+
+
-
@@ -1263,6 +1305,18 @@
+ -
+
+
+
+
+
+ -
+
+
+
+
+
-
@@ -1827,6 +1881,12 @@
+ -
+
+
+
+
+
-
@@ -2127,6 +2187,12 @@
+ -
+
+
+
+
+
-
@@ -3693,6 +3759,12 @@
+ -
+
+
+
+
+
-
@@ -3717,6 +3789,12 @@
+ -
+
+
+
+
+
-
@@ -3999,12 +4077,60 @@
+ -
+
+
+
+
+
+ -
+
+
+
+
+
+ -
+
+
+
+
+
+ -
+
+
+
+
+
+ -
+
+
+
+
+
+ -
+
+
+
+
+
+ -
+
+
+
+
+
-
+ -
+
+
+
+
+
-
@@ -4311,6 +4437,12 @@
+ -
+
+
+
+
+
-
@@ -4683,6 +4815,12 @@
+ -
+
+
+
+
+
-
@@ -4695,6 +4833,18 @@
+ -
+
+
+
+
+
+ -
+
+
+
+
+
-
@@ -5745,6 +5895,12 @@
+ -
+
+
+
+
+
-
@@ -6105,6 +6261,12 @@
+ -
+
+
+
+
+
-
diff --git a/lib/es/diagnosticMessages.generated.json b/lib/es/diagnosticMessages.generated.json
index debe11fef02..f11f5c292ee 100644
--- a/lib/es/diagnosticMessages.generated.json
+++ b/lib/es/diagnosticMessages.generated.json
@@ -49,6 +49,8 @@
"A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged_2434": "Una declaración de espacio de nombres no se puede situar antes que una clase o función con la que se combina.",
"A_namespace_declaration_is_only_allowed_in_a_namespace_or_module_1235": "Una declaración de espacio de nombres solo se permite en un espacio de nombres o en un módulo.",
"A_namespace_style_import_cannot_be_called_or_constructed_and_will_cause_a_failure_at_runtime_7038": "No se puede llamar o construir una importación de estilo de espacio de nombres, y provocará un error en tiempo de ejecución.",
+ "A_non_dry_build_would_build_project_0_6357": "A non-dry build would build project '{0}'",
+ "A_non_dry_build_would_delete_the_following_files_Colon_0_6356": "A non-dry build would delete the following files: {0}",
"A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation_2371": "Un inicializador de parámetros solo se permite en una implementación de función o de constructor.",
"A_parameter_property_cannot_be_declared_using_a_rest_parameter_1317": "Una propiedad de parámetro no se puede declarar mediante un parámetro rest.",
"A_parameter_property_is_only_allowed_in_a_constructor_implementation_2369": "Una propiedad de parámetro solo se permite en una implementación de constructor.",
@@ -189,6 +191,9 @@
"Binary_digit_expected_1177": "Se esperaba un dígito binario.",
"Binding_element_0_implicitly_has_an_1_type_7031": "El elemento de enlace '{0}' tiene un tipo '{1}' implícito.",
"Block_scoped_variable_0_used_before_its_declaration_2448": "Variable con ámbito de bloque '{0}' usada antes de su declaración.",
+ "Build_all_projects_including_those_that_appear_to_be_up_to_date_6368": "Build all projects, including those that appear to be up to date",
+ "Build_one_or_more_projects_and_their_dependencies_if_out_of_date_6364": "Build one or more projects and their dependencies, if out of date",
+ "Building_project_0_6358": "Building project '{0}'...",
"Call_decorator_expression_90028": "Llamar a la expresión decorador",
"Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type_7020": "La signatura de llamada, que carece de una anotación de tipo de valor devuelto, tiene implícitamente un tipo de valor devuelto \"any\".",
"Call_target_does_not_contain_any_signatures_2346": "El destino de llamada no contiene signaturas.",
@@ -208,6 +213,8 @@
"Cannot_find_a_tsconfig_json_file_at_the_specified_directory_Colon_0_5057": "No se encuentra ningún archivo tsconfig.json en el directorio especificado: \"{0}\".",
"Cannot_find_global_type_0_2318": "No se encuentra el tipo '{0}' global.",
"Cannot_find_global_value_0_2468": "No se encuentra el valor '{0}' global.",
+ "Cannot_find_lib_definition_for_0_2726": "No se encuentra la definición lib para \"{0}\".",
+ "Cannot_find_lib_definition_for_0_Did_you_mean_1_2727": "No se encuentra la definición lib para \"{0}\". ¿Quiso decir \"{1}\"?",
"Cannot_find_module_0_2307": "No se encuentra el módulo '{0}'.",
"Cannot_find_name_0_2304": "No se encuentra el nombre '{0}'.",
"Cannot_find_name_0_Did_you_mean_1_2552": "No se encuentra el nombre \"{0}\". ¿Quería decir \"{1}\"?",
@@ -302,6 +309,7 @@
"Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name_1207": "No se pueden aplicar elementos Decorator a varios descriptores de acceso get o set con el mismo nombre.",
"Default_export_of_the_module_has_or_is_using_private_name_0_4082": "La exportación predeterminada del módulo tiene o usa el nombre privado '{0}'.",
"Delete_all_unused_declarations_95024": "Eliminar todas las declaraciones sin usar",
+ "Delete_the_outputs_of_all_projects_6365": "Delete the outputs of all projects",
"Deprecated_Use_jsxFactory_instead_Specify_the_object_invoked_for_createElement_when_targeting_react__6084": "[En desuso] Use \"--jsxFactory\" en su lugar. Especifique el objeto invocado para createElement cuando el destino sea la emisión de JSX \"react\"",
"Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file_6170": "[En desuso] Use \"--outFile\" en su lugar. Concatena y emite la salida en un solo archivo.",
"Deprecated_Use_skipLibCheck_instead_Skip_type_checking_of_default_library_declaration_files_6160": "[En desuso] Use \"--skipLibCheck\" en su lugar. Omite la comprobación de tipos de los archivos de declaración de biblioteca predeterminados.",
@@ -352,6 +360,7 @@
"Enable_strict_checking_of_property_initialization_in_classes_6187": "Habilite la comprobación estricta de inicialización de propiedades en las clases.",
"Enable_strict_null_checks_6113": "Habilitar comprobaciones estrictas de elementos nulos.",
"Enable_tracing_of_the_name_resolution_process_6085": "Habilitar seguimiento del proceso de resolución de nombres.",
+ "Enable_verbose_logging_6366": "Enable verbose logging",
"Enables_emit_interoperability_between_CommonJS_and_ES_Modules_via_creation_of_namespace_objects_for__7037": "Permite emitir interoperabilidad entre módulos CommonJS y ES mediante la creación de objetos de espacio de nombres para todas las importaciones. Implica \"allowSyntheticDefaultImports\".",
"Enables_experimental_support_for_ES7_async_functions_6068": "Habilita la compatibilidad experimental con las funciones asincrónicas de ES7.",
"Enables_experimental_support_for_ES7_decorators_6065": "Habilita la compatibilidad experimental con los elementos Decorator de ES7.",
@@ -613,10 +622,12 @@
"Option_0_cannot_be_specified_without_specifying_option_1_5052": "La opción '{0}' no se puede especificar sin la opción '{1}'.",
"Option_0_cannot_be_specified_without_specifying_option_1_or_option_2_5069": "La opción \"{0}\" no se puede especificar sin la opción \"{1}\" o la opción \"{2}\".",
"Option_0_should_have_array_of_strings_as_a_value_6103": "La opción '{0}' debe tener una matriz de cadenas como valor.",
+ "Option_build_must_be_the_first_command_line_argument_6369": "Option '--build' must be the first command line argument.",
"Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES_5047": "La opción \"isolatedModules\" solo se puede usar cuando se proporciona la opción \"--module\" o si la opción \"target\" es \"ES2015\" o una versión posterior.",
"Option_paths_cannot_be_used_without_specifying_baseUrl_option_5060": "La opción 'paths' no se puede usar sin especificar la opción '--baseUrl'.",
"Option_project_cannot_be_mixed_with_source_files_on_a_command_line_5042": "La opción \"project\" no se puede combinar con archivos de origen en una línea de comandos.",
"Option_resolveJsonModule_cannot_be_specified_without_node_module_resolution_strategy_5070": "No se puede especificar la opción \"--resolveJsonModule\" sin la estrategia de resolución de módulos \"node\".",
+ "Options_0_and_1_cannot_be_combined_6370": "Options '{0}' and '{1}' cannot be combined.",
"Options_Colon_6027": "Opciones:",
"Output_directory_for_generated_declaration_files_6166": "Directorio de salida para los archivos de declaración generados.",
"Output_file_0_from_project_1_does_not_exist_6309": "El archivo de salida \"{0}\" del proyecto \"{1}\" no existe.",
@@ -664,7 +675,15 @@
"Print_names_of_generated_files_part_of_the_compilation_6154": "Imprimir los nombres de los archivos generados que forman parte de la compilación.",
"Print_the_compiler_s_version_6019": "Imprima la versión del compilador.",
"Print_this_message_6017": "Imprima este mensaje.",
+ "Project_0_can_t_be_built_because_its_dependency_1_has_errors_6363": "Project '{0}' can't be built because its dependency '{1}' has errors",
+ "Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date_6353": "Project '{0}' is out of date because its dependency '{1}' is out of date",
+ "Project_0_is_out_of_date_because_oldest_output_1_is_older_than_newest_input_2_6350": "Project '{0}' is out of date because oldest output '{1}' is older than newest input '{2}'",
+ "Project_0_is_out_of_date_because_output_file_1_does_not_exist_6352": "Project '{0}' is out of date because output file '{1}' does not exist",
+ "Project_0_is_up_to_date_6361": "Project '{0}' is up to date",
+ "Project_0_is_up_to_date_because_newest_input_1_is_older_than_oldest_output_2_6351": "Project '{0}' is up to date because newest input '{1}' is older than oldest output '{2}'",
+ "Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies_6354": "Project '{0}' is up to date with .d.ts files from its dependencies",
"Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0_6202": "Las referencias del proyecto no pueden formar un gráfico circular. Ciclo detectado: {0}",
+ "Projects_in_this_build_Colon_0_6355": "Projects in this build: {0}",
"Projects_to_reference_6300": "Proyectos a los que se hará referencia",
"Property_0_does_not_exist_on_const_enum_1_2479": "La propiedad '{0}' no existe en la enumeración 'const' '{1}'.",
"Property_0_does_not_exist_on_type_1_2339": "La propiedad '{0}' no existe en el tipo '{1}'.",
@@ -778,8 +797,11 @@
"Show_all_compiler_options_6169": "Mostrar todas las opciones de compilador.",
"Show_diagnostic_information_6149": "Mostrar información de diagnóstico.",
"Show_verbose_diagnostic_information_6150": "Mostrar información de diagnóstico detallada.",
+ "Show_what_would_be_built_or_deleted_if_specified_with_clean_6367": "Show what would be built (or deleted, if specified with '--clean')",
"Signature_0_must_be_a_type_predicate_1224": "La signatura '{0}' debe tener un predicado de tipo.",
"Skip_type_checking_of_declaration_files_6012": "Omita la comprobación de tipos de los archivos de declaración.",
+ "Skipping_build_of_project_0_because_its_dependency_1_has_errors_6362": "Skipping build of project '{0}' because its dependency '{1}' has errors",
+ "Skipping_clean_because_not_all_projects_could_be_located_6371": "Skipping clean because not all projects could be located",
"Source_Map_Options_6175": "Opciones de mapa de origen",
"Specialized_overload_signature_is_not_assignable_to_any_non_specialized_signature_2382": "La signatura de sobrecarga especializada no se puede asignar a ninguna signatura no especializada.",
"Specifier_of_dynamic_import_cannot_be_spread_element_1325": "El especificador de importación dinámica no puede ser un elemento de propagación.",
@@ -941,6 +963,7 @@
"Unexpected_end_of_text_1126": "Final de texto inesperado.",
"Unexpected_token_1012": "Token inesperado.",
"Unexpected_token_A_constructor_method_accessor_or_property_was_expected_1068": "Token inesperado. Se esperaba un constructor, un método, un descriptor de acceso o una propiedad.",
+ "Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces_1069": "Token inesperado. Se esperaba un nombre de parámetro de tipo sin llaves.",
"Unexpected_token_expected_1179": "Token inesperado. Se esperaba \"{\".",
"Unknown_compiler_option_0_5023": "Opción '{0}' del compilador desconocida.",
"Unknown_option_excludes_Did_you_mean_exclude_6114": "Opción 'excludes' desconocida. ¿Quería decir 'exclude'?",
@@ -954,6 +977,7 @@
"Unterminated_template_literal_1160": "Literal de plantilla sin terminar.",
"Untyped_function_calls_may_not_accept_type_arguments_2347": "Las llamadas a función sin tipo no pueden aceptar argumentos de tipo.",
"Unused_label_7028": "Etiqueta no usada.",
+ "Updating_output_timestamps_of_project_0_6359": "Updating output timestamps of project '{0}'...",
"Use_synthetic_default_member_95016": "Use el miembro sintético \"default\".",
"Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher_2494": "El uso de una cadena en una instrucción \"for...of\" solo se admite en ECMAScript 5 y versiones posteriores.",
"VERSION_6036": "VERSIÓN",
@@ -1014,6 +1038,7 @@
"const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN_2478": "El inicializador de miembros de enumeración \"const\" se evaluó con un valor \"NaN\" no permitido.",
"const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_im_2475": "Las enumeraciones \"const\" solo se pueden usar en expresiones de acceso de propiedad o índice, o en la parte derecha de una declaración de importación, una asignación de exportación o una consulta de tipo.",
"delete_cannot_be_called_on_an_identifier_in_strict_mode_1102": "No se puede llamar a \"delete\" en un identificador en modo strict.",
+ "delete_this_Project_0_is_up_to_date_because_it_was_previously_built_6360": "delete this - Project '{0}' is up to date because it was previously built",
"enum_declarations_can_only_be_used_in_a_ts_file_8015": "Las declaraciones \"enum\" solo se pueden usar en un archivo .ts.",
"export_can_only_be_used_in_a_ts_file_8003": "\"export=\" solo se puede usar en un archivo .ts.",
"export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always__2668": "El modificador 'export' no se puede aplicar a módulos de ambiente ni aumentos de módulos, porque siempre están visibles.",
diff --git a/lib/fr/diagnosticMessages.generated.json b/lib/fr/diagnosticMessages.generated.json
index 55ad54ddf55..0bb0a494506 100644
--- a/lib/fr/diagnosticMessages.generated.json
+++ b/lib/fr/diagnosticMessages.generated.json
@@ -49,6 +49,8 @@
"A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged_2434": "Une déclaration d'espace de noms ne peut pas se trouver avant une classe ou une fonction avec laquelle elle est fusionnée.",
"A_namespace_declaration_is_only_allowed_in_a_namespace_or_module_1235": "Une déclaration d'espace de noms est autorisée uniquement dans un espace de noms ou un module.",
"A_namespace_style_import_cannot_be_called_or_constructed_and_will_cause_a_failure_at_runtime_7038": "Impossible d'appeler ou de construire une importation de style d'espace de noms, ce qui va entraîner un échec au moment de l'exécution.",
+ "A_non_dry_build_would_build_project_0_6357": "A non-dry build would build project '{0}'",
+ "A_non_dry_build_would_delete_the_following_files_Colon_0_6356": "A non-dry build would delete the following files: {0}",
"A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation_2371": "Un initialiseur de paramètre est uniquement autorisé dans une implémentation de fonction ou de constructeur.",
"A_parameter_property_cannot_be_declared_using_a_rest_parameter_1317": "Impossible de déclarer une propriété de paramètre à l'aide d'un paramètre rest.",
"A_parameter_property_is_only_allowed_in_a_constructor_implementation_2369": "Une propriété de paramètre est uniquement autorisée dans une implémentation de constructeur.",
@@ -189,6 +191,9 @@
"Binary_digit_expected_1177": "Chiffre binaire attendu.",
"Binding_element_0_implicitly_has_an_1_type_7031": "L'élément de liaison '{0}' possède implicitement un type '{1}'.",
"Block_scoped_variable_0_used_before_its_declaration_2448": "Variable de portée de bloc '{0}' utilisée avant sa déclaration.",
+ "Build_all_projects_including_those_that_appear_to_be_up_to_date_6368": "Build all projects, including those that appear to be up to date",
+ "Build_one_or_more_projects_and_their_dependencies_if_out_of_date_6364": "Build one or more projects and their dependencies, if out of date",
+ "Building_project_0_6358": "Building project '{0}'...",
"Call_decorator_expression_90028": "Appeler l'expression de l'élément décoratif",
"Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type_7020": "La signature d'appel, qui ne dispose pas d'annotation de type de retour, possède implicitement un type de retour 'any'.",
"Call_target_does_not_contain_any_signatures_2346": "La cible de l'appel ne contient aucune signature.",
@@ -208,6 +213,8 @@
"Cannot_find_a_tsconfig_json_file_at_the_specified_directory_Colon_0_5057": "Le fichier tsconfig.json est introuvable dans le répertoire spécifié : '{0}'.",
"Cannot_find_global_type_0_2318": "Le type global '{0}' est introuvable.",
"Cannot_find_global_value_0_2468": "La valeur globale '{0}' est introuvable.",
+ "Cannot_find_lib_definition_for_0_2726": "Définition de lib introuvable pour '{0}'.",
+ "Cannot_find_lib_definition_for_0_Did_you_mean_1_2727": "Définition de lib introuvable pour '{0}'. Est-ce qu'il ne s'agit pas plutôt de '{1}' ?",
"Cannot_find_module_0_2307": "Le module '{0}' est introuvable.",
"Cannot_find_name_0_2304": "Le nom '{0}' est introuvable.",
"Cannot_find_name_0_Did_you_mean_1_2552": "Le nom '{0}' est introuvable. Est-ce qu'il ne s'agit pas plutôt de '{1}' ?",
@@ -302,6 +309,7 @@
"Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name_1207": "Impossible d'appliquer des éléments décoratifs à plusieurs accesseurs get/set du même nom.",
"Default_export_of_the_module_has_or_is_using_private_name_0_4082": "L'exportation par défaut du module a utilisé ou utilise le nom privé '{0}'.",
"Delete_all_unused_declarations_95024": "Supprimer toutes les déclarations inutilisées",
+ "Delete_the_outputs_of_all_projects_6365": "Delete the outputs of all projects",
"Deprecated_Use_jsxFactory_instead_Specify_the_object_invoked_for_createElement_when_targeting_react__6084": "[Déconseillé] Utilisez '--jsxFactory' à la place. Permet de spécifier l'objet appelé pour createElement durant le ciblage de 'react' pour l'émission JSX",
"Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file_6170": "[Déconseillé] Utilisez '--outFile' à la place. Permet de concaténer et d'émettre la sortie vers un seul fichier",
"Deprecated_Use_skipLibCheck_instead_Skip_type_checking_of_default_library_declaration_files_6160": "[Déconseillé] Utilisez '--skipLibCheck' à la place. Permet d'ignorer le contrôle de type des fichiers de déclaration de la bibliothèque par défaut.",
@@ -352,6 +360,7 @@
"Enable_strict_checking_of_property_initialization_in_classes_6187": "Activez la vérification stricte de l'initialisation des propriétés dans les classes.",
"Enable_strict_null_checks_6113": "Activez strict null checks.",
"Enable_tracing_of_the_name_resolution_process_6085": "Activez le traçage du processus de résolution de noms.",
+ "Enable_verbose_logging_6366": "Enable verbose logging",
"Enables_emit_interoperability_between_CommonJS_and_ES_Modules_via_creation_of_namespace_objects_for__7037": "Active l'interopérabilité entre les modules CommonJS et ES via la création d'objets d'espace de noms pour toutes les importations. Implique 'allowSyntheticDefaultImports'.",
"Enables_experimental_support_for_ES7_async_functions_6068": "Active la prise en charge expérimentale des fonctions async ES7.",
"Enables_experimental_support_for_ES7_decorators_6065": "Active la prise en charge expérimentale des éléments décoratifs ES7.",
@@ -613,10 +622,12 @@
"Option_0_cannot_be_specified_without_specifying_option_1_5052": "Impossible de spécifier l'option '{0}' sans spécifier l'option '{1}'.",
"Option_0_cannot_be_specified_without_specifying_option_1_or_option_2_5069": "Impossible de spécifier l'option '{0}' sans spécifier l'option '{1}' ou l'option '{2}'.",
"Option_0_should_have_array_of_strings_as_a_value_6103": "L'option '{0}' doit avoir un tableau de chaînes en tant que valeur.",
+ "Option_build_must_be_the_first_command_line_argument_6369": "Option '--build' must be the first command line argument.",
"Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES_5047": "L'option 'isolatedModules' peut être utilisée seulement quand l'option '--module' est spécifiée, ou quand l'option 'target' a la valeur 'ES2015' ou une version supérieure.",
"Option_paths_cannot_be_used_without_specifying_baseUrl_option_5060": "Impossible d'utiliser l'option 'paths' sans spécifier l'option '--baseUrl'.",
"Option_project_cannot_be_mixed_with_source_files_on_a_command_line_5042": "Impossible d'associer l'option 'project' à des fichiers sources sur une ligne de commande.",
"Option_resolveJsonModule_cannot_be_specified_without_node_module_resolution_strategy_5070": "Impossible de spécifier l'option '--resolveJsonModule' sans la stratégie de résolution de module 'node'.",
+ "Options_0_and_1_cannot_be_combined_6370": "Options '{0}' and '{1}' cannot be combined.",
"Options_Colon_6027": "Options :",
"Output_directory_for_generated_declaration_files_6166": "Répertoire de sortie pour les fichiers de déclaration générés.",
"Output_file_0_from_project_1_does_not_exist_6309": "Le fichier de sortie '{0}' du projet '{1}' n'existe pas",
@@ -664,7 +675,15 @@
"Print_names_of_generated_files_part_of_the_compilation_6154": "Imprimez les noms des fichiers générés faisant partie de la compilation.",
"Print_the_compiler_s_version_6019": "Affichez la version du compilateur.",
"Print_this_message_6017": "Imprimez ce message.",
+ "Project_0_can_t_be_built_because_its_dependency_1_has_errors_6363": "Project '{0}' can't be built because its dependency '{1}' has errors",
+ "Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date_6353": "Project '{0}' is out of date because its dependency '{1}' is out of date",
+ "Project_0_is_out_of_date_because_oldest_output_1_is_older_than_newest_input_2_6350": "Project '{0}' is out of date because oldest output '{1}' is older than newest input '{2}'",
+ "Project_0_is_out_of_date_because_output_file_1_does_not_exist_6352": "Project '{0}' is out of date because output file '{1}' does not exist",
+ "Project_0_is_up_to_date_6361": "Project '{0}' is up to date",
+ "Project_0_is_up_to_date_because_newest_input_1_is_older_than_oldest_output_2_6351": "Project '{0}' is up to date because newest input '{1}' is older than oldest output '{2}'",
+ "Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies_6354": "Project '{0}' is up to date with .d.ts files from its dependencies",
"Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0_6202": "Les références de projet ne peuvent pas former un graphe circulaire. Cycle détecté : {0}",
+ "Projects_in_this_build_Colon_0_6355": "Projects in this build: {0}",
"Projects_to_reference_6300": "Projets à référencer",
"Property_0_does_not_exist_on_const_enum_1_2479": "La propriété '{0}' n'existe pas sur l'enum 'const' '{1}'.",
"Property_0_does_not_exist_on_type_1_2339": "La propriété '{0}' n'existe pas sur le type '{1}'.",
@@ -778,8 +797,11 @@
"Show_all_compiler_options_6169": "Affichez toutes les options du compilateur.",
"Show_diagnostic_information_6149": "Affichez les informations de diagnostic.",
"Show_verbose_diagnostic_information_6150": "Affichez les informations de diagnostic détaillées.",
+ "Show_what_would_be_built_or_deleted_if_specified_with_clean_6367": "Show what would be built (or deleted, if specified with '--clean')",
"Signature_0_must_be_a_type_predicate_1224": "La signature '{0}' doit être un prédicat de type.",
"Skip_type_checking_of_declaration_files_6012": "Ignorer le contrôle de type des fichiers de déclaration.",
+ "Skipping_build_of_project_0_because_its_dependency_1_has_errors_6362": "Skipping build of project '{0}' because its dependency '{1}' has errors",
+ "Skipping_clean_because_not_all_projects_could_be_located_6371": "Skipping clean because not all projects could be located",
"Source_Map_Options_6175": "Options de mappage de source",
"Specialized_overload_signature_is_not_assignable_to_any_non_specialized_signature_2382": "La signature de surcharge spécialisée n'est assignable à aucune signature non spécialisée.",
"Specifier_of_dynamic_import_cannot_be_spread_element_1325": "Le spécificateur de l'importation dynamique ne peut pas être un élément spread.",
@@ -941,6 +963,7 @@
"Unexpected_end_of_text_1126": "Fin de texte inattendue.",
"Unexpected_token_1012": "Jeton inattendu.",
"Unexpected_token_A_constructor_method_accessor_or_property_was_expected_1068": "Jeton inattendu. Un constructeur, une méthode, un accesseur ou une propriété est attendu.",
+ "Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces_1069": "Jeton inattendu. Un nom de paramètre de type est attendu sans accolades.",
"Unexpected_token_expected_1179": "Jeton inattendu. '{' est attendu.",
"Unknown_compiler_option_0_5023": "Option de compilateur '{0}' inconnue.",
"Unknown_option_excludes_Did_you_mean_exclude_6114": "Option 'excludes' inconnue. Voulez-vous utiliser 'exclude' ?",
@@ -954,6 +977,7 @@
"Unterminated_template_literal_1160": "Littéral de modèle inachevé.",
"Untyped_function_calls_may_not_accept_type_arguments_2347": "Les appels de fonctions non typées ne peuvent pas accepter d'arguments de type.",
"Unused_label_7028": "Étiquette inutilisée.",
+ "Updating_output_timestamps_of_project_0_6359": "Updating output timestamps of project '{0}'...",
"Use_synthetic_default_member_95016": "Utilisez un membre 'default' synthétique.",
"Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher_2494": "L'utilisation d'une chaîne dans une instruction 'for...of' est prise en charge uniquement dans ECMAScript 5 et version supérieure.",
"VERSION_6036": "VERSION",
@@ -1014,6 +1038,7 @@
"const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN_2478": "L'initialiseur de membre enum 'const' donne une valeur non autorisée 'NaN'.",
"const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_im_2475": "Les enums 'const' ne peuvent être utilisés que dans les expressions d'accès à une propriété ou un index, ou dans la partie droite d'une déclaration d'importation, d'une assignation d'exportation ou d'une requête de type.",
"delete_cannot_be_called_on_an_identifier_in_strict_mode_1102": "'delete' ne peut pas être appelé dans un identificateur en mode strict.",
+ "delete_this_Project_0_is_up_to_date_because_it_was_previously_built_6360": "delete this - Project '{0}' is up to date because it was previously built",
"enum_declarations_can_only_be_used_in_a_ts_file_8015": "'Les déclarations enum' peuvent uniquement être utilisées dans un fichier .ts.",
"export_can_only_be_used_in_a_ts_file_8003": "'export=' peut uniquement être utilisé dans un fichier .ts.",
"export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always__2668": "Impossible d'appliquer le modificateur 'export' aux modules ambients et aux augmentations de module, car ils sont toujours visibles.",
diff --git a/lib/it/diagnosticMessages.generated.json b/lib/it/diagnosticMessages.generated.json
index d69031f584a..5576154c59c 100644
--- a/lib/it/diagnosticMessages.generated.json
+++ b/lib/it/diagnosticMessages.generated.json
@@ -208,6 +208,8 @@
"Cannot_find_a_tsconfig_json_file_at_the_specified_directory_Colon_0_5057": "Non è stato trovato alcun file tsconfig.json nella directory specificata '{0}'.",
"Cannot_find_global_type_0_2318": "Il tipo globale '{0}' non è stato trovato.",
"Cannot_find_global_value_0_2468": "Il valore globale '{0}' non è stato trovato.",
+ "Cannot_find_lib_definition_for_0_2726": "La definizione della libreria per '{0}' non è stata trovata.",
+ "Cannot_find_lib_definition_for_0_Did_you_mean_1_2727": "La definizione della libreria per '{0}' non è stata trovata. Si intendeva '{1}'?",
"Cannot_find_module_0_2307": "Il modulo '{0}' non è stato trovato.",
"Cannot_find_name_0_2304": "Il nome '{0}' non è stato trovato.",
"Cannot_find_name_0_Did_you_mean_1_2552": "Il nome '{0}' non è stato trovato. Si intendeva '{1}'?",
@@ -941,6 +943,7 @@
"Unexpected_end_of_text_1126": "Fine del testo imprevista.",
"Unexpected_token_1012": "Token imprevisto.",
"Unexpected_token_A_constructor_method_accessor_or_property_was_expected_1068": "Token imprevisto. È previsto un costruttore, un metodo, una funzione di accesso o una proprietà.",
+ "Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces_1069": "Token imprevisto. Sono previsti nomi di parametro senza parentesi graffe.",
"Unexpected_token_expected_1179": "Token imprevisto. È previsto '{'.",
"Unknown_compiler_option_0_5023": "Opzione del compilatore sconosciuta: '{0}'.",
"Unknown_option_excludes_Did_you_mean_exclude_6114": "L'opzione 'excludes' è sconosciuta. Si intendeva 'exclude'?",
diff --git a/lib/ja/diagnosticMessages.generated.json b/lib/ja/diagnosticMessages.generated.json
index 21721d5f147..96d8b8e876a 100644
--- a/lib/ja/diagnosticMessages.generated.json
+++ b/lib/ja/diagnosticMessages.generated.json
@@ -49,6 +49,8 @@
"A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged_2434": "名前空間宣言は、それとマージするクラスや関数より前に配置できません。",
"A_namespace_declaration_is_only_allowed_in_a_namespace_or_module_1235": "名前空間宣言は、名前空間かモジュールでのみ使用できます。",
"A_namespace_style_import_cannot_be_called_or_constructed_and_will_cause_a_failure_at_runtime_7038": "名前空間スタイルのインポートを呼び出したり、構築したりすることはできません。実行時にエラーが発生する原因となります。",
+ "A_non_dry_build_would_build_project_0_6357": "A non-dry build would build project '{0}'",
+ "A_non_dry_build_would_delete_the_following_files_Colon_0_6356": "A non-dry build would delete the following files: {0}",
"A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation_2371": "パラメーター初期化子は、関数またはコンストラクターの実装でのみ指定できます。",
"A_parameter_property_cannot_be_declared_using_a_rest_parameter_1317": "パラメーター プロパティは、rest パラメーターを使用して宣言することはできません。",
"A_parameter_property_is_only_allowed_in_a_constructor_implementation_2369": "パラメーター プロパティは、コンストラクターの実装でのみ指定できます。",
@@ -189,6 +191,9 @@
"Binary_digit_expected_1177": "2 進の数字が必要です。",
"Binding_element_0_implicitly_has_an_1_type_7031": "バインド要素 '{0}' には暗黙的に '{1}' 型が含まれます。",
"Block_scoped_variable_0_used_before_its_declaration_2448": "ブロック スコープの変数 '{0}' が、宣言の前に使用されています。",
+ "Build_all_projects_including_those_that_appear_to_be_up_to_date_6368": "Build all projects, including those that appear to be up to date",
+ "Build_one_or_more_projects_and_their_dependencies_if_out_of_date_6364": "Build one or more projects and their dependencies, if out of date",
+ "Building_project_0_6358": "Building project '{0}'...",
"Call_decorator_expression_90028": "デコレーター式を呼び出す",
"Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type_7020": "戻り値の型の注釈がない呼び出しシグネチャの戻り値の型は、暗黙的に 'any' になります。",
"Call_target_does_not_contain_any_signatures_2346": "呼び出しターゲットにシグネチャが含まれていません。",
@@ -208,6 +213,8 @@
"Cannot_find_a_tsconfig_json_file_at_the_specified_directory_Colon_0_5057": "指定されたディレクトリに tsconfig.json ファイルが見つかりません: '{0}'。",
"Cannot_find_global_type_0_2318": "グローバル型 '{0}' が見つかりません。",
"Cannot_find_global_value_0_2468": "グローバル値 '{0}' が見つかりません。",
+ "Cannot_find_lib_definition_for_0_2726": "'{0}' のライブラリ定義が見つかりません。",
+ "Cannot_find_lib_definition_for_0_Did_you_mean_1_2727": "'{0}' のライブラリ定義が見つかりません。'{1}' ですか?",
"Cannot_find_module_0_2307": "モジュール '{0}' が見つかりません。",
"Cannot_find_name_0_2304": "名前 '{0}' が見つかりません。",
"Cannot_find_name_0_Did_you_mean_1_2552": "'{0}' という名前は見つかりません。'{1}' ですか?",
@@ -282,6 +289,8 @@
"Convert_all_to_default_imports_95035": "すべてを既定のインポートに変換します",
"Convert_function_0_to_class_95002": "関数 '{0}' をクラスに変換します",
"Convert_function_to_an_ES2015_class_95001": "関数を ES2015 クラスに変換します",
+ "Convert_named_imports_to_namespace_import_95057": "名前付きインポートを名前空間インポートに変換します",
+ "Convert_namespace_import_to_named_imports_95056": "名前空間インポートを名前付きインポートに変換します",
"Convert_require_to_import_95047": "'require' を 'import' に変換",
"Convert_to_ES6_module_95017": "ES6 モジュールに変換します",
"Convert_to_default_import_95013": "既定のインポートに変換する",
@@ -300,6 +309,7 @@
"Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name_1207": "デコレーターを同じ名前の複数の get/set アクセサーに適用することはできません。",
"Default_export_of_the_module_has_or_is_using_private_name_0_4082": "モジュールの既定エクスポートがプライベート名 '{0}' を持っているか、使用しています。",
"Delete_all_unused_declarations_95024": "未使用の宣言をすべて削除します",
+ "Delete_the_outputs_of_all_projects_6365": "Delete the outputs of all projects",
"Deprecated_Use_jsxFactory_instead_Specify_the_object_invoked_for_createElement_when_targeting_react__6084": "[非推奨] 代わりに '--jsxFactory' を使います。'react' JSX 発行を対象とするときに、createElement に対して呼び出されたオブジェクトを指定します",
"Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file_6170": "[非推奨] 代わりに '--outFile' を使います。出力を連結して 1 つのファイルを生成します",
"Deprecated_Use_skipLibCheck_instead_Skip_type_checking_of_default_library_declaration_files_6160": "[非推奨] 代わりに '--skipLibCheck' を使います。既定のライブラリ宣言ファイルの型チェックをスキップします。",
@@ -350,6 +360,7 @@
"Enable_strict_checking_of_property_initialization_in_classes_6187": "クラス内のプロパティの初期化の厳密なチェックを有効にします。",
"Enable_strict_null_checks_6113": "厳格な null チェックを有効にします。",
"Enable_tracing_of_the_name_resolution_process_6085": "名前解決の処理のトレースを有効にします。",
+ "Enable_verbose_logging_6366": "Enable verbose logging",
"Enables_emit_interoperability_between_CommonJS_and_ES_Modules_via_creation_of_namespace_objects_for__7037": "すべてのインポートの名前空間オブジェクトを作成して、CommonJS と ES モジュール間の生成の相互運用性を有効にします。'allowSyntheticDefaultImports' を暗黙のうちに表します。",
"Enables_experimental_support_for_ES7_async_functions_6068": "ES7 非同期関数用の実験的なサポートを有効にします。",
"Enables_experimental_support_for_ES7_decorators_6065": "ES7 デコレーター用の実験的なサポートを有効にします。",
@@ -584,6 +595,7 @@
"Not_all_code_paths_return_a_value_7030": "一部のコード パスは値を返しません。",
"Numeric_index_type_0_is_not_assignable_to_string_index_type_1_2413": "数値インデックス型 '{0}' を文字列インデックス型 '{1}' に割り当てることはできません。",
"Numeric_separators_are_not_allowed_here_6188": "数値の区切り記号は、ここでは使用できません。",
+ "Object_is_of_type_unknown_2571": "オブジェクト型は 'unknown' です。",
"Object_is_possibly_null_2531": "オブジェクトは 'null' である可能性があります。",
"Object_is_possibly_null_or_undefined_2533": "オブジェクトは 'null' か 'undefined' である可能性があります。",
"Object_is_possibly_undefined_2532": "オブジェクトは 'undefined' である可能性があります。",
@@ -610,10 +622,12 @@
"Option_0_cannot_be_specified_without_specifying_option_1_5052": "オプション '{1}' を指定せずに、オプション '{0}' を指定することはできません。",
"Option_0_cannot_be_specified_without_specifying_option_1_or_option_2_5069": "オプション '{1}' またはオプション '{2}' を指定せずに、オプション '{0}' を指定することはできません。",
"Option_0_should_have_array_of_strings_as_a_value_6103": "オプション '{0}' には、値として文字列の配列を指定する必要があります。",
+ "Option_build_must_be_the_first_command_line_argument_6369": "Option '--build' must be the first command line argument.",
"Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES_5047": "オプション 'isolatedModules' は、オプション '--module' が指定されているか、オプション 'target' が 'ES2015' 以上であるかのいずれかの場合でのみ使用できます。",
"Option_paths_cannot_be_used_without_specifying_baseUrl_option_5060": "オプション 'paths' は、'--baseUrl' オプションを指定せずに使用できません。",
"Option_project_cannot_be_mixed_with_source_files_on_a_command_line_5042": "オプション 'project' をコマンド ライン上でソース ファイルと一緒に指定することはできません。",
"Option_resolveJsonModule_cannot_be_specified_without_node_module_resolution_strategy_5070": "'node' モジュールの解決方法を使用せずにオプション '--resolveJsonModule' を指定することはできません。",
+ "Options_0_and_1_cannot_be_combined_6370": "Options '{0}' and '{1}' cannot be combined.",
"Options_Colon_6027": "オプション:",
"Output_directory_for_generated_declaration_files_6166": "生成された宣言ファイルの出力ディレクトリ。",
"Output_file_0_from_project_1_does_not_exist_6309": "プロジェクト '{1}' からの出力ファイル '{0}' がありません",
@@ -661,7 +675,15 @@
"Print_names_of_generated_files_part_of_the_compilation_6154": "コンパイルの一環として生成されたファイル名を書き出します。",
"Print_the_compiler_s_version_6019": "コンパイラのバージョンを表示します。",
"Print_this_message_6017": "このメッセージを表示します。",
+ "Project_0_can_t_be_built_because_its_dependency_1_has_errors_6363": "Project '{0}' can't be built because its dependency '{1}' has errors",
+ "Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date_6353": "Project '{0}' is out of date because its dependency '{1}' is out of date",
+ "Project_0_is_out_of_date_because_oldest_output_1_is_older_than_newest_input_2_6350": "Project '{0}' is out of date because oldest output '{1}' is older than newest input '{2}'",
+ "Project_0_is_out_of_date_because_output_file_1_does_not_exist_6352": "Project '{0}' is out of date because output file '{1}' does not exist",
+ "Project_0_is_up_to_date_6361": "Project '{0}' is up to date",
+ "Project_0_is_up_to_date_because_newest_input_1_is_older_than_oldest_output_2_6351": "Project '{0}' is up to date because newest input '{1}' is older than oldest output '{2}'",
+ "Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies_6354": "Project '{0}' is up to date with .d.ts files from its dependencies",
"Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0_6202": "プロジェクト参照が円グラフを形成できません。循環が検出されました: {0}",
+ "Projects_in_this_build_Colon_0_6355": "Projects in this build: {0}",
"Projects_to_reference_6300": "参照するプロジェクト",
"Property_0_does_not_exist_on_const_enum_1_2479": "プロパティ '{0}' が 'const' 列挙型 '{1}' に存在しません。",
"Property_0_does_not_exist_on_type_1_2339": "プロパティ '{0}' は型 '{1}' に存在しません。",
@@ -775,8 +797,11 @@
"Show_all_compiler_options_6169": "コンパイラ オプションをすべて表示します。",
"Show_diagnostic_information_6149": "診断情報を表示します。",
"Show_verbose_diagnostic_information_6150": "詳細な診断情報を表示します。",
+ "Show_what_would_be_built_or_deleted_if_specified_with_clean_6367": "Show what would be built (or deleted, if specified with '--clean')",
"Signature_0_must_be_a_type_predicate_1224": "シグネチャ '{0}' は型の述語である必要があります。",
"Skip_type_checking_of_declaration_files_6012": "宣言ファイルの型チェックをスキップします。",
+ "Skipping_build_of_project_0_because_its_dependency_1_has_errors_6362": "Skipping build of project '{0}' because its dependency '{1}' has errors",
+ "Skipping_clean_because_not_all_projects_could_be_located_6371": "Skipping clean because not all projects could be located",
"Source_Map_Options_6175": "ソース マップ オプション",
"Specialized_overload_signature_is_not_assignable_to_any_non_specialized_signature_2382": "特殊化されたオーバーロード シグネチャは、特殊化されていないシグネチャに割り当てることはできません。",
"Specifier_of_dynamic_import_cannot_be_spread_element_1325": "動的インポートの指定子にはスプレッド要素を指定できません。",
@@ -938,6 +963,7 @@
"Unexpected_end_of_text_1126": "予期しないテキストの末尾です。",
"Unexpected_token_1012": "予期しないトークンです。",
"Unexpected_token_A_constructor_method_accessor_or_property_was_expected_1068": "予期しないトークンです。コンストラクター、メソッド、アクセサー、またはプロパティが必要です。",
+ "Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces_1069": "予期しないトークンです。型パラメーター名には、中かっこを含めることはできません。",
"Unexpected_token_expected_1179": "予期しないトークンです。'{' が必要です。",
"Unknown_compiler_option_0_5023": "コンパイラ オプション '{0}' が不明です。",
"Unknown_option_excludes_Did_you_mean_exclude_6114": "不明なオプション 'excludes' です。'exclude' ですか?",
@@ -951,6 +977,7 @@
"Unterminated_template_literal_1160": "未終了のテンプレート リテラルです。",
"Untyped_function_calls_may_not_accept_type_arguments_2347": "型指定のない関数の呼び出しで型引数を使用することはできません。",
"Unused_label_7028": "未使用のラベル。",
+ "Updating_output_timestamps_of_project_0_6359": "Updating output timestamps of project '{0}'...",
"Use_synthetic_default_member_95016": "合成 'default' メンバーを使用します。",
"Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher_2494": "'for...of' ステートメントでの文字列の使用は ECMAScript 5 以上でのみサポートされています。",
"VERSION_6036": "バージョン",
@@ -1011,6 +1038,7 @@
"const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN_2478": "'const' 列挙型メンバーの初期化子が、許可されない値 'NaN' に評価されました。",
"const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_im_2475": "'const' 列挙型は、プロパティまたはインデックスのアクセス式、インポート宣言またはエクスポートの割り当ての右辺、型のクエリにのみ使用できます。",
"delete_cannot_be_called_on_an_identifier_in_strict_mode_1102": "厳格モードでは 'delete' を識別子で呼び出すことはできません。",
+ "delete_this_Project_0_is_up_to_date_because_it_was_previously_built_6360": "delete this - Project '{0}' is up to date because it was previously built",
"enum_declarations_can_only_be_used_in_a_ts_file_8015": "'列挙型宣言' を使用できるのは .ts ファイル内のみです。",
"export_can_only_be_used_in_a_ts_file_8003": "'export=' を使用できるのは .ts ファイル内のみです。",
"export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always__2668": "環境モジュールとモジュール拡張は常に表示されるので、これらに 'export' 修飾子を適用することはできません。",
diff --git a/lib/ko/diagnosticMessages.generated.json b/lib/ko/diagnosticMessages.generated.json
index a75f68d2b77..aaeb235acaa 100644
--- a/lib/ko/diagnosticMessages.generated.json
+++ b/lib/ko/diagnosticMessages.generated.json
@@ -49,6 +49,8 @@
"A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged_2434": "네임스페이스 선언은 해당 선언이 병합된 클래스나 함수 앞에 있을 수 없습니다.",
"A_namespace_declaration_is_only_allowed_in_a_namespace_or_module_1235": "네임스페이스 선언은 네임스페이스 또는 모듈에서만 사용할 수 있습니다.",
"A_namespace_style_import_cannot_be_called_or_constructed_and_will_cause_a_failure_at_runtime_7038": "네임스페이스 스타일 가져오기를 호출하거나 생성할 수 없으며 런타임 시 오류가 발생합니다.",
+ "A_non_dry_build_would_build_project_0_6357": "A non-dry build would build project '{0}'",
+ "A_non_dry_build_would_delete_the_following_files_Colon_0_6356": "A non-dry build would delete the following files: {0}",
"A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation_2371": "매개 변수 이니셜라이저는 함수 또는 생성자 구현에서만 허용됩니다.",
"A_parameter_property_cannot_be_declared_using_a_rest_parameter_1317": "rest 매개 변수를 사용하여 매개 변수 속성을 선언할 수 없습니다.",
"A_parameter_property_is_only_allowed_in_a_constructor_implementation_2369": "매개 변수 속성은 생성자 구현에서만 허용됩니다.",
@@ -189,6 +191,9 @@
"Binary_digit_expected_1177": "이진수가 있어야 합니다.",
"Binding_element_0_implicitly_has_an_1_type_7031": "바인딩 요소 '{0}'에 암시적으로 '{1}' 형식이 있습니다.",
"Block_scoped_variable_0_used_before_its_declaration_2448": "선언 전에 사용된 블록 범위 변수 '{0}'입니다.",
+ "Build_all_projects_including_those_that_appear_to_be_up_to_date_6368": "Build all projects, including those that appear to be up to date",
+ "Build_one_or_more_projects_and_their_dependencies_if_out_of_date_6364": "Build one or more projects and their dependencies, if out of date",
+ "Building_project_0_6358": "Building project '{0}'...",
"Call_decorator_expression_90028": "데코레이터 식 호출",
"Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type_7020": "반환 형식 주석이 없는 호출 시그니처에는 암시적으로 'any' 반환 형식이 포함됩니다.",
"Call_target_does_not_contain_any_signatures_2346": "호출 대상에 시그니처가 포함되어 있지 않습니다.",
@@ -208,6 +213,8 @@
"Cannot_find_a_tsconfig_json_file_at_the_specified_directory_Colon_0_5057": "지정된 디렉터리에서 tsconfig.json 파일을 찾을 수 없습니다. '{0}'.",
"Cannot_find_global_type_0_2318": "전역 형식 '{0}'을(를) 찾을 수 없습니다.",
"Cannot_find_global_value_0_2468": "전역 값 '{0}'을(를) 찾을 수 없습니다.",
+ "Cannot_find_lib_definition_for_0_2726": "'{0}'에 대한 lib 정의를 찾을 수 없습니다.",
+ "Cannot_find_lib_definition_for_0_Did_you_mean_1_2727": "'{0}'에 대한 lib 정의를 찾을 수 없습니다. '{1}'이(가) 아닌지 확인하세요.",
"Cannot_find_module_0_2307": "'{0}' 모듈을 찾을 수 없습니다.",
"Cannot_find_name_0_2304": "'{0}' 이름을 찾을 수 없습니다.",
"Cannot_find_name_0_Did_you_mean_1_2552": "'{0}' 이름을 찾을 수 없습니다. '{1}'을(를) 사용하시겠습니까?",
@@ -302,6 +309,7 @@
"Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name_1207": "동일한 이름의 여러 get/set 접근자에 데코레이터를 적용할 수 없습니다.",
"Default_export_of_the_module_has_or_is_using_private_name_0_4082": "모듈의 기본 내보내기에서 전용 이름 '{0}'을(를) 가지고 있거나 사용 중입니다.",
"Delete_all_unused_declarations_95024": "사용하지 않는 선언 모두 삭제",
+ "Delete_the_outputs_of_all_projects_6365": "Delete the outputs of all projects",
"Deprecated_Use_jsxFactory_instead_Specify_the_object_invoked_for_createElement_when_targeting_react__6084": "[사용되지 않음] 대신 '--jsxFactory'를 사용합니다. 'react' JSX 내보내기를 대상으로 할 경우 createElement에 대해 호출되는 개체를 지정합니다.",
"Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file_6170": "[사용되지 않음] 대신 '--outFile'을 사용합니다. 출력을 연결하고 단일 파일로 내보냅니다.",
"Deprecated_Use_skipLibCheck_instead_Skip_type_checking_of_default_library_declaration_files_6160": "[사용되지 않음] 대신 '--skipLibCheck'를 사용합니다. 기본 라이브러리 선언 파일의 형식 검사를 건너뜁니다.",
@@ -352,6 +360,7 @@
"Enable_strict_checking_of_property_initialization_in_classes_6187": "클래스의 속성 초기화에 대해 엄격한 검사를 사용하도록 설정합니다.",
"Enable_strict_null_checks_6113": "엄격한 null 검사를 사용하도록 설정하세요.",
"Enable_tracing_of_the_name_resolution_process_6085": "이름 확인 프로세스 추적을 사용하도록 설정하세요.",
+ "Enable_verbose_logging_6366": "Enable verbose logging",
"Enables_emit_interoperability_between_CommonJS_and_ES_Modules_via_creation_of_namespace_objects_for__7037": "모든 가져오기에 대한 네임스페이스 개체를 만들어 CommonJS 및 ES 모듈 간의 내보내기 상호 운용성을 사용하도록 설정합니다. 'allowSyntheticDefaultImports'를 의미합니다.",
"Enables_experimental_support_for_ES7_async_functions_6068": "ES7 비동기 함수에 대해 실험적 지원을 사용합니다.",
"Enables_experimental_support_for_ES7_decorators_6065": "ES7 데코레이터에 대해 실험적 지원을 사용합니다.",
@@ -613,10 +622,12 @@
"Option_0_cannot_be_specified_without_specifying_option_1_5052": "'{1}' 옵션을 지정하지 않고 '{0}' 옵션을 지정할 수 없습니다.",
"Option_0_cannot_be_specified_without_specifying_option_1_or_option_2_5069": "'{1}' 또는 '{2}' 옵션을 지정하지 않고 '{0}' 옵션을 지정할 수 없습니다.",
"Option_0_should_have_array_of_strings_as_a_value_6103": "'{0}' 옵션은 문자열 배열 값을 사용해야 합니다.",
+ "Option_build_must_be_the_first_command_line_argument_6369": "Option '--build' must be the first command line argument.",
"Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES_5047": "'isolatedModules' 옵션은 '--module' 옵션을 지정하거나 'target' 옵션이 'ES2015' 이상인 경우에만 사용할 수 있습니다.",
"Option_paths_cannot_be_used_without_specifying_baseUrl_option_5060": "'paths' 옵션은 '--baseUrl' 옵션을 지정하지 않고 사용할 수 없습니다.",
"Option_project_cannot_be_mixed_with_source_files_on_a_command_line_5042": "명령줄에서 'project' 옵션을 원본 파일과 혼합하여 사용할 수 없습니다.",
"Option_resolveJsonModule_cannot_be_specified_without_node_module_resolution_strategy_5070": "'node' 모듈 확인 전략 없이 '--resolveJsonModule' 옵션을 지정할 수 없습니다.",
+ "Options_0_and_1_cannot_be_combined_6370": "Options '{0}' and '{1}' cannot be combined.",
"Options_Colon_6027": "옵션:",
"Output_directory_for_generated_declaration_files_6166": "생성된 선언 파일의 출력 디렉터리입니다.",
"Output_file_0_from_project_1_does_not_exist_6309": "프로젝트 '{1}'의 출력 파일 '{0}'이(가) 존재하지 않습니다.",
@@ -664,7 +675,15 @@
"Print_names_of_generated_files_part_of_the_compilation_6154": "컴파일의 일부인 생성된 파일의 이름을 인쇄합니다.",
"Print_the_compiler_s_version_6019": "컴파일러 버전을 인쇄합니다.",
"Print_this_message_6017": "이 메시지를 출력합니다.",
+ "Project_0_can_t_be_built_because_its_dependency_1_has_errors_6363": "Project '{0}' can't be built because its dependency '{1}' has errors",
+ "Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date_6353": "Project '{0}' is out of date because its dependency '{1}' is out of date",
+ "Project_0_is_out_of_date_because_oldest_output_1_is_older_than_newest_input_2_6350": "Project '{0}' is out of date because oldest output '{1}' is older than newest input '{2}'",
+ "Project_0_is_out_of_date_because_output_file_1_does_not_exist_6352": "Project '{0}' is out of date because output file '{1}' does not exist",
+ "Project_0_is_up_to_date_6361": "Project '{0}' is up to date",
+ "Project_0_is_up_to_date_because_newest_input_1_is_older_than_oldest_output_2_6351": "Project '{0}' is up to date because newest input '{1}' is older than oldest output '{2}'",
+ "Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies_6354": "Project '{0}' is up to date with .d.ts files from its dependencies",
"Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0_6202": "프로젝트 참조는 순환 그래프를 형성할 수 없습니다. 순환이 발견되었습니다. {0}",
+ "Projects_in_this_build_Colon_0_6355": "Projects in this build: {0}",
"Projects_to_reference_6300": "참조할 프로젝트",
"Property_0_does_not_exist_on_const_enum_1_2479": "'const' 열거형 '{1}'에 '{0}' 속성이 없습니다.",
"Property_0_does_not_exist_on_type_1_2339": "'{1}' 형식에 '{0}' 속성이 없습니다.",
@@ -778,8 +797,11 @@
"Show_all_compiler_options_6169": "모든 컴파일러 옵션을 표시합니다.",
"Show_diagnostic_information_6149": "진단 정보를 표시합니다.",
"Show_verbose_diagnostic_information_6150": "자세한 진단 정보를 표시합니다.",
+ "Show_what_would_be_built_or_deleted_if_specified_with_clean_6367": "Show what would be built (or deleted, if specified with '--clean')",
"Signature_0_must_be_a_type_predicate_1224": "'{0}' 시그니처는 형식 조건자여야 합니다.",
"Skip_type_checking_of_declaration_files_6012": "선언 파일 형식 검사를 건너뜁니다.",
+ "Skipping_build_of_project_0_because_its_dependency_1_has_errors_6362": "Skipping build of project '{0}' because its dependency '{1}' has errors",
+ "Skipping_clean_because_not_all_projects_could_be_located_6371": "Skipping clean because not all projects could be located",
"Source_Map_Options_6175": "소스 맵 옵션",
"Specialized_overload_signature_is_not_assignable_to_any_non_specialized_signature_2382": "특수화된 오버로드 시그니처는 특수화되지 않은 서명에 할당할 수 없습니다.",
"Specifier_of_dynamic_import_cannot_be_spread_element_1325": "동적 가져오기의 지정자는 스프레드 요소일 수 없습니다.",
@@ -941,6 +963,7 @@
"Unexpected_end_of_text_1126": "예기치 않은 텍스트 끝입니다.",
"Unexpected_token_1012": "예기치 않은 토큰입니다.",
"Unexpected_token_A_constructor_method_accessor_or_property_was_expected_1068": "예기치 않은 토큰입니다. 생성자, 메서드, 접근자 또는 속성이 필요합니다.",
+ "Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces_1069": "예기치 않은 토큰입니다. 중괄호가 없는 형식 매개 변수 이름이 필요합니다.",
"Unexpected_token_expected_1179": "예기치 않은 토큰입니다. '{'가 있어야 합니다.",
"Unknown_compiler_option_0_5023": "알 수 없는 컴파일러 옵션 '{0}'입니다.",
"Unknown_option_excludes_Did_you_mean_exclude_6114": "알 수 없는 옵션 'excludes'입니다. 'exclude'를 사용하시겠습니까?",
@@ -954,6 +977,7 @@
"Unterminated_template_literal_1160": "종결되지 않은 템플릿 리터럴입니다.",
"Untyped_function_calls_may_not_accept_type_arguments_2347": "형식화되지 않은 함수 호출에는 형식 인수를 사용할 수 없습니다.",
"Unused_label_7028": "사용되지 않는 레이블입니다.",
+ "Updating_output_timestamps_of_project_0_6359": "Updating output timestamps of project '{0}'...",
"Use_synthetic_default_member_95016": "가상 '기본' 멤버를 사용합니다.",
"Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher_2494": "ECMAScript 5 이상에서만 'for...of' 문에서 문자열을 사용할 수 있습니다.",
"VERSION_6036": "버전",
@@ -1014,6 +1038,7 @@
"const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN_2478": "'const' 열거형 멤버 이니셜라이저가 허용되지 않은 'NaN' 값에 대해 평가되었습니다.",
"const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_im_2475": "'const' 열거형은 속성 또는 인덱스 액세스 식 또는 내보내기 할당 또는 가져오기 선언의 오른쪽 또는 형식 쿼리에서만 사용할 수 있습니다.",
"delete_cannot_be_called_on_an_identifier_in_strict_mode_1102": "strict 모드에서는 식별자에 대해 'delete'를 호출할 수 없습니다.",
+ "delete_this_Project_0_is_up_to_date_because_it_was_previously_built_6360": "delete this - Project '{0}' is up to date because it was previously built",
"enum_declarations_can_only_be_used_in_a_ts_file_8015": "'enum 선언'은 .ts 파일에서만 사용할 수 있습니다.",
"export_can_only_be_used_in_a_ts_file_8003": "'export='는 .ts 파일에서만 사용할 수 있습니다.",
"export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always__2668": "앰비언트 모듈 및 모듈 확대는 항상 표시되므로 'export' 한정자를 적용할 수 없습니다.",
diff --git a/lib/lib.d.ts b/lib/lib.d.ts
index c2f4120d683..38a1cc0179b 100644
--- a/lib/lib.d.ts
+++ b/lib/lib.d.ts
@@ -18,20543 +18,7 @@ and limitations under the License.
///
-/////////////////////////////
-/// ECMAScript APIs
-/////////////////////////////
-
-declare const NaN: number;
-declare const Infinity: number;
-
-/**
- * Evaluates JavaScript code and executes it.
- * @param x A String value that contains valid JavaScript code.
- */
-declare function eval(x: string): any;
-
-/**
- * Converts A string to an integer.
- * @param s A string to convert into a number.
- * @param radix A value between 2 and 36 that specifies the base of the number in numString.
- * If this argument is not supplied, strings with a prefix of '0x' are considered hexadecimal.
- * All other strings are considered decimal.
- */
-declare function parseInt(s: string, radix?: number): number;
-
-/**
- * Converts a string to a floating-point number.
- * @param string A string that contains a floating-point number.
- */
-declare function parseFloat(string: string): number;
-
-/**
- * Returns a Boolean value that indicates whether a value is the reserved value NaN (not a number).
- * @param number A numeric value.
- */
-declare function isNaN(number: number): boolean;
-
-/**
- * Determines whether a supplied number is finite.
- * @param number Any numeric value.
- */
-declare function isFinite(number: number): boolean;
-
-/**
- * Gets the unencoded version of an encoded Uniform Resource Identifier (URI).
- * @param encodedURI A value representing an encoded URI.
- */
-declare function decodeURI(encodedURI: string): string;
-
-/**
- * Gets the unencoded version of an encoded component of a Uniform Resource Identifier (URI).
- * @param encodedURIComponent A value representing an encoded URI component.
- */
-declare function decodeURIComponent(encodedURIComponent: string): string;
-
-/**
- * Encodes a text string as a valid Uniform Resource Identifier (URI)
- * @param uri A value representing an encoded URI.
- */
-declare function encodeURI(uri: string): string;
-
-/**
- * Encodes a text string as a valid component of a Uniform Resource Identifier (URI).
- * @param uriComponent A value representing an encoded URI component.
- */
-declare function encodeURIComponent(uriComponent: string): string;
-
-/**
- * Computes a new string in which certain characters have been replaced by a hexadecimal escape sequence.
- * @param string A string value
- */
-declare function escape(string: string): string;
-
-/**
- * Computes a new string in which hexadecimal escape sequences are replaced with the character that it represents.
- * @param string A string value
- */
-declare function unescape(string: string): string;
-
-interface Symbol {
- /** Returns a string representation of an object. */
- toString(): string;
-
- /** Returns the primitive value of the specified object. */
- valueOf(): symbol;
-}
-
-declare type PropertyKey = string | number | symbol;
-
-interface PropertyDescriptor {
- configurable?: boolean;
- enumerable?: boolean;
- value?: any;
- writable?: boolean;
- get?(): any;
- set?(v: any): void;
-}
-
-interface PropertyDescriptorMap {
- [s: string]: PropertyDescriptor;
-}
-
-interface Object {
- /** The initial value of Object.prototype.constructor is the standard built-in Object constructor. */
- constructor: Function;
-
- /** Returns a string representation of an object. */
- toString(): string;
-
- /** Returns a date converted to a string using the current locale. */
- toLocaleString(): string;
-
- /** Returns the primitive value of the specified object. */
- valueOf(): Object;
-
- /**
- * Determines whether an object has a property with the specified name.
- * @param v A property name.
- */
- hasOwnProperty(v: PropertyKey): boolean;
-
- /**
- * Determines whether an object exists in another object's prototype chain.
- * @param v Another object whose prototype chain is to be checked.
- */
- isPrototypeOf(v: Object): boolean;
-
- /**
- * Determines whether a specified property is enumerable.
- * @param v A property name.
- */
- propertyIsEnumerable(v: PropertyKey): boolean;
-}
-
-interface ObjectConstructor {
- new(value?: any): Object;
- (): any;
- (value: any): any;
-
- /** A reference to the prototype for a class of objects. */
- readonly prototype: Object;
-
- /**
- * Returns the prototype of an object.
- * @param o The object that references the prototype.
- */
- getPrototypeOf(o: any): any;
-
- /**
- * Gets the own property descriptor of the specified object.
- * An own property descriptor is one that is defined directly on the object and is not inherited from the object's prototype.
- * @param o Object that contains the property.
- * @param p Name of the property.
- */
- getOwnPropertyDescriptor(o: any, p: PropertyKey): PropertyDescriptor | undefined;
-
- /**
- * Returns the names of the own properties of an object. The own properties of an object are those that are defined directly
- * on that object, and are not inherited from the object's prototype. The properties of an object include both fields (objects) and functions.
- * @param o Object that contains the own properties.
- */
- getOwnPropertyNames(o: any): string[];
-
- /**
- * Creates an object that has the specified prototype or that has null prototype.
- * @param o Object to use as a prototype. May be null.
- */
- create(o: object | null): any;
-
- /**
- * Creates an object that has the specified prototype, and that optionally contains specified properties.
- * @param o Object to use as a prototype. May be null
- * @param properties JavaScript object that contains one or more property descriptors.
- */
- create(o: object | null, properties: PropertyDescriptorMap & ThisType): any;
-
- /**
- * Adds a property to an object, or modifies attributes of an existing property.
- * @param o Object on which to add or modify the property. This can be a native JavaScript object (that is, a user-defined object or a built in object) or a DOM object.
- * @param p The property name.
- * @param attributes Descriptor for the property. It can be for a data property or an accessor property.
- */
- defineProperty(o: any, p: PropertyKey, attributes: PropertyDescriptor & ThisType): any;
-
- /**
- * Adds one or more properties to an object, and/or modifies attributes of existing properties.
- * @param o Object on which to add or modify the properties. This can be a native JavaScript object or a DOM object.
- * @param properties JavaScript object that contains one or more descriptor objects. Each descriptor object describes a data property or an accessor property.
- */
- defineProperties(o: any, properties: PropertyDescriptorMap & ThisType): any;
-
- /**
- * Prevents the modification of attributes of existing properties, and prevents the addition of new properties.
- * @param o Object on which to lock the attributes.
- */
- seal(o: T): T;
-
- /**
- * Prevents the modification of existing property attributes and values, and prevents the addition of new properties.
- * @param o Object on which to lock the attributes.
- */
- freeze(a: T[]): ReadonlyArray;
-
- /**
- * Prevents the modification of existing property attributes and values, and prevents the addition of new properties.
- * @param o Object on which to lock the attributes.
- */
- freeze(f: T): T;
-
- /**
- * Prevents the modification of existing property attributes and values, and prevents the addition of new properties.
- * @param o Object on which to lock the attributes.
- */
- freeze(o: T): Readonly;
-
- /**
- * Prevents the addition of new properties to an object.
- * @param o Object to make non-extensible.
- */
- preventExtensions(o: T): T;
-
- /**
- * Returns true if existing property attributes cannot be modified in an object and new properties cannot be added to the object.
- * @param o Object to test.
- */
- isSealed(o: any): boolean;
-
- /**
- * Returns true if existing property attributes and values cannot be modified in an object, and new properties cannot be added to the object.
- * @param o Object to test.
- */
- isFrozen(o: any): boolean;
-
- /**
- * Returns a value that indicates whether new properties can be added to an object.
- * @param o Object to test.
- */
- isExtensible(o: any): boolean;
-
- /**
- * Returns the names of the enumerable properties and methods of an object.
- * @param o Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object.
- */
- keys(o: {}): string[];
-}
-
-/**
- * Provides functionality common to all JavaScript objects.
- */
-declare const Object: ObjectConstructor;
-
-/**
- * Creates a new function.
- */
-interface Function {
- /**
- * Calls the function, substituting the specified object for the this value of the function, and the specified array for the arguments of the function.
- * @param thisArg The object to be used as the this object.
- * @param argArray A set of arguments to be passed to the function.
- */
- apply(this: Function, thisArg: any, argArray?: any): any;
-
- /**
- * Calls a method of an object, substituting another object for the current object.
- * @param thisArg The object to be used as the current object.
- * @param argArray A list of arguments to be passed to the method.
- */
- call(this: Function, thisArg: any, ...argArray: any[]): any;
-
- /**
- * For a given function, creates a bound function that has the same body as the original function.
- * The this object of the bound function is associated with the specified object, and has the specified initial parameters.
- * @param thisArg An object to which the this keyword can refer inside the new function.
- * @param argArray A list of arguments to be passed to the new function.
- */
- bind(this: Function, thisArg: any, ...argArray: any[]): any;
-
- /** Returns a string representation of a function. */
- toString(): string;
-
- prototype: any;
- readonly length: number;
-
- // Non-standard extensions
- arguments: any;
- caller: Function;
-}
-
-interface FunctionConstructor {
- /**
- * Creates a new function.
- * @param args A list of arguments the function accepts.
- */
- new(...args: string[]): Function;
- (...args: string[]): Function;
- readonly prototype: Function;
-}
-
-declare const Function: FunctionConstructor;
-
-interface IArguments {
- [index: number]: any;
- length: number;
- callee: Function;
-}
-
-interface String {
- /** Returns a string representation of a string. */
- toString(): string;
-
- /**
- * Returns the character at the specified index.
- * @param pos The zero-based index of the desired character.
- */
- charAt(pos: number): string;
-
- /**
- * Returns the Unicode value of the character at the specified location.
- * @param index The zero-based index of the desired character. If there is no character at the specified index, NaN is returned.
- */
- charCodeAt(index: number): number;
-
- /**
- * Returns a string that contains the concatenation of two or more strings.
- * @param strings The strings to append to the end of the string.
- */
- concat(...strings: string[]): string;
-
- /**
- * Returns the position of the first occurrence of a substring.
- * @param searchString The substring to search for in the string
- * @param position The index at which to begin searching the String object. If omitted, search starts at the beginning of the string.
- */
- indexOf(searchString: string, position?: number): number;
-
- /**
- * Returns the last occurrence of a substring in the string.
- * @param searchString The substring to search for.
- * @param position The index at which to begin searching. If omitted, the search begins at the end of the string.
- */
- lastIndexOf(searchString: string, position?: number): number;
-
- /**
- * Determines whether two strings are equivalent in the current locale.
- * @param that String to compare to target string
- */
- localeCompare(that: string): number;
-
- /**
- * Matches a string with a regular expression, and returns an array containing the results of that search.
- * @param regexp A variable name or string literal containing the regular expression pattern and flags.
- */
- match(regexp: string | RegExp): RegExpMatchArray | null;
-
- /**
- * Replaces text in a string, using a regular expression or search string.
- * @param searchValue A string to search for.
- * @param replaceValue A string containing the text to replace for every successful match of searchValue in this string.
- */
- replace(searchValue: string | RegExp, replaceValue: string): string;
-
- /**
- * Replaces text in a string, using a regular expression or search string.
- * @param searchValue A string to search for.
- * @param replacer A function that returns the replacement text.
- */
- replace(searchValue: string | RegExp, replacer: (substring: string, ...args: any[]) => string): string;
-
- /**
- * Finds the first substring match in a regular expression search.
- * @param regexp The regular expression pattern and applicable flags.
- */
- search(regexp: string | RegExp): number;
-
- /**
- * Returns a section of a string.
- * @param start The index to the beginning of the specified portion of stringObj.
- * @param end The index to the end of the specified portion of stringObj. The substring includes the characters up to, but not including, the character indicated by end.
- * If this value is not specified, the substring continues to the end of stringObj.
- */
- slice(start?: number, end?: number): string;
-
- /**
- * Split a string into substrings using the specified separator and return them as an array.
- * @param separator A string that identifies character or characters to use in separating the string. If omitted, a single-element array containing the entire string is returned.
- * @param limit A value used to limit the number of elements returned in the array.
- */
- split(separator: string | RegExp, limit?: number): string[];
-
- /**
- * Returns the substring at the specified location within a String object.
- * @param start The zero-based index number indicating the beginning of the substring.
- * @param end Zero-based index number indicating the end of the substring. The substring includes the characters up to, but not including, the character indicated by end.
- * If end is omitted, the characters from start through the end of the original string are returned.
- */
- substring(start: number, end?: number): string;
-
- /** Converts all the alphabetic characters in a string to lowercase. */
- toLowerCase(): string;
-
- /** Converts all alphabetic characters to lowercase, taking into account the host environment's current locale. */
- toLocaleLowerCase(): string;
-
- /** Converts all the alphabetic characters in a string to uppercase. */
- toUpperCase(): string;
-
- /** Returns a string where all alphabetic characters have been converted to uppercase, taking into account the host environment's current locale. */
- toLocaleUpperCase(): string;
-
- /** Removes the leading and trailing white space and line terminator characters from a string. */
- trim(): string;
-
- /** Returns the length of a String object. */
- readonly length: number;
-
- // IE extensions
- /**
- * Gets a substring beginning at the specified location and having the specified length.
- * @param from The starting position of the desired substring. The index of the first character in the string is zero.
- * @param length The number of characters to include in the returned substring.
- */
- substr(from: number, length?: number): string;
-
- /** Returns the primitive value of the specified object. */
- valueOf(): string;
-
- readonly [index: number]: string;
-}
-
-interface StringConstructor {
- new(value?: any): String;
- (value?: any): string;
- readonly prototype: String;
- fromCharCode(...codes: number[]): string;
-}
-
-/**
- * Allows manipulation and formatting of text strings and determination and location of substrings within strings.
- */
-declare const String: StringConstructor;
-
-interface Boolean {
- /** Returns the primitive value of the specified object. */
- valueOf(): boolean;
-}
-
-interface BooleanConstructor {
- new(value?: any): Boolean;
- (value?: any): boolean;
- readonly prototype: Boolean;
-}
-
-declare const Boolean: BooleanConstructor;
-
-interface Number {
- /**
- * Returns a string representation of an object.
- * @param radix Specifies a radix for converting numeric values to strings. This value is only used for numbers.
- */
- toString(radix?: number): string;
-
- /**
- * Returns a string representing a number in fixed-point notation.
- * @param fractionDigits Number of digits after the decimal point. Must be in the range 0 - 20, inclusive.
- */
- toFixed(fractionDigits?: number): string;
-
- /**
- * Returns a string containing a number represented in exponential notation.
- * @param fractionDigits Number of digits after the decimal point. Must be in the range 0 - 20, inclusive.
- */
- toExponential(fractionDigits?: number): string;
-
- /**
- * Returns a string containing a number represented either in exponential or fixed-point notation with a specified number of digits.
- * @param precision Number of significant digits. Must be in the range 1 - 21, inclusive.
- */
- toPrecision(precision?: number): string;
-
- /** Returns the primitive value of the specified object. */
- valueOf(): number;
-}
-
-interface NumberConstructor {
- new(value?: any): Number;
- (value?: any): number;
- readonly prototype: Number;
-
- /** The largest number that can be represented in JavaScript. Equal to approximately 1.79E+308. */
- readonly MAX_VALUE: number;
-
- /** The closest number to zero that can be represented in JavaScript. Equal to approximately 5.00E-324. */
- readonly MIN_VALUE: number;
-
- /**
- * A value that is not a number.
- * In equality comparisons, NaN does not equal any value, including itself. To test whether a value is equivalent to NaN, use the isNaN function.
- */
- readonly NaN: number;
-
- /**
- * A value that is less than the largest negative number that can be represented in JavaScript.
- * JavaScript displays NEGATIVE_INFINITY values as -infinity.
- */
- readonly NEGATIVE_INFINITY: number;
-
- /**
- * A value greater than the largest number that can be represented in JavaScript.
- * JavaScript displays POSITIVE_INFINITY values as infinity.
- */
- readonly POSITIVE_INFINITY: number;
-}
-
-/** An object that represents a number of any kind. All JavaScript numbers are 64-bit floating-point numbers. */
-declare const Number: NumberConstructor;
-
-interface TemplateStringsArray extends ReadonlyArray {
- readonly raw: ReadonlyArray;
-}
-
-/**
- * The type of `import.meta`.
- *
- * If you need to declare that a given property exists on `import.meta`,
- * this type may be augmented via interface merging.
- */
-interface ImportMeta {
-}
-
-interface Math {
- /** The mathematical constant e. This is Euler's number, the base of natural logarithms. */
- readonly E: number;
- /** The natural logarithm of 10. */
- readonly LN10: number;
- /** The natural logarithm of 2. */
- readonly LN2: number;
- /** The base-2 logarithm of e. */
- readonly LOG2E: number;
- /** The base-10 logarithm of e. */
- readonly LOG10E: number;
- /** Pi. This is the ratio of the circumference of a circle to its diameter. */
- readonly PI: number;
- /** The square root of 0.5, or, equivalently, one divided by the square root of 2. */
- readonly SQRT1_2: number;
- /** The square root of 2. */
- readonly SQRT2: number;
- /**
- * Returns the absolute value of a number (the value without regard to whether it is positive or negative).
- * For example, the absolute value of -5 is the same as the absolute value of 5.
- * @param x A numeric expression for which the absolute value is needed.
- */
- abs(x: number): number;
- /**
- * Returns the arc cosine (or inverse cosine) of a number.
- * @param x A numeric expression.
- */
- acos(x: number): number;
- /**
- * Returns the arcsine of a number.
- * @param x A numeric expression.
- */
- asin(x: number): number;
- /**
- * Returns the arctangent of a number.
- * @param x A numeric expression for which the arctangent is needed.
- */
- atan(x: number): number;
- /**
- * Returns the angle (in radians) from the X axis to a point.
- * @param y A numeric expression representing the cartesian y-coordinate.
- * @param x A numeric expression representing the cartesian x-coordinate.
- */
- atan2(y: number, x: number): number;
- /**
- * Returns the smallest integer greater than or equal to its numeric argument.
- * @param x A numeric expression.
- */
- ceil(x: number): number;
- /**
- * Returns the cosine of a number.
- * @param x A numeric expression that contains an angle measured in radians.
- */
- cos(x: number): number;
- /**
- * Returns e (the base of natural logarithms) raised to a power.
- * @param x A numeric expression representing the power of e.
- */
- exp(x: number): number;
- /**
- * Returns the greatest integer less than or equal to its numeric argument.
- * @param x A numeric expression.
- */
- floor(x: number): number;
- /**
- * Returns the natural logarithm (base e) of a number.
- * @param x A numeric expression.
- */
- log(x: number): number;
- /**
- * Returns the larger of a set of supplied numeric expressions.
- * @param values Numeric expressions to be evaluated.
- */
- max(...values: number[]): number;
- /**
- * Returns the smaller of a set of supplied numeric expressions.
- * @param values Numeric expressions to be evaluated.
- */
- min(...values: number[]): number;
- /**
- * Returns the value of a base expression taken to a specified power.
- * @param x The base value of the expression.
- * @param y The exponent value of the expression.
- */
- pow(x: number, y: number): number;
- /** Returns a pseudorandom number between 0 and 1. */
- random(): number;
- /**
- * Returns a supplied numeric expression rounded to the nearest number.
- * @param x The value to be rounded to the nearest number.
- */
- round(x: number): number;
- /**
- * Returns the sine of a number.
- * @param x A numeric expression that contains an angle measured in radians.
- */
- sin(x: number): number;
- /**
- * Returns the square root of a number.
- * @param x A numeric expression.
- */
- sqrt(x: number): number;
- /**
- * Returns the tangent of a number.
- * @param x A numeric expression that contains an angle measured in radians.
- */
- tan(x: number): number;
-}
-/** An intrinsic object that provides basic mathematics functionality and constants. */
-declare const Math: Math;
-
-/** Enables basic storage and retrieval of dates and times. */
-interface Date {
- /** Returns a string representation of a date. The format of the string depends on the locale. */
- toString(): string;
- /** Returns a date as a string value. */
- toDateString(): string;
- /** Returns a time as a string value. */
- toTimeString(): string;
- /** Returns a value as a string value appropriate to the host environment's current locale. */
- toLocaleString(): string;
- /** Returns a date as a string value appropriate to the host environment's current locale. */
- toLocaleDateString(): string;
- /** Returns a time as a string value appropriate to the host environment's current locale. */
- toLocaleTimeString(): string;
- /** Returns the stored time value in milliseconds since midnight, January 1, 1970 UTC. */
- valueOf(): number;
- /** Gets the time value in milliseconds. */
- getTime(): number;
- /** Gets the year, using local time. */
- getFullYear(): number;
- /** Gets the year using Universal Coordinated Time (UTC). */
- getUTCFullYear(): number;
- /** Gets the month, using local time. */
- getMonth(): number;
- /** Gets the month of a Date object using Universal Coordinated Time (UTC). */
- getUTCMonth(): number;
- /** Gets the day-of-the-month, using local time. */
- getDate(): number;
- /** Gets the day-of-the-month, using Universal Coordinated Time (UTC). */
- getUTCDate(): number;
- /** Gets the day of the week, using local time. */
- getDay(): number;
- /** Gets the day of the week using Universal Coordinated Time (UTC). */
- getUTCDay(): number;
- /** Gets the hours in a date, using local time. */
- getHours(): number;
- /** Gets the hours value in a Date object using Universal Coordinated Time (UTC). */
- getUTCHours(): number;
- /** Gets the minutes of a Date object, using local time. */
- getMinutes(): number;
- /** Gets the minutes of a Date object using Universal Coordinated Time (UTC). */
- getUTCMinutes(): number;
- /** Gets the seconds of a Date object, using local time. */
- getSeconds(): number;
- /** Gets the seconds of a Date object using Universal Coordinated Time (UTC). */
- getUTCSeconds(): number;
- /** Gets the milliseconds of a Date, using local time. */
- getMilliseconds(): number;
- /** Gets the milliseconds of a Date object using Universal Coordinated Time (UTC). */
- getUTCMilliseconds(): number;
- /** Gets the difference in minutes between the time on the local computer and Universal Coordinated Time (UTC). */
- getTimezoneOffset(): number;
- /**
- * Sets the date and time value in the Date object.
- * @param time A numeric value representing the number of elapsed milliseconds since midnight, January 1, 1970 GMT.
- */
- setTime(time: number): number;
- /**
- * Sets the milliseconds value in the Date object using local time.
- * @param ms A numeric value equal to the millisecond value.
- */
- setMilliseconds(ms: number): number;
- /**
- * Sets the milliseconds value in the Date object using Universal Coordinated Time (UTC).
- * @param ms A numeric value equal to the millisecond value.
- */
- setUTCMilliseconds(ms: number): number;
-
- /**
- * Sets the seconds value in the Date object using local time.
- * @param sec A numeric value equal to the seconds value.
- * @param ms A numeric value equal to the milliseconds value.
- */
- setSeconds(sec: number, ms?: number): number;
- /**
- * Sets the seconds value in the Date object using Universal Coordinated Time (UTC).
- * @param sec A numeric value equal to the seconds value.
- * @param ms A numeric value equal to the milliseconds value.
- */
- setUTCSeconds(sec: number, ms?: number): number;
- /**
- * Sets the minutes value in the Date object using local time.
- * @param min A numeric value equal to the minutes value.
- * @param sec A numeric value equal to the seconds value.
- * @param ms A numeric value equal to the milliseconds value.
- */
- setMinutes(min: number, sec?: number, ms?: number): number;
- /**
- * Sets the minutes value in the Date object using Universal Coordinated Time (UTC).
- * @param min A numeric value equal to the minutes value.
- * @param sec A numeric value equal to the seconds value.
- * @param ms A numeric value equal to the milliseconds value.
- */
- setUTCMinutes(min: number, sec?: number, ms?: number): number;
- /**
- * Sets the hour value in the Date object using local time.
- * @param hours A numeric value equal to the hours value.
- * @param min A numeric value equal to the minutes value.
- * @param sec A numeric value equal to the seconds value.
- * @param ms A numeric value equal to the milliseconds value.
- */
- setHours(hours: number, min?: number, sec?: number, ms?: number): number;
- /**
- * Sets the hours value in the Date object using Universal Coordinated Time (UTC).
- * @param hours A numeric value equal to the hours value.
- * @param min A numeric value equal to the minutes value.
- * @param sec A numeric value equal to the seconds value.
- * @param ms A numeric value equal to the milliseconds value.
- */
- setUTCHours(hours: number, min?: number, sec?: number, ms?: number): number;
- /**
- * Sets the numeric day-of-the-month value of the Date object using local time.
- * @param date A numeric value equal to the day of the month.
- */
- setDate(date: number): number;
- /**
- * Sets the numeric day of the month in the Date object using Universal Coordinated Time (UTC).
- * @param date A numeric value equal to the day of the month.
- */
- setUTCDate(date: number): number;
- /**
- * Sets the month value in the Date object using local time.
- * @param month A numeric value equal to the month. The value for January is 0, and other month values follow consecutively.
- * @param date A numeric value representing the day of the month. If this value is not supplied, the value from a call to the getDate method is used.
- */
- setMonth(month: number, date?: number): number;
- /**
- * Sets the month value in the Date object using Universal Coordinated Time (UTC).
- * @param month A numeric value equal to the month. The value for January is 0, and other month values follow consecutively.
- * @param date A numeric value representing the day of the month. If it is not supplied, the value from a call to the getUTCDate method is used.
- */
- setUTCMonth(month: number, date?: number): number;
- /**
- * Sets the year of the Date object using local time.
- * @param year A numeric value for the year.
- * @param month A zero-based numeric value for the month (0 for January, 11 for December). Must be specified if numDate is specified.
- * @param date A numeric value equal for the day of the month.
- */
- setFullYear(year: number, month?: number, date?: number): number;
- /**
- * Sets the year value in the Date object using Universal Coordinated Time (UTC).
- * @param year A numeric value equal to the year.
- * @param month A numeric value equal to the month. The value for January is 0, and other month values follow consecutively. Must be supplied if numDate is supplied.
- * @param date A numeric value equal to the day of the month.
- */
- setUTCFullYear(year: number, month?: number, date?: number): number;
- /** Returns a date converted to a string using Universal Coordinated Time (UTC). */
- toUTCString(): string;
- /** Returns a date as a string value in ISO format. */
- toISOString(): string;
- /** Used by the JSON.stringify method to enable the transformation of an object's data for JavaScript Object Notation (JSON) serialization. */
- toJSON(key?: any): string;
-}
-
-interface DateConstructor {
- new(): Date;
- new(value: number | string): Date;
- new(year: number, month: number, date?: number, hours?: number, minutes?: number, seconds?: number, ms?: number): Date;
- (): string;
- readonly prototype: Date;
- /**
- * Parses a string containing a date, and returns the number of milliseconds between that date and midnight, January 1, 1970.
- * @param s A date string
- */
- parse(s: string): number;
- /**
- * Returns the number of milliseconds between midnight, January 1, 1970 Universal Coordinated Time (UTC) (or GMT) and the specified date.
- * @param year The full year designation is required for cross-century date accuracy. If year is between 0 and 99 is used, then year is assumed to be 1900 + year.
- * @param month The month as an number between 0 and 11 (January to December).
- * @param date The date as an number between 1 and 31.
- * @param hours Must be supplied if minutes is supplied. An number from 0 to 23 (midnight to 11pm) that specifies the hour.
- * @param minutes Must be supplied if seconds is supplied. An number from 0 to 59 that specifies the minutes.
- * @param seconds Must be supplied if milliseconds is supplied. An number from 0 to 59 that specifies the seconds.
- * @param ms An number from 0 to 999 that specifies the milliseconds.
- */
- UTC(year: number, month: number, date?: number, hours?: number, minutes?: number, seconds?: number, ms?: number): number;
- now(): number;
-}
-
-declare const Date: DateConstructor;
-
-interface RegExpMatchArray extends Array {
- index?: number;
- input?: string;
-}
-
-interface RegExpExecArray extends Array {
- index: number;
- input: string;
-}
-
-interface RegExp {
- /**
- * Executes a search on a string using a regular expression pattern, and returns an array containing the results of that search.
- * @param string The String object or string literal on which to perform the search.
- */
- exec(string: string): RegExpExecArray | null;
-
- /**
- * Returns a Boolean value that indicates whether or not a pattern exists in a searched string.
- * @param string String on which to perform the search.
- */
- test(string: string): boolean;
-
- /** Returns a copy of the text of the regular expression pattern. Read-only. The regExp argument is a Regular expression object. It can be a variable name or a literal. */
- readonly source: string;
-
- /** Returns a Boolean value indicating the state of the global flag (g) used with a regular expression. Default is false. Read-only. */
- readonly global: boolean;
-
- /** Returns a Boolean value indicating the state of the ignoreCase flag (i) used with a regular expression. Default is false. Read-only. */
- readonly ignoreCase: boolean;
-
- /** Returns a Boolean value indicating the state of the multiline flag (m) used with a regular expression. Default is false. Read-only. */
- readonly multiline: boolean;
-
- lastIndex: number;
-
- // Non-standard extensions
- compile(): this;
-}
-
-interface RegExpConstructor {
- new(pattern: RegExp | string): RegExp;
- new(pattern: string, flags?: string): RegExp;
- (pattern: RegExp | string): RegExp;
- (pattern: string, flags?: string): RegExp;
- readonly prototype: RegExp;
-
- // Non-standard extensions
- $1: string;
- $2: string;
- $3: string;
- $4: string;
- $5: string;
- $6: string;
- $7: string;
- $8: string;
- $9: string;
- lastMatch: string;
-}
-
-declare const RegExp: RegExpConstructor;
-
-interface Error {
- name: string;
- message: string;
- stack?: string;
-}
-
-interface ErrorConstructor {
- new(message?: string): Error;
- (message?: string): Error;
- readonly prototype: Error;
-}
-
-declare const Error: ErrorConstructor;
-
-interface EvalError extends Error {
-}
-
-interface EvalErrorConstructor {
- new(message?: string): EvalError;
- (message?: string): EvalError;
- readonly prototype: EvalError;
-}
-
-declare const EvalError: EvalErrorConstructor;
-
-interface RangeError extends Error {
-}
-
-interface RangeErrorConstructor {
- new(message?: string): RangeError;
- (message?: string): RangeError;
- readonly prototype: RangeError;
-}
-
-declare const RangeError: RangeErrorConstructor;
-
-interface ReferenceError extends Error {
-}
-
-interface ReferenceErrorConstructor {
- new(message?: string): ReferenceError;
- (message?: string): ReferenceError;
- readonly prototype: ReferenceError;
-}
-
-declare const ReferenceError: ReferenceErrorConstructor;
-
-interface SyntaxError extends Error {
-}
-
-interface SyntaxErrorConstructor {
- new(message?: string): SyntaxError;
- (message?: string): SyntaxError;
- readonly prototype: SyntaxError;
-}
-
-declare const SyntaxError: SyntaxErrorConstructor;
-
-interface TypeError extends Error {
-}
-
-interface TypeErrorConstructor {
- new(message?: string): TypeError;
- (message?: string): TypeError;
- readonly prototype: TypeError;
-}
-
-declare const TypeError: TypeErrorConstructor;
-
-interface URIError extends Error {
-}
-
-interface URIErrorConstructor {
- new(message?: string): URIError;
- (message?: string): URIError;
- readonly prototype: URIError;
-}
-
-declare const URIError: URIErrorConstructor;
-
-interface JSON {
- /**
- * Converts a JavaScript Object Notation (JSON) string into an object.
- * @param text A valid JSON string.
- * @param reviver A function that transforms the results. This function is called for each member of the object.
- * If a member contains nested objects, the nested objects are transformed before the parent object is.
- */
- parse(text: string, reviver?: (key: any, value: any) => any): any;
- /**
- * Converts a JavaScript value to a JavaScript Object Notation (JSON) string.
- * @param value A JavaScript value, usually an object or array, to be converted.
- * @param replacer A function that transforms the results.
- * @param space Adds indentation, white space, and line break characters to the return-value JSON text to make it easier to read.
- */
- stringify(value: any, replacer?: (key: string, value: any) => any, space?: string | number): string;
- /**
- * Converts a JavaScript value to a JavaScript Object Notation (JSON) string.
- * @param value A JavaScript value, usually an object or array, to be converted.
- * @param replacer An array of strings and numbers that acts as a approved list for selecting the object properties that will be stringified.
- * @param space Adds indentation, white space, and line break characters to the return-value JSON text to make it easier to read.
- */
- stringify(value: any, replacer?: (number | string)[] | null, space?: string | number): string;
-}
-
-/**
- * An intrinsic object that provides functions to convert JavaScript values to and from the JavaScript Object Notation (JSON) format.
- */
-declare const JSON: JSON;
-
-
-/////////////////////////////
-/// ECMAScript Array API (specially handled by compiler)
-/////////////////////////////
-
-interface ReadonlyArray {
- /**
- * Gets the length of the array. This is a number one higher than the highest element defined in an array.
- */
- readonly length: number;
- /**
- * Returns a string representation of an array.
- */
- toString(): string;
- /**
- * Returns a string representation of an array. The elements are converted to string using their toLocalString methods.
- */
- toLocaleString(): string;
- /**
- * Combines two or more arrays.
- * @param items Additional items to add to the end of array1.
- */
- concat(...items: ConcatArray[]): T[];
- /**
- * Combines two or more arrays.
- * @param items Additional items to add to the end of array1.
- */
- concat(...items: (T | ConcatArray)[]): T[];
- /**
- * Adds all the elements of an array separated by the specified separator string.
- * @param separator A string used to separate one element of an array from the next in the resulting String. If omitted, the array elements are separated with a comma.
- */
- join(separator?: string): string;
- /**
- * Returns a section of an array.
- * @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): T[];
- /**
- * Returns the index of the first occurrence of a value in an array.
- * @param searchElement The value to locate in the array.
- * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the search starts at index 0.
- */
- indexOf(searchElement: T, fromIndex?: number): number;
- /**
- * Returns the index of the last occurrence of a specified value in an array.
- * @param searchElement The value to locate in the array.
- * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the search starts at the last index in the array.
- */
- lastIndexOf(searchElement: T, fromIndex?: number): number;
- /**
- * Determines whether all the members of an array satisfy the specified test.
- * @param callbackfn A function that accepts up to three arguments. The every method calls the callbackfn function for each element in array1 until the callbackfn returns false, or until the end of the array.
- * @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.
- */
- every(callbackfn: (value: T, index: number, array: ReadonlyArray) => boolean, thisArg?: any): boolean;
- /**
- * Determines whether the specified callback function returns true for any element of an array.
- * @param callbackfn A function that accepts up to three arguments. The some method calls the callbackfn function for each element in array1 until the callbackfn returns true, or until the end of the array.
- * @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.
- */
- some(callbackfn: (value: T, index: number, array: ReadonlyArray) => boolean, thisArg?: any): boolean;
- /**
- * Performs the specified action for each element in an array.
- * @param callbackfn A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the array.
- * @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: T, index: number, array: ReadonlyArray) => void, thisArg?: any): void;
- /**
- * Calls a defined callback function on each element of an array, and returns an array that contains the results.
- * @param callbackfn A function that accepts up to three arguments. The map method calls the callbackfn function one time for each element in the array.
- * @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: T, index: number, array: ReadonlyArray) => U, thisArg?: any): U[];
- /**
- * Returns the elements of an array that meet the condition specified in a callback function.
- * @param callbackfn A function that accepts up to three arguments. The filter method calls the callbackfn function one time for each element in the array.
- * @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.
- */
- filter
(callbackfn: (value: T, index: number, array: ReadonlyArray) => value is S, thisArg?: any): S[];
- /**
- * Returns the elements of an array that meet the condition specified in a callback function.
- * @param callbackfn A function that accepts up to three arguments. The filter method calls the callbackfn function one time for each element in the array.
- * @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.
- */
- filter(callbackfn: (value: T, index: number, array: ReadonlyArray) => any, thisArg?: any): T[];
- /**
- * Calls the specified callback function for all the elements in an array. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.
- * @param callbackfn A function that accepts up to four arguments. The reduce method calls the callbackfn function one time for each element in the array.
- * @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.
- */
- reduce(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: ReadonlyArray) => T): T;
- reduce(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: ReadonlyArray) => T, initialValue: T): T;
- /**
- * Calls the specified callback function for all the elements in an array. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.
- * @param callbackfn A function that accepts up to four arguments. The reduce method calls the callbackfn function one time for each element in the array.
- * @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.
- */
- reduce(callbackfn: (previousValue: U, currentValue: T, currentIndex: number, array: ReadonlyArray) => U, initialValue: U): U;
- /**
- * Calls the specified callback function for all the elements in an array, in descending order. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.
- * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls the callbackfn function one time for each element in the array.
- * @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.
- */
- reduceRight(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: ReadonlyArray) => T): T;
- reduceRight(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: ReadonlyArray) => T, initialValue: T): T;
- /**
- * Calls the specified callback function for all the elements in an array, in descending order. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.
- * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls the callbackfn function one time for each element in the array.
- * @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.
- */
- reduceRight(callbackfn: (previousValue: U, currentValue: T, currentIndex: number, array: ReadonlyArray) => U, initialValue: U): U;
-
- readonly [n: number]: T;
-}
-
-interface ConcatArray {
- readonly length: number;
- readonly [n: number]: T;
- join(separator?: string): string;
- slice(start?: number, end?: number): T[];
-}
-
-interface Array {
- /**
- * Gets or sets the length of the array. This is a number one higher than the highest element defined in an array.
- */
- length: number;
- /**
- * Returns a string representation of an array.
- */
- toString(): string;
- /**
- * Returns a string representation of an array. The elements are converted to string using their toLocalString methods.
- */
- toLocaleString(): string;
- /**
- * Appends new elements to an array, and returns the new length of the array.
- * @param items New elements of the Array.
- */
- push(...items: T[]): number;
- /**
- * Removes the last element from an array and returns it.
- */
- pop(): T | undefined;
- /**
- * Combines two or more arrays.
- * @param items Additional items to add to the end of array1.
- */
- concat(...items: ConcatArray[]): T[];
- /**
- * Combines two or more arrays.
- * @param items Additional items to add to the end of array1.
- */
- concat(...items: (T | ConcatArray)[]): T[];
- /**
- * Adds all the elements of an array separated by the specified separator string.
- * @param separator A string used to separate one element of an array from the next in the resulting String. If omitted, the array elements are separated with a comma.
- */
- join(separator?: string): string;
- /**
- * Reverses the elements in an Array.
- */
- reverse(): T[];
- /**
- * Removes the first element from an array and returns it.
- */
- shift(): T | undefined;
- /**
- * Returns a section of an array.
- * @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): T[];
- /**
- * Sorts an array.
- * @param compareFn The name of the function used to determine the order of the elements. If omitted, the elements are sorted in ascending, ASCII character order.
- */
- sort(compareFn?: (a: T, b: T) => number): this;
- /**
- * Removes elements from an array and, if necessary, inserts new elements in their place, returning the deleted elements.
- * @param start The zero-based location in the array from which to start removing elements.
- * @param deleteCount The number of elements to remove.
- */
- splice(start: number, deleteCount?: number): T[];
- /**
- * Removes elements from an array and, if necessary, inserts new elements in their place, returning the deleted elements.
- * @param start The zero-based location in the array from which to start removing elements.
- * @param deleteCount The number of elements to remove.
- * @param items Elements to insert into the array in place of the deleted elements.
- */
- splice(start: number, deleteCount: number, ...items: T[]): T[];
- /**
- * Inserts new elements at the start of an array.
- * @param items Elements to insert at the start of the Array.
- */
- unshift(...items: T[]): number;
- /**
- * Returns the index of the first occurrence of a value in an array.
- * @param searchElement The value to locate in the array.
- * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the search starts at index 0.
- */
- indexOf(searchElement: T, fromIndex?: number): number;
- /**
- * Returns the index of the last occurrence of a specified value in an array.
- * @param searchElement The value to locate in the array.
- * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the search starts at the last index in the array.
- */
- lastIndexOf(searchElement: T, fromIndex?: number): number;
- /**
- * Determines whether all the members of an array satisfy the specified test.
- * @param callbackfn A function that accepts up to three arguments. The every method calls the callbackfn function for each element in array1 until the callbackfn returns false, or until the end of the array.
- * @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.
- */
- every(callbackfn: (value: T, index: number, array: T[]) => boolean, thisArg?: any): boolean;
- /**
- * Determines whether the specified callback function returns true for any element of an array.
- * @param callbackfn A function that accepts up to three arguments. The some method calls the callbackfn function for each element in array1 until the callbackfn returns true, or until the end of the array.
- * @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.
- */
- some(callbackfn: (value: T, index: number, array: T[]) => boolean, thisArg?: any): boolean;
- /**
- * Performs the specified action for each element in an array.
- * @param callbackfn A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the array.
- * @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: T, index: number, array: T[]) => void, thisArg?: any): void;
- /**
- * Calls a defined callback function on each element of an array, and returns an array that contains the results.
- * @param callbackfn A function that accepts up to three arguments. The map method calls the callbackfn function one time for each element in the array.
- * @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: T, index: number, array: T[]) => U, thisArg?: any): U[];
- /**
- * Returns the elements of an array that meet the condition specified in a callback function.
- * @param callbackfn A function that accepts up to three arguments. The filter method calls the callbackfn function one time for each element in the array.
- * @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.
- */
- filter(callbackfn: (value: T, index: number, array: T[]) => value is S, thisArg?: any): S[];
- /**
- * Returns the elements of an array that meet the condition specified in a callback function.
- * @param callbackfn A function that accepts up to three arguments. The filter method calls the callbackfn function one time for each element in the array.
- * @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.
- */
- filter(callbackfn: (value: T, index: number, array: T[]) => any, thisArg?: any): T[];
- /**
- * Calls the specified callback function for all the elements in an array. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.
- * @param callbackfn A function that accepts up to four arguments. The reduce method calls the callbackfn function one time for each element in the array.
- * @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.
- */
- reduce(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: T[]) => T): T;
- reduce(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: T[]) => T, initialValue: T): T;
- /**
- * Calls the specified callback function for all the elements in an array. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.
- * @param callbackfn A function that accepts up to four arguments. The reduce method calls the callbackfn function one time for each element in the array.
- * @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.
- */
- reduce(callbackfn: (previousValue: U, currentValue: T, currentIndex: number, array: T[]) => U, initialValue: U): U;
- /**
- * Calls the specified callback function for all the elements in an array, in descending order. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.
- * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls the callbackfn function one time for each element in the array.
- * @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.
- */
- reduceRight(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: T[]) => T): T;
- reduceRight(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: T[]) => T, initialValue: T): T;
- /**
- * Calls the specified callback function for all the elements in an array, in descending order. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.
- * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls the callbackfn function one time for each element in the array.
- * @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.
- */
- reduceRight(callbackfn: (previousValue: U, currentValue: T, currentIndex: number, array: T[]) => U, initialValue: U): U;
-
- [n: number]: T;
-}
-
-interface ArrayConstructor {
- new(arrayLength?: number): any[];
- new (arrayLength: number): T[];
- new (...items: T[]): T[];
- (arrayLength?: number): any[];
- (arrayLength: number): T[];
- (...items: T[]): T[];
- isArray(arg: any): arg is Array;
- readonly prototype: Array;
-}
-
-declare const Array: ArrayConstructor;
-
-interface TypedPropertyDescriptor {
- enumerable?: boolean;
- configurable?: boolean;
- writable?: boolean;
- value?: T;
- get?: () => T;
- set?: (value: T) => void;
-}
-
-declare type ClassDecorator = (target: TFunction) => TFunction | void;
-declare type PropertyDecorator = (target: Object, propertyKey: string | symbol) => void;
-declare type MethodDecorator = (target: Object, propertyKey: string | symbol, descriptor: TypedPropertyDescriptor) => TypedPropertyDescriptor | void;
-declare type ParameterDecorator = (target: Object, propertyKey: string | symbol, parameterIndex: number) => void;
-
-declare type PromiseConstructorLike = new (executor: (resolve: (value?: T | PromiseLike) => void, reject: (reason?: any) => void) => void) => PromiseLike;
-
-interface PromiseLike {
- /**
- * Attaches callbacks for the resolution and/or rejection of the Promise.
- * @param onfulfilled The callback to execute when the Promise is resolved.
- * @param onrejected The callback to execute when the Promise is rejected.
- * @returns A Promise for the completion of which ever callback is executed.
- */
- then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): PromiseLike;
-}
-
-/**
- * Represents the completion of an asynchronous operation
- */
-interface Promise {
- /**
- * Attaches callbacks for the resolution and/or rejection of the Promise.
- * @param onfulfilled The callback to execute when the Promise is resolved.
- * @param onrejected The callback to execute when the Promise is rejected.
- * @returns A Promise for the completion of which ever callback is executed.
- */
- then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): Promise;
-
- /**
- * Attaches a callback for only the rejection of the Promise.
- * @param onrejected The callback to execute when the Promise is rejected.
- * @returns A Promise for the completion of the callback.
- */
- catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): Promise;
-}
-
-interface ArrayLike {
- readonly length: number;
- readonly [n: number]: T;
-}
-
-/**
- * Make all properties in T optional
- */
-type Partial = {
- [P in keyof T]?: T[P];
-};
-
-/**
- * Make all properties in T required
- */
-type Required = {
- [P in keyof T]-?: T[P];
-};
-
-/**
- * Make all properties in T readonly
- */
-type Readonly = {
- readonly [P in keyof T]: T[P];
-};
-
-/**
- * From T pick a set of properties K
- */
-type Pick = {
- [P in K]: T[P];
-};
-
-/**
- * Construct a type with a set of properties K of type T
- */
-type Record = {
- [P in K]: T;
-};
-
-/**
- * Exclude from T those types that are assignable to U
- */
-type Exclude = T extends U ? never : T;
-
-/**
- * Extract from T those types that are assignable to U
- */
-type Extract = T extends U ? T : never;
-
-/**
- * Exclude null and undefined from T
- */
-type NonNullable = T extends null | undefined ? never : T;
-
-/**
- * Obtain the return type of a function type
- */
-type ReturnType any> = T extends (...args: any[]) => infer R ? R : any;
-
-/**
- * Obtain the return type of a constructor function type
- */
-type InstanceType any> = T extends new (...args: any[]) => infer R ? R : any;
-
-/**
- * Marker for contextual 'this' type
- */
-interface ThisType { }
-
-/**
- * Represents a raw buffer of binary data, which is used to store data for the
- * different typed arrays. ArrayBuffers cannot be read from or written to directly,
- * but can be passed to a typed array or DataView Object to interpret the raw
- * buffer as needed.
- */
-interface ArrayBuffer {
- /**
- * Read-only. The length of the ArrayBuffer (in bytes).
- */
- readonly byteLength: number;
-
- /**
- * Returns a section of an ArrayBuffer.
- */
- slice(begin: number, end?: number): ArrayBuffer;
-}
-
-/**
- * Allowed ArrayBuffer types for the buffer of an ArrayBufferView and related Typed Arrays.
- */
-interface ArrayBufferTypes {
- ArrayBuffer: ArrayBuffer;
-}
-type ArrayBufferLike = ArrayBufferTypes[keyof ArrayBufferTypes];
-
-interface ArrayBufferConstructor {
- readonly prototype: ArrayBuffer;
- new(byteLength: number): ArrayBuffer;
- isView(arg: any): arg is ArrayBufferView;
-}
-declare const ArrayBuffer: ArrayBufferConstructor;
-
-interface ArrayBufferView {
- /**
- * The ArrayBuffer instance referenced by the array.
- */
- buffer: ArrayBufferLike;
-
- /**
- * The length in bytes of the array.
- */
- byteLength: number;
-
- /**
- * The offset in bytes of the array.
- */
- byteOffset: number;
-}
-
-interface DataView {
- readonly buffer: ArrayBuffer;
- readonly byteLength: number;
- readonly byteOffset: number;
- /**
- * Gets the Float32 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.
- */
- getFloat32(byteOffset: number, littleEndian?: boolean): number;
-
- /**
- * Gets the Float64 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.
- */
- getFloat64(byteOffset: number, littleEndian?: boolean): number;
-
- /**
- * Gets the Int8 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.
- */
- getInt8(byteOffset: number): number;
-
- /**
- * Gets the Int16 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.
- */
- getInt16(byteOffset: number, littleEndian?: boolean): number;
- /**
- * Gets the Int32 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.
- */
- getInt32(byteOffset: number, littleEndian?: boolean): number;
-
- /**
- * Gets the Uint8 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.
- */
- getUint8(byteOffset: number): number;
-
- /**
- * Gets the Uint16 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.
- */
- getUint16(byteOffset: number, littleEndian?: boolean): number;
-
- /**
- * Gets the Uint32 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.
- */
- getUint32(byteOffset: number, littleEndian?: boolean): number;
-
- /**
- * Stores an Float32 value at the specified byte offset from the start of the view.
- * @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,
- * otherwise a little-endian value should be written.
- */
- setFloat32(byteOffset: number, value: number, littleEndian?: boolean): void;
-
- /**
- * Stores an Float64 value at the specified byte offset from the start of the view.
- * @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,
- * otherwise a little-endian value should be written.
- */
- setFloat64(byteOffset: number, value: number, littleEndian?: boolean): void;
-
- /**
- * Stores an Int8 value at the specified byte offset from the start of the view.
- * @param byteOffset The place in the buffer at which the value should be set.
- * @param value The value to set.
- */
- setInt8(byteOffset: number, value: number): void;
-
- /**
- * Stores an Int16 value at the specified byte offset from the start of the view.
- * @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,
- * otherwise a little-endian value should be written.
- */
- setInt16(byteOffset: number, value: number, littleEndian?: boolean): void;
-
- /**
- * Stores an Int32 value at the specified byte offset from the start of the view.
- * @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,
- * otherwise a little-endian value should be written.
- */
- setInt32(byteOffset: number, value: number, littleEndian?: boolean): void;
-
- /**
- * Stores an Uint8 value at the specified byte offset from the start of the view.
- * @param byteOffset The place in the buffer at which the value should be set.
- * @param value The value to set.
- */
- setUint8(byteOffset: number, value: number): void;
-
- /**
- * Stores an Uint16 value at the specified byte offset from the start of the view.
- * @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,
- * otherwise a little-endian value should be written.
- */
- setUint16(byteOffset: number, value: number, littleEndian?: boolean): void;
-
- /**
- * Stores an Uint32 value at the specified byte offset from the start of the view.
- * @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,
- * otherwise a little-endian value should be written.
- */
- setUint32(byteOffset: number, value: number, littleEndian?: boolean): void;
-}
-
-interface DataViewConstructor {
- new(buffer: ArrayBufferLike, byteOffset?: number, byteLength?: number): DataView;
-}
-declare const DataView: DataViewConstructor;
-
-/**
- * A typed array of 8-bit integer values. The contents are initialized to 0. If the requested
- * number of bytes could not be allocated an exception is raised.
- */
-interface Int8Array {
- /**
- * 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;
-
- /**
- * The length in bytes of the array.
- */
- readonly byteLength: number;
-
- /**
- * The offset in bytes of the array.
- */
- readonly byteOffset: number;
-
- /**
- * Returns the this object after copying a section of the array identified by start and end
- * to the same array starting at position target
- * @param target If target is negative, it is treated as length+target where length is the
- * length of the array.
- * @param start If start is negative, it is treated as length+start. If end is negative, it
- * is treated as length+end.
- * @param end If not specified, length of the this object is used as its default value.
- */
- copyWithin(target: number, start: number, end?: number): this;
-
- /**
- * Determines whether all the members of an array satisfy the specified test.
- * @param callbackfn A function that accepts up to three arguments. The every method calls
- * the callbackfn function for each element in array1 until the callbackfn returns false,
- * or until the end of the array.
- * @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.
- */
- every(callbackfn: (value: number, index: number, array: Int8Array) => boolean, thisArg?: any): boolean;
-
- /**
- * Returns the this object after filling the section identified by start and end with value
- * @param value value to fill array section with
- * @param start index to start filling the array at. If start is negative, it is treated as
- * length+start where length is the length of the array.
- * @param end index to stop filling the array at. If end is negative, it is treated as
- * length+end.
- */
- fill(value: number, start?: number, end?: number): this;
-
- /**
- * Returns the elements of an array that meet the condition specified in a callback function.
- * @param callbackfn A function that accepts up to three arguments. The filter method calls
- * the callbackfn function one time for each element in the array.
- * @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.
- */
- filter(callbackfn: (value: number, index: number, array: Int8Array) => any, thisArg?: any): Int8Array;
-
- /**
- * Returns the value of the first element in the array where predicate is true, and undefined
- * otherwise.
- * @param predicate find calls predicate once for each element of the array, in ascending
- * order, until it finds one where predicate returns true. If such an element is found, find
- * immediately returns that element value. Otherwise, find returns undefined.
- * @param thisArg If provided, it will be used as the this value for each invocation of
- * predicate. If it is not provided, undefined is used instead.
- */
- find(predicate: (value: number, index: number, obj: Int8Array) => boolean, thisArg?: any): number | undefined;
-
- /**
- * Returns the index of the first element in the array where predicate is true, and -1
- * otherwise.
- * @param predicate find calls predicate once for each element of the array, in ascending
- * order, until it finds one where predicate returns true. If such an element is found,
- * findIndex immediately returns that element index. Otherwise, findIndex returns -1.
- * @param thisArg If provided, it will be used as the this value for each invocation of
- * predicate. If it is not provided, undefined is used instead.
- */
- findIndex(predicate: (value: number, index: number, obj: Int8Array) => boolean, thisArg?: any): number;
-
- /**
- * Performs the specified action for each element in an array.
- * @param callbackfn A function that accepts up to three arguments. forEach calls the
- * callbackfn function one time for each element in the array.
- * @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: number, index: number, array: Int8Array) => void, thisArg?: any): void;
-
- /**
- * Returns the index of the first occurrence of a value in an array.
- * @param searchElement The value to locate in the array.
- * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
- * search starts at index 0.
- */
- indexOf(searchElement: number, fromIndex?: number): number;
-
- /**
- * Adds all the elements of an array separated by the specified separator string.
- * @param separator A string used to separate one element of an array from the next in the
- * resulting String. If omitted, the array elements are separated with a comma.
- */
- join(separator?: string): string;
-
- /**
- * Returns the index of the last occurrence of a value in an array.
- * @param searchElement The value to locate in the array.
- * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
- * search starts at index 0.
- */
- lastIndexOf(searchElement: number, fromIndex?: number): number;
-
- /**
- * The length of the array.
- */
- readonly length: number;
-
- /**
- * Calls a defined callback function on each element of an array, and returns an array that
- * contains the results.
- * @param callbackfn A function that accepts up to three arguments. The map method calls the
- * callbackfn function one time for each element in the array.
- * @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: number, index: number, array: Int8Array) => number, thisArg?: any): Int8Array;
-
- /**
- * Calls the specified callback function for all the elements in an array. The return value of
- * the callback function is the accumulated result, and is provided as an argument in the next
- * call to the callback function.
- * @param callbackfn A function that accepts up to four arguments. The reduce method calls the
- * callbackfn function one time for each element in the array.
- * @param initialValue If initialValue is specified, it is used as the initial value to start
- * the accumulation. The first call to the callbackfn function provides this value as an argument
- * instead of an array value.
- */
- reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int8Array) => number): number;
- reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int8Array) => number, initialValue: number): number;
-
- /**
- * Calls the specified callback function for all the elements in an array. The return value of
- * the callback function is the accumulated result, and is provided as an argument in the next
- * call to the callback function.
- * @param callbackfn A function that accepts up to four arguments. The reduce method calls the
- * callbackfn function one time for each element in the array.
- * @param initialValue If initialValue is specified, it is used as the initial value to start
- * the accumulation. The first call to the callbackfn function provides this value as an argument
- * instead of an array value.
- */
- reduce(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Int8Array) => U, initialValue: U): U;
-
- /**
- * Calls the specified callback function for all the elements in an array, in descending order.
- * The return value of the callback function is the accumulated result, and is provided as an
- * argument in the next call to the callback function.
- * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
- * the callbackfn function one time for each element in the array.
- * @param initialValue If initialValue is specified, it is used as the initial value to start
- * the accumulation. The first call to the callbackfn function provides this value as an
- * argument instead of an array value.
- */
- reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int8Array) => number): number;
- reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int8Array) => number, initialValue: number): number;
-
- /**
- * Calls the specified callback function for all the elements in an array, in descending order.
- * The return value of the callback function is the accumulated result, and is provided as an
- * argument in the next call to the callback function.
- * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
- * the callbackfn function one time for each element in the array.
- * @param initialValue If initialValue is specified, it is used as the initial value to start
- * the accumulation. The first call to the callbackfn function provides this value as an argument
- * instead of an array value.
- */
- reduceRight(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Int8Array) => U, initialValue: U): U;
-
- /**
- * Reverses the elements in an Array.
- */
- reverse(): Int8Array;
-
- /**
- * Sets a value or an array of values.
- * @param array A typed or untyped array of values to set.
- * @param offset The index in the current array at which the values are to be written.
- */
- set(array: ArrayLike, offset?: number): void;
-
- /**
- * Returns a section of an array.
- * @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): Int8Array;
-
- /**
- * Determines whether the specified callback function returns true for any element of an array.
- * @param callbackfn A function that accepts up to three arguments. The some method calls the
- * callbackfn function for each element in array1 until the callbackfn returns true, or until
- * the end of the array.
- * @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.
- */
- some(callbackfn: (value: number, index: number, array: Int8Array) => boolean, thisArg?: any): boolean;
-
- /**
- * Sorts an array.
- * @param compareFn The name of the function used to determine the order of the elements. If
- * omitted, the elements are sorted in ascending, ASCII character order.
- */
- sort(compareFn?: (a: number, b: number) => number): this;
-
- /**
- * Gets a new Int8Array view of the ArrayBuffer store for this array, referencing the elements
- * at begin, inclusive, up to end, exclusive.
- * @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): Int8Array;
-
- /**
- * Converts a number to a string by using the current locale.
- */
- toLocaleString(): string;
-
- /**
- * Returns a string representation of an array.
- */
- toString(): string;
-
- [index: number]: number;
-}
-interface Int8ArrayConstructor {
- readonly prototype: Int8Array;
- new(length: number): Int8Array;
- new(arrayOrArrayBuffer: ArrayLike | ArrayBufferLike): Int8Array;
- new(buffer: ArrayBufferLike, byteOffset: number, length?: number): Int8Array;
-
- /**
- * The size in bytes of each element in the array.
- */
- readonly BYTES_PER_ELEMENT: number;
-
- /**
- * 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[]): Int8Array;
-
- /**
- * 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: ArrayLike, mapfn?: (v: number, k: number) => number, thisArg?: any): Int8Array;
-
-
-}
-declare const Int8Array: Int8ArrayConstructor;
-
-/**
- * A typed array of 8-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 Uint8Array {
- /**
- * 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;
-
- /**
- * The length in bytes of the array.
- */
- readonly byteLength: number;
-
- /**
- * The offset in bytes of the array.
- */
- readonly byteOffset: number;
-
- /**
- * Returns the this object after copying a section of the array identified by start and end
- * to the same array starting at position target
- * @param target If target is negative, it is treated as length+target where length is the
- * length of the array.
- * @param start If start is negative, it is treated as length+start. If end is negative, it
- * is treated as length+end.
- * @param end If not specified, length of the this object is used as its default value.
- */
- copyWithin(target: number, start: number, end?: number): this;
-
- /**
- * Determines whether all the members of an array satisfy the specified test.
- * @param callbackfn A function that accepts up to three arguments. The every method calls
- * the callbackfn function for each element in array1 until the callbackfn returns false,
- * or until the end of the array.
- * @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.
- */
- every(callbackfn: (value: number, index: number, array: Uint8Array) => boolean, thisArg?: any): boolean;
-
- /**
- * Returns the this object after filling the section identified by start and end with value
- * @param value value to fill array section with
- * @param start index to start filling the array at. If start is negative, it is treated as
- * length+start where length is the length of the array.
- * @param end index to stop filling the array at. If end is negative, it is treated as
- * length+end.
- */
- fill(value: number, start?: number, end?: number): this;
-
- /**
- * Returns the elements of an array that meet the condition specified in a callback function.
- * @param callbackfn A function that accepts up to three arguments. The filter method calls
- * the callbackfn function one time for each element in the array.
- * @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.
- */
- filter(callbackfn: (value: number, index: number, array: Uint8Array) => any, thisArg?: any): Uint8Array;
-
- /**
- * Returns the value of the first element in the array where predicate is true, and undefined
- * otherwise.
- * @param predicate find calls predicate once for each element of the array, in ascending
- * order, until it finds one where predicate returns true. If such an element is found, find
- * immediately returns that element value. Otherwise, find returns undefined.
- * @param thisArg If provided, it will be used as the this value for each invocation of
- * predicate. If it is not provided, undefined is used instead.
- */
- find(predicate: (value: number, index: number, obj: Uint8Array) => boolean, thisArg?: any): number | undefined;
-
- /**
- * Returns the index of the first element in the array where predicate is true, and -1
- * otherwise.
- * @param predicate find calls predicate once for each element of the array, in ascending
- * order, until it finds one where predicate returns true. If such an element is found,
- * findIndex immediately returns that element index. Otherwise, findIndex returns -1.
- * @param thisArg If provided, it will be used as the this value for each invocation of
- * predicate. If it is not provided, undefined is used instead.
- */
- findIndex(predicate: (value: number, index: number, obj: Uint8Array) => boolean, thisArg?: any): number;
-
- /**
- * Performs the specified action for each element in an array.
- * @param callbackfn A function that accepts up to three arguments. forEach calls the
- * callbackfn function one time for each element in the array.
- * @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: number, index: number, array: Uint8Array) => void, thisArg?: any): void;
-
- /**
- * Returns the index of the first occurrence of a value in an array.
- * @param searchElement The value to locate in the array.
- * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
- * search starts at index 0.
- */
- indexOf(searchElement: number, fromIndex?: number): number;
-
- /**
- * Adds all the elements of an array separated by the specified separator string.
- * @param separator A string used to separate one element of an array from the next in the
- * resulting String. If omitted, the array elements are separated with a comma.
- */
- join(separator?: string): string;
-
- /**
- * Returns the index of the last occurrence of a value in an array.
- * @param searchElement The value to locate in the array.
- * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
- * search starts at index 0.
- */
- lastIndexOf(searchElement: number, fromIndex?: number): number;
-
- /**
- * The length of the array.
- */
- readonly length: number;
-
- /**
- * Calls a defined callback function on each element of an array, and returns an array that
- * contains the results.
- * @param callbackfn A function that accepts up to three arguments. The map method calls the
- * callbackfn function one time for each element in the array.
- * @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: number, index: number, array: Uint8Array) => number, thisArg?: any): Uint8Array;
-
- /**
- * Calls the specified callback function for all the elements in an array. The return value of
- * the callback function is the accumulated result, and is provided as an argument in the next
- * call to the callback function.
- * @param callbackfn A function that accepts up to four arguments. The reduce method calls the
- * callbackfn function one time for each element in the array.
- * @param initialValue If initialValue is specified, it is used as the initial value to start
- * the accumulation. The first call to the callbackfn function provides this value as an argument
- * instead of an array value.
- */
- reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8Array) => number): number;
- reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8Array) => number, initialValue: number): number;
-
- /**
- * Calls the specified callback function for all the elements in an array. The return value of
- * the callback function is the accumulated result, and is provided as an argument in the next
- * call to the callback function.
- * @param callbackfn A function that accepts up to four arguments. The reduce method calls the
- * callbackfn function one time for each element in the array.
- * @param initialValue If initialValue is specified, it is used as the initial value to start
- * the accumulation. The first call to the callbackfn function provides this value as an argument
- * instead of an array value.
- */
- reduce(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint8Array) => U, initialValue: U): U;
-
- /**
- * Calls the specified callback function for all the elements in an array, in descending order.
- * The return value of the callback function is the accumulated result, and is provided as an
- * argument in the next call to the callback function.
- * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
- * the callbackfn function one time for each element in the array.
- * @param initialValue If initialValue is specified, it is used as the initial value to start
- * the accumulation. The first call to the callbackfn function provides this value as an
- * argument instead of an array value.
- */
- reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8Array) => number): number;
- reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8Array) => number, initialValue: number): number;
-
- /**
- * Calls the specified callback function for all the elements in an array, in descending order.
- * The return value of the callback function is the accumulated result, and is provided as an
- * argument in the next call to the callback function.
- * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
- * the callbackfn function one time for each element in the array.
- * @param initialValue If initialValue is specified, it is used as the initial value to start
- * the accumulation. The first call to the callbackfn function provides this value as an argument
- * instead of an array value.
- */
- reduceRight(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint8Array) => U, initialValue: U): U;
-
- /**
- * Reverses the elements in an Array.
- */
- reverse(): Uint8Array;
-
- /**
- * Sets a value or an array of values.
- * @param array A typed or untyped array of values to set.
- * @param offset The index in the current array at which the values are to be written.
- */
- set(array: ArrayLike, offset?: number): void;
-
- /**
- * Returns a section of an array.
- * @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): Uint8Array;
-
- /**
- * Determines whether the specified callback function returns true for any element of an array.
- * @param callbackfn A function that accepts up to three arguments. The some method calls the
- * callbackfn function for each element in array1 until the callbackfn returns true, or until
- * the end of the array.
- * @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.
- */
- some(callbackfn: (value: number, index: number, array: Uint8Array) => boolean, thisArg?: any): boolean;
-
- /**
- * Sorts an array.
- * @param compareFn The name of the function used to determine the order of the elements. If
- * omitted, the elements are sorted in ascending, ASCII character order.
- */
- sort(compareFn?: (a: number, b: number) => number): this;
-
- /**
- * Gets a new Uint8Array view of the ArrayBuffer store for this array, referencing the elements
- * at begin, inclusive, up to end, exclusive.
- * @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): Uint8Array;
-
- /**
- * Converts a number to a string by using the current locale.
- */
- toLocaleString(): string;
-
- /**
- * Returns a string representation of an array.
- */
- toString(): string;
-
- [index: number]: number;
-}
-
-interface Uint8ArrayConstructor {
- readonly prototype: Uint8Array;
- new(length: number): Uint8Array;
- new(arrayOrArrayBuffer: ArrayLike | ArrayBufferLike): Uint8Array;
- new(buffer: ArrayBufferLike, byteOffset: number, length?: number): Uint8Array;
-
- /**
- * The size in bytes of each element in the array.
- */
- readonly BYTES_PER_ELEMENT: number;
-
- /**
- * 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[]): Uint8Array;
-
- /**
- * 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: ArrayLike, mapfn?: (v: number, k: number) => number, thisArg?: any): Uint8Array;
-
-}
-declare const Uint8Array: Uint8ArrayConstructor;
-
-/**
- * A typed array of 8-bit unsigned integer (clamped) values. The contents are initialized to 0.
- * If the requested number of bytes could not be allocated an exception is raised.
- */
-interface Uint8ClampedArray {
- /**
- * 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;
-
- /**
- * The length in bytes of the array.
- */
- readonly byteLength: number;
-
- /**
- * The offset in bytes of the array.
- */
- readonly byteOffset: number;
-
- /**
- * Returns the this object after copying a section of the array identified by start and end
- * to the same array starting at position target
- * @param target If target is negative, it is treated as length+target where length is the
- * length of the array.
- * @param start If start is negative, it is treated as length+start. If end is negative, it
- * is treated as length+end.
- * @param end If not specified, length of the this object is used as its default value.
- */
- copyWithin(target: number, start: number, end?: number): this;
-
- /**
- * Determines whether all the members of an array satisfy the specified test.
- * @param callbackfn A function that accepts up to three arguments. The every method calls
- * the callbackfn function for each element in array1 until the callbackfn returns false,
- * or until the end of the array.
- * @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.
- */
- every(callbackfn: (value: number, index: number, array: Uint8ClampedArray) => boolean, thisArg?: any): boolean;
-
- /**
- * Returns the this object after filling the section identified by start and end with value
- * @param value value to fill array section with
- * @param start index to start filling the array at. If start is negative, it is treated as
- * length+start where length is the length of the array.
- * @param end index to stop filling the array at. If end is negative, it is treated as
- * length+end.
- */
- fill(value: number, start?: number, end?: number): this;
-
- /**
- * Returns the elements of an array that meet the condition specified in a callback function.
- * @param callbackfn A function that accepts up to three arguments. The filter method calls
- * the callbackfn function one time for each element in the array.
- * @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.
- */
- filter(callbackfn: (value: number, index: number, array: Uint8ClampedArray) => any, thisArg?: any): Uint8ClampedArray;
-
- /**
- * Returns the value of the first element in the array where predicate is true, and undefined
- * otherwise.
- * @param predicate find calls predicate once for each element of the array, in ascending
- * order, until it finds one where predicate returns true. If such an element is found, find
- * immediately returns that element value. Otherwise, find returns undefined.
- * @param thisArg If provided, it will be used as the this value for each invocation of
- * predicate. If it is not provided, undefined is used instead.
- */
- find(predicate: (value: number, index: number, obj: Uint8ClampedArray) => boolean, thisArg?: any): number | undefined;
-
- /**
- * Returns the index of the first element in the array where predicate is true, and -1
- * otherwise.
- * @param predicate find calls predicate once for each element of the array, in ascending
- * order, until it finds one where predicate returns true. If such an element is found,
- * findIndex immediately returns that element index. Otherwise, findIndex returns -1.
- * @param thisArg If provided, it will be used as the this value for each invocation of
- * predicate. If it is not provided, undefined is used instead.
- */
- findIndex(predicate: (value: number, index: number, obj: Uint8ClampedArray) => boolean, thisArg?: any): number;
-
- /**
- * Performs the specified action for each element in an array.
- * @param callbackfn A function that accepts up to three arguments. forEach calls the
- * callbackfn function one time for each element in the array.
- * @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: number, index: number, array: Uint8ClampedArray) => void, thisArg?: any): void;
-
- /**
- * Returns the index of the first occurrence of a value in an array.
- * @param searchElement The value to locate in the array.
- * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
- * search starts at index 0.
- */
- indexOf(searchElement: number, fromIndex?: number): number;
-
- /**
- * Adds all the elements of an array separated by the specified separator string.
- * @param separator A string used to separate one element of an array from the next in the
- * resulting String. If omitted, the array elements are separated with a comma.
- */
- join(separator?: string): string;
-
- /**
- * Returns the index of the last occurrence of a value in an array.
- * @param searchElement The value to locate in the array.
- * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
- * search starts at index 0.
- */
- lastIndexOf(searchElement: number, fromIndex?: number): number;
-
- /**
- * The length of the array.
- */
- readonly length: number;
-
- /**
- * Calls a defined callback function on each element of an array, and returns an array that
- * contains the results.
- * @param callbackfn A function that accepts up to three arguments. The map method calls the
- * callbackfn function one time for each element in the array.
- * @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: number, index: number, array: Uint8ClampedArray) => number, thisArg?: any): Uint8ClampedArray;
-
- /**
- * Calls the specified callback function for all the elements in an array. The return value of
- * the callback function is the accumulated result, and is provided as an argument in the next
- * call to the callback function.
- * @param callbackfn A function that accepts up to four arguments. The reduce method calls the
- * callbackfn function one time for each element in the array.
- * @param initialValue If initialValue is specified, it is used as the initial value to start
- * the accumulation. The first call to the callbackfn function provides this value as an argument
- * instead of an array value.
- */
- reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8ClampedArray) => number): number;
- reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8ClampedArray) => number, initialValue: number): number;
-
- /**
- * Calls the specified callback function for all the elements in an array. The return value of
- * the callback function is the accumulated result, and is provided as an argument in the next
- * call to the callback function.
- * @param callbackfn A function that accepts up to four arguments. The reduce method calls the
- * callbackfn function one time for each element in the array.
- * @param initialValue If initialValue is specified, it is used as the initial value to start
- * the accumulation. The first call to the callbackfn function provides this value as an argument
- * instead of an array value.
- */
- reduce(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint8ClampedArray) => U, initialValue: U): U;
-
- /**
- * Calls the specified callback function for all the elements in an array, in descending order.
- * The return value of the callback function is the accumulated result, and is provided as an
- * argument in the next call to the callback function.
- * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
- * the callbackfn function one time for each element in the array.
- * @param initialValue If initialValue is specified, it is used as the initial value to start
- * the accumulation. The first call to the callbackfn function provides this value as an
- * argument instead of an array value.
- */
- reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8ClampedArray) => number): number;
- reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8ClampedArray) => number, initialValue: number): number;
-
- /**
- * Calls the specified callback function for all the elements in an array, in descending order.
- * The return value of the callback function is the accumulated result, and is provided as an
- * argument in the next call to the callback function.
- * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
- * the callbackfn function one time for each element in the array.
- * @param initialValue If initialValue is specified, it is used as the initial value to start
- * the accumulation. The first call to the callbackfn function provides this value as an argument
- * instead of an array value.
- */
- reduceRight(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint8ClampedArray) => U, initialValue: U): U;
-
- /**
- * Reverses the elements in an Array.
- */
- reverse(): Uint8ClampedArray;
-
- /**
- * Sets a value or an array of values.
- * @param array A typed or untyped array of values to set.
- * @param offset The index in the current array at which the values are to be written.
- */
- set(array: ArrayLike, offset?: number): void;
-
- /**
- * Returns a section of an array.
- * @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): Uint8ClampedArray;
-
- /**
- * Determines whether the specified callback function returns true for any element of an array.
- * @param callbackfn A function that accepts up to three arguments. The some method calls the
- * callbackfn function for each element in array1 until the callbackfn returns true, or until
- * the end of the array.
- * @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.
- */
- some(callbackfn: (value: number, index: number, array: Uint8ClampedArray) => boolean, thisArg?: any): boolean;
-
- /**
- * Sorts an array.
- * @param compareFn The name of the function used to determine the order of the elements. If
- * omitted, the elements are sorted in ascending, ASCII character order.
- */
- sort(compareFn?: (a: number, b: number) => number): this;
-
- /**
- * Gets a new Uint8ClampedArray view of the ArrayBuffer store for this array, referencing the elements
- * at begin, inclusive, up to end, exclusive.
- * @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): Uint8ClampedArray;
-
- /**
- * Converts a number to a string by using the current locale.
- */
- toLocaleString(): string;
-
- /**
- * Returns a string representation of an array.
- */
- toString(): string;
-
- [index: number]: number;
-}
-
-interface Uint8ClampedArrayConstructor {
- readonly prototype: Uint8ClampedArray;
- new(length: number): Uint8ClampedArray;
- new(arrayOrArrayBuffer: ArrayLike | ArrayBufferLike): Uint8ClampedArray;
- new(buffer: ArrayBufferLike, byteOffset: number, length?: number): Uint8ClampedArray;
-
- /**
- * The size in bytes of each element in the array.
- */
- readonly BYTES_PER_ELEMENT: number;
-
- /**
- * 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[]): Uint8ClampedArray;
-
- /**
- * 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: ArrayLike, mapfn?: (v: number, k: number) => number, thisArg?: any): Uint8ClampedArray;
-}
-declare const Uint8ClampedArray: Uint8ClampedArrayConstructor;
-
-/**
- * A typed array of 16-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 Int16Array {
- /**
- * 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;
-
- /**
- * The length in bytes of the array.
- */
- readonly byteLength: number;
-
- /**
- * The offset in bytes of the array.
- */
- readonly byteOffset: number;
-
- /**
- * Returns the this object after copying a section of the array identified by start and end
- * to the same array starting at position target
- * @param target If target is negative, it is treated as length+target where length is the
- * length of the array.
- * @param start If start is negative, it is treated as length+start. If end is negative, it
- * is treated as length+end.
- * @param end If not specified, length of the this object is used as its default value.
- */
- copyWithin(target: number, start: number, end?: number): this;
-
- /**
- * Determines whether all the members of an array satisfy the specified test.
- * @param callbackfn A function that accepts up to three arguments. The every method calls
- * the callbackfn function for each element in array1 until the callbackfn returns false,
- * or until the end of the array.
- * @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.
- */
- every(callbackfn: (value: number, index: number, array: Int16Array) => boolean, thisArg?: any): boolean;
-
- /**
- * Returns the this object after filling the section identified by start and end with value
- * @param value value to fill array section with
- * @param start index to start filling the array at. If start is negative, it is treated as
- * length+start where length is the length of the array.
- * @param end index to stop filling the array at. If end is negative, it is treated as
- * length+end.
- */
- fill(value: number, start?: number, end?: number): this;
-
- /**
- * Returns the elements of an array that meet the condition specified in a callback function.
- * @param callbackfn A function that accepts up to three arguments. The filter method calls
- * the callbackfn function one time for each element in the array.
- * @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.
- */
- filter(callbackfn: (value: number, index: number, array: Int16Array) => any, thisArg?: any): Int16Array;
-
- /**
- * Returns the value of the first element in the array where predicate is true, and undefined
- * otherwise.
- * @param predicate find calls predicate once for each element of the array, in ascending
- * order, until it finds one where predicate returns true. If such an element is found, find
- * immediately returns that element value. Otherwise, find returns undefined.
- * @param thisArg If provided, it will be used as the this value for each invocation of
- * predicate. If it is not provided, undefined is used instead.
- */
- find(predicate: (value: number, index: number, obj: Int16Array) => boolean, thisArg?: any): number | undefined;
-
- /**
- * Returns the index of the first element in the array where predicate is true, and -1
- * otherwise.
- * @param predicate find calls predicate once for each element of the array, in ascending
- * order, until it finds one where predicate returns true. If such an element is found,
- * findIndex immediately returns that element index. Otherwise, findIndex returns -1.
- * @param thisArg If provided, it will be used as the this value for each invocation of
- * predicate. If it is not provided, undefined is used instead.
- */
- findIndex(predicate: (value: number, index: number, obj: Int16Array) => boolean, thisArg?: any): number;
-
- /**
- * Performs the specified action for each element in an array.
- * @param callbackfn A function that accepts up to three arguments. forEach calls the
- * callbackfn function one time for each element in the array.
- * @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: number, index: number, array: Int16Array) => void, thisArg?: any): void;
- /**
- * Returns the index of the first occurrence of a value in an array.
- * @param searchElement The value to locate in the array.
- * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
- * search starts at index 0.
- */
- indexOf(searchElement: number, fromIndex?: number): number;
-
- /**
- * Adds all the elements of an array separated by the specified separator string.
- * @param separator A string used to separate one element of an array from the next in the
- * resulting String. If omitted, the array elements are separated with a comma.
- */
- join(separator?: string): string;
-
- /**
- * Returns the index of the last occurrence of a value in an array.
- * @param searchElement The value to locate in the array.
- * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
- * search starts at index 0.
- */
- lastIndexOf(searchElement: number, fromIndex?: number): number;
-
- /**
- * The length of the array.
- */
- readonly length: number;
-
- /**
- * Calls a defined callback function on each element of an array, and returns an array that
- * contains the results.
- * @param callbackfn A function that accepts up to three arguments. The map method calls the
- * callbackfn function one time for each element in the array.
- * @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: number, index: number, array: Int16Array) => number, thisArg?: any): Int16Array;
-
- /**
- * Calls the specified callback function for all the elements in an array. The return value of
- * the callback function is the accumulated result, and is provided as an argument in the next
- * call to the callback function.
- * @param callbackfn A function that accepts up to four arguments. The reduce method calls the
- * callbackfn function one time for each element in the array.
- * @param initialValue If initialValue is specified, it is used as the initial value to start
- * the accumulation. The first call to the callbackfn function provides this value as an argument
- * instead of an array value.
- */
- reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int16Array) => number): number;
- reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int16Array) => number, initialValue: number): number;
-
- /**
- * Calls the specified callback function for all the elements in an array. The return value of
- * the callback function is the accumulated result, and is provided as an argument in the next
- * call to the callback function.
- * @param callbackfn A function that accepts up to four arguments. The reduce method calls the
- * callbackfn function one time for each element in the array.
- * @param initialValue If initialValue is specified, it is used as the initial value to start
- * the accumulation. The first call to the callbackfn function provides this value as an argument
- * instead of an array value.
- */
- reduce(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Int16Array) => U, initialValue: U): U;
-
- /**
- * Calls the specified callback function for all the elements in an array, in descending order.
- * The return value of the callback function is the accumulated result, and is provided as an
- * argument in the next call to the callback function.
- * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
- * the callbackfn function one time for each element in the array.
- * @param initialValue If initialValue is specified, it is used as the initial value to start
- * the accumulation. The first call to the callbackfn function provides this value as an
- * argument instead of an array value.
- */
- reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int16Array) => number): number;
- reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int16Array) => number, initialValue: number): number;
-
- /**
- * Calls the specified callback function for all the elements in an array, in descending order.
- * The return value of the callback function is the accumulated result, and is provided as an
- * argument in the next call to the callback function.
- * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
- * the callbackfn function one time for each element in the array.
- * @param initialValue If initialValue is specified, it is used as the initial value to start
- * the accumulation. The first call to the callbackfn function provides this value as an argument
- * instead of an array value.
- */
- reduceRight(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Int16Array) => U, initialValue: U): U;
-
- /**
- * Reverses the elements in an Array.
- */
- reverse(): Int16Array;
-
- /**
- * Sets a value or an array of values.
- * @param array A typed or untyped array of values to set.
- * @param offset The index in the current array at which the values are to be written.
- */
- set(array: ArrayLike, offset?: number): void;
-
- /**
- * Returns a section of an array.
- * @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): Int16Array;
-
- /**
- * Determines whether the specified callback function returns true for any element of an array.
- * @param callbackfn A function that accepts up to three arguments. The some method calls the
- * callbackfn function for each element in array1 until the callbackfn returns true, or until
- * the end of the array.
- * @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.
- */
- some(callbackfn: (value: number, index: number, array: Int16Array) => boolean, thisArg?: any): boolean;
-
- /**
- * Sorts an array.
- * @param compareFn The name of the function used to determine the order of the elements. If
- * omitted, the elements are sorted in ascending, ASCII character order.
- */
- sort(compareFn?: (a: number, b: number) => number): this;
-
- /**
- * Gets a new Int16Array view of the ArrayBuffer store for this array, referencing the elements
- * at begin, inclusive, up to end, exclusive.
- * @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): Int16Array;
-
- /**
- * Converts a number to a string by using the current locale.
- */
- toLocaleString(): string;
-
- /**
- * Returns a string representation of an array.
- */
- toString(): string;
-
- [index: number]: number;
-}
-
-interface Int16ArrayConstructor {
- readonly prototype: Int16Array;
- new(length: number): Int16Array;
- new(arrayOrArrayBuffer: ArrayLike | ArrayBufferLike): Int16Array;
- new(buffer: ArrayBufferLike, byteOffset: number, length?: number): Int16Array;
-
- /**
- * The size in bytes of each element in the array.
- */
- readonly BYTES_PER_ELEMENT: number;
-
- /**
- * 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[]): Int16Array;
-
- /**
- * 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: ArrayLike, mapfn?: (v: number, k: number) => number, thisArg?: any): Int16Array;
-
-
-}
-declare const Int16Array: Int16ArrayConstructor;
-
-/**
- * A typed array of 16-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 Uint16Array {
- /**
- * 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;
-
- /**
- * The length in bytes of the array.
- */
- readonly byteLength: number;
-
- /**
- * The offset in bytes of the array.
- */
- readonly byteOffset: number;
-
- /**
- * Returns the this object after copying a section of the array identified by start and end
- * to the same array starting at position target
- * @param target If target is negative, it is treated as length+target where length is the
- * length of the array.
- * @param start If start is negative, it is treated as length+start. If end is negative, it
- * is treated as length+end.
- * @param end If not specified, length of the this object is used as its default value.
- */
- copyWithin(target: number, start: number, end?: number): this;
-
- /**
- * Determines whether all the members of an array satisfy the specified test.
- * @param callbackfn A function that accepts up to three arguments. The every method calls
- * the callbackfn function for each element in array1 until the callbackfn returns false,
- * or until the end of the array.
- * @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.
- */
- every(callbackfn: (value: number, index: number, array: Uint16Array) => boolean, thisArg?: any): boolean;
-
- /**
- * Returns the this object after filling the section identified by start and end with value
- * @param value value to fill array section with
- * @param start index to start filling the array at. If start is negative, it is treated as
- * length+start where length is the length of the array.
- * @param end index to stop filling the array at. If end is negative, it is treated as
- * length+end.
- */
- fill(value: number, start?: number, end?: number): this;
-
- /**
- * Returns the elements of an array that meet the condition specified in a callback function.
- * @param callbackfn A function that accepts up to three arguments. The filter method calls
- * the callbackfn function one time for each element in the array.
- * @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.
- */
- filter(callbackfn: (value: number, index: number, array: Uint16Array) => any, thisArg?: any): Uint16Array;
-
- /**
- * Returns the value of the first element in the array where predicate is true, and undefined
- * otherwise.
- * @param predicate find calls predicate once for each element of the array, in ascending
- * order, until it finds one where predicate returns true. If such an element is found, find
- * immediately returns that element value. Otherwise, find returns undefined.
- * @param thisArg If provided, it will be used as the this value for each invocation of
- * predicate. If it is not provided, undefined is used instead.
- */
- find(predicate: (value: number, index: number, obj: Uint16Array) => boolean, thisArg?: any): number | undefined;
-
- /**
- * Returns the index of the first element in the array where predicate is true, and -1
- * otherwise.
- * @param predicate find calls predicate once for each element of the array, in ascending
- * order, until it finds one where predicate returns true. If such an element is found,
- * findIndex immediately returns that element index. Otherwise, findIndex returns -1.
- * @param thisArg If provided, it will be used as the this value for each invocation of
- * predicate. If it is not provided, undefined is used instead.
- */
- findIndex(predicate: (value: number, index: number, obj: Uint16Array) => boolean, thisArg?: any): number;
-
- /**
- * Performs the specified action for each element in an array.
- * @param callbackfn A function that accepts up to three arguments. forEach calls the
- * callbackfn function one time for each element in the array.
- * @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: number, index: number, array: Uint16Array) => void, thisArg?: any): void;
-
- /**
- * Returns the index of the first occurrence of a value in an array.
- * @param searchElement The value to locate in the array.
- * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
- * search starts at index 0.
- */
- indexOf(searchElement: number, fromIndex?: number): number;
-
- /**
- * Adds all the elements of an array separated by the specified separator string.
- * @param separator A string used to separate one element of an array from the next in the
- * resulting String. If omitted, the array elements are separated with a comma.
- */
- join(separator?: string): string;
-
- /**
- * Returns the index of the last occurrence of a value in an array.
- * @param searchElement The value to locate in the array.
- * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
- * search starts at index 0.
- */
- lastIndexOf(searchElement: number, fromIndex?: number): number;
-
- /**
- * The length of the array.
- */
- readonly length: number;
-
- /**
- * Calls a defined callback function on each element of an array, and returns an array that
- * contains the results.
- * @param callbackfn A function that accepts up to three arguments. The map method calls the
- * callbackfn function one time for each element in the array.
- * @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: number, index: number, array: Uint16Array) => number, thisArg?: any): Uint16Array;
-
- /**
- * Calls the specified callback function for all the elements in an array. The return value of
- * the callback function is the accumulated result, and is provided as an argument in the next
- * call to the callback function.
- * @param callbackfn A function that accepts up to four arguments. The reduce method calls the
- * callbackfn function one time for each element in the array.
- * @param initialValue If initialValue is specified, it is used as the initial value to start
- * the accumulation. The first call to the callbackfn function provides this value as an argument
- * instead of an array value.
- */
- reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint16Array) => number): number;
- reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint16Array) => number, initialValue: number): number;
-
- /**
- * Calls the specified callback function for all the elements in an array. The return value of
- * the callback function is the accumulated result, and is provided as an argument in the next
- * call to the callback function.
- * @param callbackfn A function that accepts up to four arguments. The reduce method calls the
- * callbackfn function one time for each element in the array.
- * @param initialValue If initialValue is specified, it is used as the initial value to start
- * the accumulation. The first call to the callbackfn function provides this value as an argument
- * instead of an array value.
- */
- reduce(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint16Array) => U, initialValue: U): U;
-
- /**
- * Calls the specified callback function for all the elements in an array, in descending order.
- * The return value of the callback function is the accumulated result, and is provided as an
- * argument in the next call to the callback function.
- * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
- * the callbackfn function one time for each element in the array.
- * @param initialValue If initialValue is specified, it is used as the initial value to start
- * the accumulation. The first call to the callbackfn function provides this value as an
- * argument instead of an array value.
- */
- reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint16Array) => number): number;
- reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint16Array) => number, initialValue: number): number;
-
- /**
- * Calls the specified callback function for all the elements in an array, in descending order.
- * The return value of the callback function is the accumulated result, and is provided as an
- * argument in the next call to the callback function.
- * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
- * the callbackfn function one time for each element in the array.
- * @param initialValue If initialValue is specified, it is used as the initial value to start
- * the accumulation. The first call to the callbackfn function provides this value as an argument
- * instead of an array value.
- */
- reduceRight(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint16Array) => U, initialValue: U): U;
-
- /**
- * Reverses the elements in an Array.
- */
- reverse(): Uint16Array;
-
- /**
- * Sets a value or an array of values.
- * @param array A typed or untyped array of values to set.
- * @param offset The index in the current array at which the values are to be written.
- */
- set(array: ArrayLike, offset?: number): void;
-
- /**
- * Returns a section of an array.
- * @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): Uint16Array;
-
- /**
- * Determines whether the specified callback function returns true for any element of an array.
- * @param callbackfn A function that accepts up to three arguments. The some method calls the
- * callbackfn function for each element in array1 until the callbackfn returns true, or until
- * the end of the array.
- * @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.
- */
- some(callbackfn: (value: number, index: number, array: Uint16Array) => boolean, thisArg?: any): boolean;
-
- /**
- * Sorts an array.
- * @param compareFn The name of the function used to determine the order of the elements. If
- * omitted, the elements are sorted in ascending, ASCII character order.
- */
- sort(compareFn?: (a: number, b: number) => number): this;
-
- /**
- * Gets a new Uint16Array view of the ArrayBuffer store for this array, referencing the elements
- * at begin, inclusive, up to end, exclusive.
- * @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): Uint16Array;
-
- /**
- * Converts a number to a string by using the current locale.
- */
- toLocaleString(): string;
-
- /**
- * Returns a string representation of an array.
- */
- toString(): string;
-
- [index: number]: number;
-}
-
-interface Uint16ArrayConstructor {
- readonly prototype: Uint16Array;
- new(length: number): Uint16Array;
- new(arrayOrArrayBuffer: ArrayLike | ArrayBufferLike): Uint16Array;
- new(buffer: ArrayBufferLike, byteOffset: number, length?: number): Uint16Array;
-
- /**
- * The size in bytes of each element in the array.
- */
- readonly BYTES_PER_ELEMENT: number;
-
- /**
- * 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[]): Uint16Array;
-
- /**
- * 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: ArrayLike, mapfn?: (v: number, k: number) => number, thisArg?: any): Uint16Array;
-
-
-}
-declare const Uint16Array: Uint16ArrayConstructor;
-/**
- * A typed array of 32-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 Int32Array {
- /**
- * 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;
-
- /**
- * The length in bytes of the array.
- */
- readonly byteLength: number;
-
- /**
- * The offset in bytes of the array.
- */
- readonly byteOffset: number;
-
- /**
- * Returns the this object after copying a section of the array identified by start and end
- * to the same array starting at position target
- * @param target If target is negative, it is treated as length+target where length is the
- * length of the array.
- * @param start If start is negative, it is treated as length+start. If end is negative, it
- * is treated as length+end.
- * @param end If not specified, length of the this object is used as its default value.
- */
- copyWithin(target: number, start: number, end?: number): this;
-
- /**
- * Determines whether all the members of an array satisfy the specified test.
- * @param callbackfn A function that accepts up to three arguments. The every method calls
- * the callbackfn function for each element in array1 until the callbackfn returns false,
- * or until the end of the array.
- * @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.
- */
- every(callbackfn: (value: number, index: number, array: Int32Array) => boolean, thisArg?: any): boolean;
-
- /**
- * Returns the this object after filling the section identified by start and end with value
- * @param value value to fill array section with
- * @param start index to start filling the array at. If start is negative, it is treated as
- * length+start where length is the length of the array.
- * @param end index to stop filling the array at. If end is negative, it is treated as
- * length+end.
- */
- fill(value: number, start?: number, end?: number): this;
-
- /**
- * Returns the elements of an array that meet the condition specified in a callback function.
- * @param callbackfn A function that accepts up to three arguments. The filter method calls
- * the callbackfn function one time for each element in the array.
- * @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.
- */
- filter(callbackfn: (value: number, index: number, array: Int32Array) => any, thisArg?: any): Int32Array;
-
- /**
- * Returns the value of the first element in the array where predicate is true, and undefined
- * otherwise.
- * @param predicate find calls predicate once for each element of the array, in ascending
- * order, until it finds one where predicate returns true. If such an element is found, find
- * immediately returns that element value. Otherwise, find returns undefined.
- * @param thisArg If provided, it will be used as the this value for each invocation of
- * predicate. If it is not provided, undefined is used instead.
- */
- find(predicate: (value: number, index: number, obj: Int32Array) => boolean, thisArg?: any): number | undefined;
-
- /**
- * Returns the index of the first element in the array where predicate is true, and -1
- * otherwise.
- * @param predicate find calls predicate once for each element of the array, in ascending
- * order, until it finds one where predicate returns true. If such an element is found,
- * findIndex immediately returns that element index. Otherwise, findIndex returns -1.
- * @param thisArg If provided, it will be used as the this value for each invocation of
- * predicate. If it is not provided, undefined is used instead.
- */
- findIndex(predicate: (value: number, index: number, obj: Int32Array) => boolean, thisArg?: any): number;
-
- /**
- * Performs the specified action for each element in an array.
- * @param callbackfn A function that accepts up to three arguments. forEach calls the
- * callbackfn function one time for each element in the array.
- * @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: number, index: number, array: Int32Array) => void, thisArg?: any): void;
-
- /**
- * Returns the index of the first occurrence of a value in an array.
- * @param searchElement The value to locate in the array.
- * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
- * search starts at index 0.
- */
- indexOf(searchElement: number, fromIndex?: number): number;
-
- /**
- * Adds all the elements of an array separated by the specified separator string.
- * @param separator A string used to separate one element of an array from the next in the
- * resulting String. If omitted, the array elements are separated with a comma.
- */
- join(separator?: string): string;
-
- /**
- * Returns the index of the last occurrence of a value in an array.
- * @param searchElement The value to locate in the array.
- * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
- * search starts at index 0.
- */
- lastIndexOf(searchElement: number, fromIndex?: number): number;
-
- /**
- * The length of the array.
- */
- readonly length: number;
-
- /**
- * Calls a defined callback function on each element of an array, and returns an array that
- * contains the results.
- * @param callbackfn A function that accepts up to three arguments. The map method calls the
- * callbackfn function one time for each element in the array.
- * @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: number, index: number, array: Int32Array) => number, thisArg?: any): Int32Array;
-
- /**
- * Calls the specified callback function for all the elements in an array. The return value of
- * the callback function is the accumulated result, and is provided as an argument in the next
- * call to the callback function.
- * @param callbackfn A function that accepts up to four arguments. The reduce method calls the
- * callbackfn function one time for each element in the array.
- * @param initialValue If initialValue is specified, it is used as the initial value to start
- * the accumulation. The first call to the callbackfn function provides this value as an argument
- * instead of an array value.
- */
- reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int32Array) => number): number;
- reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int32Array) => number, initialValue: number): number;
-
- /**
- * Calls the specified callback function for all the elements in an array. The return value of
- * the callback function is the accumulated result, and is provided as an argument in the next
- * call to the callback function.
- * @param callbackfn A function that accepts up to four arguments. The reduce method calls the
- * callbackfn function one time for each element in the array.
- * @param initialValue If initialValue is specified, it is used as the initial value to start
- * the accumulation. The first call to the callbackfn function provides this value as an argument
- * instead of an array value.
- */
- reduce(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Int32Array) => U, initialValue: U): U;
-
- /**
- * Calls the specified callback function for all the elements in an array, in descending order.
- * The return value of the callback function is the accumulated result, and is provided as an
- * argument in the next call to the callback function.
- * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
- * the callbackfn function one time for each element in the array.
- * @param initialValue If initialValue is specified, it is used as the initial value to start
- * the accumulation. The first call to the callbackfn function provides this value as an
- * argument instead of an array value.
- */
- reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int32Array) => number): number;
- reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int32Array) => number, initialValue: number): number;
-
- /**
- * Calls the specified callback function for all the elements in an array, in descending order.
- * The return value of the callback function is the accumulated result, and is provided as an
- * argument in the next call to the callback function.
- * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
- * the callbackfn function one time for each element in the array.
- * @param initialValue If initialValue is specified, it is used as the initial value to start
- * the accumulation. The first call to the callbackfn function provides this value as an argument
- * instead of an array value.
- */
- reduceRight(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Int32Array) => U, initialValue: U): U;
-
- /**
- * Reverses the elements in an Array.
- */
- reverse(): Int32Array;
-
- /**
- * Sets a value or an array of values.
- * @param array A typed or untyped array of values to set.
- * @param offset The index in the current array at which the values are to be written.
- */
- set(array: ArrayLike, offset?: number): void;
-
- /**
- * Returns a section of an array.
- * @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): Int32Array;
-
- /**
- * Determines whether the specified callback function returns true for any element of an array.
- * @param callbackfn A function that accepts up to three arguments. The some method calls the
- * callbackfn function for each element in array1 until the callbackfn returns true, or until
- * the end of the array.
- * @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.
- */
- some(callbackfn: (value: number, index: number, array: Int32Array) => boolean, thisArg?: any): boolean;
-
- /**
- * Sorts an array.
- * @param compareFn The name of the function used to determine the order of the elements. If
- * omitted, the elements are sorted in ascending, ASCII character order.
- */
- sort(compareFn?: (a: number, b: number) => number): this;
-
- /**
- * Gets a new Int32Array view of the ArrayBuffer store for this array, referencing the elements
- * at begin, inclusive, up to end, exclusive.
- * @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): Int32Array;
-
- /**
- * Converts a number to a string by using the current locale.
- */
- toLocaleString(): string;
-
- /**
- * Returns a string representation of an array.
- */
- toString(): string;
-
- [index: number]: number;
-}
-
-interface Int32ArrayConstructor {
- readonly prototype: Int32Array;
- new(length: number): Int32Array;
- new(arrayOrArrayBuffer: ArrayLike | ArrayBufferLike): Int32Array;
- new(buffer: ArrayBufferLike, byteOffset: number, length?: number): Int32Array;
-
- /**
- * The size in bytes of each element in the array.
- */
- readonly BYTES_PER_ELEMENT: number;
-
- /**
- * 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[]): Int32Array;
-
- /**
- * 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: ArrayLike, mapfn?: (v: number, k: number) => number, thisArg?: any): Int32Array;
-
-}
-declare const Int32Array: Int32ArrayConstructor;
-
-/**
- * A typed array of 32-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 Uint32Array {
- /**
- * 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;
-
- /**
- * The length in bytes of the array.
- */
- readonly byteLength: number;
-
- /**
- * The offset in bytes of the array.
- */
- readonly byteOffset: number;
-
- /**
- * Returns the this object after copying a section of the array identified by start and end
- * to the same array starting at position target
- * @param target If target is negative, it is treated as length+target where length is the
- * length of the array.
- * @param start If start is negative, it is treated as length+start. If end is negative, it
- * is treated as length+end.
- * @param end If not specified, length of the this object is used as its default value.
- */
- copyWithin(target: number, start: number, end?: number): this;
-
- /**
- * Determines whether all the members of an array satisfy the specified test.
- * @param callbackfn A function that accepts up to three arguments. The every method calls
- * the callbackfn function for each element in array1 until the callbackfn returns false,
- * or until the end of the array.
- * @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.
- */
- every(callbackfn: (value: number, index: number, array: Uint32Array) => boolean, thisArg?: any): boolean;
-
- /**
- * Returns the this object after filling the section identified by start and end with value
- * @param value value to fill array section with
- * @param start index to start filling the array at. If start is negative, it is treated as
- * length+start where length is the length of the array.
- * @param end index to stop filling the array at. If end is negative, it is treated as
- * length+end.
- */
- fill(value: number, start?: number, end?: number): this;
-
- /**
- * Returns the elements of an array that meet the condition specified in a callback function.
- * @param callbackfn A function that accepts up to three arguments. The filter method calls
- * the callbackfn function one time for each element in the array.
- * @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.
- */
- filter(callbackfn: (value: number, index: number, array: Uint32Array) => any, thisArg?: any): Uint32Array;
-
- /**
- * Returns the value of the first element in the array where predicate is true, and undefined
- * otherwise.
- * @param predicate find calls predicate once for each element of the array, in ascending
- * order, until it finds one where predicate returns true. If such an element is found, find
- * immediately returns that element value. Otherwise, find returns undefined.
- * @param thisArg If provided, it will be used as the this value for each invocation of
- * predicate. If it is not provided, undefined is used instead.
- */
- find(predicate: (value: number, index: number, obj: Uint32Array) => boolean, thisArg?: any): number | undefined;
-
- /**
- * Returns the index of the first element in the array where predicate is true, and -1
- * otherwise.
- * @param predicate find calls predicate once for each element of the array, in ascending
- * order, until it finds one where predicate returns true. If such an element is found,
- * findIndex immediately returns that element index. Otherwise, findIndex returns -1.
- * @param thisArg If provided, it will be used as the this value for each invocation of
- * predicate. If it is not provided, undefined is used instead.
- */
- findIndex(predicate: (value: number, index: number, obj: Uint32Array) => boolean, thisArg?: any): number;
-
- /**
- * Performs the specified action for each element in an array.
- * @param callbackfn A function that accepts up to three arguments. forEach calls the
- * callbackfn function one time for each element in the array.
- * @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: number, index: number, array: Uint32Array) => void, thisArg?: any): void;
- /**
- * Returns the index of the first occurrence of a value in an array.
- * @param searchElement The value to locate in the array.
- * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
- * search starts at index 0.
- */
- indexOf(searchElement: number, fromIndex?: number): number;
-
- /**
- * Adds all the elements of an array separated by the specified separator string.
- * @param separator A string used to separate one element of an array from the next in the
- * resulting String. If omitted, the array elements are separated with a comma.
- */
- join(separator?: string): string;
-
- /**
- * Returns the index of the last occurrence of a value in an array.
- * @param searchElement The value to locate in the array.
- * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
- * search starts at index 0.
- */
- lastIndexOf(searchElement: number, fromIndex?: number): number;
-
- /**
- * The length of the array.
- */
- readonly length: number;
-
- /**
- * Calls a defined callback function on each element of an array, and returns an array that
- * contains the results.
- * @param callbackfn A function that accepts up to three arguments. The map method calls the
- * callbackfn function one time for each element in the array.
- * @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: number, index: number, array: Uint32Array) => number, thisArg?: any): Uint32Array;
-
- /**
- * Calls the specified callback function for all the elements in an array. The return value of
- * the callback function is the accumulated result, and is provided as an argument in the next
- * call to the callback function.
- * @param callbackfn A function that accepts up to four arguments. The reduce method calls the
- * callbackfn function one time for each element in the array.
- * @param initialValue If initialValue is specified, it is used as the initial value to start
- * the accumulation. The first call to the callbackfn function provides this value as an argument
- * instead of an array value.
- */
- reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint32Array) => number): number;
- reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint32Array) => number, initialValue: number): number;
-
- /**
- * Calls the specified callback function for all the elements in an array. The return value of
- * the callback function is the accumulated result, and is provided as an argument in the next
- * call to the callback function.
- * @param callbackfn A function that accepts up to four arguments. The reduce method calls the
- * callbackfn function one time for each element in the array.
- * @param initialValue If initialValue is specified, it is used as the initial value to start
- * the accumulation. The first call to the callbackfn function provides this value as an argument
- * instead of an array value.
- */
- reduce(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint32Array) => U, initialValue: U): U;
-
- /**
- * Calls the specified callback function for all the elements in an array, in descending order.
- * The return value of the callback function is the accumulated result, and is provided as an
- * argument in the next call to the callback function.
- * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
- * the callbackfn function one time for each element in the array.
- * @param initialValue If initialValue is specified, it is used as the initial value to start
- * the accumulation. The first call to the callbackfn function provides this value as an
- * argument instead of an array value.
- */
- reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint32Array) => number): number;
- reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint32Array) => number, initialValue: number): number;
-
- /**
- * Calls the specified callback function for all the elements in an array, in descending order.
- * The return value of the callback function is the accumulated result, and is provided as an
- * argument in the next call to the callback function.
- * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
- * the callbackfn function one time for each element in the array.
- * @param initialValue If initialValue is specified, it is used as the initial value to start
- * the accumulation. The first call to the callbackfn function provides this value as an argument
- * instead of an array value.
- */
- reduceRight(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint32Array) => U, initialValue: U): U;
-
- /**
- * Reverses the elements in an Array.
- */
- reverse(): Uint32Array;
-
- /**
- * Sets a value or an array of values.
- * @param array A typed or untyped array of values to set.
- * @param offset The index in the current array at which the values are to be written.
- */
- set(array: ArrayLike, offset?: number): void;
-
- /**
- * Returns a section of an array.
- * @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): Uint32Array;
-
- /**
- * Determines whether the specified callback function returns true for any element of an array.
- * @param callbackfn A function that accepts up to three arguments. The some method calls the
- * callbackfn function for each element in array1 until the callbackfn returns true, or until
- * the end of the array.
- * @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.
- */
- some(callbackfn: (value: number, index: number, array: Uint32Array) => boolean, thisArg?: any): boolean;
-
- /**
- * Sorts an array.
- * @param compareFn The name of the function used to determine the order of the elements. If
- * omitted, the elements are sorted in ascending, ASCII character order.
- */
- sort(compareFn?: (a: number, b: number) => number): this;
-
- /**
- * Gets a new Uint32Array view of the ArrayBuffer store for this array, referencing the elements
- * at begin, inclusive, up to end, exclusive.
- * @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): Uint32Array;
-
- /**
- * Converts a number to a string by using the current locale.
- */
- toLocaleString(): string;
-
- /**
- * Returns a string representation of an array.
- */
- toString(): string;
-
- [index: number]: number;
-}
-
-interface Uint32ArrayConstructor {
- readonly prototype: Uint32Array;
- new(length: number): Uint32Array;
- new(arrayOrArrayBuffer: ArrayLike | ArrayBufferLike): Uint32Array;
- new(buffer: ArrayBufferLike, byteOffset: number, length?: number): Uint32Array;
-
- /**
- * The size in bytes of each element in the array.
- */
- readonly BYTES_PER_ELEMENT: number;
-
- /**
- * 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[]): Uint32Array;
-
- /**
- * 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: ArrayLike, mapfn?: (v: number, k: number) => number, thisArg?: any): Uint32Array;
-
-}
-declare const Uint32Array: Uint32ArrayConstructor;
-
-/**
- * A typed array of 32-bit float values. The contents are initialized to 0. If the requested number
- * of bytes could not be allocated an exception is raised.
- */
-interface Float32Array {
- /**
- * 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;
-
- /**
- * The length in bytes of the array.
- */
- readonly byteLength: number;
-
- /**
- * The offset in bytes of the array.
- */
- readonly byteOffset: number;
-
- /**
- * Returns the this object after copying a section of the array identified by start and end
- * to the same array starting at position target
- * @param target If target is negative, it is treated as length+target where length is the
- * length of the array.
- * @param start If start is negative, it is treated as length+start. If end is negative, it
- * is treated as length+end.
- * @param end If not specified, length of the this object is used as its default value.
- */
- copyWithin(target: number, start: number, end?: number): this;
-
- /**
- * Determines whether all the members of an array satisfy the specified test.
- * @param callbackfn A function that accepts up to three arguments. The every method calls
- * the callbackfn function for each element in array1 until the callbackfn returns false,
- * or until the end of the array.
- * @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.
- */
- every(callbackfn: (value: number, index: number, array: Float32Array) => boolean, thisArg?: any): boolean;
-
- /**
- * Returns the this object after filling the section identified by start and end with value
- * @param value value to fill array section with
- * @param start index to start filling the array at. If start is negative, it is treated as
- * length+start where length is the length of the array.
- * @param end index to stop filling the array at. If end is negative, it is treated as
- * length+end.
- */
- fill(value: number, start?: number, end?: number): this;
-
- /**
- * Returns the elements of an array that meet the condition specified in a callback function.
- * @param callbackfn A function that accepts up to three arguments. The filter method calls
- * the callbackfn function one time for each element in the array.
- * @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.
- */
- filter(callbackfn: (value: number, index: number, array: Float32Array) => any, thisArg?: any): Float32Array;
-
- /**
- * Returns the value of the first element in the array where predicate is true, and undefined
- * otherwise.
- * @param predicate find calls predicate once for each element of the array, in ascending
- * order, until it finds one where predicate returns true. If such an element is found, find
- * immediately returns that element value. Otherwise, find returns undefined.
- * @param thisArg If provided, it will be used as the this value for each invocation of
- * predicate. If it is not provided, undefined is used instead.
- */
- find(predicate: (value: number, index: number, obj: Float32Array) => boolean, thisArg?: any): number | undefined;
-
- /**
- * Returns the index of the first element in the array where predicate is true, and -1
- * otherwise.
- * @param predicate find calls predicate once for each element of the array, in ascending
- * order, until it finds one where predicate returns true. If such an element is found,
- * findIndex immediately returns that element index. Otherwise, findIndex returns -1.
- * @param thisArg If provided, it will be used as the this value for each invocation of
- * predicate. If it is not provided, undefined is used instead.
- */
- findIndex(predicate: (value: number, index: number, obj: Float32Array) => boolean, thisArg?: any): number;
-
- /**
- * Performs the specified action for each element in an array.
- * @param callbackfn A function that accepts up to three arguments. forEach calls the
- * callbackfn function one time for each element in the array.
- * @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: number, index: number, array: Float32Array) => void, thisArg?: any): void;
-
- /**
- * Returns the index of the first occurrence of a value in an array.
- * @param searchElement The value to locate in the array.
- * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
- * search starts at index 0.
- */
- indexOf(searchElement: number, fromIndex?: number): number;
-
- /**
- * Adds all the elements of an array separated by the specified separator string.
- * @param separator A string used to separate one element of an array from the next in the
- * resulting String. If omitted, the array elements are separated with a comma.
- */
- join(separator?: string): string;
-
- /**
- * Returns the index of the last occurrence of a value in an array.
- * @param searchElement The value to locate in the array.
- * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
- * search starts at index 0.
- */
- lastIndexOf(searchElement: number, fromIndex?: number): number;
-
- /**
- * The length of the array.
- */
- readonly length: number;
-
- /**
- * Calls a defined callback function on each element of an array, and returns an array that
- * contains the results.
- * @param callbackfn A function that accepts up to three arguments. The map method calls the
- * callbackfn function one time for each element in the array.
- * @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: number, index: number, array: Float32Array) => number, thisArg?: any): Float32Array;
-
- /**
- * Calls the specified callback function for all the elements in an array. The return value of
- * the callback function is the accumulated result, and is provided as an argument in the next
- * call to the callback function.
- * @param callbackfn A function that accepts up to four arguments. The reduce method calls the
- * callbackfn function one time for each element in the array.
- * @param initialValue If initialValue is specified, it is used as the initial value to start
- * the accumulation. The first call to the callbackfn function provides this value as an argument
- * instead of an array value.
- */
- reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float32Array) => number): number;
- reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float32Array) => number, initialValue: number): number;
-
- /**
- * Calls the specified callback function for all the elements in an array. The return value of
- * the callback function is the accumulated result, and is provided as an argument in the next
- * call to the callback function.
- * @param callbackfn A function that accepts up to four arguments. The reduce method calls the
- * callbackfn function one time for each element in the array.
- * @param initialValue If initialValue is specified, it is used as the initial value to start
- * the accumulation. The first call to the callbackfn function provides this value as an argument
- * instead of an array value.
- */
- reduce(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Float32Array) => U, initialValue: U): U;
-
- /**
- * Calls the specified callback function for all the elements in an array, in descending order.
- * The return value of the callback function is the accumulated result, and is provided as an
- * argument in the next call to the callback function.
- * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
- * the callbackfn function one time for each element in the array.
- * @param initialValue If initialValue is specified, it is used as the initial value to start
- * the accumulation. The first call to the callbackfn function provides this value as an
- * argument instead of an array value.
- */
- reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float32Array) => number): number;
- reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float32Array) => number, initialValue: number): number;
-
- /**
- * Calls the specified callback function for all the elements in an array, in descending order.
- * The return value of the callback function is the accumulated result, and is provided as an
- * argument in the next call to the callback function.
- * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
- * the callbackfn function one time for each element in the array.
- * @param initialValue If initialValue is specified, it is used as the initial value to start
- * the accumulation. The first call to the callbackfn function provides this value as an argument
- * instead of an array value.
- */
- reduceRight(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Float32Array) => U, initialValue: U): U;
-
- /**
- * Reverses the elements in an Array.
- */
- reverse(): Float32Array;
-
- /**
- * Sets a value or an array of values.
- * @param array A typed or untyped array of values to set.
- * @param offset The index in the current array at which the values are to be written.
- */
- set(array: ArrayLike, offset?: number): void;
-
- /**
- * Returns a section of an array.
- * @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): Float32Array;
-
- /**
- * Determines whether the specified callback function returns true for any element of an array.
- * @param callbackfn A function that accepts up to three arguments. The some method calls the
- * callbackfn function for each element in array1 until the callbackfn returns true, or until
- * the end of the array.
- * @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.
- */
- some(callbackfn: (value: number, index: number, array: Float32Array) => boolean, thisArg?: any): boolean;
-
- /**
- * Sorts an array.
- * @param compareFn The name of the function used to determine the order of the elements. If
- * omitted, the elements are sorted in ascending, ASCII character order.
- */
- sort(compareFn?: (a: number, b: number) => number): this;
-
- /**
- * Gets a new Float32Array view of the ArrayBuffer store for this array, referencing the elements
- * at begin, inclusive, up to end, exclusive.
- * @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): Float32Array;
-
- /**
- * Converts a number to a string by using the current locale.
- */
- toLocaleString(): string;
-
- /**
- * Returns a string representation of an array.
- */
- toString(): string;
-
- [index: number]: number;
-}
-
-interface Float32ArrayConstructor {
- readonly prototype: Float32Array;
- new(length: number): Float32Array;
- new(arrayOrArrayBuffer: ArrayLike | ArrayBufferLike): Float32Array;
- new(buffer: ArrayBufferLike, byteOffset: number, length?: number): Float32Array;
-
- /**
- * The size in bytes of each element in the array.
- */
- readonly BYTES_PER_ELEMENT: number;
-
- /**
- * 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[]): Float32Array;
-
- /**
- * 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: ArrayLike, mapfn?: (v: number, k: number) => number, thisArg?: any): Float32Array;
-
-
-}
-declare const Float32Array: Float32ArrayConstructor;
-
-/**
- * A typed array of 64-bit float values. The contents are initialized to 0. If the requested
- * number of bytes could not be allocated an exception is raised.
- */
-interface Float64Array {
- /**
- * 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;
-
- /**
- * The length in bytes of the array.
- */
- readonly byteLength: number;
-
- /**
- * The offset in bytes of the array.
- */
- readonly byteOffset: number;
-
- /**
- * Returns the this object after copying a section of the array identified by start and end
- * to the same array starting at position target
- * @param target If target is negative, it is treated as length+target where length is the
- * length of the array.
- * @param start If start is negative, it is treated as length+start. If end is negative, it
- * is treated as length+end.
- * @param end If not specified, length of the this object is used as its default value.
- */
- copyWithin(target: number, start: number, end?: number): this;
-
- /**
- * Determines whether all the members of an array satisfy the specified test.
- * @param callbackfn A function that accepts up to three arguments. The every method calls
- * the callbackfn function for each element in array1 until the callbackfn returns false,
- * or until the end of the array.
- * @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.
- */
- every(callbackfn: (value: number, index: number, array: Float64Array) => boolean, thisArg?: any): boolean;
-
- /**
- * Returns the this object after filling the section identified by start and end with value
- * @param value value to fill array section with
- * @param start index to start filling the array at. If start is negative, it is treated as
- * length+start where length is the length of the array.
- * @param end index to stop filling the array at. If end is negative, it is treated as
- * length+end.
- */
- fill(value: number, start?: number, end?: number): this;
-
- /**
- * Returns the elements of an array that meet the condition specified in a callback function.
- * @param callbackfn A function that accepts up to three arguments. The filter method calls
- * the callbackfn function one time for each element in the array.
- * @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.
- */
- filter(callbackfn: (value: number, index: number, array: Float64Array) => any, thisArg?: any): Float64Array;
-
- /**
- * Returns the value of the first element in the array where predicate is true, and undefined
- * otherwise.
- * @param predicate find calls predicate once for each element of the array, in ascending
- * order, until it finds one where predicate returns true. If such an element is found, find
- * immediately returns that element value. Otherwise, find returns undefined.
- * @param thisArg If provided, it will be used as the this value for each invocation of
- * predicate. If it is not provided, undefined is used instead.
- */
- find(predicate: (value: number, index: number, obj: Float64Array) => boolean, thisArg?: any): number | undefined;
-
- /**
- * Returns the index of the first element in the array where predicate is true, and -1
- * otherwise.
- * @param predicate find calls predicate once for each element of the array, in ascending
- * order, until it finds one where predicate returns true. If such an element is found,
- * findIndex immediately returns that element index. Otherwise, findIndex returns -1.
- * @param thisArg If provided, it will be used as the this value for each invocation of
- * predicate. If it is not provided, undefined is used instead.
- */
- findIndex(predicate: (value: number, index: number, obj: Float64Array) => boolean, thisArg?: any): number;
-
- /**
- * Performs the specified action for each element in an array.
- * @param callbackfn A function that accepts up to three arguments. forEach calls the
- * callbackfn function one time for each element in the array.
- * @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: number, index: number, array: Float64Array) => void, thisArg?: any): void;
-
- /**
- * Returns the index of the first occurrence of a value in an array.
- * @param searchElement The value to locate in the array.
- * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
- * search starts at index 0.
- */
- indexOf(searchElement: number, fromIndex?: number): number;
-
- /**
- * Adds all the elements of an array separated by the specified separator string.
- * @param separator A string used to separate one element of an array from the next in the
- * resulting String. If omitted, the array elements are separated with a comma.
- */
- join(separator?: string): string;
-
- /**
- * Returns the index of the last occurrence of a value in an array.
- * @param searchElement The value to locate in the array.
- * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
- * search starts at index 0.
- */
- lastIndexOf(searchElement: number, fromIndex?: number): number;
-
- /**
- * The length of the array.
- */
- readonly length: number;
-
- /**
- * Calls a defined callback function on each element of an array, and returns an array that
- * contains the results.
- * @param callbackfn A function that accepts up to three arguments. The map method calls the
- * callbackfn function one time for each element in the array.
- * @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: number, index: number, array: Float64Array) => number, thisArg?: any): Float64Array;
-
- /**
- * Calls the specified callback function for all the elements in an array. The return value of
- * the callback function is the accumulated result, and is provided as an argument in the next
- * call to the callback function.
- * @param callbackfn A function that accepts up to four arguments. The reduce method calls the
- * callbackfn function one time for each element in the array.
- * @param initialValue If initialValue is specified, it is used as the initial value to start
- * the accumulation. The first call to the callbackfn function provides this value as an argument
- * instead of an array value.
- */
- reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float64Array) => number): number;
- reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float64Array) => number, initialValue: number): number;
-
- /**
- * Calls the specified callback function for all the elements in an array. The return value of
- * the callback function is the accumulated result, and is provided as an argument in the next
- * call to the callback function.
- * @param callbackfn A function that accepts up to four arguments. The reduce method calls the
- * callbackfn function one time for each element in the array.
- * @param initialValue If initialValue is specified, it is used as the initial value to start
- * the accumulation. The first call to the callbackfn function provides this value as an argument
- * instead of an array value.
- */
- reduce(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Float64Array) => U, initialValue: U): U;
-
- /**
- * Calls the specified callback function for all the elements in an array, in descending order.
- * The return value of the callback function is the accumulated result, and is provided as an
- * argument in the next call to the callback function.
- * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
- * the callbackfn function one time for each element in the array.
- * @param initialValue If initialValue is specified, it is used as the initial value to start
- * the accumulation. The first call to the callbackfn function provides this value as an
- * argument instead of an array value.
- */
- reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float64Array) => number): number;
- reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float64Array) => number, initialValue: number): number;
-
- /**
- * Calls the specified callback function for all the elements in an array, in descending order.
- * The return value of the callback function is the accumulated result, and is provided as an
- * argument in the next call to the callback function.
- * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
- * the callbackfn function one time for each element in the array.
- * @param initialValue If initialValue is specified, it is used as the initial value to start
- * the accumulation. The first call to the callbackfn function provides this value as an argument
- * instead of an array value.
- */
- reduceRight(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Float64Array) => U, initialValue: U): U;
-
- /**
- * Reverses the elements in an Array.
- */
- reverse(): Float64Array;
-
- /**
- * Sets a value or an array of values.
- * @param array A typed or untyped array of values to set.
- * @param offset The index in the current array at which the values are to be written.
- */
- set(array: ArrayLike, offset?: number): void;
-
- /**
- * Returns a section of an array.
- * @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): Float64Array;
-
- /**
- * Determines whether the specified callback function returns true for any element of an array.
- * @param callbackfn A function that accepts up to three arguments. The some method calls the
- * callbackfn function for each element in array1 until the callbackfn returns true, or until
- * the end of the array.
- * @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.
- */
- some(callbackfn: (value: number, index: number, array: Float64Array) => boolean, thisArg?: any): boolean;
-
- /**
- * Sorts an array.
- * @param compareFn The name of the function used to determine the order of the elements. If
- * omitted, the elements are sorted in ascending, ASCII character order.
- */
- sort(compareFn?: (a: number, b: number) => number): this;
-
- /**
- * Gets a new Float64Array view of the ArrayBuffer store for this array, referencing the elements
- * at begin, inclusive, up to end, exclusive.
- * @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): Float64Array;
-
- /**
- * Converts a number to a string by using the current locale.
- */
- toLocaleString(): string;
-
- /**
- * Returns a string representation of an array.
- */
- toString(): string;
-
- [index: number]: number;
-}
-
-interface Float64ArrayConstructor {
- readonly prototype: Float64Array;
- new(length: number): Float64Array;
- new(arrayOrArrayBuffer: ArrayLike | ArrayBufferLike): Float64Array;
- new(buffer: ArrayBufferLike, byteOffset: number, length?: number): Float64Array;
-
- /**
- * The size in bytes of each element in the array.
- */
- readonly BYTES_PER_ELEMENT: number;
-
- /**
- * 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[]): Float64Array;
-
- /**
- * 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: ArrayLike, mapfn?: (v: number, k: number) => number, thisArg?: any): Float64Array;
-
-}
-declare const Float64Array: Float64ArrayConstructor;
-
-/////////////////////////////
-/// ECMAScript Internationalization API
-/////////////////////////////
-
-declare namespace Intl {
- interface CollatorOptions {
- usage?: string;
- localeMatcher?: string;
- numeric?: boolean;
- caseFirst?: string;
- sensitivity?: string;
- ignorePunctuation?: boolean;
- }
-
- interface ResolvedCollatorOptions {
- locale: string;
- usage: string;
- sensitivity: string;
- ignorePunctuation: boolean;
- collation: string;
- caseFirst: string;
- numeric: boolean;
- }
-
- interface Collator {
- compare(x: string, y: string): number;
- resolvedOptions(): ResolvedCollatorOptions;
- }
- var Collator: {
- new(locales?: string | string[], options?: CollatorOptions): Collator;
- (locales?: string | string[], options?: CollatorOptions): Collator;
- supportedLocalesOf(locales: string | string[], options?: CollatorOptions): string[];
- };
-
- interface NumberFormatOptions {
- localeMatcher?: string;
- style?: string;
- currency?: string;
- currencyDisplay?: string;
- useGrouping?: boolean;
- minimumIntegerDigits?: number;
- minimumFractionDigits?: number;
- maximumFractionDigits?: number;
- minimumSignificantDigits?: number;
- maximumSignificantDigits?: number;
- }
-
- interface ResolvedNumberFormatOptions {
- locale: string;
- numberingSystem: string;
- style: string;
- currency?: string;
- currencyDisplay?: string;
- minimumIntegerDigits: number;
- minimumFractionDigits: number;
- maximumFractionDigits: number;
- minimumSignificantDigits?: number;
- maximumSignificantDigits?: number;
- useGrouping: boolean;
- }
-
- interface NumberFormat {
- format(value: number): string;
- resolvedOptions(): ResolvedNumberFormatOptions;
- }
- var NumberFormat: {
- new(locales?: string | string[], options?: NumberFormatOptions): NumberFormat;
- (locales?: string | string[], options?: NumberFormatOptions): NumberFormat;
- supportedLocalesOf(locales: string | string[], options?: NumberFormatOptions): string[];
- };
-
- interface DateTimeFormatOptions {
- localeMatcher?: string;
- weekday?: string;
- era?: string;
- year?: string;
- month?: string;
- day?: string;
- hour?: string;
- minute?: string;
- second?: string;
- timeZoneName?: string;
- formatMatcher?: string;
- hour12?: boolean;
- timeZone?: string;
- }
-
- interface ResolvedDateTimeFormatOptions {
- locale: string;
- calendar: string;
- numberingSystem: string;
- timeZone: string;
- hour12?: boolean;
- weekday?: string;
- era?: string;
- year?: string;
- month?: string;
- day?: string;
- hour?: string;
- minute?: string;
- second?: string;
- timeZoneName?: string;
- }
-
- interface DateTimeFormat {
- format(date?: Date | number): string;
- resolvedOptions(): ResolvedDateTimeFormatOptions;
- }
- var DateTimeFormat: {
- new(locales?: string | string[], options?: DateTimeFormatOptions): DateTimeFormat;
- (locales?: string | string[], options?: DateTimeFormatOptions): DateTimeFormat;
- supportedLocalesOf(locales: string | string[], options?: DateTimeFormatOptions): string[];
- };
-}
-
-interface String {
- /**
- * Determines whether two strings are equivalent in the current or specified locale.
- * @param that String to compare to target string
- * @param locales A locale string or array of locale strings that contain one or more language or locale tags. If you include more than one locale string, list them in descending order of priority so that the first entry is the preferred locale. If you omit this parameter, the default locale of the JavaScript runtime is used. This parameter must conform to BCP 47 standards; see the Intl.Collator object for details.
- * @param options An object that contains one or more properties that specify comparison options. see the Intl.Collator object for details.
- */
- localeCompare(that: string, locales?: string | string[], options?: Intl.CollatorOptions): number;
-}
-
-interface Number {
- /**
- * Converts a number to a string by using the current or specified locale.
- * @param locales A locale string or array of locale strings that contain one or more language or locale tags. If you include more than one locale string, list them in descending order of priority so that the first entry is the preferred locale. If you omit this parameter, the default locale of the JavaScript runtime is used.
- * @param options An object that contains one or more properties that specify comparison options.
- */
- toLocaleString(locales?: string | string[], options?: Intl.NumberFormatOptions): string;
-}
-
-interface Date {
- /**
- * Converts a date and time to a string by using the current or specified locale.
- * @param locales A locale string or array of locale strings that contain one or more language or locale tags. If you include more than one locale string, list them in descending order of priority so that the first entry is the preferred locale. If you omit this parameter, the default locale of the JavaScript runtime is used.
- * @param options An object that contains one or more properties that specify comparison options.
- */
- toLocaleString(locales?: string | string[], options?: Intl.DateTimeFormatOptions): string;
- /**
- * Converts a date to a string by using the current or specified locale.
- * @param locales A locale string or array of locale strings that contain one or more language or locale tags. If you include more than one locale string, list them in descending order of priority so that the first entry is the preferred locale. If you omit this parameter, the default locale of the JavaScript runtime is used.
- * @param options An object that contains one or more properties that specify comparison options.
- */
- toLocaleDateString(locales?: string | string[], options?: Intl.DateTimeFormatOptions): string;
-
- /**
- * Converts a time to a string by using the current or specified locale.
- * @param locales A locale string or array of locale strings that contain one or more language or locale tags. If you include more than one locale string, list them in descending order of priority so that the first entry is the preferred locale. If you omit this parameter, the default locale of the JavaScript runtime is used.
- * @param options An object that contains one or more properties that specify comparison options.
- */
- toLocaleTimeString(locales?: string | string[], options?: Intl.DateTimeFormatOptions): string;
-}
-
-
-/////////////////////////////
-/// DOM APIs
-/////////////////////////////
-
-interface Account {
- displayName: string;
- id: string;
- imageURL?: string;
- name?: string;
- rpDisplayName: string;
-}
-
-interface AddEventListenerOptions extends EventListenerOptions {
- once?: boolean;
- passive?: boolean;
-}
-
-interface AesCbcParams extends Algorithm {
- iv: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer | null;
-}
-
-interface AesCtrParams extends Algorithm {
- counter: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer | null;
- length: number;
-}
-
-interface AesDerivedKeyParams extends Algorithm {
- length: number;
-}
-
-interface AesGcmParams extends Algorithm {
- additionalData?: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer | null;
- iv: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer | null;
- tagLength?: number;
-}
-
-interface AesKeyAlgorithm extends KeyAlgorithm {
- length: number;
-}
-
-interface AesKeyGenParams extends Algorithm {
- length: number;
-}
-
-interface Algorithm {
- name: string;
-}
-
-interface AnalyserOptions extends AudioNodeOptions {
- fftSize?: number;
- maxDecibels?: number;
- minDecibels?: number;
- smoothingTimeConstant?: number;
-}
-
-interface AnimationEventInit extends EventInit {
- animationName?: string;
- elapsedTime?: number;
-}
-
-interface AssertionOptions {
- allowList?: ScopedCredentialDescriptor[];
- extensions?: WebAuthnExtensions;
- rpId?: string;
- timeoutSeconds?: number;
-}
-
-interface AudioBufferOptions {
- length: number;
- numberOfChannels?: number;
- sampleRate: number;
-}
-
-interface AudioBufferSourceOptions {
- buffer?: AudioBuffer | null;
- detune?: number;
- loop?: boolean;
- loopEnd?: number;
- loopStart?: number;
- playbackRate?: number;
-}
-
-interface AudioContextInfo {
- currentTime?: number;
- sampleRate?: number;
-}
-
-interface AudioContextOptions {
- latencyHint?: AudioContextLatencyCategory | number;
- sampleRate?: number;
-}
-
-interface AudioNodeOptions {
- channelCount?: number;
- channelCountMode?: ChannelCountMode;
- channelInterpretation?: ChannelInterpretation;
-}
-
-interface AudioParamDescriptor {
- defaultValue?: number;
- maxValue?: number;
- minValue?: number;
- name?: string;
-}
-
-interface AudioProcessingEventInit extends EventInit {
- inputBuffer: AudioBuffer;
- outputBuffer: AudioBuffer;
- playbackTime: number;
-}
-
-interface AudioTimestamp {
- contextTime?: number;
- performanceTime?: number;
-}
-
-interface BiquadFilterOptions extends AudioNodeOptions {
- Q?: number;
- detune?: number;
- frequency?: number;
- gain?: number;
- type?: BiquadFilterType;
-}
-
-interface ByteLengthChunk {
- byteLength?: number;
-}
-
-interface CacheQueryOptions {
- cacheName?: string;
- ignoreMethod?: boolean;
- ignoreSearch?: boolean;
- ignoreVary?: boolean;
-}
-
-interface ChannelMergerOptions extends AudioNodeOptions {
- numberOfInputs?: number;
-}
-
-interface ChannelSplitterOptions extends AudioNodeOptions {
- numberOfOutputs?: number;
-}
-
-interface ClientData {
- challenge: string;
- extensions?: WebAuthnExtensions;
- hashAlg: string | Algorithm;
- origin: string;
- rpId: string;
- tokenBinding?: string;
-}
-
-interface ClientQueryOptions {
- includeReserved?: boolean;
- includeUncontrolled?: boolean;
- type?: ClientTypes;
-}
-
-interface CloseEventInit extends EventInit {
- code?: number;
- reason?: string;
- wasClean?: boolean;
-}
-
-interface CompositionEventInit extends UIEventInit {
- data?: string;
-}
-
-interface ConfirmSiteSpecificExceptionsInformation extends ExceptionInformation {
- arrayOfDomainStrings?: string[];
-}
-
-interface ConstantSourceOptions {
- offset?: number;
-}
-
-interface ConstrainBooleanParameters {
- exact?: boolean;
- ideal?: boolean;
-}
-
-interface ConstrainDOMStringParameters {
- exact?: string | string[];
- ideal?: string | string[];
-}
-
-interface ConstrainDoubleRange extends DoubleRange {
- exact?: number;
- ideal?: number;
-}
-
-interface ConstrainLongRange extends LongRange {
- exact?: number;
- ideal?: number;
-}
-
-interface ConstrainVideoFacingModeParameters {
- exact?: VideoFacingModeEnum | VideoFacingModeEnum[];
- ideal?: VideoFacingModeEnum | VideoFacingModeEnum[];
-}
-
-interface ConvolverOptions extends AudioNodeOptions {
- buffer?: AudioBuffer | null;
- disableNormalization?: boolean;
-}
-
-interface CustomEventInit extends EventInit {
- detail?: T;
-}
-
-interface DOMRectInit {
- height?: number;
- width?: number;
- x?: number;
- y?: number;
-}
-
-interface DelayOptions extends AudioNodeOptions {
- delayTime?: number;
- maxDelayTime?: number;
-}
-
-interface DeviceAccelerationDict {
- x?: number | null;
- y?: number | null;
- z?: number | null;
-}
-
-interface DeviceLightEventInit extends EventInit {
- value?: number;
-}
-
-interface DeviceMotionEventInit extends EventInit {
- acceleration?: DeviceAccelerationDict | null;
- accelerationIncludingGravity?: DeviceAccelerationDict | null;
- interval?: number | null;
- rotationRate?: DeviceRotationRateDict | null;
-}
-
-interface DeviceOrientationEventInit extends EventInit {
- absolute?: boolean;
- alpha?: number | null;
- beta?: number | null;
- gamma?: number | null;
-}
-
-interface DeviceRotationRateDict {
- alpha?: number | null;
- beta?: number | null;
- gamma?: number | null;
-}
-
-interface DoubleRange {
- max?: number;
- min?: number;
-}
-
-interface DynamicsCompressorOptions extends AudioNodeOptions {
- attack?: number;
- knee?: number;
- ratio?: number;
- release?: number;
- threshold?: number;
-}
-
-interface EcKeyAlgorithm extends KeyAlgorithm {
- namedCurve: string;
-}
-
-interface EcKeyGenParams extends Algorithm {
- namedCurve: string;
-}
-
-interface EcKeyImportParams extends Algorithm {
- namedCurve: string;
-}
-
-interface EcdhKeyDeriveParams extends Algorithm {
- public: CryptoKey;
-}
-
-interface EcdsaParams extends Algorithm {
- hash: string | Algorithm;
-}
-
-interface ErrorEventInit extends EventInit {
- colno?: number;
- error?: any;
- filename?: string;
- lineno?: number;
- message?: string;
-}
-
-interface EventInit {
- bubbles?: boolean;
- cancelable?: boolean;
- scoped?: boolean;
-}
-
-interface EventListenerOptions {
- capture?: boolean;
-}
-
-interface EventModifierInit extends UIEventInit {
- altKey?: boolean;
- ctrlKey?: boolean;
- metaKey?: boolean;
- modifierAltGraph?: boolean;
- modifierCapsLock?: boolean;
- modifierFn?: boolean;
- modifierFnLock?: boolean;
- modifierHyper?: boolean;
- modifierNumLock?: boolean;
- modifierOS?: boolean;
- modifierScrollLock?: boolean;
- modifierSuper?: boolean;
- modifierSymbol?: boolean;
- modifierSymbolLock?: boolean;
- shiftKey?: boolean;
-}
-
-interface ExceptionInformation {
- domain?: string | null;
-}
-
-interface ExtendableEventInit extends EventInit {
-}
-
-interface ExtendableMessageEventInit extends ExtendableEventInit {
- data?: any;
- lastEventId?: string;
- origin?: string;
- ports?: MessagePort[] | null;
- source?: object | ServiceWorker | MessagePort | null;
-}
-
-interface FetchEventInit extends ExtendableEventInit {
- clientId?: string;
- request: Request;
- reservedClientId?: string;
- targetClientId?: string;
-}
-
-interface FocusEventInit extends UIEventInit {
- relatedTarget?: EventTarget | null;
-}
-
-interface FocusNavigationEventInit extends EventInit {
- navigationReason?: string | null;
- originHeight?: number;
- originLeft?: number;
- originTop?: number;
- originWidth?: number;
-}
-
-interface FocusNavigationOrigin {
- originHeight?: number;
- originLeft?: number;
- originTop?: number;
- originWidth?: number;
-}
-
-interface GainOptions extends AudioNodeOptions {
- gain?: number;
-}
-
-interface GamepadEventInit extends EventInit {
- gamepad?: Gamepad;
-}
-
-interface GetNotificationOptions {
- tag?: string;
-}
-
-interface HashChangeEventInit extends EventInit {
- newURL?: string;
- oldURL?: string;
-}
-
-interface HkdfParams extends Algorithm {
- hash: string | Algorithm;
- info: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer | null;
- salt: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer | null;
-}
-
-interface HmacImportParams extends Algorithm {
- hash: string | Algorithm;
- length?: number;
-}
-
-interface HmacKeyAlgorithm extends KeyAlgorithm {
- hash: KeyAlgorithm;
- length: number;
-}
-
-interface HmacKeyGenParams extends Algorithm {
- hash: string | Algorithm;
- length?: number;
-}
-
-interface IDBIndexParameters {
- multiEntry?: boolean;
- unique?: boolean;
-}
-
-interface IDBObjectStoreParameters {
- autoIncrement?: boolean;
- keyPath?: string | string[];
-}
-
-interface IIRFilterOptions extends AudioNodeOptions {
- feedback: number[];
- feedforward: number[];
-}
-
-interface IntersectionObserverEntryInit {
- boundingClientRect: DOMRectInit;
- intersectionRect: DOMRectInit;
- isIntersecting: boolean;
- rootBounds: DOMRectInit;
- target: Element;
- time: number;
-}
-
-interface IntersectionObserverInit {
- root?: Element | null;
- rootMargin?: string;
- threshold?: number | number[];
-}
-
-interface JsonWebKey {
- alg?: string;
- crv?: string;
- d?: string;
- dp?: string;
- dq?: string;
- e?: string;
- ext?: boolean;
- k?: string;
- key_ops?: string[];
- kty?: string;
- n?: string;
- oth?: RsaOtherPrimesInfo[];
- p?: string;
- q?: string;
- qi?: string;
- use?: string;
- x?: string;
- y?: string;
-}
-
-interface KeyAlgorithm {
- name: string;
-}
-
-interface KeyboardEventInit extends EventModifierInit {
- code?: string;
- key?: string;
- location?: number;
- repeat?: boolean;
-}
-
-interface LongRange {
- max?: number;
- min?: number;
-}
-
-interface MSAccountInfo {
- accountImageUri?: string;
- accountName?: string;
- rpDisplayName: string;
- userDisplayName: string;
- userId?: string;
-}
-
-interface MSAudioLocalClientEvent extends MSLocalClientEventBase {
- cpuInsufficientEventRatio?: number;
- deviceCaptureNotFunctioningEventRatio?: number;
- deviceClippingEventRatio?: number;
- deviceEchoEventRatio?: number;
- deviceGlitchesEventRatio?: number;
- deviceHalfDuplexAECEventRatio?: number;
- deviceHowlingEventCount?: number;
- deviceLowSNREventRatio?: number;
- deviceLowSpeechLevelEventRatio?: number;
- deviceMultipleEndpointsEventCount?: number;
- deviceNearEndToEchoRatioEventRatio?: number;
- deviceRenderMuteEventRatio?: number;
- deviceRenderNotFunctioningEventRatio?: number;
- deviceRenderZeroVolumeEventRatio?: number;
- networkDelayEventRatio?: number;
- networkSendQualityEventRatio?: number;
-}
-
-interface MSAudioRecvPayload extends MSPayloadBase {
- burstLossLength1?: number;
- burstLossLength2?: number;
- burstLossLength3?: number;
- burstLossLength4?: number;
- burstLossLength5?: number;
- burstLossLength6?: number;
- burstLossLength7?: number;
- burstLossLength8OrHigher?: number;
- fecRecvDistance1?: number;
- fecRecvDistance2?: number;
- fecRecvDistance3?: number;
- packetReorderDepthAvg?: number;
- packetReorderDepthMax?: number;
- packetReorderRatio?: number;
- ratioCompressedSamplesAvg?: number;
- ratioConcealedSamplesAvg?: number;
- ratioStretchedSamplesAvg?: number;
- samplingRate?: number;
- signal?: MSAudioRecvSignal;
-}
-
-interface MSAudioRecvSignal {
- initialSignalLevelRMS?: number;
- recvNoiseLevelCh1?: number;
- recvSignalLevelCh1?: number;
- renderLoopbackSignalLevel?: number;
- renderNoiseLevel?: number;
- renderSignalLevel?: number;
-}
-
-interface MSAudioSendPayload extends MSPayloadBase {
- audioFECUsed?: boolean;
- samplingRate?: number;
- sendMutePercent?: number;
- signal?: MSAudioSendSignal;
-}
-
-interface MSAudioSendSignal {
- noiseLevel?: number;
- sendNoiseLevelCh1?: number;
- sendSignalLevelCh1?: number;
-}
-
-interface MSConnectivity {
- iceType?: MSIceType;
- iceWarningFlags?: MSIceWarningFlags;
- relayAddress?: MSRelayAddress;
-}
-
-interface MSCredentialFilter {
- accept?: MSCredentialSpec[];
-}
-
-interface MSCredentialParameters {
- type?: MSCredentialType;
-}
-
-interface MSCredentialSpec {
- id?: string;
- type: MSCredentialType;
-}
-
-interface MSDCCEventInit extends EventInit {
- maxFr?: number;
- maxFs?: number;
-}
-
-interface MSDSHEventInit extends EventInit {
- sources?: number[];
- timestamp?: number;
-}
-
-interface MSDelay {
- roundTrip?: number;
- roundTripMax?: number;
-}
-
-interface MSDescription extends RTCStats {
- connectivity?: MSConnectivity;
- deviceDevName?: string;
- localAddr?: MSIPAddressInfo;
- networkconnectivity?: MSNetworkConnectivityInfo;
- reflexiveLocalIPAddr?: MSIPAddressInfo;
- remoteAddr?: MSIPAddressInfo;
- transport?: RTCIceProtocol;
-}
-
-interface MSFIDOCredentialParameters extends MSCredentialParameters {
- algorithm?: string | Algorithm;
- authenticators?: string[];
-}
-
-interface MSIPAddressInfo {
- ipAddr?: string;
- manufacturerMacAddrMask?: string;
- port?: number;
-}
-
-interface MSIceWarningFlags {
- allocationMessageIntegrityFailed?: boolean;
- alternateServerReceived?: boolean;
- connCheckMessageIntegrityFailed?: boolean;
- connCheckOtherError?: boolean;
- fipsAllocationFailure?: boolean;
- multipleRelayServersAttempted?: boolean;
- noRelayServersConfigured?: boolean;
- portRangeExhausted?: boolean;
- pseudoTLSFailure?: boolean;
- tcpNatConnectivityFailed?: boolean;
- tcpRelayConnectivityFailed?: boolean;
- turnAuthUnknownUsernameError?: boolean;
- turnTcpAllocateFailed?: boolean;
- turnTcpSendFailed?: boolean;
- turnTcpTimedOut?: boolean;
- turnTurnTcpConnectivityFailed?: boolean;
- turnUdpAllocateFailed?: boolean;
- turnUdpSendFailed?: boolean;
- udpLocalConnectivityFailed?: boolean;
- udpNatConnectivityFailed?: boolean;
- udpRelayConnectivityFailed?: boolean;
- useCandidateChecksFailed?: boolean;
-}
-
-interface MSJitter {
- interArrival?: number;
- interArrivalMax?: number;
- interArrivalSD?: number;
-}
-
-interface MSLocalClientEventBase extends RTCStats {
- networkBandwidthLowEventRatio?: number;
- networkReceiveQualityEventRatio?: number;
-}
-
-interface MSNetwork extends RTCStats {
- delay?: MSDelay;
- jitter?: MSJitter;
- packetLoss?: MSPacketLoss;
- utilization?: MSUtilization;
-}
-
-interface MSNetworkConnectivityInfo {
- linkspeed?: number;
- networkConnectionDetails?: string;
- vpn?: boolean;
-}
-
-interface MSNetworkInterfaceType {
- interfaceTypeEthernet?: boolean;
- interfaceTypePPP?: boolean;
- interfaceTypeTunnel?: boolean;
- interfaceTypeWWAN?: boolean;
- interfaceTypeWireless?: boolean;
-}
-
-interface MSOutboundNetwork extends MSNetwork {
- appliedBandwidthLimit?: number;
-}
-
-interface MSPacketLoss {
- lossRate?: number;
- lossRateMax?: number;
-}
-
-interface MSPayloadBase extends RTCStats {
- payloadDescription?: string;
-}
-
-interface MSPortRange {
- max?: number;
- min?: number;
-}
-
-interface MSRelayAddress {
- port?: number;
- relayAddress?: string;
-}
-
-interface MSSignatureParameters {
- userPrompt?: string;
-}
-
-interface MSTransportDiagnosticsStats extends RTCStats {
- allocationTimeInMs?: number;
- baseAddress?: string;
- baseInterface?: MSNetworkInterfaceType;
- iceRole?: RTCIceRole;
- iceWarningFlags?: MSIceWarningFlags;
- interfaces?: MSNetworkInterfaceType;
- localAddrType?: MSIceAddrType;
- localAddress?: string;
- localInterface?: MSNetworkInterfaceType;
- localMR?: string;
- localMRTCPPort?: number;
- localSite?: string;
- msRtcEngineVersion?: string;
- networkName?: string;
- numConsentReqReceived?: number;
- numConsentReqSent?: number;
- numConsentRespReceived?: number;
- numConsentRespSent?: number;
- portRangeMax?: number;
- portRangeMin?: number;
- protocol?: RTCIceProtocol;
- remoteAddrType?: MSIceAddrType;
- remoteAddress?: string;
- remoteMR?: string;
- remoteMRTCPPort?: number;
- remoteSite?: string;
- rtpRtcpMux?: boolean;
- stunVer?: number;
-}
-
-interface MSUtilization {
- bandwidthEstimation?: number;
- bandwidthEstimationAvg?: number;
- bandwidthEstimationMax?: number;
- bandwidthEstimationMin?: number;
- bandwidthEstimationStdDev?: number;
- packets?: number;
-}
-
-interface MSVideoPayload extends MSPayloadBase {
- durationSeconds?: number;
- resolution?: string;
- videoBitRateAvg?: number;
- videoBitRateMax?: number;
- videoFrameRateAvg?: number;
- videoPacketLossRate?: number;
-}
-
-interface MSVideoRecvPayload extends MSVideoPayload {
- lowBitRateCallPercent?: number;
- lowFrameRateCallPercent?: number;
- recvBitRateAverage?: number;
- recvBitRateMaximum?: number;
- recvCodecType?: string;
- recvFpsHarmonicAverage?: number;
- recvFrameRateAverage?: number;
- recvNumResSwitches?: number;
- recvReorderBufferMaxSuccessfullyOrderedExtent?: number;
- recvReorderBufferMaxSuccessfullyOrderedLateTime?: number;
- recvReorderBufferPacketsDroppedDueToBufferExhaustion?: number;
- recvReorderBufferPacketsDroppedDueToTimeout?: number;
- recvReorderBufferReorderedPackets?: number;
- recvResolutionHeight?: number;
- recvResolutionWidth?: number;
- recvVideoStreamsMax?: number;
- recvVideoStreamsMin?: number;
- recvVideoStreamsMode?: number;
- reorderBufferTotalPackets?: number;
- videoFrameLossRate?: number;
- videoPostFECPLR?: number;
- videoResolutions?: MSVideoResolutionDistribution;
-}
-
-interface MSVideoResolutionDistribution {
- cifQuality?: number;
- h1080Quality?: number;
- h1440Quality?: number;
- h2160Quality?: number;
- h720Quality?: number;
- vgaQuality?: number;
-}
-
-interface MSVideoSendPayload extends MSVideoPayload {
- sendBitRateAverage?: number;
- sendBitRateMaximum?: number;
- sendFrameRateAverage?: number;
- sendResolutionHeight?: number;
- sendResolutionWidth?: number;
- sendVideoStreamsMax?: number;
-}
-
-interface MediaElementAudioSourceOptions {
- mediaElement: HTMLMediaElement;
-}
-
-interface MediaEncryptedEventInit extends EventInit {
- initData?: ArrayBuffer | null;
- initDataType?: string;
-}
-
-interface MediaKeyMessageEventInit extends EventInit {
- message?: ArrayBuffer | null;
- messageType?: MediaKeyMessageType;
-}
-
-interface MediaKeySystemConfiguration {
- audioCapabilities?: MediaKeySystemMediaCapability[];
- distinctiveIdentifier?: MediaKeysRequirement;
- initDataTypes?: string[];
- persistentState?: MediaKeysRequirement;
- videoCapabilities?: MediaKeySystemMediaCapability[];
-}
-
-interface MediaKeySystemMediaCapability {
- contentType?: string;
- robustness?: string;
-}
-
-interface MediaStreamConstraints {
- audio?: boolean | MediaTrackConstraints;
- video?: boolean | MediaTrackConstraints;
-}
-
-interface MediaStreamErrorEventInit extends EventInit {
- error?: MediaStreamError | null;
-}
-
-interface MediaStreamEventInit extends EventInit {
- stream?: MediaStream;
-}
-
-interface MediaStreamTrackEventInit extends EventInit {
- track?: MediaStreamTrack | null;
-}
-
-interface MediaTrackCapabilities {
- aspectRatio?: number | DoubleRange;
- deviceId?: string;
- echoCancellation?: boolean[];
- facingMode?: string;
- frameRate?: number | DoubleRange;
- groupId?: string;
- height?: number | LongRange;
- sampleRate?: number | LongRange;
- sampleSize?: number | LongRange;
- volume?: number | DoubleRange;
- width?: number | LongRange;
-}
-
-interface MediaTrackConstraintSet {
- aspectRatio?: number | ConstrainDoubleRange;
- channelCount?: number | ConstrainLongRange;
- deviceId?: string | string[] | ConstrainDOMStringParameters;
- displaySurface?: string | string[] | ConstrainDOMStringParameters;
- echoCancellation?: boolean | ConstrainBooleanParameters;
- facingMode?: string | string[] | ConstrainDOMStringParameters;
- frameRate?: number | ConstrainDoubleRange;
- groupId?: string | string[] | ConstrainDOMStringParameters;
- height?: number | ConstrainLongRange;
- latency?: number | ConstrainDoubleRange;
- logicalSurface?: boolean | ConstrainBooleanParameters;
- sampleRate?: number | ConstrainLongRange;
- sampleSize?: number | ConstrainLongRange;
- volume?: number | ConstrainDoubleRange;
- width?: number | ConstrainLongRange;
-}
-
-interface MediaTrackConstraints extends MediaTrackConstraintSet {
- advanced?: MediaTrackConstraintSet[];
-}
-
-interface MediaTrackSettings {
- aspectRatio?: number;
- deviceId?: string;
- echoCancellation?: boolean;
- facingMode?: string;
- frameRate?: number;
- groupId?: string;
- height?: number;
- sampleRate?: number;
- sampleSize?: number;
- volume?: number;
- width?: number;
-}
-
-interface MediaTrackSupportedConstraints {
- aspectRatio?: boolean;
- deviceId?: boolean;
- echoCancellation?: boolean;
- facingMode?: boolean;
- frameRate?: boolean;
- groupId?: boolean;
- height?: boolean;
- sampleRate?: boolean;
- sampleSize?: boolean;
- volume?: boolean;
- width?: boolean;
-}
-
-interface MessageEventInit extends EventInit {
- channel?: string;
- data?: any;
- lastEventId?: string;
- origin?: string;
- ports?: MessagePort[];
- source?: Window | null;
-}
-
-interface MouseEventInit extends EventModifierInit {
- button?: number;
- buttons?: number;
- clientX?: number;
- clientY?: number;
- relatedTarget?: EventTarget | null;
- screenX?: number;
- screenY?: number;
-}
-
-interface MsZoomToOptions {
- animate?: string;
- contentX?: number;
- contentY?: number;
- scaleFactor?: number;
- viewportX?: string | null;
- viewportY?: string | null;
-}
-
-interface MutationObserverInit {
- attributeFilter?: string[];
- attributeOldValue?: boolean;
- attributes?: boolean;
- characterData?: boolean;
- characterDataOldValue?: boolean;
- childList?: boolean;
- subtree?: boolean;
-}
-
-interface NotificationEventInit extends ExtendableEventInit {
- action?: string;
- notification: Notification;
-}
-
-interface NotificationOptions {
- body?: string;
- data?: any;
- dir?: NotificationDirection;
- icon?: string;
- lang?: string;
- tag?: string;
-}
-
-interface ObjectURLOptions {
- oneTimeOnly?: boolean;
-}
-
-interface OfflineAudioCompletionEventInit extends EventInit {
- renderedBuffer: AudioBuffer;
-}
-
-interface OscillatorOptions extends AudioNodeOptions {
- detune?: number;
- frequency?: number;
- periodicWave?: PeriodicWave;
- type?: OscillatorType;
-}
-
-interface PannerOptions extends AudioNodeOptions {
- coneInnerAngle?: number;
- coneOuterAngle?: number;
- coneOuterGain?: number;
- distanceModel?: DistanceModelType;
- maxDistance?: number;
- orientationX?: number;
- orientationY?: number;
- orientationZ?: number;
- panningModel?: PanningModelType;
- positionX?: number;
- positionY?: number;
- positionZ?: number;
- refDistance?: number;
- rolloffFactor?: number;
-}
-
-interface PaymentCurrencyAmount {
- currency: string;
- currencySystem?: string;
- value: string;
-}
-
-interface PaymentDetailsBase {
- displayItems?: PaymentItem[];
- modifiers?: PaymentDetailsModifier[];
- shippingOptions?: PaymentShippingOption[];
-}
-
-interface PaymentDetailsInit extends PaymentDetailsBase {
- id?: string;
- total: PaymentItem;
-}
-
-interface PaymentDetailsModifier {
- additionalDisplayItems?: PaymentItem[];
- data?: any;
- supportedMethods: string | string[];
- total?: PaymentItem;
-}
-
-interface PaymentDetailsUpdate extends PaymentDetailsBase {
- error?: string;
- total?: PaymentItem;
-}
-
-interface PaymentItem {
- amount: PaymentCurrencyAmount;
- label: string;
- pending?: boolean;
-}
-
-interface PaymentMethodData {
- data?: any;
- supportedMethods: string | string[];
-}
-
-interface PaymentOptions {
- requestPayerEmail?: boolean;
- requestPayerName?: boolean;
- requestPayerPhone?: boolean;
- requestShipping?: boolean;
- shippingType?: string;
-}
-
-interface PaymentRequestUpdateEventInit extends EventInit {
-}
-
-interface PaymentShippingOption {
- amount: PaymentCurrencyAmount;
- id: string;
- label: string;
- selected?: boolean;
-}
-
-interface Pbkdf2Params extends Algorithm {
- hash: string | Algorithm;
- iterations: number;
- salt: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer | null;
-}
-
-interface PeriodicWaveConstraints {
- disableNormalization?: boolean;
-}
-
-interface PeriodicWaveOptions extends PeriodicWaveConstraints {
- imag?: number[];
- real?: number[];
-}
-
-interface PointerEventInit extends MouseEventInit {
- height?: number;
- isPrimary?: boolean;
- pointerId?: number;
- pointerType?: string;
- pressure?: number;
- tiltX?: number;
- tiltY?: number;
- width?: number;
-}
-
-interface PopStateEventInit extends EventInit {
- state?: any;
-}
-
-interface PositionOptions {
- enableHighAccuracy?: boolean;
- maximumAge?: number;
- timeout?: number;
-}
-
-interface ProgressEventInit extends EventInit {
- lengthComputable?: boolean;
- loaded?: number;
- total?: number;
-}
-
-interface PushEventInit extends ExtendableEventInit {
- data?: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer | string | null;
-}
-
-interface PushSubscriptionChangeInit extends ExtendableEventInit {
- newSubscription?: PushSubscription;
- oldSubscription?: PushSubscription;
-}
-
-interface PushSubscriptionOptionsInit {
- applicationServerKey?: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer | string | null;
- userVisibleOnly?: boolean;
-}
-
-interface QueuingStrategy {
- highWaterMark?: number;
- size?: WritableStreamChunkCallback;
-}
-
-interface RTCConfiguration {
- bundlePolicy?: RTCBundlePolicy;
- iceServers?: RTCIceServer[];
- iceTransportPolicy?: RTCIceTransportPolicy;
- peerIdentity?: string;
-}
-
-interface RTCDTMFToneChangeEventInit extends EventInit {
- tone?: string;
-}
-
-interface RTCDtlsFingerprint {
- algorithm?: string;
- value?: string;
-}
-
-interface RTCDtlsParameters {
- fingerprints?: RTCDtlsFingerprint[];
- role?: RTCDtlsRole;
-}
-
-interface RTCIceCandidateAttributes extends RTCStats {
- addressSourceUrl?: string;
- candidateType?: RTCStatsIceCandidateType;
- ipAddress?: string;
- portNumber?: number;
- priority?: number;
- transport?: string;
-}
-
-interface RTCIceCandidateComplete {
-}
-
-interface RTCIceCandidateDictionary {
- foundation?: string;
- ip?: string;
- msMTurnSessionId?: string;
- port?: number;
- priority?: number;
- protocol?: RTCIceProtocol;
- relatedAddress?: string;
- relatedPort?: number;
- tcpType?: RTCIceTcpCandidateType;
- type?: RTCIceCandidateType;
-}
-
-interface RTCIceCandidateInit {
- candidate?: string;
- sdpMLineIndex?: number;
- sdpMid?: string;
-}
-
-interface RTCIceCandidatePair {
- local?: RTCIceCandidateDictionary;
- remote?: RTCIceCandidateDictionary;
-}
-
-interface RTCIceCandidatePairStats extends RTCStats {
- availableIncomingBitrate?: number;
- availableOutgoingBitrate?: number;
- bytesReceived?: number;
- bytesSent?: number;
- localCandidateId?: string;
- nominated?: boolean;
- priority?: number;
- readable?: boolean;
- remoteCandidateId?: string;
- roundTripTime?: number;
- state?: RTCStatsIceCandidatePairState;
- transportId?: string;
- writable?: boolean;
-}
-
-interface RTCIceGatherOptions {
- gatherPolicy?: RTCIceGatherPolicy;
- iceservers?: RTCIceServer[];
- portRange?: MSPortRange;
-}
-
-interface RTCIceParameters {
- iceLite?: boolean | null;
- password?: string;
- usernameFragment?: string;
-}
-
-interface RTCIceServer {
- credential?: string | null;
- urls?: any;
- username?: string | null;
-}
-
-interface RTCInboundRTPStreamStats extends RTCRTPStreamStats {
- bytesReceived?: number;
- fractionLost?: number;
- jitter?: number;
- packetsLost?: number;
- packetsReceived?: number;
-}
-
-interface RTCMediaStreamTrackStats extends RTCStats {
- audioLevel?: number;
- echoReturnLoss?: number;
- echoReturnLossEnhancement?: number;
- frameHeight?: number;
- frameWidth?: number;
- framesCorrupted?: number;
- framesDecoded?: number;
- framesDropped?: number;
- framesPerSecond?: number;
- framesReceived?: number;
- framesSent?: number;
- remoteSource?: boolean;
- ssrcIds?: string[];
- trackIdentifier?: string;
-}
-
-interface RTCOfferOptions {
- iceRestart?: boolean;
- offerToReceiveAudio?: number;
- offerToReceiveVideo?: number;
- voiceActivityDetection?: boolean;
-}
-
-interface RTCOutboundRTPStreamStats extends RTCRTPStreamStats {
- bytesSent?: number;
- packetsSent?: number;
- roundTripTime?: number;
- targetBitrate?: number;
-}
-
-interface RTCPeerConnectionIceEventInit extends EventInit {
- candidate?: RTCIceCandidate;
-}
-
-interface RTCRTPStreamStats extends RTCStats {
- associateStatsId?: string;
- codecId?: string;
- firCount?: number;
- isRemote?: boolean;
- mediaTrackId?: string;
- mediaType?: string;
- nackCount?: number;
- pliCount?: number;
- sliCount?: number;
- ssrc?: string;
- transportId?: string;
-}
-
-interface RTCRtcpFeedback {
- parameter?: string;
- type?: string;
-}
-
-interface RTCRtcpParameters {
- cname?: string;
- mux?: boolean;
- reducedSize?: boolean;
- ssrc?: number;
-}
-
-interface RTCRtpCapabilities {
- codecs?: RTCRtpCodecCapability[];
- fecMechanisms?: string[];
- headerExtensions?: RTCRtpHeaderExtension[];
-}
-
-interface RTCRtpCodecCapability {
- clockRate?: number;
- kind?: string;
- maxSpatialLayers?: number;
- maxTemporalLayers?: number;
- maxptime?: number;
- name?: string;
- numChannels?: number;
- options?: any;
- parameters?: any;
- preferredPayloadType?: number;
- ptime?: number;
- rtcpFeedback?: RTCRtcpFeedback[];
- svcMultiStreamSupport?: boolean;
-}
-
-interface RTCRtpCodecParameters {
- clockRate?: number;
- maxptime?: number;
- name?: string;
- numChannels?: number;
- parameters?: any;
- payloadType?: number;
- ptime?: number;
- rtcpFeedback?: RTCRtcpFeedback[];
-}
-
-interface RTCRtpContributingSource {
- audioLevel?: number;
- csrc?: number;
- timestamp?: number;
-}
-
-interface RTCRtpEncodingParameters {
- active?: boolean;
- codecPayloadType?: number;
- dependencyEncodingIds?: string[];
- encodingId?: string;
- fec?: RTCRtpFecParameters;
- framerateScale?: number;
- maxBitrate?: number;
- maxFramerate?: number;
- minQuality?: number;
- priority?: number;
- resolutionScale?: number;
- rtx?: RTCRtpRtxParameters;
- ssrc?: number;
- ssrcRange?: RTCSsrcRange;
-}
-
-interface RTCRtpFecParameters {
- mechanism?: string;
- ssrc?: number;
-}
-
-interface RTCRtpHeaderExtension {
- kind?: string;
- preferredEncrypt?: boolean;
- preferredId?: number;
- uri?: string;
-}
-
-interface RTCRtpHeaderExtensionParameters {
- encrypt?: boolean;
- id?: number;
- uri?: string;
-}
-
-interface RTCRtpParameters {
- codecs?: RTCRtpCodecParameters[];
- degradationPreference?: RTCDegradationPreference;
- encodings?: RTCRtpEncodingParameters[];
- headerExtensions?: RTCRtpHeaderExtensionParameters[];
- muxId?: string;
- rtcp?: RTCRtcpParameters;
-}
-
-interface RTCRtpRtxParameters {
- ssrc?: number;
-}
-
-interface RTCRtpUnhandled {
- muxId?: string;
- payloadType?: number;
- ssrc?: number;
-}
-
-interface RTCSessionDescriptionInit {
- sdp?: string;
- type?: RTCSdpType;
-}
-
-interface RTCSrtpKeyParam {
- keyMethod?: string;
- keySalt?: string;
- lifetime?: string;
- mkiLength?: number;
- mkiValue?: number;
-}
-
-interface RTCSrtpSdesParameters {
- cryptoSuite?: string;
- keyParams?: RTCSrtpKeyParam[];
- sessionParams?: string[];
- tag?: number;
-}
-
-interface RTCSsrcRange {
- max?: number;
- min?: number;
-}
-
-interface RTCStats {
- id?: string;
- msType?: MSStatsType;
- timestamp?: number;
- type?: RTCStatsType;
-}
-
-interface RTCStatsReport {
-}
-
-interface RTCTransportStats extends RTCStats {
- activeConnection?: boolean;
- bytesReceived?: number;
- bytesSent?: number;
- localCertificateId?: string;
- remoteCertificateId?: string;
- rtcpTransportStatsId?: string;
- selectedCandidatePairId?: string;
-}
-
-interface RegistrationOptions {
- scope?: string;
-}
-
-interface RequestInit {
- body?: Blob | Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer | FormData | string | null;
- cache?: RequestCache;
- credentials?: RequestCredentials;
- headers?: HeadersInit;
- integrity?: string;
- keepalive?: boolean;
- method?: string;
- mode?: RequestMode;
- redirect?: RequestRedirect;
- referrer?: string;
- referrerPolicy?: ReferrerPolicy;
- signal?: AbortSignal;
- window?: any;
-}
-
-interface ResponseInit {
- headers?: HeadersInit;
- status?: number;
- statusText?: string;
-}
-
-interface RsaHashedImportParams extends Algorithm {
- hash: string | Algorithm;
-}
-
-interface RsaHashedKeyAlgorithm extends RsaKeyAlgorithm {
- hash: KeyAlgorithm;
-}
-
-interface RsaHashedKeyGenParams extends RsaKeyGenParams {
- hash: string | Algorithm;
-}
-
-interface RsaKeyAlgorithm extends KeyAlgorithm {
- modulusLength: number;
- publicExponent: Uint8Array;
-}
-
-interface RsaKeyGenParams extends Algorithm {
- modulusLength: number;
- publicExponent: Uint8Array;
-}
-
-interface RsaOaepParams extends Algorithm {
- label?: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer | null;
-}
-
-interface RsaOtherPrimesInfo {
- d?: string;
- r?: string;
- t?: string;
-}
-
-interface RsaPssParams extends Algorithm {
- saltLength: number;
-}
-
-interface ScopedCredentialDescriptor {
- id: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer | null;
- transports?: Transport[];
- type: ScopedCredentialType;
-}
-
-interface ScopedCredentialOptions {
- excludeList?: ScopedCredentialDescriptor[];
- extensions?: WebAuthnExtensions;
- rpId?: string;
- timeoutSeconds?: number;
-}
-
-interface ScopedCredentialParameters {
- algorithm: string | Algorithm;
- type: ScopedCredentialType;
-}
-
-interface SecurityPolicyViolationEventInit extends EventInit {
- blockedURI?: string;
- columnNumber?: number;
- documentURI?: string;
- effectiveDirective?: string;
- lineNumber?: number;
- originalPolicy?: string;
- referrer?: string;
- sourceFile?: string;
- statusCode?: number;
- violatedDirective?: string;
-}
-
-interface ServiceWorkerMessageEventInit extends EventInit {
- data?: any;
- lastEventId?: string;
- origin?: string;
- ports?: MessagePort[] | null;
- source?: ServiceWorker | MessagePort | null;
-}
-
-interface SpeechSynthesisEventInit extends EventInit {
- charIndex?: number;
- charLength?: number;
- elapsedTime?: number;
- name?: string;
- utterance?: SpeechSynthesisUtterance | null;
-}
-
-interface StereoPannerOptions extends AudioNodeOptions {
- pan?: number;
-}
-
-interface StoreExceptionsInformation extends ExceptionInformation {
- detailURI?: string | null;
- explanationString?: string | null;
- siteName?: string | null;
-}
-
-interface StoreSiteSpecificExceptionsInformation extends StoreExceptionsInformation {
- arrayOfDomainStrings?: string[];
-}
-
-interface SyncEventInit extends ExtendableEventInit {
- lastChance?: boolean;
- tag: string;
-}
-
-interface TextDecodeOptions {
- stream?: boolean;
-}
-
-interface TextDecoderOptions {
- fatal?: boolean;
- ignoreBOM?: boolean;
-}
-
-interface TrackEventInit extends EventInit {
- track?: VideoTrack | AudioTrack | TextTrack | null;
-}
-
-interface TransitionEventInit extends EventInit {
- elapsedTime?: number;
- propertyName?: string;
-}
-
-interface UIEventInit extends EventInit {
- detail?: number;
- view?: Window | null;
-}
-
-interface UnderlyingSink {
- abort?: WritableStreamErrorCallback;
- close?: WritableStreamDefaultControllerCallback;
- start: WritableStreamDefaultControllerCallback;
- write?: WritableStreamChunkCallback;
-}
-
-interface VRDisplayEventInit extends EventInit {
- display: VRDisplay;
- reason?: VRDisplayEventReason;
-}
-
-interface VRLayer {
- leftBounds?: number[] | null;
- rightBounds?: number[] | null;
- source?: HTMLCanvasElement | null;
-}
-
-interface VRStageParameters {
- sittingToStandingTransform?: Float32Array;
- sizeX?: number;
- sizeY?: number;
-}
-
-interface WaveShaperOptions extends AudioNodeOptions {
- curve?: number[];
- oversample?: OverSampleType;
-}
-
-interface WebAuthnExtensions {
-}
-
-interface WebGLContextAttributes {
- alpha?: boolean;
- antialias?: boolean;
- depth?: boolean;
- failIfMajorPerformanceCaveat?: boolean;
- premultipliedAlpha?: boolean;
- preserveDrawingBuffer?: boolean;
- stencil?: boolean;
-}
-
-interface WebGLContextEventInit extends EventInit {
- statusMessage?: string;
-}
-
-interface WheelEventInit extends MouseEventInit {
- deltaMode?: number;
- deltaX?: number;
- deltaY?: number;
- deltaZ?: number;
-}
-
-interface EventListener {
- (evt: Event): void;
-}
-
-type WebKitEntriesCallback = ((entries: WebKitEntry[]) => void) | { handleEvent(entries: WebKitEntry[]): void; };
-
-type WebKitErrorCallback = ((err: DOMError) => void) | { handleEvent(err: DOMError): void; };
-
-type WebKitFileCallback = ((file: File) => void) | { handleEvent(file: File): void; };
-
-interface ANGLE_instanced_arrays {
- drawArraysInstancedANGLE(mode: number, first: number, count: number, primcount: number): void;
- drawElementsInstancedANGLE(mode: number, count: number, type: number, offset: number, primcount: number): void;
- vertexAttribDivisorANGLE(index: number, divisor: number): void;
- readonly VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE: number;
-}
-
-declare var ANGLE_instanced_arrays: {
- prototype: ANGLE_instanced_arrays;
- new(): ANGLE_instanced_arrays;
- readonly VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE: number;
-};
-
-interface AbortController {
- readonly signal: AbortSignal;
- abort(): void;
-}
-
-declare var AbortController: {
- prototype: AbortController;
- new(): AbortController;
-};
-
-interface AbortSignalEventMap {
- "abort": ProgressEvent;
-}
-
-interface AbortSignal extends EventTarget {
- readonly aborted: boolean;
- onabort: ((this: AbortSignal, ev: ProgressEvent) => any) | null;
- addEventListener(type: K, listener: (this: AbortSignal, ev: AbortSignalEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener(type: K, listener: (this: AbortSignal, ev: AbortSignalEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
-}
-
-declare var AbortSignal: {
- prototype: AbortSignal;
- new(): AbortSignal;
-};
-
-interface AbstractWorkerEventMap {
- "error": ErrorEvent;
-}
-
-interface AbstractWorker {
- onerror: ((this: AbstractWorker, ev: ErrorEvent) => any) | null;
- addEventListener(type: K, listener: (this: AbstractWorker, ev: AbstractWorkerEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener(type: K, listener: (this: AbstractWorker, ev: AbstractWorkerEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
-}
-
-interface AesCfbParams extends Algorithm {
- iv: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer;
-}
-
-interface AesCmacParams extends Algorithm {
- length: number;
-}
-
-interface AnalyserNode extends AudioNode {
- fftSize: number;
- readonly frequencyBinCount: number;
- maxDecibels: number;
- minDecibels: number;
- smoothingTimeConstant: number;
- getByteFrequencyData(array: Uint8Array): void;
- getByteTimeDomainData(array: Uint8Array): void;
- getFloatFrequencyData(array: Float32Array): void;
- getFloatTimeDomainData(array: Float32Array): void;
-}
-
-declare var AnalyserNode: {
- prototype: AnalyserNode;
- new(): AnalyserNode;
-};
-
-interface Animation {
- currentTime: number | null;
- effect: AnimationEffectReadOnly;
- readonly finished: Promise;
- id: string;
- readonly pending: boolean;
- readonly playState: "idle" | "running" | "paused" | "finished";
- playbackRate: number;
- readonly ready: Promise;
- startTime: number;
- timeline: AnimationTimeline;
- cancel(): void;
- finish(): void;
- oncancel: (this: Animation, ev: AnimationPlaybackEvent) => any;
- onfinish: (this: Animation, ev: AnimationPlaybackEvent) => any;
- pause(): void;
- play(): void;
- reverse(): void;
-}
-
-declare var Animation: {
- prototype: Animation;
- new(effect?: AnimationEffectReadOnly, timeline?: AnimationTimeline): Animation;
-};
-
-interface AnimationEffectReadOnly {
- readonly timing: number;
- getComputedTiming(): ComputedTimingProperties;
-}
-
-interface AnimationEvent extends Event {
- readonly animationName: string;
- readonly elapsedTime: number;
-}
-
-declare var AnimationEvent: {
- prototype: AnimationEvent;
- new(typeArg: string, eventInitDict?: AnimationEventInit): AnimationEvent;
-};
-
-interface AnimationKeyFrame {
- easing?: string | string[];
- offset?: number | null | (number | null)[];
- [index: string]: string | number | number[] | string[] | null | (number | null)[] | undefined;
-}
-
-interface AnimationOptions {
- delay?: number;
- direction?: "normal" | "reverse" | "alternate" | "alternate-reverse";
- duration?: number;
- easing?: string;
- endDelay?: number;
- fill?: "none" | "forwards" | "backwards" | "both"| "auto";
- id?: string;
- iterationStart?: number;
- iterations?: number;
-}
-
-interface AnimationPlaybackEvent extends Event {
- readonly currentTime: number | null;
- readonly timelineTime: number | null;
-}
-
-declare var AnimationPlaybackEvent: {
- prototype: AnimationPlaybackEvent;
- new(type: string, eventInitDict?: AnimationPlaybackEventInit): AnimationPlaybackEvent;
-};
-
-interface AnimationPlaybackEventInit extends EventInit {
- currentTime?: number | null;
- timelineTime?: number | null;
-}
-
-interface AnimationTimeline {
- readonly currentTime: number | null;
-}
-
-interface ApplicationCacheEventMap {
- "cached": Event;
- "checking": Event;
- "downloading": Event;
- "error": Event;
- "noupdate": Event;
- "obsolete": Event;
- "progress": ProgressEvent;
- "updateready": Event;
-}
-
-interface ApplicationCache extends EventTarget {
- oncached: ((this: ApplicationCache, ev: Event) => any) | null;
- onchecking: ((this: ApplicationCache, ev: Event) => any) | null;
- ondownloading: ((this: ApplicationCache, ev: Event) => any) | null;
- onerror: ((this: ApplicationCache, ev: Event) => any) | null;
- onnoupdate: ((this: ApplicationCache, ev: Event) => any) | null;
- onobsolete: ((this: ApplicationCache, ev: Event) => any) | null;
- onprogress: ((this: ApplicationCache, ev: ProgressEvent) => any) | null;
- onupdateready: ((this: ApplicationCache, ev: Event) => any) | null;
- readonly status: number;
- abort(): void;
- swapCache(): void;
- update(): void;
- readonly CHECKING: number;
- readonly DOWNLOADING: number;
- readonly IDLE: number;
- readonly OBSOLETE: number;
- readonly UNCACHED: number;
- readonly UPDATEREADY: number;
- addEventListener(type: K, listener: (this: ApplicationCache, ev: ApplicationCacheEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener(type: K, listener: (this: ApplicationCache, ev: ApplicationCacheEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
-}
-
-declare var ApplicationCache: {
- prototype: ApplicationCache;
- new(): ApplicationCache;
- readonly CHECKING: number;
- readonly DOWNLOADING: number;
- readonly IDLE: number;
- readonly OBSOLETE: number;
- readonly UNCACHED: number;
- readonly UPDATEREADY: number;
-};
-
-interface AssignedNodesOptions {
- flatten?: boolean;
-}
-
-interface Attr extends Node {
- readonly name: string;
- readonly ownerElement: Element | null;
- readonly prefix: string | null;
- readonly specified: boolean;
- value: string;
-}
-
-declare var Attr: {
- prototype: Attr;
- new(): Attr;
-};
-
-interface AudioBuffer {
- readonly duration: number;
- readonly length: number;
- readonly numberOfChannels: number;
- readonly sampleRate: number;
- copyFromChannel(destination: Float32Array, channelNumber: number, startInChannel?: number): void;
- copyToChannel(source: Float32Array, channelNumber: number, startInChannel?: number): void;
- getChannelData(channel: number): Float32Array;
-}
-
-declare var AudioBuffer: {
- prototype: AudioBuffer;
- new(): AudioBuffer;
-};
-
-interface AudioBufferSourceNodeEventMap {
- "ended": Event;
-}
-
-interface AudioBufferSourceNode extends AudioNode {
- buffer: AudioBuffer | null;
- readonly detune: AudioParam;
- loop: boolean;
- loopEnd: number;
- loopStart: number;
- onended: ((this: AudioBufferSourceNode, ev: Event) => any) | null;
- readonly playbackRate: AudioParam;
- start(when?: number, offset?: number, duration?: number): void;
- stop(when?: number): void;
- addEventListener(type: K, listener: (this: AudioBufferSourceNode, ev: AudioBufferSourceNodeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener(type: K, listener: (this: AudioBufferSourceNode, ev: AudioBufferSourceNodeEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
-}
-
-declare var AudioBufferSourceNode: {
- prototype: AudioBufferSourceNode;
- new(): AudioBufferSourceNode;
-};
-
-interface AudioContextEventMap {
- "statechange": Event;
-}
-
-interface AudioContextBase extends EventTarget {
- readonly currentTime: number;
- readonly destination: AudioDestinationNode;
- readonly listener: AudioListener;
- onstatechange: ((this: AudioContext, ev: Event) => any) | null;
- readonly sampleRate: number;
- readonly state: AudioContextState;
- close(): Promise;
- createAnalyser(): AnalyserNode;
- createBiquadFilter(): BiquadFilterNode;
- createBuffer(numberOfChannels: number, length: number, sampleRate: number): AudioBuffer;
- createBufferSource(): AudioBufferSourceNode;
- createChannelMerger(numberOfInputs?: number): ChannelMergerNode;
- createChannelSplitter(numberOfOutputs?: number): ChannelSplitterNode;
- createConvolver(): ConvolverNode;
- createDelay(maxDelayTime?: number): DelayNode;
- createDynamicsCompressor(): DynamicsCompressorNode;
- createGain(): GainNode;
- createIIRFilter(feedforward: number[], feedback: number[]): IIRFilterNode;
- createMediaElementSource(mediaElement: HTMLMediaElement): MediaElementAudioSourceNode;
- createMediaStreamSource(mediaStream: MediaStream): MediaStreamAudioSourceNode;
- createOscillator(): OscillatorNode;
- createPanner(): PannerNode;
- createPeriodicWave(real: Float32Array, imag: Float32Array, constraints?: PeriodicWaveConstraints): PeriodicWave;
- createScriptProcessor(bufferSize?: number, numberOfInputChannels?: number, numberOfOutputChannels?: number): ScriptProcessorNode;
- createStereoPanner(): StereoPannerNode;
- createWaveShaper(): WaveShaperNode;
- decodeAudioData(audioData: ArrayBuffer, successCallback?: DecodeSuccessCallback, errorCallback?: DecodeErrorCallback): Promise;
- resume(): Promise;
- addEventListener(type: K, listener: (this: AudioContext, ev: AudioContextEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener(type: K, listener: (this: AudioContext, ev: AudioContextEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
-}
-
-interface AudioContext extends AudioContextBase {
- suspend(): Promise;
-}
-
-declare var AudioContext: {
- prototype: AudioContext;
- new(): AudioContext;
-};
-
-interface AudioDestinationNode extends AudioNode {
- readonly maxChannelCount: number;
-}
-
-declare var AudioDestinationNode: {
- prototype: AudioDestinationNode;
- new(): AudioDestinationNode;
-};
-
-interface AudioListener {
- /** @deprecated */
- dopplerFactor: number;
- /** @deprecated */
- speedOfSound: number;
- /** @deprecated */
- setOrientation(x: number, y: number, z: number, xUp: number, yUp: number, zUp: number): void;
- /** @deprecated */
- setPosition(x: number, y: number, z: number): void;
- /** @deprecated */
- setVelocity(x: number, y: number, z: number): void;
-}
-
-declare var AudioListener: {
- prototype: AudioListener;
- new(): AudioListener;
-};
-
-interface AudioNode extends EventTarget {
- channelCount: number;
- channelCountMode: ChannelCountMode;
- channelInterpretation: ChannelInterpretation;
- readonly context: AudioContext;
- readonly numberOfInputs: number;
- readonly numberOfOutputs: number;
- connect(destination: AudioNode, output?: number, input?: number): AudioNode;
- connect(destination: AudioParam, output?: number): void;
- disconnect(): void;
- disconnect(output: number): void;
- disconnect(destination: AudioNode): void;
- disconnect(destination: AudioNode, output: number): void;
- disconnect(destination: AudioNode, output: number, input: number): void;
- disconnect(destination: AudioParam): void;
- disconnect(destination: AudioParam, output: number): void;
-}
-
-declare var AudioNode: {
- prototype: AudioNode;
- new(): AudioNode;
-};
-
-interface AudioParam {
- readonly defaultValue: number;
- value: number;
- cancelScheduledValues(cancelTime: number): AudioParam;
- exponentialRampToValueAtTime(value: number, endTime: number): AudioParam;
- linearRampToValueAtTime(value: number, endTime: number): AudioParam;
- setTargetAtTime(target: number, startTime: number, timeConstant: number): AudioParam;
- setValueAtTime(value: number, startTime: number): AudioParam;
- setValueCurveAtTime(values: number[], startTime: number, duration: number): AudioParam;
-}
-
-declare var AudioParam: {
- prototype: AudioParam;
- new(): AudioParam;
-};
-
-interface AudioProcessingEvent extends Event {
- readonly inputBuffer: AudioBuffer;
- readonly outputBuffer: AudioBuffer;
- readonly playbackTime: number;
-}
-
-declare var AudioProcessingEvent: {
- prototype: AudioProcessingEvent;
- new(): AudioProcessingEvent;
-};
-
-interface AudioTrack {
- enabled: boolean;
- readonly id: string;
- kind: string;
- readonly label: string;
- language: string;
- readonly sourceBuffer: SourceBuffer;
-}
-
-declare var AudioTrack: {
- prototype: AudioTrack;
- new(): AudioTrack;
-};
-
-interface AudioTrackListEventMap {
- "addtrack": TrackEvent;
- "change": Event;
- "removetrack": TrackEvent;
-}
-
-interface AudioTrackList extends EventTarget {
- readonly length: number;
- onaddtrack: ((this: AudioTrackList, ev: TrackEvent) => any) | null;
- onchange: ((this: AudioTrackList, ev: Event) => any) | null;
- onremovetrack: ((this: AudioTrackList, ev: TrackEvent) => any) | null;
- getTrackById(id: string): AudioTrack | null;
- item(index: number): AudioTrack;
- addEventListener(type: K, listener: (this: AudioTrackList, ev: AudioTrackListEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener(type: K, listener: (this: AudioTrackList, ev: AudioTrackListEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- [index: number]: AudioTrack;
-}
-
-declare var AudioTrackList: {
- prototype: AudioTrackList;
- new(): AudioTrackList;
-};
-
-interface BarProp {
- readonly visible: boolean;
-}
-
-declare var BarProp: {
- prototype: BarProp;
- new(): BarProp;
-};
-
-interface BeforeUnloadEvent extends Event {
- returnValue: any;
-}
-
-declare var BeforeUnloadEvent: {
- prototype: BeforeUnloadEvent;
- new(): BeforeUnloadEvent;
-};
-
-interface BhxBrowser {
- readonly lastError: DOMException;
- checkMatchesGlobExpression(pattern: string, value: string): boolean;
- checkMatchesUriExpression(pattern: string, value: string): boolean;
- clearLastError(): void;
- currentWindowId(): number;
- fireExtensionApiTelemetry(functionName: string, isSucceeded: boolean, isSupported: boolean, errorString: string): void;
- genericFunction(functionId: number, destination: any, parameters?: string, callbackId?: number): void;
- genericSynchronousFunction(functionId: number, parameters?: string): string;
- getExtensionId(): string;
- getThisAddress(): any;
- registerGenericFunctionCallbackHandler(callbackHandler: Function): void;
- registerGenericListenerHandler(eventHandler: Function): void;
- setLastError(parameters: string): void;
- webPlatformGenericFunction(destination: any, parameters?: string, callbackId?: number): void;
-}
-
-declare var BhxBrowser: {
- prototype: BhxBrowser;
- new(): BhxBrowser;
-};
-
-interface BiquadFilterNode extends AudioNode {
- readonly Q: AudioParam;
- readonly detune: AudioParam;
- readonly frequency: AudioParam;
- readonly gain: AudioParam;
- type: BiquadFilterType;
- getFrequencyResponse(frequencyHz: Float32Array, magResponse: Float32Array, phaseResponse: Float32Array): void;
-}
-
-declare var BiquadFilterNode: {
- prototype: BiquadFilterNode;
- new(): BiquadFilterNode;
-};
-
-interface Blob {
- readonly size: number;
- readonly type: string;
- msClose(): void;
- msDetachStream(): any;
- slice(start?: number, end?: number, contentType?: string): Blob;
-}
-
-declare var Blob: {
- prototype: Blob;
- new (blobParts?: any[], options?: BlobPropertyBag): Blob;
-};
-
-interface BlobPropertyBag {
- endings?: string;
- type?: string;
-}
-
-interface Body {
- readonly bodyUsed: boolean;
- arrayBuffer(): Promise;
- blob(): Promise;
- formData(): Promise;
- json(): Promise;
- text(): Promise;
-}
-
-interface BroadcastChannel extends EventTarget {
- readonly name: string;
- onmessage: (ev: MessageEvent) => any;
- onmessageerror: (ev: MessageEvent) => any;
- addEventListener(type: K, listener: (this: BroadcastChannel, ev: BroadcastChannelEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- close(): void;
- postMessage(message: any): void;
- removeEventListener(type: K, listener: (this: BroadcastChannel, ev: BroadcastChannelEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
-}
-
-declare var BroadcastChannel: {
- prototype: BroadcastChannel;
- new(name: string): BroadcastChannel;
-};
-
-interface BroadcastChannelEventMap {
- message: MessageEvent;
- messageerror: MessageEvent;
-}
-
-interface ByteLengthQueuingStrategy {
- highWaterMark: number;
- size(chunk?: any): number;
-}
-
-declare var ByteLengthQueuingStrategy: {
- prototype: ByteLengthQueuingStrategy;
- new(strategy: QueuingStrategy): ByteLengthQueuingStrategy;
-};
-
-interface CDATASection extends Text {
-}
-
-declare var CDATASection: {
- prototype: CDATASection;
- new(): CDATASection;
-};
-
-interface CSS {
- escape(value: string): string;
- supports(property: string, value?: string): boolean;
-}
-declare var CSS: CSS;
-
-interface CSSConditionRule extends CSSGroupingRule {
- conditionText: string;
-}
-
-declare var CSSConditionRule: {
- prototype: CSSConditionRule;
- new(): CSSConditionRule;
-};
-
-interface CSSFontFaceRule extends CSSRule {
- readonly style: CSSStyleDeclaration;
-}
-
-declare var CSSFontFaceRule: {
- prototype: CSSFontFaceRule;
- new(): CSSFontFaceRule;
-};
-
-interface CSSGroupingRule extends CSSRule {
- readonly cssRules: CSSRuleList;
- deleteRule(index: number): void;
- insertRule(rule: string, index: number): number;
-}
-
-declare var CSSGroupingRule: {
- prototype: CSSGroupingRule;
- new(): CSSGroupingRule;
-};
-
-interface CSSImportRule extends CSSRule {
- readonly href: string;
- readonly media: MediaList;
- readonly styleSheet: CSSStyleSheet;
-}
-
-declare var CSSImportRule: {
- prototype: CSSImportRule;
- new(): CSSImportRule;
-};
-
-interface CSSKeyframeRule extends CSSRule {
- keyText: string;
- readonly style: CSSStyleDeclaration;
-}
-
-declare var CSSKeyframeRule: {
- prototype: CSSKeyframeRule;
- new(): CSSKeyframeRule;
-};
-
-interface CSSKeyframesRule extends CSSRule {
- readonly cssRules: CSSRuleList;
- name: string;
- appendRule(rule: string): void;
- deleteRule(rule: string): void;
- findRule(rule: string): CSSKeyframeRule | null;
-}
-
-declare var CSSKeyframesRule: {
- prototype: CSSKeyframesRule;
- new(): CSSKeyframesRule;
-};
-
-interface CSSMediaRule extends CSSConditionRule {
- readonly media: MediaList;
-}
-
-declare var CSSMediaRule: {
- prototype: CSSMediaRule;
- new(): CSSMediaRule;
-};
-
-interface CSSNamespaceRule extends CSSRule {
- readonly namespaceURI: string;
- readonly prefix: string;
-}
-
-declare var CSSNamespaceRule: {
- prototype: CSSNamespaceRule;
- new(): CSSNamespaceRule;
-};
-
-interface CSSPageRule extends CSSRule {
- readonly pseudoClass: string;
- readonly selector: string;
- selectorText: string;
- readonly style: CSSStyleDeclaration;
-}
-
-declare var CSSPageRule: {
- prototype: CSSPageRule;
- new(): CSSPageRule;
-};
-
-interface CSSRule {
- cssText: string;
- readonly parentRule: CSSRule | null;
- readonly parentStyleSheet: CSSStyleSheet | null;
- readonly type: number;
- readonly CHARSET_RULE: number;
- readonly FONT_FACE_RULE: number;
- readonly IMPORT_RULE: number;
- readonly KEYFRAMES_RULE: number;
- readonly KEYFRAME_RULE: number;
- readonly MEDIA_RULE: number;
- readonly NAMESPACE_RULE: number;
- readonly PAGE_RULE: number;
- readonly STYLE_RULE: number;
- readonly SUPPORTS_RULE: number;
- readonly UNKNOWN_RULE: number;
- readonly VIEWPORT_RULE: number;
-}
-
-declare var CSSRule: {
- prototype: CSSRule;
- new(): CSSRule;
- readonly CHARSET_RULE: number;
- readonly FONT_FACE_RULE: number;
- readonly IMPORT_RULE: number;
- readonly KEYFRAMES_RULE: number;
- readonly KEYFRAME_RULE: number;
- readonly MEDIA_RULE: number;
- readonly NAMESPACE_RULE: number;
- readonly PAGE_RULE: number;
- readonly STYLE_RULE: number;
- readonly SUPPORTS_RULE: number;
- readonly UNKNOWN_RULE: number;
- readonly VIEWPORT_RULE: number;
-};
-
-interface CSSRuleList {
- readonly length: number;
- item(index: number): CSSRule | null;
- [index: number]: CSSRule;
-}
-
-declare var CSSRuleList: {
- prototype: CSSRuleList;
- new(): CSSRuleList;
-};
-
-interface CSSStyleDeclaration {
- alignContent: string | null;
- alignItems: string | null;
- alignSelf: string | null;
- alignmentBaseline: string | null;
- animation: string | null;
- animationDelay: string | null;
- animationDirection: string | null;
- animationDuration: string | null;
- animationFillMode: string | null;
- animationIterationCount: string | null;
- animationName: string | null;
- animationPlayState: string | null;
- animationTimingFunction: string | null;
- backfaceVisibility: string | null;
- background: string | null;
- backgroundAttachment: string | null;
- backgroundClip: string | null;
- backgroundColor: string | null;
- backgroundImage: string | null;
- backgroundOrigin: string | null;
- backgroundPosition: string | null;
- backgroundPositionX: string | null;
- backgroundPositionY: string | null;
- backgroundRepeat: string | null;
- backgroundSize: string | null;
- baselineShift: string | null;
- border: string | null;
- borderBottom: string | null;
- borderBottomColor: string | null;
- borderBottomLeftRadius: string | null;
- borderBottomRightRadius: string | null;
- borderBottomStyle: string | null;
- borderBottomWidth: string | null;
- borderCollapse: string | null;
- borderColor: string | null;
- borderImage: string | null;
- borderImageOutset: string | null;
- borderImageRepeat: string | null;
- borderImageSlice: string | null;
- borderImageSource: string | null;
- borderImageWidth: string | null;
- borderLeft: string | null;
- borderLeftColor: string | null;
- borderLeftStyle: string | null;
- borderLeftWidth: string | null;
- borderRadius: string | null;
- borderRight: string | null;
- borderRightColor: string | null;
- borderRightStyle: string | null;
- borderRightWidth: string | null;
- borderSpacing: string | null;
- borderStyle: string | null;
- borderTop: string | null;
- borderTopColor: string | null;
- borderTopLeftRadius: string | null;
- borderTopRightRadius: string | null;
- borderTopStyle: string | null;
- borderTopWidth: string | null;
- borderWidth: string | null;
- bottom: string | null;
- boxShadow: string | null;
- boxSizing: string | null;
- breakAfter: string | null;
- breakBefore: string | null;
- breakInside: string | null;
- captionSide: string | null;
- clear: string | null;
- clip: string | null;
- clipPath: string | null;
- clipRule: string | null;
- color: string | null;
- colorInterpolationFilters: string | null;
- columnCount: any;
- columnFill: string | null;
- columnGap: any;
- columnRule: string | null;
- columnRuleColor: any;
- columnRuleStyle: string | null;
- columnRuleWidth: any;
- columnSpan: string | null;
- columnWidth: any;
- columns: string | null;
- content: string | null;
- counterIncrement: string | null;
- counterReset: string | null;
- cssFloat: string | null;
- cssText: string;
- cursor: string | null;
- direction: string | null;
- display: string | null;
- dominantBaseline: string | null;
- emptyCells: string | null;
- enableBackground: string | null;
- fill: string | null;
- fillOpacity: string | null;
- fillRule: string | null;
- filter: string | null;
- flex: string | null;
- flexBasis: string | null;
- flexDirection: string | null;
- flexFlow: string | null;
- flexGrow: string | null;
- flexShrink: string | null;
- flexWrap: string | null;
- floodColor: string | null;
- floodOpacity: string | null;
- font: string | null;
- fontFamily: string | null;
- fontFeatureSettings: string | null;
- fontSize: string | null;
- fontSizeAdjust: string | null;
- fontStretch: string | null;
- fontStyle: string | null;
- fontVariant: string | null;
- fontWeight: string | null;
- gap: string | null;
- glyphOrientationHorizontal: string | null;
- glyphOrientationVertical: string | null;
- grid: string | null;
- gridArea: string | null;
- gridAutoColumns: string | null;
- gridAutoFlow: string | null;
- gridAutoRows: string | null;
- gridColumn: string | null;
- gridColumnEnd: string | null;
- gridColumnGap: string | null;
- gridColumnStart: string | null;
- gridGap: string | null;
- gridRow: string | null;
- gridRowEnd: string | null;
- gridRowGap: string | null;
- gridRowStart: string | null;
- gridTemplate: string | null;
- gridTemplateAreas: string | null;
- gridTemplateColumns: string | null;
- gridTemplateRows: string | null;
- height: string | null;
- imeMode: string | null;
- justifyContent: string | null;
- justifyItems: string | null;
- justifySelf: string | null;
- kerning: string | null;
- layoutGrid: string | null;
- layoutGridChar: string | null;
- layoutGridLine: string | null;
- layoutGridMode: string | null;
- layoutGridType: string | null;
- left: string | null;
- readonly length: number;
- letterSpacing: string | null;
- lightingColor: string | null;
- lineBreak: string | null;
- lineHeight: string | null;
- listStyle: string | null;
- listStyleImage: string | null;
- listStylePosition: string | null;
- listStyleType: string | null;
- margin: string | null;
- marginBottom: string | null;
- marginLeft: string | null;
- marginRight: string | null;
- marginTop: string | null;
- marker: string | null;
- markerEnd: string | null;
- markerMid: string | null;
- markerStart: string | null;
- mask: string | null;
- maskImage: string | null;
- maxHeight: string | null;
- maxWidth: string | null;
- minHeight: string | null;
- minWidth: string | null;
- msContentZoomChaining: string | null;
- msContentZoomLimit: string | null;
- msContentZoomLimitMax: any;
- msContentZoomLimitMin: any;
- msContentZoomSnap: string | null;
- msContentZoomSnapPoints: string | null;
- msContentZoomSnapType: string | null;
- msContentZooming: string | null;
- msFlowFrom: string | null;
- msFlowInto: string | null;
- msFontFeatureSettings: string | null;
- msGridColumn: any;
- msGridColumnAlign: string | null;
- msGridColumnSpan: any;
- msGridColumns: string | null;
- msGridRow: any;
- msGridRowAlign: string | null;
- msGridRowSpan: any;
- msGridRows: string | null;
- msHighContrastAdjust: string | null;
- msHyphenateLimitChars: string | null;
- msHyphenateLimitLines: any;
- msHyphenateLimitZone: any;
- msHyphens: string | null;
- msImeAlign: string | null;
- msOverflowStyle: string | null;
- msScrollChaining: string | null;
- msScrollLimit: string | null;
- msScrollLimitXMax: any;
- msScrollLimitXMin: any;
- msScrollLimitYMax: any;
- msScrollLimitYMin: any;
- msScrollRails: string | null;
- msScrollSnapPointsX: string | null;
- msScrollSnapPointsY: string | null;
- msScrollSnapType: string | null;
- msScrollSnapX: string | null;
- msScrollSnapY: string | null;
- msScrollTranslation: string | null;
- msTextCombineHorizontal: string | null;
- msTextSizeAdjust: any;
- msTouchAction: string | null;
- msTouchSelect: string | null;
- msUserSelect: string | null;
- msWrapFlow: string;
- msWrapMargin: any;
- msWrapThrough: string;
- objectFit: string | null;
- objectPosition: string | null;
- opacity: string | null;
- order: string | null;
- orphans: string | null;
- outline: string | null;
- outlineColor: string | null;
- outlineOffset: string | null;
- outlineStyle: string | null;
- outlineWidth: string | null;
- overflow: string | null;
- overflowX: string | null;
- overflowY: string | null;
- padding: string | null;
- paddingBottom: string | null;
- paddingLeft: string | null;
- paddingRight: string | null;
- paddingTop: string | null;
- pageBreakAfter: string | null;
- pageBreakBefore: string | null;
- pageBreakInside: string | null;
- readonly parentRule: CSSRule;
- penAction: string | null;
- perspective: string | null;
- perspectiveOrigin: string | null;
- pointerEvents: string | null;
- position: string | null;
- quotes: string | null;
- resize: string | null;
- right: string | null;
- rotate: string | null;
- rowGap: string | null;
- rubyAlign: string | null;
- rubyOverhang: string | null;
- rubyPosition: string | null;
- scale: string | null;
- stopColor: string | null;
- stopOpacity: string | null;
- stroke: string | null;
- strokeDasharray: string | null;
- strokeDashoffset: string | null;
- strokeLinecap: string | null;
- strokeLinejoin: string | null;
- strokeMiterlimit: string | null;
- strokeOpacity: string | null;
- strokeWidth: string | null;
- tableLayout: string | null;
- textAlign: string | null;
- textAlignLast: string | null;
- textAnchor: string | null;
- textCombineUpright: string | null;
- textDecoration: string | null;
- textIndent: string | null;
- textJustify: string | null;
- textKashida: string | null;
- textKashidaSpace: string | null;
- textOverflow: string | null;
- textShadow: string | null;
- textTransform: string | null;
- textUnderlinePosition: string | null;
- top: string | null;
- touchAction: string | null;
- transform: string | null;
- transformOrigin: string | null;
- transformStyle: string | null;
- transition: string | null;
- transitionDelay: string | null;
- transitionDuration: string | null;
- transitionProperty: string | null;
- transitionTimingFunction: string | null;
- translate: string | null;
- unicodeBidi: string | null;
- userSelect: string | null;
- verticalAlign: string | null;
- visibility: string | null;
- webkitAlignContent: string | null;
- webkitAlignItems: string | null;
- webkitAlignSelf: string | null;
- webkitAnimation: string | null;
- webkitAnimationDelay: string | null;
- webkitAnimationDirection: string | null;
- webkitAnimationDuration: string | null;
- webkitAnimationFillMode: string | null;
- webkitAnimationIterationCount: string | null;
- webkitAnimationName: string | null;
- webkitAnimationPlayState: string | null;
- webkitAnimationTimingFunction: string | null;
- webkitAppearance: string | null;
- webkitBackfaceVisibility: string | null;
- webkitBackgroundClip: string | null;
- webkitBackgroundOrigin: string | null;
- webkitBackgroundSize: string | null;
- webkitBorderBottomLeftRadius: string | null;
- webkitBorderBottomRightRadius: string | null;
- webkitBorderImage: string | null;
- webkitBorderRadius: string | null;
- webkitBorderTopLeftRadius: string | null;
- webkitBorderTopRightRadius: string | null;
- webkitBoxAlign: string | null;
- webkitBoxDirection: string | null;
- webkitBoxFlex: string | null;
- webkitBoxOrdinalGroup: string | null;
- webkitBoxOrient: string | null;
- webkitBoxPack: string | null;
- webkitBoxSizing: string | null;
- webkitColumnBreakAfter: string | null;
- webkitColumnBreakBefore: string | null;
- webkitColumnBreakInside: string | null;
- webkitColumnCount: any;
- webkitColumnGap: any;
- webkitColumnRule: string | null;
- webkitColumnRuleColor: any;
- webkitColumnRuleStyle: string | null;
- webkitColumnRuleWidth: any;
- webkitColumnSpan: string | null;
- webkitColumnWidth: any;
- webkitColumns: string | null;
- webkitFilter: string | null;
- webkitFlex: string | null;
- webkitFlexBasis: string | null;
- webkitFlexDirection: string | null;
- webkitFlexFlow: string | null;
- webkitFlexGrow: string | null;
- webkitFlexShrink: string | null;
- webkitFlexWrap: string | null;
- webkitJustifyContent: string | null;
- webkitOrder: string | null;
- webkitPerspective: string | null;
- webkitPerspectiveOrigin: string | null;
- webkitTapHighlightColor: string | null;
- webkitTextFillColor: string | null;
- webkitTextSizeAdjust: any;
- webkitTextStroke: string | null;
- webkitTextStrokeColor: string | null;
- webkitTextStrokeWidth: string | null;
- webkitTransform: string | null;
- webkitTransformOrigin: string | null;
- webkitTransformStyle: string | null;
- webkitTransition: string | null;
- webkitTransitionDelay: string | null;
- webkitTransitionDuration: string | null;
- webkitTransitionProperty: string | null;
- webkitTransitionTimingFunction: string | null;
- webkitUserModify: string | null;
- webkitUserSelect: string | null;
- webkitWritingMode: string | null;
- whiteSpace: string | null;
- widows: string | null;
- width: string | null;
- wordBreak: string | null;
- wordSpacing: string | null;
- wordWrap: string | null;
- writingMode: string | null;
- zIndex: string | null;
- zoom: string | null;
- getPropertyPriority(propertyName: string): string;
- getPropertyValue(propertyName: string): string;
- item(index: number): string;
- removeProperty(propertyName: string): string;
- setProperty(propertyName: string, value: string | null, priority?: string | null): void;
- [index: number]: string;
-}
-
-declare var CSSStyleDeclaration: {
- prototype: CSSStyleDeclaration;
- new(): CSSStyleDeclaration;
-};
-
-interface CSSStyleRule extends CSSRule {
- selectorText: string;
- readonly style: CSSStyleDeclaration;
-}
-
-declare var CSSStyleRule: {
- prototype: CSSStyleRule;
- new(): CSSStyleRule;
-};
-
-interface CSSStyleSheet extends StyleSheet {
- readonly cssRules: CSSRuleList;
- /** @deprecated */
- cssText: string;
- /** @deprecated */
- readonly id: string;
- /** @deprecated */
- readonly imports: StyleSheetList;
- /** @deprecated */
- readonly isAlternate: boolean;
- /** @deprecated */
- readonly isPrefAlternate: boolean;
- readonly ownerRule: CSSRule | null;
- /** @deprecated */
- readonly owningElement: Element;
- /** @deprecated */
- readonly pages: any;
- /** @deprecated */
- readonly readOnly: boolean;
- readonly rules: CSSRuleList;
- /** @deprecated */
- addImport(bstrURL: string, lIndex?: number): number;
- /** @deprecated */
- addPageRule(bstrSelector: string, bstrStyle: string, lIndex?: number): number;
- addRule(bstrSelector: string, bstrStyle?: string, lIndex?: number): number;
- deleteRule(index?: number): void;
- insertRule(rule: string, index?: number): number;
- /** @deprecated */
- removeImport(lIndex: number): void;
- removeRule(lIndex: number): void;
-}
-
-declare var CSSStyleSheet: {
- prototype: CSSStyleSheet;
- new(): CSSStyleSheet;
-};
-
-interface CSSSupportsRule extends CSSConditionRule {
-}
-
-declare var CSSSupportsRule: {
- prototype: CSSSupportsRule;
- new(): CSSSupportsRule;
-};
-
-interface Cache {
- add(request: Request | string): Promise;
- addAll(requests: (Request | string)[]): Promise;
- delete(request: Request | string, options?: CacheQueryOptions): Promise;
- keys(request?: Request | string, options?: CacheQueryOptions): Promise;
- match(request: Request | string, options?: CacheQueryOptions): Promise;
- matchAll(request?: Request | string, options?: CacheQueryOptions): Promise;
- put(request: Request | string, response: Response): Promise;
-}
-
-declare var Cache: {
- prototype: Cache;
- new(): Cache;
-};
-
-interface CacheStorage {
- delete(cacheName: string): Promise;
- has(cacheName: string): Promise;
- keys(): Promise;
- match(request: Request | string, options?: CacheQueryOptions): Promise;
- open(cacheName: string): Promise;
-}
-
-declare var CacheStorage: {
- prototype: CacheStorage;
- new(): CacheStorage;
-};
-
-interface Canvas2DContextAttributes {
- alpha?: boolean;
- storage?: boolean;
- willReadFrequently?: boolean;
- [attribute: string]: boolean | string | undefined;
-}
-
-interface CanvasGradient {
- addColorStop(offset: number, color: string): void;
-}
-
-declare var CanvasGradient: {
- prototype: CanvasGradient;
- new(): CanvasGradient;
-};
-
-interface CanvasPathMethods {
- arc(x: number, y: number, radius: number, startAngle: number, endAngle: number, anticlockwise?: boolean): void;
- arcTo(x1: number, y1: number, x2: number, y2: number, radius: number): void;
- arcTo(x1: number, y1: number, x2: number, y2: number, radiusX: number, radiusY: number, rotation: number): void;
- bezierCurveTo(cp1x: number, cp1y: number, cp2x: number, cp2y: number, x: number, y: number): void;
- closePath(): void;
- ellipse(x: number, y: number, radiusX: number, radiusY: number, rotation: number, startAngle: number, endAngle: number, anticlockwise?: boolean): void;
- lineTo(x: number, y: number): void;
- moveTo(x: number, y: number): void;
- quadraticCurveTo(cpx: number, cpy: number, x: number, y: number): void;
- rect(x: number, y: number, w: number, h: number): void;
-}
-
-interface CanvasPattern {
- setTransform(matrix: SVGMatrix): void;
-}
-
-declare var CanvasPattern: {
- prototype: CanvasPattern;
- new(): CanvasPattern;
-};
-
-interface CanvasRenderingContext2D extends CanvasPathMethods {
- readonly canvas: HTMLCanvasElement;
- fillStyle: string | CanvasGradient | CanvasPattern;
- font: string;
- globalAlpha: number;
- globalCompositeOperation: string;
- imageSmoothingEnabled: boolean;
- lineCap: string;
- lineDashOffset: number;
- lineJoin: string;
- lineWidth: number;
- miterLimit: number;
- mozImageSmoothingEnabled: boolean;
- msFillRule: CanvasFillRule;
- oImageSmoothingEnabled: boolean;
- shadowBlur: number;
- shadowColor: string;
- shadowOffsetX: number;
- shadowOffsetY: number;
- strokeStyle: string | CanvasGradient | CanvasPattern;
- textAlign: string;
- textBaseline: string;
- webkitImageSmoothingEnabled: boolean;
- beginPath(): void;
- clearRect(x: number, y: number, w: number, h: number): void;
- clip(fillRule?: CanvasFillRule): void;
- clip(path: Path2D, fillRule?: CanvasFillRule): void;
- createImageData(imageDataOrSw: number | ImageData, sh?: number): ImageData;
- createLinearGradient(x0: number, y0: number, x1: number, y1: number): CanvasGradient;
- createPattern(image: HTMLImageElement | HTMLCanvasElement | HTMLVideoElement, repetition: string): CanvasPattern;
- createRadialGradient(x0: number, y0: number, r0: number, x1: number, y1: number, r1: number): CanvasGradient;
- drawFocusIfNeeded(element: Element): void;
- drawFocusIfNeeded(path: Path2D, element: Element): void;
- drawImage(image: HTMLImageElement | HTMLCanvasElement | HTMLVideoElement | ImageBitmap, dstX: number, dstY: number): void;
- drawImage(image: HTMLImageElement | HTMLCanvasElement | HTMLVideoElement | ImageBitmap, dstX: number, dstY: number, dstW: number, dstH: number): void;
- drawImage(image: HTMLImageElement | HTMLCanvasElement | HTMLVideoElement | ImageBitmap, srcX: number, srcY: number, srcW: number, srcH: number, dstX: number, dstY: number, dstW: number, dstH: number): void;
- fill(fillRule?: CanvasFillRule): void;
- fill(path: Path2D, fillRule?: CanvasFillRule): void;
- fillRect(x: number, y: number, w: number, h: number): void;
- fillText(text: string, x: number, y: number, maxWidth?: number): void;
- getImageData(sx: number, sy: number, sw: number, sh: number): ImageData;
- getLineDash(): number[];
- isPointInPath(x: number, y: number, fillRule?: CanvasFillRule): boolean;
- isPointInPath(path: Path2D, x: number, y: number, fillRule?: CanvasFillRule): boolean;
- isPointInStroke(x: number, y: number, fillRule?: CanvasFillRule): boolean;
- isPointInStroke(path: Path2D, x: number, y: number, fillRule?: CanvasFillRule): boolean;
- measureText(text: string): TextMetrics;
- putImageData(imagedata: ImageData, dx: number, dy: number, dirtyX?: number, dirtyY?: number, dirtyWidth?: number, dirtyHeight?: number): void;
- restore(): void;
- rotate(angle: number): void;
- save(): void;
- scale(x: number, y: number): void;
- setLineDash(segments: number[]): void;
- setTransform(m11: number, m12: number, m21: number, m22: number, dx: number, dy: number): void;
- stroke(path?: Path2D): void;
- strokeRect(x: number, y: number, w: number, h: number): void;
- strokeText(text: string, x: number, y: number, maxWidth?: number): void;
- transform(m11: number, m12: number, m21: number, m22: number, dx: number, dy: number): void;
- translate(x: number, y: number): void;
-}
-
-declare var CanvasRenderingContext2D: {
- prototype: CanvasRenderingContext2D;
- new(): CanvasRenderingContext2D;
-};
-
-interface ChannelMergerNode extends AudioNode {
-}
-
-declare var ChannelMergerNode: {
- prototype: ChannelMergerNode;
- new(): ChannelMergerNode;
-};
-
-interface ChannelSplitterNode extends AudioNode {
-}
-
-declare var ChannelSplitterNode: {
- prototype: ChannelSplitterNode;
- new(): ChannelSplitterNode;
-};
-
-interface CharacterData extends Node, ChildNode {
- data: string;
- readonly length: number;
- appendData(arg: string): void;
- deleteData(offset: number, count: number): void;
- insertData(offset: number, arg: string): void;
- replaceData(offset: number, count: number, arg: string): void;
- substringData(offset: number, count: number): string;
-}
-
-declare var CharacterData: {
- prototype: CharacterData;
- new(): CharacterData;
-};
-
-interface ChildNode {
- remove(): void;
-}
-
-interface ClientRect {
- bottom: number;
- readonly height: number;
- left: number;
- right: number;
- top: number;
- readonly width: number;
-}
-
-declare var ClientRect: {
- prototype: ClientRect;
- new(): ClientRect;
-};
-
-interface ClientRectList {
- readonly length: number;
- item(index: number): ClientRect;
- [index: number]: ClientRect;
-}
-
-declare var ClientRectList: {
- prototype: ClientRectList;
- new(): ClientRectList;
-};
-
-interface ClipboardEvent extends Event {
- readonly clipboardData: DataTransfer;
-}
-
-declare var ClipboardEvent: {
- prototype: ClipboardEvent;
- new(type: string, eventInitDict?: ClipboardEventInit): ClipboardEvent;
-};
-
-interface ClipboardEventInit extends EventInit {
- data?: string;
- dataType?: string;
-}
-
-interface CloseEvent extends Event {
- readonly code: number;
- readonly reason: string;
- readonly wasClean: boolean;
- /** @deprecated */
- initCloseEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, wasCleanArg: boolean, codeArg: number, reasonArg: string): void;
-}
-
-declare var CloseEvent: {
- prototype: CloseEvent;
- new(type: string, eventInitDict?: CloseEventInit): CloseEvent;
-};
-
-interface Comment extends CharacterData {
- text: string;
-}
-
-declare var Comment: {
- prototype: Comment;
- new(data?: string): Comment;
-};
-
-interface CompositionEvent extends UIEvent {
- readonly data: string;
- readonly locale: string;
- initCompositionEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, viewArg: Window, dataArg: string, locale: string): void;
-}
-
-declare var CompositionEvent: {
- prototype: CompositionEvent;
- new(typeArg: string, eventInitDict?: CompositionEventInit): CompositionEvent;
-};
-
-interface ComputedTimingProperties {
- activeDuration: number;
- currentIteration: number | null;
- endTime: number;
- localTime: number | null;
- progress: number | null;
-}
-
-interface ConcatParams extends Algorithm {
- algorithmId: Uint8Array;
- hash?: string | Algorithm;
- partyUInfo: Uint8Array;
- partyVInfo: Uint8Array;
- privateInfo?: Uint8Array;
- publicInfo?: Uint8Array;
-}
-
-interface Console {
- memory: any;
- assert(condition?: boolean, message?: string, ...data: any[]): void;
- clear(): void;
- count(label?: string): void;
- debug(message?: any, ...optionalParams: any[]): void;
- dir(value?: any, ...optionalParams: any[]): void;
- dirxml(value: any): void;
- error(message?: any, ...optionalParams: any[]): void;
- exception(message?: string, ...optionalParams: any[]): void;
- group(groupTitle?: string, ...optionalParams: any[]): void;
- groupCollapsed(groupTitle?: string, ...optionalParams: any[]): void;
- groupEnd(): void;
- info(message?: any, ...optionalParams: any[]): void;
- log(message?: any, ...optionalParams: any[]): void;
- markTimeline(label?: string): void;
- msIsIndependentlyComposed(element: Element): boolean;
- profile(reportName?: string): void;
- profileEnd(): void;
- select(element: Element): void;
- table(...tabularData: any[]): void;
- time(label?: string): void;
- timeEnd(label?: string): void;
- timeStamp(label?: string): void;
- timeline(label?: string): void;
- timelineEnd(label?: string): void;
- trace(message?: any, ...optionalParams: any[]): void;
- warn(message?: any, ...optionalParams: any[]): void;
-}
-
-declare var Console: {
- prototype: Console;
- new(): Console;
-};
-
-interface ContentScriptGlobalScope extends EventTarget {
- readonly msContentScript: ExtensionScriptApis;
- readonly window: Window;
-}
-
-declare var ContentScriptGlobalScope: {
- prototype: ContentScriptGlobalScope;
- new(): ContentScriptGlobalScope;
-};
-
-interface ConvolverNode extends AudioNode {
- buffer: AudioBuffer | null;
- normalize: boolean;
-}
-
-declare var ConvolverNode: {
- prototype: ConvolverNode;
- new(): ConvolverNode;
-};
-
-interface Coordinates {
- readonly accuracy: number;
- readonly altitude: number | null;
- readonly altitudeAccuracy: number | null;
- readonly heading: number | null;
- readonly latitude: number;
- readonly longitude: number;
- readonly speed: number | null;
-}
-
-declare var Coordinates: {
- prototype: Coordinates;
- new(): Coordinates;
-};
-
-interface CountQueuingStrategy {
- highWaterMark: number;
- size(): number;
-}
-
-declare var CountQueuingStrategy: {
- prototype: CountQueuingStrategy;
- new(strategy: QueuingStrategy): CountQueuingStrategy;
-};
-
-interface Crypto {
- readonly subtle: SubtleCrypto;
- getRandomValues(array: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | null): Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | null;
-}
-
-declare var Crypto: {
- prototype: Crypto;
- new(): Crypto;
-};
-
-interface CryptoKey {
- readonly algorithm: KeyAlgorithm;
- readonly extractable: boolean;
- readonly type: string;
- readonly usages: string[];
-}
-
-declare var CryptoKey: {
- prototype: CryptoKey;
- new(): CryptoKey;
-};
-
-interface CryptoKeyPair {
- privateKey: CryptoKey;
- publicKey: CryptoKey;
-}
-
-declare var CryptoKeyPair: {
- prototype: CryptoKeyPair;
- new(): CryptoKeyPair;
-};
-
-interface CustomElementRegistry {
- define(name: string, constructor: Function, options?: ElementDefinitionOptions): void;
- get(name: string): any;
- whenDefined(name: string): PromiseLike;
-}
-
-interface CustomEvent extends Event {
- readonly detail: T;
- initCustomEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, detailArg: T): void;
-}
-
-declare var CustomEvent: {
- prototype: CustomEvent;
- new(typeArg: string, eventInitDict?: CustomEventInit): CustomEvent;
-};
-
-interface DOMError {
- readonly name: string;
- toString(): string;
-}
-
-declare var DOMError: {
- prototype: DOMError;
- new(): DOMError;
-};
-
-interface DOMException {
- readonly code: number;
- readonly message: string;
- readonly name: string;
- toString(): string;
- readonly ABORT_ERR: number;
- readonly DATA_CLONE_ERR: number;
- readonly DOMSTRING_SIZE_ERR: number;
- readonly HIERARCHY_REQUEST_ERR: number;
- readonly INDEX_SIZE_ERR: number;
- readonly INUSE_ATTRIBUTE_ERR: number;
- readonly INVALID_ACCESS_ERR: number;
- readonly INVALID_CHARACTER_ERR: number;
- readonly INVALID_MODIFICATION_ERR: number;
- readonly INVALID_NODE_TYPE_ERR: number;
- readonly INVALID_STATE_ERR: number;
- readonly NAMESPACE_ERR: number;
- readonly NETWORK_ERR: number;
- readonly NOT_FOUND_ERR: number;
- readonly NOT_SUPPORTED_ERR: number;
- readonly NO_DATA_ALLOWED_ERR: number;
- readonly NO_MODIFICATION_ALLOWED_ERR: number;
- readonly PARSE_ERR: number;
- readonly QUOTA_EXCEEDED_ERR: number;
- readonly SECURITY_ERR: number;
- readonly SERIALIZE_ERR: number;
- readonly SYNTAX_ERR: number;
- readonly TIMEOUT_ERR: number;
- readonly TYPE_MISMATCH_ERR: number;
- readonly URL_MISMATCH_ERR: number;
- readonly VALIDATION_ERR: number;
- readonly WRONG_DOCUMENT_ERR: number;
-}
-
-declare var DOMException: {
- prototype: DOMException;
- new(message?: string, name?: string): DOMException;
- readonly ABORT_ERR: number;
- readonly DATA_CLONE_ERR: number;
- readonly DOMSTRING_SIZE_ERR: number;
- readonly HIERARCHY_REQUEST_ERR: number;
- readonly INDEX_SIZE_ERR: number;
- readonly INUSE_ATTRIBUTE_ERR: number;
- readonly INVALID_ACCESS_ERR: number;
- readonly INVALID_CHARACTER_ERR: number;
- readonly INVALID_MODIFICATION_ERR: number;
- readonly INVALID_NODE_TYPE_ERR: number;
- readonly INVALID_STATE_ERR: number;
- readonly NAMESPACE_ERR: number;
- readonly NETWORK_ERR: number;
- readonly NOT_FOUND_ERR: number;
- readonly NOT_SUPPORTED_ERR: number;
- readonly NO_DATA_ALLOWED_ERR: number;
- readonly NO_MODIFICATION_ALLOWED_ERR: number;
- readonly PARSE_ERR: number;
- readonly QUOTA_EXCEEDED_ERR: number;
- readonly SECURITY_ERR: number;
- readonly SERIALIZE_ERR: number;
- readonly SYNTAX_ERR: number;
- readonly TIMEOUT_ERR: number;
- readonly TYPE_MISMATCH_ERR: number;
- readonly URL_MISMATCH_ERR: number;
- readonly VALIDATION_ERR: number;
- readonly WRONG_DOCUMENT_ERR: number;
-};
-
-interface DOMImplementation {
- createDocument(namespaceURI: string | null, qualifiedName: string | null, doctype: DocumentType | null): Document;
- createDocumentType(qualifiedName: string, publicId: string, systemId: string): DocumentType;
- createHTMLDocument(title?: string): Document;
- hasFeature(feature: string | null, version: string | null): boolean;
-}
-
-declare var DOMImplementation: {
- prototype: DOMImplementation;
- new(): DOMImplementation;
-};
-
-interface DOML2DeprecatedColorProperty {
- color: string;
-}
-
-interface DOML2DeprecatedSizeProperty {
- size: number;
-}
-
-interface DOMParser {
- parseFromString(source: string, mimeType: string): Document;
-}
-
-declare var DOMParser: {
- prototype: DOMParser;
- new(): DOMParser;
-};
-
-interface DOMRect extends DOMRectReadOnly {
- height: number;
- width: number;
- x: number;
- y: number;
-}
-
-declare var DOMRect: {
- prototype: DOMRect;
- new (x?: number, y?: number, width?: number, height?: number): DOMRect;
- fromRect(rectangle?: DOMRectInit): DOMRect;
-};
-
-interface DOMRectList {
- readonly length: number;
- item(index: number): DOMRect | null;
- [index: number]: DOMRect;
-}
-
-interface DOMRectReadOnly {
- readonly bottom: number;
- readonly height: number;
- readonly left: number;
- readonly right: number;
- readonly top: number;
- readonly width: number;
- readonly x: number;
- readonly y: number;
-}
-
-declare var DOMRectReadOnly: {
- prototype: DOMRectReadOnly;
- new (x?: number, y?: number, width?: number, height?: number): DOMRectReadOnly;
- fromRect(rectangle?: DOMRectInit): DOMRectReadOnly;
-};
-
-interface DOMSettableTokenList extends DOMTokenList {
- value: string;
-}
-
-declare var DOMSettableTokenList: {
- prototype: DOMSettableTokenList;
- new(): DOMSettableTokenList;
-};
-
-interface DOMStringList {
- readonly length: number;
- contains(str: string): boolean;
- item(index: number): string | null;
- [index: number]: string;
-}
-
-declare var DOMStringList: {
- prototype: DOMStringList;
- new(): DOMStringList;
-};
-
-interface DOMStringMap {
- [name: string]: string | undefined;
-}
-
-declare var DOMStringMap: {
- prototype: DOMStringMap;
- new(): DOMStringMap;
-};
-
-interface DOMTokenList {
- readonly length: number;
- add(...tokens: string[]): void;
- contains(token: string): boolean;
- item(index: number): string | null;
- remove(...tokens: string[]): void;
- replace(oldToken: string, newToken: string): void;
- toString(): string;
- toggle(token: string, force?: boolean): boolean;
- [index: number]: string;
-}
-
-declare var DOMTokenList: {
- prototype: DOMTokenList;
- new(): DOMTokenList;
-};
-
-interface DataCue extends TextTrackCue {
- data: ArrayBuffer;
- addEventListener(type: K, listener: (this: DataCue, ev: TextTrackCueEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener(type: K, listener: (this: DataCue, ev: TextTrackCueEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
-}
-
-declare var DataCue: {
- prototype: DataCue;
- new(): DataCue;
-};
-
-interface DataTransfer {
- dropEffect: string;
- effectAllowed: string;
- readonly files: FileList;
- readonly items: DataTransferItemList;
- readonly types: string[];
- clearData(format?: string): boolean;
- getData(format: string): string;
- setData(format: string, data: string): boolean;
- setDragImage(image: Element, x: number, y: number): void;
-}
-
-declare var DataTransfer: {
- prototype: DataTransfer;
- new(): DataTransfer;
-};
-
-interface DataTransferItem {
- readonly kind: string;
- readonly type: string;
- getAsFile(): File | null;
- getAsString(_callback: FunctionStringCallback | null): void;
- webkitGetAsEntry(): any;
-}
-
-declare var DataTransferItem: {
- prototype: DataTransferItem;
- new(): DataTransferItem;
-};
-
-interface DataTransferItemList {
- readonly length: number;
- add(data: File): DataTransferItem | null;
- add(data: string, type: string): DataTransferItem | null;
- clear(): void;
- item(index: number): DataTransferItem;
- remove(index: number): void;
- [name: number]: DataTransferItem;
-}
-
-declare var DataTransferItemList: {
- prototype: DataTransferItemList;
- new(): DataTransferItemList;
-};
-
-interface DeferredPermissionRequest {
- readonly id: number;
- readonly type: MSWebViewPermissionType;
- readonly uri: string;
- allow(): void;
- deny(): void;
-}
-
-declare var DeferredPermissionRequest: {
- prototype: DeferredPermissionRequest;
- new(): DeferredPermissionRequest;
-};
-
-interface DelayNode extends AudioNode {
- readonly delayTime: AudioParam;
-}
-
-declare var DelayNode: {
- prototype: DelayNode;
- new(): DelayNode;
-};
-
-interface DeviceAcceleration {
- readonly x: number | null;
- readonly y: number | null;
- readonly z: number | null;
-}
-
-declare var DeviceAcceleration: {
- prototype: DeviceAcceleration;
- new(): DeviceAcceleration;
-};
-
-interface DeviceLightEvent extends Event {
- readonly value: number;
-}
-
-declare var DeviceLightEvent: {
- prototype: DeviceLightEvent;
- new(typeArg: string, eventInitDict?: DeviceLightEventInit): DeviceLightEvent;
-};
-
-interface DeviceMotionEvent extends Event {
- readonly acceleration: DeviceAcceleration | null;
- readonly accelerationIncludingGravity: DeviceAcceleration | null;
- readonly interval: number | null;
- readonly rotationRate: DeviceRotationRate | null;
- initDeviceMotionEvent(type: string, bubbles: boolean, cancelable: boolean, acceleration: DeviceAccelerationDict | null, accelerationIncludingGravity: DeviceAccelerationDict | null, rotationRate: DeviceRotationRateDict | null, interval: number | null): void;
-}
-
-declare var DeviceMotionEvent: {
- prototype: DeviceMotionEvent;
- new(typeArg: string, eventInitDict?: DeviceMotionEventInit): DeviceMotionEvent;
-};
-
-interface DeviceOrientationEvent extends Event {
- readonly absolute: boolean;
- readonly alpha: number | null;
- readonly beta: number | null;
- readonly gamma: number | null;
- initDeviceOrientationEvent(type: string, bubbles: boolean, cancelable: boolean, alpha: number | null, beta: number | null, gamma: number | null, absolute: boolean): void;
-}
-
-declare var DeviceOrientationEvent: {
- prototype: DeviceOrientationEvent;
- new(typeArg: string, eventInitDict?: DeviceOrientationEventInit): DeviceOrientationEvent;
-};
-
-interface DeviceRotationRate {
- readonly alpha: number | null;
- readonly beta: number | null;
- readonly gamma: number | null;
-}
-
-declare var DeviceRotationRate: {
- prototype: DeviceRotationRate;
- new(): DeviceRotationRate;
-};
-
-interface DhImportKeyParams extends Algorithm {
- generator: Uint8Array;
- prime: Uint8Array;
-}
-
-interface DhKeyAlgorithm extends KeyAlgorithm {
- generator: Uint8Array;
- prime: Uint8Array;
-}
-
-interface DhKeyDeriveParams extends Algorithm {
- public: CryptoKey;
-}
-
-interface DhKeyGenParams extends Algorithm {
- generator: Uint8Array;
- prime: Uint8Array;
-}
-
-interface DocumentEventMap extends GlobalEventHandlersEventMap {
- "abort": UIEvent;
- "activate": Event;
- "beforeactivate": Event;
- "beforedeactivate": Event;
- "blur": FocusEvent;
- "canplay": Event;
- "canplaythrough": Event;
- "change": Event;
- "click": MouseEvent;
- "contextmenu": PointerEvent;
- "dblclick": MouseEvent;
- "deactivate": Event;
- "drag": DragEvent;
- "dragend": DragEvent;
- "dragenter": DragEvent;
- "dragleave": DragEvent;
- "dragover": DragEvent;
- "dragstart": DragEvent;
- "drop": DragEvent;
- "durationchange": Event;
- "emptied": Event;
- "ended": Event;
- "error": ErrorEvent;
- "focus": FocusEvent;
- "fullscreenchange": Event;
- "fullscreenerror": Event;
- "input": Event;
- "invalid": Event;
- "keydown": KeyboardEvent;
- "keypress": KeyboardEvent;
- "keyup": KeyboardEvent;
- "load": Event;
- "loadeddata": Event;
- "loadedmetadata": Event;
- "loadstart": Event;
- "mousedown": MouseEvent;
- "mousemove": MouseEvent;
- "mouseout": MouseEvent;
- "mouseover": MouseEvent;
- "mouseup": MouseEvent;
- "mousewheel": WheelEvent;
- "MSContentZoom": Event;
- "MSGestureChange": Event;
- "MSGestureDoubleTap": Event;
- "MSGestureEnd": Event;
- "MSGestureHold": Event;
- "MSGestureStart": Event;
- "MSGestureTap": Event;
- "MSInertiaStart": Event;
- "MSManipulationStateChanged": Event;
- "MSPointerCancel": Event;
- "MSPointerDown": Event;
- "MSPointerEnter": Event;
- "MSPointerLeave": Event;
- "MSPointerMove": Event;
- "MSPointerOut": Event;
- "MSPointerOver": Event;
- "MSPointerUp": Event;
- "mssitemodejumplistitemremoved": Event;
- "msthumbnailclick": Event;
- "pause": Event;
- "play": Event;
- "playing": Event;
- "pointerlockchange": Event;
- "pointerlockerror": Event;
- "progress": ProgressEvent;
- "ratechange": Event;
- "readystatechange": Event;
- "reset": Event;
- "scroll": UIEvent;
- "seeked": Event;
- "seeking": Event;
- "select": UIEvent;
- "selectionchange": Event;
- "selectstart": Event;
- "stalled": Event;
- "stop": Event;
- "submit": Event;
- "suspend": Event;
- "timeupdate": Event;
- "touchcancel": TouchEvent;
- "touchend": TouchEvent;
- "touchmove": TouchEvent;
- "touchstart": TouchEvent;
- "volumechange": Event;
- "waiting": Event;
- "webkitfullscreenchange": Event;
- "webkitfullscreenerror": Event;
-}
-
-interface Document extends Node, GlobalEventHandlers, ParentNode, DocumentEvent {
- /**
- * Sets or gets the URL for the current document.
- */
- readonly URL: string;
- /**
- * Gets the URL for the document, stripped of any character encoding.
- */
- readonly URLUnencoded: string;
- /**
- * Gets the object that has the focus when the parent document has focus.
- */
- readonly activeElement: Element;
- /**
- * Sets or gets the color of all active links in the document.
- */
- alinkColor: string;
- /**
- * Returns a reference to the collection of elements contained by the object.
- */
- readonly all: HTMLAllCollection;
- /**
- * Retrieves a collection of all a objects that have a name and/or id property. Objects in this collection are in HTML source order.
- */
- readonly anchors: HTMLCollectionOf;
- /**
- * Retrieves a collection of all applet objects in the document.
- */
- readonly applets: HTMLCollectionOf;
- /**
- * Deprecated. Sets or retrieves a value that indicates the background color behind the object.
- */
- bgColor: string;
- /**
- * Specifies the beginning and end of the document body.
- */
- body: HTMLElement;
- readonly characterSet: string;
- /**
- * Gets or sets the character set used to encode the object.
- */
- charset: string;
- /**
- * Gets a value that indicates whether standards-compliant mode is switched on for the object.
- */
- readonly compatMode: string;
- cookie: string;
- readonly currentScript: HTMLScriptElement | SVGScriptElement | null;
- readonly defaultView: Window;
- /**
- * Sets or gets a value that indicates whether the document can be edited.
- */
- designMode: string;
- /**
- * Sets or retrieves a value that indicates the reading order of the object.
- */
- dir: string;
- /**
- * Gets an object representing the document type declaration associated with the current document.
- */
- readonly doctype: DocumentType;
- /**
- * Gets a reference to the root node of the document.
- */
- readonly documentElement: HTMLElement;
- /**
- * Sets or gets the security domain of the document.
- */
- domain: string;
- /**
- * Retrieves a collection of all embed objects in the document.
- */
- readonly embeds: HTMLCollectionOf;
- /**
- * Sets or gets the foreground (text) color of the document.
- */
- fgColor: string;
- /**
- * Retrieves a collection, in source order, of all form objects in the document.
- */
- readonly forms: HTMLCollectionOf;
- readonly fullscreenElement: Element | null;
- readonly fullscreenEnabled: boolean;
- readonly head: HTMLHeadElement;
- readonly hidden: boolean;
- /**
- * Retrieves a collection, in source order, of img objects in the document.
- */
- readonly images: HTMLCollectionOf;
- /**
- * Gets the implementation object of the current document.
- */
- readonly implementation: DOMImplementation;
- /**
- * Returns the character encoding used to create the webpage that is loaded into the document object.
- */
- readonly inputEncoding: string | null;
- /**
- * Gets the date that the page was last modified, if the page supplies one.
- */
- readonly lastModified: string;
- /**
- * Sets or gets the color of the document links.
- */
- linkColor: string;
- /**
- * Retrieves a collection of all a objects that specify the href property and all area objects in the document.
- */
- readonly links: HTMLCollectionOf;
- /**
- * Contains information about the current URL.
- */
- location: Location;
- msCSSOMElementFloatMetrics: boolean;
- msCapsLockWarningOff: boolean;
- /**
- * Fires when the user aborts the download.
- * @param ev The event.
- */
- onabort: ((this: Document, ev: UIEvent) => any) | null;
- /**
- * Fires when the object is set as the active element.
- * @param ev The event.
- */
- onactivate: ((this: Document, ev: Event) => any) | null;
- /**
- * Fires immediately before the object is set as the active element.
- * @param ev The event.
- */
- onbeforeactivate: ((this: Document, ev: Event) => any) | null;
- /**
- * Fires immediately before the activeElement is changed from the current object to another object in the parent document.
- * @param ev The event.
- */
- onbeforedeactivate: ((this: Document, ev: Event) => any) | null;
- /**
- * Fires when the object loses the input focus.
- * @param ev The focus event.
- */
- onblur: ((this: Document, ev: FocusEvent) => any) | null;
- /**
- * Occurs when playback is possible, but would require further buffering.
- * @param ev The event.
- */
- oncanplay: ((this: Document, ev: Event) => any) | null;
- oncanplaythrough: ((this: Document, ev: Event) => any) | null;
- /**
- * Fires when the contents of the object or selection have changed.
- * @param ev The event.
- */
- onchange: ((this: Document, ev: Event) => any) | null;
- /**
- * Fires when the user clicks the left mouse button on the object
- * @param ev The mouse event.
- */
- onclick: ((this: Document, ev: MouseEvent) => any) | null;
- /**
- * Fires when the user clicks the right mouse button in the client area, opening the context menu.
- * @param ev The mouse event.
- */
- oncontextmenu: ((this: Document, ev: PointerEvent) => any) | null;
- /**
- * Fires when the user double-clicks the object.
- * @param ev The mouse event.
- */
- ondblclick: ((this: Document, ev: MouseEvent) => any) | null;
- /**
- * Fires when the activeElement is changed from the current object to another object in the parent document.
- * @param ev The UI Event
- */
- ondeactivate: ((this: Document, ev: Event) => any) | null;
- /**
- * Fires on the source object continuously during a drag operation.
- * @param ev The event.
- */
- ondrag: ((this: Document, ev: DragEvent) => any) | null;
- /**
- * Fires on the source object when the user releases the mouse at the close of a drag operation.
- * @param ev The event.
- */
- ondragend: ((this: Document, ev: DragEvent) => any) | null;
- /**
- * Fires on the target element when the user drags the object to a valid drop target.
- * @param ev The drag event.
- */
- ondragenter: ((this: Document, ev: DragEvent) => any) | null;
- /**
- * Fires on the target object when the user moves the mouse out of a valid drop target during a drag operation.
- * @param ev The drag event.
- */
- ondragleave: ((this: Document, ev: DragEvent) => any) | null;
- /**
- * Fires on the target element continuously while the user drags the object over a valid drop target.
- * @param ev The event.
- */
- ondragover: ((this: Document, ev: DragEvent) => any) | null;
- /**
- * Fires on the source object when the user starts to drag a text selection or selected object.
- * @param ev The event.
- */
- ondragstart: ((this: Document, ev: DragEvent) => any) | null;
- ondrop: ((this: Document, ev: DragEvent) => any) | null;
- /**
- * Occurs when the duration attribute is updated.
- * @param ev The event.
- */
- ondurationchange: ((this: Document, ev: Event) => any) | null;
- /**
- * Occurs when the media element is reset to its initial state.
- * @param ev The event.
- */
- onemptied: ((this: Document, ev: Event) => any) | null;
- /**
- * Occurs when the end of playback is reached.
- * @param ev The event
- */
- onended: ((this: Document, ev: Event) => any) | null;
- /**
- * Fires when an error occurs during object loading.
- * @param ev The event.
- */
- onerror: ((this: Document, ev: ErrorEvent) => any) | null;
- /**
- * Fires when the object receives focus.
- * @param ev The event.
- */
- onfocus: ((this: Document, ev: FocusEvent) => any) | null;
- onfullscreenchange: ((this: Document, ev: Event) => any) | null;
- onfullscreenerror: ((this: Document, ev: Event) => any) | null;
- oninput: ((this: Document, ev: Event) => any) | null;
- oninvalid: ((this: Document, ev: Event) => any) | null;
- /**
- * Fires when the user presses a key.
- * @param ev The keyboard event
- */
- onkeydown: ((this: Document, ev: KeyboardEvent) => any) | null;
- /**
- * Fires when the user presses an alphanumeric key.
- * @param ev The event.
- */
- onkeypress: ((this: Document, ev: KeyboardEvent) => any) | null;
- /**
- * Fires when the user releases a key.
- * @param ev The keyboard event
- */
- onkeyup: ((this: Document, ev: KeyboardEvent) => any) | null;
- /**
- * Fires immediately after the browser loads the object.
- * @param ev The event.
- */
- onload: ((this: Document, ev: Event) => any) | null;
- /**
- * Occurs when media data is loaded at the current playback position.
- * @param ev The event.
- */
- onloadeddata: ((this: Document, ev: Event) => any) | null;
- /**
- * Occurs when the duration and dimensions of the media have been determined.
- * @param ev The event.
- */
- onloadedmetadata: ((this: Document, ev: Event) => any) | null;
- /**
- * Occurs when Internet Explorer begins looking for media data.
- * @param ev The event.
- */
- onloadstart: ((this: Document, ev: Event) => any) | null;
- /**
- * Fires when the user clicks the object with either mouse button.
- * @param ev The mouse event.
- */
- onmousedown: ((this: Document, ev: MouseEvent) => any) | null;
- /**
- * Fires when the user moves the mouse over the object.
- * @param ev The mouse event.
- */
- onmousemove: ((this: Document, ev: MouseEvent) => any) | null;
- /**
- * Fires when the user moves the mouse pointer outside the boundaries of the object.
- * @param ev The mouse event.
- */
- onmouseout: ((this: Document, ev: MouseEvent) => any) | null;
- /**
- * Fires when the user moves the mouse pointer into the object.
- * @param ev The mouse event.
- */
- onmouseover: ((this: Document, ev: MouseEvent) => any) | null;
- /**
- * Fires when the user releases a mouse button while the mouse is over the object.
- * @param ev The mouse event.
- */
- onmouseup: ((this: Document, ev: MouseEvent) => any) | null;
- /**
- * Fires when the wheel button is rotated.
- * @param ev The mouse event
- */
- onmousewheel: ((this: Document, ev: WheelEvent) => any) | null;
- onmscontentzoom: ((this: Document, ev: Event) => any) | null;
- onmsgesturechange: ((this: Document, ev: Event) => any) | null;
- onmsgesturedoubletap: ((this: Document, ev: Event) => any) | null;
- onmsgestureend: ((this: Document, ev: Event) => any) | null;
- onmsgesturehold: ((this: Document, ev: Event) => any) | null;
- onmsgesturestart: ((this: Document, ev: Event) => any) | null;
- onmsgesturetap: ((this: Document, ev: Event) => any) | null;
- onmsinertiastart: ((this: Document, ev: Event) => any) | null;
- onmsmanipulationstatechanged: ((this: Document, ev: Event) => any) | null;
- onmspointercancel: ((this: Document, ev: Event) => any) | null;
- onmspointerdown: ((this: Document, ev: Event) => any) | null;
- onmspointerenter: ((this: Document, ev: Event) => any) | null;
- onmspointerleave: ((this: Document, ev: Event) => any) | null;
- onmspointermove: ((this: Document, ev: Event) => any) | null;
- onmspointerout: ((this: Document, ev: Event) => any) | null;
- onmspointerover: ((this: Document, ev: Event) => any) | null;
- onmspointerup: ((this: Document, ev: Event) => any) | null;
- /**
- * Occurs when an item is removed from a Jump List of a webpage running in Site Mode.
- * @param ev The event.
- */
- onmssitemodejumplistitemremoved: ((this: Document, ev: Event) => any) | null;
- /**
- * Occurs when a user clicks a button in a Thumbnail Toolbar of a webpage running in Site Mode.
- * @param ev The event.
- */
- onmsthumbnailclick: ((this: Document, ev: Event) => any) | null;
- /**
- * Occurs when playback is paused.
- * @param ev The event.
- */
- onpause: ((this: Document, ev: Event) => any) | null;
- /**
- * Occurs when the play method is requested.
- * @param ev The event.
- */
- onplay: ((this: Document, ev: Event) => any) | null;
- /**
- * Occurs when the audio or video has started playing.
- * @param ev The event.
- */
- onplaying: ((this: Document, ev: Event) => any) | null;
- onpointerlockchange: ((this: Document, ev: Event) => any) | null;
- onpointerlockerror: ((this: Document, ev: Event) => any) | null;
- /**
- * Occurs to indicate progress while downloading media data.
- * @param ev The event.
- */
- onprogress: ((this: Document, ev: ProgressEvent) => any) | null;
- /**
- * Occurs when the playback rate is increased or decreased.
- * @param ev The event.
- */
- onratechange: ((this: Document, ev: Event) => any) | null;
- /**
- * Fires when the state of the object has changed.
- * @param ev The event
- */
- onreadystatechange: ((this: Document, ev: Event) => any) | null;
- /**
- * Fires when the user resets a form.
- * @param ev The event.
- */
- onreset: ((this: Document, ev: Event) => any) | null;
- /**
- * Fires when the user repositions the scroll box in the scroll bar on the object.
- * @param ev The event.
- */
- onscroll: ((this: Document, ev: UIEvent) => any) | null;
- /**
- * Occurs when the seek operation ends.
- * @param ev The event.
- */
- onseeked: ((this: Document, ev: Event) => any) | null;
- /**
- * Occurs when the current playback position is moved.
- * @param ev The event.
- */
- onseeking: ((this: Document, ev: Event) => any) | null;
- /**
- * Fires when the current selection changes.
- * @param ev The event.
- */
- onselect: ((this: Document, ev: UIEvent) => any) | null;
- /**
- * Fires when the selection state of a document changes.
- * @param ev The event.
- */
- onselectionchange: ((this: Document, ev: Event) => any) | null;
- onselectstart: ((this: Document, ev: Event) => any) | null;
- /**
- * Occurs when the download has stopped.
- * @param ev The event.
- */
- onstalled: ((this: Document, ev: Event) => any) | null;
- /**
- * Fires when the user clicks the Stop button or leaves the Web page.
- * @param ev The event.
- */
- onstop: ((this: Document, ev: Event) => any) | null;
- onsubmit: ((this: Document, ev: Event) => any) | null;
- /**
- * Occurs if the load operation has been intentionally halted.
- * @param ev The event.
- */
- onsuspend: ((this: Document, ev: Event) => any) | null;
- /**
- * Occurs to indicate the current playback position.
- * @param ev The event.
- */
- ontimeupdate: ((this: Document, ev: Event) => any) | null;
- ontouchcancel: ((this: Document, ev: TouchEvent) => any) | null;
- ontouchend: ((this: Document, ev: TouchEvent) => any) | null;
- ontouchmove: ((this: Document, ev: TouchEvent) => any) | null;
- ontouchstart: ((this: Document, ev: TouchEvent) => any) | null;
- onvisibilitychange: (this: Document, ev: Event) => any;
- /**
- * Occurs when the volume is changed, or playback is muted or unmuted.
- * @param ev The event.
- */
- onvolumechange: ((this: Document, ev: Event) => any) | null;
- /**
- * Occurs when playback stops because the next frame of a video resource is not available.
- * @param ev The event.
- */
- onwaiting: ((this: Document, ev: Event) => any) | null;
- onwebkitfullscreenchange: ((this: Document, ev: Event) => any) | null;
- onwebkitfullscreenerror: ((this: Document, ev: Event) => any) | null;
- readonly plugins: HTMLCollectionOf;
- readonly pointerLockElement: Element;
- /**
- * Retrieves a value that indicates the current state of the object.
- */
- readonly readyState: DocumentReadyState;
- /**
- * Gets the URL of the location that referred the user to the current page.
- */
- readonly referrer: string;
- /**
- * Gets the root svg element in the document hierarchy.
- */
- readonly rootElement: SVGSVGElement;
- /**
- * Retrieves a collection of all script objects in the document.
- */
- readonly scripts: HTMLCollectionOf;
- readonly scrollingElement: Element | null;
- /**
- * Retrieves a collection of styleSheet objects representing the style sheets that correspond to each instance of a link or style object in the document.
- */
- readonly styleSheets: StyleSheetList;
- /**
- * Contains the title of the document.
- */
- title: string;
- readonly visibilityState: VisibilityState;
- /**
- * Sets or gets the color of the links that the user has visited.
- */
- vlinkColor: string;
- readonly webkitCurrentFullScreenElement: Element | null;
- readonly webkitFullscreenElement: Element | null;
- readonly webkitFullscreenEnabled: boolean;
- readonly webkitIsFullScreen: boolean;
- readonly xmlEncoding: string | null;
- xmlStandalone: boolean;
- /**
- * Gets or sets the version attribute specified in the declaration of an XML document.
- */
- xmlVersion: string | null;
- adoptNode(source: T): T;
- captureEvents(): void;
- caretRangeFromPoint(x: number, y: number): Range;
- clear(): void;
- /**
- * Closes an output stream and forces the sent data to display.
- */
- close(): void;
- /**
- * Creates an attribute object with a specified name.
- * @param name String that sets the attribute object's name.
- */
- createAttribute(name: string): Attr;
- createAttributeNS(namespaceURI: string | null, qualifiedName: string): Attr;
- createCDATASection(data: string): CDATASection;
- /**
- * Creates a comment object with the specified data.
- * @param data Sets the comment object's data.
- */
- createComment(data: string): Comment;
- /**
- * Creates a new document.
- */
- createDocumentFragment(): DocumentFragment;
- /**
- * Creates an instance of the element for the specified tag.
- * @param tagName The name of an element.
- */
- createElement(tagName: K, options?: ElementCreationOptions): HTMLElementTagNameMap[K];
- createElement(tagName: string, options?: ElementCreationOptions): HTMLElement;
- createElementNS(namespaceURI: "http://www.w3.org/1999/xhtml", qualifiedName: string): HTMLElement;
- createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "a"): SVGAElement;
- createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "circle"): SVGCircleElement;
- createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "clipPath"): SVGClipPathElement;
- createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "componentTransferFunction"): SVGComponentTransferFunctionElement;
- createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "defs"): SVGDefsElement;
- createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "desc"): SVGDescElement;
- createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "ellipse"): SVGEllipseElement;
- createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feBlend"): SVGFEBlendElement;
- createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feColorMatrix"): SVGFEColorMatrixElement;
- createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feComponentTransfer"): SVGFEComponentTransferElement;
- createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feComposite"): SVGFECompositeElement;
- createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feConvolveMatrix"): SVGFEConvolveMatrixElement;
- createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feDiffuseLighting"): SVGFEDiffuseLightingElement;
- createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feDisplacementMap"): SVGFEDisplacementMapElement;
- createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feDistantLight"): SVGFEDistantLightElement;
- createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feFlood"): SVGFEFloodElement;
- createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feFuncA"): SVGFEFuncAElement;
- createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feFuncB"): SVGFEFuncBElement;
- createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feFuncG"): SVGFEFuncGElement;
- createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feFuncR"): SVGFEFuncRElement;
- createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feGaussianBlur"): SVGFEGaussianBlurElement;
- createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feImage"): SVGFEImageElement;
- createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feMerge"): SVGFEMergeElement;
- createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feMergeNode"): SVGFEMergeNodeElement;
- createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feMorphology"): SVGFEMorphologyElement;
- createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feOffset"): SVGFEOffsetElement;
- createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "fePointLight"): SVGFEPointLightElement;
- createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feSpecularLighting"): SVGFESpecularLightingElement;
- createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feSpotLight"): SVGFESpotLightElement;
- createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feTile"): SVGFETileElement;
- createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feTurbulence"): SVGFETurbulenceElement;
- createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "filter"): SVGFilterElement;
- createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "foreignObject"): SVGForeignObjectElement;
- createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "g"): SVGGElement;
- createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "image"): SVGImageElement;
- createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "gradient"): SVGGradientElement;
- createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "line"): SVGLineElement;
- createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "linearGradient"): SVGLinearGradientElement;
- createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "marker"): SVGMarkerElement;
- createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "mask"): SVGMaskElement;
- createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "path"): SVGPathElement;
- createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "metadata"): SVGMetadataElement;
- createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "pattern"): SVGPatternElement;
- createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "polygon"): SVGPolygonElement;
- createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "polyline"): SVGPolylineElement;
- createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "radialGradient"): SVGRadialGradientElement;
- createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "rect"): SVGRectElement;
- createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "svg"): SVGSVGElement;
- createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "script"): SVGScriptElement;
- createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "stop"): SVGStopElement;
- createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "style"): SVGStyleElement;
- createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "switch"): SVGSwitchElement;
- createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "symbol"): SVGSymbolElement;
- createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "tspan"): SVGTSpanElement;
- createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "textContent"): SVGTextContentElement;
- createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "text"): SVGTextElement;
- createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "textPath"): SVGTextPathElement;
- createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "textPositioning"): SVGTextPositioningElement;
- createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "title"): SVGTitleElement;
- createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "use"): SVGUseElement;
- createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "view"): SVGViewElement;
- createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: string): SVGElement;
- createElementNS(namespaceURI: string | null, qualifiedName: string): Element;
- createExpression(expression: string, resolver: XPathNSResolver): XPathExpression;
- createNSResolver(nodeResolver: Node): XPathNSResolver;
- /**
- * Creates a NodeIterator object that you can use to traverse filtered lists of nodes or elements in a document.
- * @param root The root element or node to start traversing on.
- * @param whatToShow The type of nodes or elements to appear in the node list
- * @param filter A custom NodeFilter function to use. For more information, see filter. Use null for no filter.
- * @param entityReferenceExpansion A flag that specifies whether entity reference nodes are expanded.
- */
- createNodeIterator(root: Node, whatToShow?: number, filter?: NodeFilter, entityReferenceExpansion?: boolean): NodeIterator;
- createProcessingInstruction(target: string, data: string): ProcessingInstruction;
- /**
- * Returns an empty range object that has both of its boundary points positioned at the beginning of the document.
- */
- createRange(): Range;
- /**
- * Creates a text string from the specified value.
- * @param data String that specifies the nodeValue property of the text node.
- */
- createTextNode(data: string): Text;
- createTouch(view: Window, target: EventTarget, identifier: number, pageX: number, pageY: number, screenX: number, screenY: number): Touch;
- createTouchList(...touches: Touch[]): TouchList;
- /**
- * Creates a TreeWalker object that you can use to traverse filtered lists of nodes or elements in a document.
- * @param root The root element or node to start traversing on.
- * @param whatToShow The type of nodes or elements to appear in the node list. For more information, see whatToShow.
- * @param filter A custom NodeFilter function to use.
- * @param entityReferenceExpansion A flag that specifies whether entity reference nodes are expanded.
- */
- createTreeWalker(root: Node, whatToShow?: number, filter?: NodeFilter, entityReferenceExpansion?: boolean): TreeWalker;
- /**
- * Returns the element for the specified x coordinate and the specified y coordinate.
- * @param x The x-offset
- * @param y The y-offset
- */
- elementFromPoint(x: number, y: number): Element;
- elementsFromPoint(x: number, y: number): Element[];
- evaluate(expression: string, contextNode: Node, resolver: XPathNSResolver | null, type: number, result: XPathResult | null): XPathResult;
- /**
- * Executes a command on the current document, current selection, or the given range.
- * @param commandId String that specifies the command to execute. This command can be any of the command identifiers that can be executed in script.
- * @param showUI Display the user interface, defaults to false.
- * @param value Value to assign.
- */
- execCommand(commandId: string, showUI?: boolean, value?: any): boolean;
- /**
- * Displays help information for the given command identifier.
- * @param commandId Displays help information for the given command identifier.
- */
- execCommandShowHelp(commandId: string): boolean;
- exitFullscreen(): void;
- exitPointerLock(): void;
- /**
- * Causes the element to receive the focus and executes the code specified by the onfocus event.
- */
- /** @deprecated */
- focus(): void;
- /**
- * Returns a reference to the first object with the specified value of the ID or NAME attribute.
- * @param elementId String that specifies the ID value. Case-insensitive.
- */
- getElementById(elementId: string): HTMLElement | null;
- getElementsByClassName(classNames: string): HTMLCollectionOf;
- /**
- * Gets a collection of objects based on the value of the NAME or ID attribute.
- * @param elementName Gets a collection of objects based on the value of the NAME or ID attribute.
- */
- getElementsByName(elementName: string): NodeListOf;
- /**
- * Retrieves a collection of objects based on the specified element name.
- * @param name Specifies the name of an element.
- */
- getElementsByTagName(tagname: K): NodeListOf;
- getElementsByTagName(tagname: K): NodeListOf;
- getElementsByTagName(tagname: string): NodeListOf;
- getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1999/xhtml", localName: string): HTMLCollectionOf;
- getElementsByTagNameNS(namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf;
- getElementsByTagNameNS(namespaceURI: string, localName: string): HTMLCollectionOf;
- /**
- * Returns an object representing the current selection of the document that is loaded into the object displaying a webpage.
- */
- getSelection(): Selection;
- /**
- * Gets a value indicating whether the object currently has focus.
- */
- hasFocus(): boolean;
- importNode(importedNode: T, deep: boolean): T;
- msElementsFromPoint(x: number, y: number): NodeListOf;
- msElementsFromRect(left: number, top: number, width: number, height: number): NodeListOf;
- /**
- * Opens a new window and loads a document specified by a given URL. Also, opens a new window that uses the url parameter and the name parameter to collect the output of the write method and the writeln method.
- * @param url Specifies a MIME type for the document.
- * @param name Specifies the name of the window. This name is used as the value for the TARGET attribute on a form or an anchor element.
- * @param features Contains a list of items separated by commas. Each item consists of an option and a value, separated by an equals sign (for example, "fullscreen=yes, toolbar=yes"). The following values are supported.
- * @param replace Specifies whether the existing entry for the document is replaced in the history list.
- */
- open(url?: string, name?: string, features?: string, replace?: boolean): Document;
- /**
- * Returns a Boolean value that indicates whether a specified command can be successfully executed using execCommand, given the current state of the document.
- * @param commandId Specifies a command identifier.
- */
- queryCommandEnabled(commandId: string): boolean;
- /**
- * Returns a Boolean value that indicates whether the specified command is in the indeterminate state.
- * @param commandId String that specifies a command identifier.
- */
- queryCommandIndeterm(commandId: string): boolean;
- /**
- * Returns a Boolean value that indicates the current state of the command.
- * @param commandId String that specifies a command identifier.
- */
- queryCommandState(commandId: string): boolean;
- /**
- * Returns a Boolean value that indicates whether the current command is supported on the current range.
- * @param commandId Specifies a command identifier.
- */
- queryCommandSupported(commandId: string): boolean;
- /**
- * Retrieves the string associated with a command.
- * @param commandId String that contains the identifier of a command. This can be any command identifier given in the list of Command Identifiers.
- */
- queryCommandText(commandId: string): string;
- /**
- * Returns the current value of the document, range, or current selection for the given command.
- * @param commandId String that specifies a command identifier.
- */
- queryCommandValue(commandId: string): string;
- releaseEvents(): void;
- updateSettings(): void;
- webkitCancelFullScreen(): void;
- webkitExitFullscreen(): void;
- /**
- * Writes one or more HTML expressions to a document in the specified window.
- * @param content Specifies the text and HTML tags to write.
- */
- write(...content: string[]): void;
- /**
- * Writes one or more HTML expressions, followed by a carriage return, to a document in the specified window.
- * @param content The text and HTML tags to write.
- */
- writeln(...content: string[]): void;
- addEventListener(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
-}
-
-declare var Document: {
- prototype: Document;
- new(): Document;
-};
-
-interface DocumentEvent {
- createEvent(eventInterface: "AnimationEvent"): AnimationEvent;
- createEvent(eventInterface: "AnimationPlaybackEvent"): AnimationPlaybackEvent;
- createEvent(eventInterface: "AudioProcessingEvent"): AudioProcessingEvent;
- createEvent(eventInterface: "BeforeUnloadEvent"): BeforeUnloadEvent;
- createEvent(eventInterface: "ClipboardEvent"): ClipboardEvent;
- createEvent(eventInterface: "CloseEvent"): CloseEvent;
- createEvent(eventInterface: "CompositionEvent"): CompositionEvent;
- createEvent(eventInterface: "CustomEvent"): CustomEvent;
- createEvent(eventInterface: "DeviceLightEvent"): DeviceLightEvent;
- createEvent(eventInterface: "DeviceMotionEvent"): DeviceMotionEvent;
- createEvent(eventInterface: "DeviceOrientationEvent"): DeviceOrientationEvent;
- createEvent(eventInterface: "DragEvent"): DragEvent;
- createEvent(eventInterface: "ErrorEvent"): ErrorEvent;
- createEvent(eventInterface: "Event"): Event;
- createEvent(eventInterface: "Events"): Event;
- createEvent(eventInterface: "FocusEvent"): FocusEvent;
- createEvent(eventInterface: "FocusNavigationEvent"): FocusNavigationEvent;
- createEvent(eventInterface: "GamepadEvent"): GamepadEvent;
- createEvent(eventInterface: "HashChangeEvent"): HashChangeEvent;
- createEvent(eventInterface: "IDBVersionChangeEvent"): IDBVersionChangeEvent;
- createEvent(eventInterface: "KeyboardEvent"): KeyboardEvent;
- createEvent(eventInterface: "ListeningStateChangedEvent"): ListeningStateChangedEvent;
- createEvent(eventInterface: "MSDCCEvent"): MSDCCEvent;
- createEvent(eventInterface: "MSDSHEvent"): MSDSHEvent;
- createEvent(eventInterface: "MSMediaKeyMessageEvent"): MSMediaKeyMessageEvent;
- createEvent(eventInterface: "MSMediaKeyNeededEvent"): MSMediaKeyNeededEvent;
- createEvent(eventInterface: "MediaEncryptedEvent"): MediaEncryptedEvent;
- createEvent(eventInterface: "MediaKeyMessageEvent"): MediaKeyMessageEvent;
- createEvent(eventInterface: "MediaStreamErrorEvent"): MediaStreamErrorEvent;
- createEvent(eventInterface: "MediaStreamEvent"): MediaStreamEvent;
- createEvent(eventInterface: "MediaStreamTrackEvent"): MediaStreamTrackEvent;
- createEvent(eventInterface: "MessageEvent"): MessageEvent;
- createEvent(eventInterface: "MouseEvent"): MouseEvent;
- createEvent(eventInterface: "MouseEvents"): MouseEvent;
- createEvent(eventInterface: "MutationEvent"): MutationEvent;
- createEvent(eventInterface: "MutationEvents"): MutationEvent;
- createEvent(eventInterface: "OfflineAudioCompletionEvent"): OfflineAudioCompletionEvent;
- createEvent(eventInterface: "OverflowEvent"): OverflowEvent;
- createEvent(eventInterface: "PageTransitionEvent"): PageTransitionEvent;
- createEvent(eventInterface: "PaymentRequestUpdateEvent"): PaymentRequestUpdateEvent;
- createEvent(eventInterface: "PermissionRequestedEvent"): PermissionRequestedEvent;
- createEvent(eventInterface: "PointerEvent"): PointerEvent;
- createEvent(eventInterface: "PopStateEvent"): PopStateEvent;
- createEvent(eventInterface: "ProgressEvent"): ProgressEvent;
- createEvent(eventInterface: "PromiseRejectionEvent"): PromiseRejectionEvent;
- createEvent(eventInterface: "RTCDTMFToneChangeEvent"): RTCDTMFToneChangeEvent;
- createEvent(eventInterface: "RTCDtlsTransportStateChangedEvent"): RTCDtlsTransportStateChangedEvent;
- createEvent(eventInterface: "RTCIceCandidatePairChangedEvent"): RTCIceCandidatePairChangedEvent;
- createEvent(eventInterface: "RTCIceGathererEvent"): RTCIceGathererEvent;
- createEvent(eventInterface: "RTCIceTransportStateChangedEvent"): RTCIceTransportStateChangedEvent;
- createEvent(eventInterface: "RTCPeerConnectionIceEvent"): RTCPeerConnectionIceEvent;
- createEvent(eventInterface: "RTCSsrcConflictEvent"): RTCSsrcConflictEvent;
- createEvent(eventInterface: "SVGZoomEvent"): SVGZoomEvent;
- createEvent(eventInterface: "SVGZoomEvents"): SVGZoomEvent;
- createEvent(eventInterface: "SecurityPolicyViolationEvent"): SecurityPolicyViolationEvent;
- createEvent(eventInterface: "ServiceWorkerMessageEvent"): ServiceWorkerMessageEvent;
- createEvent(eventInterface: "SpeechSynthesisEvent"): SpeechSynthesisEvent;
- createEvent(eventInterface: "StorageEvent"): StorageEvent;
- createEvent(eventInterface: "TextEvent"): TextEvent;
- createEvent(eventInterface: "TouchEvent"): TouchEvent;
- createEvent(eventInterface: "TrackEvent"): TrackEvent;
- createEvent(eventInterface: "TransitionEvent"): TransitionEvent;
- createEvent(eventInterface: "UIEvent"): UIEvent;
- createEvent(eventInterface: "UIEvents"): UIEvent;
- createEvent(eventInterface: "VRDisplayEvent"): VRDisplayEvent;
- createEvent(eventInterface: "VRDisplayEvent "): VRDisplayEvent ;
- createEvent(eventInterface: "WebGLContextEvent"): WebGLContextEvent;
- createEvent(eventInterface: "WheelEvent"): WheelEvent;
- createEvent(eventInterface: string): Event;
-}
-
-interface DocumentFragment extends Node, ParentNode {
- getElementById(elementId: string): HTMLElement | null;
-}
-
-declare var DocumentFragment: {
- prototype: DocumentFragment;
- new(): DocumentFragment;
-};
-
-interface DocumentOrShadowRoot {
- readonly activeElement: Element | null;
- readonly styleSheets: StyleSheetList;
- elementFromPoint(x: number, y: number): Element | null;
- elementsFromPoint(x: number, y: number): Element[];
- getSelection(): Selection | null;
-}
-
-interface DocumentType extends Node, ChildNode {
- readonly entities: NamedNodeMap;
- readonly internalSubset: string | null;
- readonly name: string;
- readonly notations: NamedNodeMap;
- readonly publicId: string;
- readonly systemId: string;
-}
-
-declare var DocumentType: {
- prototype: DocumentType;
- new(): DocumentType;
-};
-
-interface DragEvent extends MouseEvent {
- readonly dataTransfer: DataTransfer;
- initDragEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, viewArg: Window, detailArg: number, screenXArg: number, screenYArg: number, clientXArg: number, clientYArg: number, ctrlKeyArg: boolean, altKeyArg: boolean, shiftKeyArg: boolean, metaKeyArg: boolean, buttonArg: number, relatedTargetArg: EventTarget, dataTransferArg: DataTransfer): void;
- msConvertURL(file: File, targetType: string, targetURL?: string): void;
-}
-
-declare var DragEvent: {
- prototype: DragEvent;
- new(type: "drag" | "dragend" | "dragenter" | "dragexit" | "dragleave" | "dragover" | "dragstart" | "drop", dragEventInit?: { dataTransfer?: DataTransfer }): DragEvent;
-};
-
-interface DynamicsCompressorNode extends AudioNode {
- readonly attack: AudioParam;
- readonly knee: AudioParam;
- readonly ratio: AudioParam;
- readonly reduction: number;
- readonly release: AudioParam;
- readonly threshold: AudioParam;
-}
-
-declare var DynamicsCompressorNode: {
- prototype: DynamicsCompressorNode;
- new(): DynamicsCompressorNode;
-};
-
-interface EXT_blend_minmax {
- readonly MAX_EXT: number;
- readonly MIN_EXT: number;
-}
-
-interface EXT_frag_depth {
-}
-
-interface EXT_sRGB {
- readonly FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING_EXT: number;
- readonly SRGB8_ALPHA8_EXT: number;
- readonly SRGB_ALPHA_EXT: number;
- readonly SRGB_EXT: number;
-}
-
-interface EXT_shader_texture_lod {
-}
-
-interface EXT_texture_filter_anisotropic {
- readonly MAX_TEXTURE_MAX_ANISOTROPY_EXT: number;
- readonly TEXTURE_MAX_ANISOTROPY_EXT: number;
-}
-
-declare var EXT_texture_filter_anisotropic: {
- prototype: EXT_texture_filter_anisotropic;
- new(): EXT_texture_filter_anisotropic;
- readonly MAX_TEXTURE_MAX_ANISOTROPY_EXT: number;
- readonly TEXTURE_MAX_ANISOTROPY_EXT: number;
-};
-
-interface ElementEventMap extends GlobalEventHandlersEventMap {
- "ariarequest": Event;
- "command": Event;
- "gotpointercapture": PointerEvent;
- "lostpointercapture": PointerEvent;
- "MSGestureChange": Event;
- "MSGestureDoubleTap": Event;
- "MSGestureEnd": Event;
- "MSGestureHold": Event;
- "MSGestureStart": Event;
- "MSGestureTap": Event;
- "MSGotPointerCapture": Event;
- "MSInertiaStart": Event;
- "MSLostPointerCapture": Event;
- "MSPointerCancel": Event;
- "MSPointerDown": Event;
- "MSPointerEnter": Event;
- "MSPointerLeave": Event;
- "MSPointerMove": Event;
- "MSPointerOut": Event;
- "MSPointerOver": Event;
- "MSPointerUp": Event;
- "touchcancel": TouchEvent;
- "touchend": TouchEvent;
- "touchmove": TouchEvent;
- "touchstart": TouchEvent;
- "webkitfullscreenchange": Event;
- "webkitfullscreenerror": Event;
-}
-
-interface Element extends Node, GlobalEventHandlers, ElementTraversal, ParentNode, ChildNode {
- readonly assignedSlot: HTMLSlotElement | null;
- readonly attributes: NamedNodeMap;
- readonly classList: DOMTokenList;
- className: string;
- readonly clientHeight: number;
- readonly clientLeft: number;
- readonly clientTop: number;
- readonly clientWidth: number;
- id: string;
- innerHTML: string;
- msContentZoomFactor: number;
- readonly msRegionOverflow: string;
- onariarequest: ((this: Element, ev: Event) => any) | null;
- oncommand: ((this: Element, ev: Event) => any) | null;
- ongotpointercapture: ((this: Element, ev: PointerEvent) => any) | null;
- onlostpointercapture: ((this: Element, ev: PointerEvent) => any) | null;
- onmsgesturechange: ((this: Element, ev: Event) => any) | null;
- onmsgesturedoubletap: ((this: Element, ev: Event) => any) | null;
- onmsgestureend: ((this: Element, ev: Event) => any) | null;
- onmsgesturehold: ((this: Element, ev: Event) => any) | null;
- onmsgesturestart: ((this: Element, ev: Event) => any) | null;
- onmsgesturetap: ((this: Element, ev: Event) => any) | null;
- onmsgotpointercapture: ((this: Element, ev: Event) => any) | null;
- onmsinertiastart: ((this: Element, ev: Event) => any) | null;
- onmslostpointercapture: ((this: Element, ev: Event) => any) | null;
- onmspointercancel: ((this: Element, ev: Event) => any) | null;
- onmspointerdown: ((this: Element, ev: Event) => any) | null;
- onmspointerenter: ((this: Element, ev: Event) => any) | null;
- onmspointerleave: ((this: Element, ev: Event) => any) | null;
- onmspointermove: ((this: Element, ev: Event) => any) | null;
- onmspointerout: ((this: Element, ev: Event) => any) | null;
- onmspointerover: ((this: Element, ev: Event) => any) | null;
- onmspointerup: ((this: Element, ev: Event) => any) | null;
- ontouchcancel: ((this: Element, ev: TouchEvent) => any) | null;
- ontouchend: ((this: Element, ev: TouchEvent) => any) | null;
- ontouchmove: ((this: Element, ev: TouchEvent) => any) | null;
- ontouchstart: ((this: Element, ev: TouchEvent) => any) | null;
- onwebkitfullscreenchange: ((this: Element, ev: Event) => any) | null;
- onwebkitfullscreenerror: ((this: Element, ev: Event) => any) | null;
- outerHTML: string;
- readonly prefix: string | null;
- readonly scrollHeight: number;
- scrollLeft: number;
- scrollTop: number;
- readonly scrollWidth: number;
- readonly shadowRoot: ShadowRoot | null;
- slot: string;
- readonly tagName: string;
- attachShadow(shadowRootInitDict: ShadowRootInit): ShadowRoot;
- closest(selector: K): HTMLElementTagNameMap[K] | null;
- closest(selector: K): SVGElementTagNameMap[K] | null;
- closest(selector: string): Element | null;
- getAttribute(qualifiedName: string): string | null;
- getAttributeNS(namespaceURI: string, localName: string): string;
- getAttributeNode(name: string): Attr | null;
- getAttributeNodeNS(namespaceURI: string, localName: string): Attr | null;
- getBoundingClientRect(): ClientRect | DOMRect;
- getClientRects(): ClientRectList | DOMRectList;
- getElementsByClassName(classNames: string): NodeListOf;
- getElementsByTagName(name: K): NodeListOf;
- getElementsByTagName(name: K): NodeListOf;
- getElementsByTagName(name: string): NodeListOf;
- getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1999/xhtml", localName: string): HTMLCollectionOf;
- getElementsByTagNameNS(namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf;
- getElementsByTagNameNS(namespaceURI: string, localName: string): HTMLCollectionOf;
- hasAttribute(name: string): boolean;
- hasAttributeNS(namespaceURI: string, localName: string): boolean;
- hasAttributes(): boolean;
- insertAdjacentElement(position: InsertPosition, insertedElement: Element): Element | null;
- insertAdjacentHTML(where: InsertPosition, html: string): void;
- insertAdjacentText(where: InsertPosition, text: string): void;
- matches(selectors: string): boolean;
- msGetRegionContent(): any;
- msGetUntransformedBounds(): ClientRect;
- msMatchesSelector(selectors: string): boolean;
- msReleasePointerCapture(pointerId: number): void;
- msSetPointerCapture(pointerId: number): void;
- msZoomTo(args: MsZoomToOptions): void;
- releasePointerCapture(pointerId: number): void;
- removeAttribute(qualifiedName: string): void;
- removeAttributeNS(namespaceURI: string, localName: string): void;
- removeAttributeNode(oldAttr: Attr): Attr;
- requestFullscreen(): void;
- requestPointerLock(): void;
- scroll(options?: ScrollToOptions): void;
- scroll(x: number, y: number): void;
- scrollBy(options?: ScrollToOptions): void;
- scrollBy(x: number, y: number): void;
- scrollIntoView(arg?: boolean | ScrollIntoViewOptions): void;
- scrollTo(options?: ScrollToOptions): void;
- scrollTo(x: number, y: number): void;
- setAttribute(qualifiedName: string, value: string): void;
- setAttributeNS(namespaceURI: string, qualifiedName: string, value: string): void;
- setAttributeNode(newAttr: Attr): Attr;
- setAttributeNodeNS(newAttr: Attr): Attr;
- setPointerCapture(pointerId: number): void;
- webkitMatchesSelector(selectors: string): boolean;
- webkitRequestFullScreen(): void;
- webkitRequestFullscreen(): void;
- addEventListener(type: K, listener: (this: Element, ev: ElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener(type: K, listener: (this: Element, ev: ElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
-}
-
-declare var Element: {
- prototype: Element;
- new(): Element;
-};
-
-interface ElementCSSInlineStyle {
- readonly style: CSSStyleDeclaration;
-}
-
-interface ElementCreationOptions {
- is?: string;
-}
-
-interface ElementDefinitionOptions {
- extends: string;
-}
-
-interface ElementTraversal {
- readonly childElementCount: number;
- readonly firstElementChild: Element | null;
- readonly lastElementChild: Element | null;
- readonly nextElementSibling: Element | null;
- readonly previousElementSibling: Element | null;
-}
-
-interface ErrorEvent extends Event {
- readonly colno: number;
- readonly error: any;
- readonly filename: string;
- readonly lineno: number;
- readonly message: string;
- initErrorEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, messageArg: string, filenameArg: string, linenoArg: number): void;
-}
-
-declare var ErrorEvent: {
- prototype: ErrorEvent;
- new(typeArg: string, eventInitDict?: ErrorEventInit): ErrorEvent;
-};
-
-interface Event {
- readonly bubbles: boolean;
- cancelBubble: boolean;
- readonly cancelable: boolean;
- readonly currentTarget: EventTarget | null;
- readonly defaultPrevented: boolean;
- readonly eventPhase: number;
- readonly isTrusted: boolean;
- returnValue: boolean;
- readonly scoped: boolean;
- readonly srcElement: Element | null;
- readonly target: EventTarget | null;
- readonly timeStamp: number;
- readonly type: string;
- deepPath(): EventTarget[];
- initEvent(type: string, bubbles?: boolean, cancelable?: boolean): void;
- preventDefault(): void;
- stopImmediatePropagation(): void;
- stopPropagation(): void;
- readonly AT_TARGET: number;
- readonly BUBBLING_PHASE: number;
- readonly CAPTURING_PHASE: number;
- readonly NONE: number;
-}
-
-declare var Event: {
- prototype: Event;
- new(typeArg: string, eventInitDict?: EventInit): Event;
- readonly AT_TARGET: number;
- readonly BUBBLING_PHASE: number;
- readonly CAPTURING_PHASE: number;
- readonly NONE: number;
-};
-
-interface EventListenerObject {
- handleEvent(evt: Event): void;
-}
-
-interface EventSource extends EventTarget {
- readonly CLOSED: number;
- readonly CONNECTING: number;
- readonly OPEN: number;
- onerror: (evt: MessageEvent) => any;
- onmessage: (evt: MessageEvent) => any;
- onopen: (evt: MessageEvent) => any;
- readonly readyState: number;
- readonly url: string;
- readonly withCredentials: boolean;
- close(): void;
-}
-
-declare var EventSource: {
- prototype: EventSource;
- new(url: string, eventSourceInitDict?: EventSourceInit): EventSource;
-};
-
-interface EventSourceInit {
- readonly withCredentials: boolean;
-}
-
-interface EventTarget {
- addEventListener(type: string, listener: EventListenerOrEventListenerObject | null, options?: boolean | AddEventListenerOptions): void;
- dispatchEvent(evt: Event): boolean;
- removeEventListener(type: string, listener?: EventListenerOrEventListenerObject | null, options?: EventListenerOptions | boolean): void;
-}
-
-declare var EventTarget: {
- prototype: EventTarget;
- new(): EventTarget;
-};
-
-interface ExtensionScriptApis {
- extensionIdToShortId(extensionId: string): number;
- fireExtensionApiTelemetry(functionName: string, isSucceeded: boolean, isSupported: boolean, errorString: string): void;
- genericFunction(routerAddress: any, parameters?: string, callbackId?: number): void;
- genericSynchronousFunction(functionId: number, parameters?: string): string;
- genericWebRuntimeCallout(to: any, from: any, payload: string): void;
- getExtensionId(): string;
- registerGenericFunctionCallbackHandler(callbackHandler: Function): void;
- registerGenericPersistentCallbackHandler(callbackHandler: Function): void;
- registerWebRuntimeCallbackHandler(handler: Function): any;
-}
-
-declare var ExtensionScriptApis: {
- prototype: ExtensionScriptApis;
- new(): ExtensionScriptApis;
-};
-
-interface External {
-}
-
-declare var External: {
- prototype: External;
- new(): External;
-};
-
-interface File extends Blob {
- readonly lastModified: number;
- /** @deprecated */
- readonly lastModifiedDate: Date;
- readonly name: string;
- readonly webkitRelativePath: string;
-}
-
-declare var File: {
- prototype: File;
- new (parts: (ArrayBuffer | ArrayBufferView | Blob | string)[], filename: string, properties?: FilePropertyBag): File;
-};
-
-interface FileList {
- readonly length: number;
- item(index: number): File | null;
- [index: number]: File;
-}
-
-declare var FileList: {
- prototype: FileList;
- new(): FileList;
-};
-
-interface FilePropertyBag extends BlobPropertyBag {
- lastModified?: number;
-}
-
-interface FileReaderEventMap {
- "abort": ProgressEvent;
- "error": ProgressEvent;
- "load": ProgressEvent;
- "loadend": ProgressEvent;
- "loadstart": ProgressEvent;
- "progress": ProgressEvent;
-}
-
-interface FileReader extends EventTarget {
- readonly error: DOMException | null;
- onabort: ((this: FileReader, ev: FileReaderProgressEvent) => any) | null;
- onerror: ((this: FileReader, ev: FileReaderProgressEvent) => any) | null;
- onload: ((this: FileReader, ev: FileReaderProgressEvent) => any) | null;
- onloadend: ((this: FileReader, ev: FileReaderProgressEvent) => any) | null;
- onloadstart: ((this: FileReader, ev: FileReaderProgressEvent) => any) | null;
- onprogress: ((this: FileReader, ev: FileReaderProgressEvent) => any) | null;
- readonly readyState: number;
- readonly result: any;
- abort(): void;
- readAsArrayBuffer(blob: Blob): void;
- readAsBinaryString(blob: Blob): void;
- readAsDataURL(blob: Blob): void;
- readAsText(blob: Blob, label?: string): void;
- readonly DONE: number;
- readonly EMPTY: number;
- readonly LOADING: number;
- addEventListener(type: K, listener: (this: FileReader, ev: FileReaderEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener(type: K, listener: (this: FileReader, ev: FileReaderEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
-}
-
-declare var FileReader: {
- prototype: FileReader;
- new(): FileReader;
- readonly DONE: number;
- readonly EMPTY: number;
- readonly LOADING: number;
-};
-
-interface FileReaderProgressEvent extends ProgressEvent {
- readonly target: FileReader | null;
-}
-
-interface FocusEvent extends UIEvent {
- readonly relatedTarget: EventTarget;
- initFocusEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, viewArg: Window, detailArg: number, relatedTargetArg: EventTarget): void;
-}
-
-declare var FocusEvent: {
- prototype: FocusEvent;
- new(typeArg: string, eventInitDict?: FocusEventInit): FocusEvent;
-};
-
-interface FocusNavigationEvent extends Event {
- readonly navigationReason: NavigationReason;
- readonly originHeight: number;
- readonly originLeft: number;
- readonly originTop: number;
- readonly originWidth: number;
- requestFocus(): void;
-}
-
-declare var FocusNavigationEvent: {
- prototype: FocusNavigationEvent;
- new(type: string, eventInitDict?: FocusNavigationEventInit): FocusNavigationEvent;
-};
-
-interface FormData {
- append(name: string, value: string | Blob, fileName?: string): void;
- delete(name: string): void;
- get(name: string): FormDataEntryValue | null;
- getAll(name: string): FormDataEntryValue[];
- has(name: string): boolean;
- set(name: string, value: string | Blob, fileName?: string): void;
-}
-
-declare var FormData: {
- prototype: FormData;
- new(): FormData;
- new(form: HTMLFormElement): FormData;
-};
-
-interface GainNode extends AudioNode {
- readonly gain: AudioParam;
-}
-
-declare var GainNode: {
- prototype: GainNode;
- new(): GainNode;
-};
-
-interface Gamepad {
- readonly axes: number[];
- readonly buttons: GamepadButton[];
- readonly connected: boolean;
- readonly displayId: number;
- readonly hand: GamepadHand;
- readonly hapticActuators: GamepadHapticActuator[];
- readonly id: string;
- readonly index: number;
- readonly mapping: GamepadMappingType;
- readonly pose: GamepadPose | null;
- readonly timestamp: number;
-}
-
-declare var Gamepad: {
- prototype: Gamepad;
- new(): Gamepad;
-};
-
-interface GamepadButton {
- readonly pressed: boolean;
- readonly touched: boolean;
- readonly value: number;
-}
-
-declare var GamepadButton: {
- prototype: GamepadButton;
- new(): GamepadButton;
-};
-
-interface GamepadEvent extends Event {
- readonly gamepad: Gamepad;
-}
-
-declare var GamepadEvent: {
- prototype: GamepadEvent;
- new(typeArg: string, eventInitDict?: GamepadEventInit): GamepadEvent;
-};
-
-interface GamepadHapticActuator {
- readonly type: GamepadHapticActuatorType;
- pulse(value: number, duration: number): Promise;
-}
-
-declare var GamepadHapticActuator: {
- prototype: GamepadHapticActuator;
- new(): GamepadHapticActuator;
-};
-
-interface GamepadPose {
- readonly angularAcceleration: Float32Array | null;
- readonly angularVelocity: Float32Array | null;
- readonly hasOrientation: boolean;
- readonly hasPosition: boolean;
- readonly linearAcceleration: Float32Array | null;
- readonly linearVelocity: Float32Array | null;
- readonly orientation: Float32Array | null;
- readonly position: Float32Array | null;
-}
-
-declare var GamepadPose: {
- prototype: GamepadPose;
- new(): GamepadPose;
-};
-
-interface Geolocation {
- clearWatch(watchId: number): void;
- getCurrentPosition(successCallback: PositionCallback, errorCallback?: PositionErrorCallback, options?: PositionOptions): void;
- watchPosition(successCallback: PositionCallback, errorCallback?: PositionErrorCallback, options?: PositionOptions): number;
-}
-
-declare var Geolocation: {
- prototype: Geolocation;
- new(): Geolocation;
-};
-
-interface GetSVGDocument {
- getSVGDocument(): Document;
-}
-
-interface GlobalEventHandlersEventMap {
- "pointercancel": PointerEvent;
- "pointerdown": PointerEvent;
- "pointerenter": PointerEvent;
- "pointerleave": PointerEvent;
- "pointermove": PointerEvent;
- "pointerout": PointerEvent;
- "pointerover": PointerEvent;
- "pointerup": PointerEvent;
- "wheel": WheelEvent;
-}
-
-interface GlobalEventHandlers {
- onpointercancel: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
- onpointerdown: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
- onpointerenter: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
- onpointerleave: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
- onpointermove: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
- onpointerout: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
- onpointerover: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
- onpointerup: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
- onwheel: ((this: GlobalEventHandlers, ev: WheelEvent) => any) | null;
- addEventListener(type: K, listener: (this: GlobalEventHandlers, ev: GlobalEventHandlersEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener(type: K, listener: (this: GlobalEventHandlers, ev: GlobalEventHandlersEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
-}
-
-interface GlobalFetch {
- fetch(input?: Request | string, init?: RequestInit): Promise;
-}
-
-interface HTMLAllCollection {
- readonly length: number;
- item(nameOrIndex?: string): HTMLCollection | Element | null;
- namedItem(name: string): HTMLCollection | Element | null;
- [index: number]: Element;
-}
-
-declare var HTMLAllCollection: {
- prototype: HTMLAllCollection;
- new(): HTMLAllCollection;
-};
-
-interface HTMLAnchorElement extends HTMLElement, HTMLHyperlinkElementUtils {
- Methods: string;
- /**
- * Sets or retrieves the character set used to encode the object.
- */
- /** @deprecated */
- charset: string;
- /**
- * Sets or retrieves the coordinates of the object.
- */
- /** @deprecated */
- coords: string;
- download: string;
- /**
- * Sets or retrieves the language code of the object.
- */
- hreflang: string;
- readonly mimeType: string;
- /**
- * Sets or retrieves the shape of the object.
- */
- /** @deprecated */
- name: string;
- readonly nameProp: string;
- readonly protocolLong: string;
- /**
- * Sets or retrieves the relationship between the object and the destination of the link.
- */
- rel: string;
- /**
- * Sets or retrieves the relationship between the object and the destination of the link.
- */
- /** @deprecated */
- rev: string;
- /**
- * Sets or retrieves the shape of the object.
- */
- /** @deprecated */
- shape: string;
- /**
- * Sets or retrieves the window or frame at which to target content.
- */
- target: string;
- /**
- * Retrieves or sets the text of the object as a string.
- */
- text: string;
- type: string;
- urn: string;
- addEventListener(type: K, listener: (this: HTMLAnchorElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener(type: K, listener: (this: HTMLAnchorElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
-}
-
-declare var HTMLAnchorElement: {
- prototype: HTMLAnchorElement;
- new(): HTMLAnchorElement;
-};
-
-interface HTMLAppletElement extends HTMLElement {
- /** @deprecated */
- align: string;
- /**
- * Sets or retrieves a text alternative to the graphic.
- */
- /** @deprecated */
- alt: string;
- /**
- * Sets or retrieves a character string that can be used to implement your own archive functionality for the object.
- */
- /** @deprecated */
- archive: string;
- /** @deprecated */
- code: string;
- /**
- * Sets or retrieves the URL of the component.
- */
- /** @deprecated */
- codeBase: string;
- readonly form: HTMLFormElement | null;
- /**
- * Sets or retrieves the height of the object.
- */
- /** @deprecated */
- height: string;
- /** @deprecated */
- hspace: number;
- /**
- * Sets or retrieves the shape of the object.
- */
- /** @deprecated */
- name: string;
- /** @deprecated */
- object: string;
- /** @deprecated */
- vspace: number;
- /** @deprecated */
- width: string;
- addEventListener(type: K, listener: (this: HTMLAppletElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener(type: K, listener: (this: HTMLAppletElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
-}
-
-declare var HTMLAppletElement: {
- prototype: HTMLAppletElement;
- new(): HTMLAppletElement;
-};
-
-interface HTMLAreaElement extends HTMLElement, HTMLHyperlinkElementUtils {
- /**
- * Sets or retrieves a text alternative to the graphic.
- */
- alt: string;
- /**
- * Sets or retrieves the coordinates of the object.
- */
- coords: string;
- download: string;
- /**
- * Sets or gets whether clicks in this region cause action.
- */
- /** @deprecated */
- noHref: boolean;
- rel: string;
- /**
- * Sets or retrieves the shape of the object.
- */
- shape: string;
- /**
- * Sets or retrieves the window or frame at which to target content.
- */
- target: string;
- addEventListener(type: K, listener: (this: HTMLAreaElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener(type: K, listener: (this: HTMLAreaElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
-}
-
-declare var HTMLAreaElement: {
- prototype: HTMLAreaElement;
- new(): HTMLAreaElement;
-};
-
-interface HTMLAreasCollection extends HTMLCollectionBase {
-}
-
-declare var HTMLAreasCollection: {
- prototype: HTMLAreasCollection;
- new(): HTMLAreasCollection;
-};
-
-interface HTMLAudioElement extends HTMLMediaElement {
- addEventListener(type: K, listener: (this: HTMLAudioElement, ev: HTMLMediaElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener(type: K, listener: (this: HTMLAudioElement, ev: HTMLMediaElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
-}
-
-declare var HTMLAudioElement: {
- prototype: HTMLAudioElement;
- new(): HTMLAudioElement;
-};
-
-interface HTMLBRElement extends HTMLElement {
- /**
- * Sets or retrieves the side on which floating objects are not to be positioned when any IHTMLBlockElement is inserted into the document.
- */
- /** @deprecated */
- clear: string;
- addEventListener(type: K, listener: (this: HTMLBRElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener(type: K, listener: (this: HTMLBRElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
-}
-
-declare var HTMLBRElement: {
- prototype: HTMLBRElement;
- new(): HTMLBRElement;
-};
-
-interface HTMLBaseElement extends HTMLElement {
- /**
- * Gets or sets the baseline URL on which relative links are based.
- */
- href: string;
- /**
- * Sets or retrieves the window or frame at which to target content.
- */
- target: string;
- addEventListener(type: K, listener: (this: HTMLBaseElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener(type: K, listener: (this: HTMLBaseElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
-}
-
-declare var HTMLBaseElement: {
- prototype: HTMLBaseElement;
- new(): HTMLBaseElement;
-};
-
-interface HTMLBaseFontElement extends HTMLElement, DOML2DeprecatedColorProperty {
- /**
- * Sets or retrieves the current typeface family.
- */
- /** @deprecated */
- face: string;
- /**
- * Sets or retrieves the font size of the object.
- */
- /** @deprecated */
- size: number;
- addEventListener(type: K, listener: (this: HTMLBaseFontElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener(type: K, listener: (this: HTMLBaseFontElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
-}
-
-declare var HTMLBaseFontElement: {
- prototype: HTMLBaseFontElement;
- new(): HTMLBaseFontElement;
-};
-
-interface HTMLBodyElementEventMap extends HTMLElementEventMap, WindowEventHandlersEventMap {
- "blur": FocusEvent;
- "error": ErrorEvent;
- "focus": FocusEvent;
- "load": Event;
- "orientationchange": Event;
- "resize": UIEvent;
- "scroll": UIEvent;
-}
-
-interface HTMLBodyElement extends HTMLElement, WindowEventHandlers {
- /** @deprecated */
- aLink: string;
- /** @deprecated */
- background: string;
- /** @deprecated */
- bgColor: string;
- bgProperties: string;
- /** @deprecated */
- link: string;
- /** @deprecated */
- noWrap: boolean;
- onorientationchange: ((this: HTMLBodyElement, ev: Event) => any) | null;
- onresize: ((this: HTMLBodyElement, ev: UIEvent) => any) | null;
- /** @deprecated */
- text: string;
- /** @deprecated */
- vLink: string;
- addEventListener(type: K, listener: (this: HTMLBodyElement, ev: HTMLBodyElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener(type: K, listener: (this: HTMLBodyElement, ev: HTMLBodyElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
-}
-
-declare var HTMLBodyElement: {
- prototype: HTMLBodyElement;
- new(): HTMLBodyElement;
-};
-
-interface HTMLButtonElement extends HTMLElement {
- /**
- * Provides a way to direct a user to a specific field when a document loads. This can provide both direction and convenience for a user, reducing the need to click or tab to a field when a page opens. This attribute is true when present on an element, and false when missing.
- */
- autofocus: boolean;
- disabled: boolean;
- /**
- * Retrieves a reference to the form that the object is embedded in.
- */
- readonly form: HTMLFormElement | null;
- /**
- * Overrides the action attribute (where the data on a form is sent) on the parent form element.
- */
- formAction: string;
- /**
- * Used to override the encoding (formEnctype attribute) specified on the form element.
- */
- formEnctype: string;
- /**
- * Overrides the submit method attribute previously specified on a form element.
- */
- formMethod: string;
- /**
- * Overrides any validation or required attributes on a form or form elements to allow it to be submitted without validation. This can be used to create a "save draft"-type submit option.
- */
- formNoValidate: boolean;
- /**
- * Overrides the target attribute on a form element.
- */
- formTarget: string;
- /**
- * Sets or retrieves the name of the object.
- */
- name: string;
- status: any;
- /**
- * Gets the classification and default behavior of the button.
- */
- type: string;
- /**
- * Returns the error message that would be displayed if the user submits the form, or an empty string if no error message. It also triggers the standard error message, such as "this is a required field". The result is that the user sees validation messages without actually submitting.
- */
- readonly validationMessage: string;
- /**
- * Returns a ValidityState object that represents the validity states of an element.
- */
- readonly validity: ValidityState;
- /**
- * Sets or retrieves the default or selected value of the control.
- */
- value: string;
- /**
- * Returns whether an element will successfully validate based on forms validation rules and constraints.
- */
- readonly willValidate: boolean;
- /**
- * Returns whether a form will validate when it is submitted, without having to submit it.
- */
- checkValidity(): boolean;
- /**
- * Sets a custom error message that is displayed when a form is submitted.
- * @param error Sets a custom error message that is displayed when a form is submitted.
- */
- setCustomValidity(error: string): void;
- addEventListener(type: K, listener: (this: HTMLButtonElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener(type: K, listener: (this: HTMLButtonElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
-}
-
-declare var HTMLButtonElement: {
- prototype: HTMLButtonElement;
- new(): HTMLButtonElement;
-};
-
-interface HTMLCanvasElement extends HTMLElement {
- /**
- * Gets or sets the height of a canvas element on a document.
- */
- height: number;
- /**
- * Gets or sets the width of a canvas element on a document.
- */
- width: number;
- /**
- * Returns an object that provides methods and properties for drawing and manipulating images and graphics on a canvas element in a document. A context object includes information about colors, line widths, fonts, and other graphic parameters that can be drawn on a canvas.
- * @param contextId The identifier (ID) of the type of canvas to create. Internet Explorer 9 and Internet Explorer 10 support only a 2-D context using canvas.getContext("2d"); IE11 Preview also supports 3-D or WebGL context using canvas.getContext("experimental-webgl");
- */
- getContext(contextId: "2d", contextAttributes?: Canvas2DContextAttributes): CanvasRenderingContext2D | null;
- getContext(contextId: "webgl" | "experimental-webgl", contextAttributes?: WebGLContextAttributes): WebGLRenderingContext | null;
- getContext(contextId: string, contextAttributes?: {}): CanvasRenderingContext2D | WebGLRenderingContext | null;
- /**
- * Returns a blob object encoded as a Portable Network Graphics (PNG) format from a canvas image or drawing.
- */
- msToBlob(): Blob;
- toBlob(callback: (result: Blob | null) => void, type?: string, ...arguments: any[]): void;
- /**
- * Returns the content of the current canvas as an image that you can use as a source for another canvas or an HTML element.
- * @param type The standard MIME type for the image format to return. If you do not specify this parameter, the default value is a PNG format image.
- */
- toDataURL(type?: string, ...args: any[]): string;
- addEventListener(type: K, listener: (this: HTMLCanvasElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener(type: K, listener: (this: HTMLCanvasElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
-}
-
-declare var HTMLCanvasElement: {
- prototype: HTMLCanvasElement;
- new(): HTMLCanvasElement;
-};
-
-interface HTMLCollectionBase {
- /**
- * Sets or retrieves the number of objects in a collection.
- */
- readonly length: number;
- /**
- * Retrieves an object from various collections.
- */
- item(index: number): Element;
- [index: number]: Element;
-}
-
-interface HTMLCollection extends HTMLCollectionBase {
- /**
- * Retrieves a select object or an object from an options collection.
- */
- namedItem(name: string): Element | null;
-}
-
-declare var HTMLCollection: {
- prototype: HTMLCollection;
- new(): HTMLCollection;
-};
-
-interface HTMLCollectionOf extends HTMLCollectionBase {
- item(index: number): T;
- namedItem(name: string): T;
- [index: number]: T;
-}
-
-interface HTMLDListElement extends HTMLElement {
- /** @deprecated */
- compact: boolean;
- addEventListener(type: K, listener: (this: HTMLDListElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener(type: K, listener: (this: HTMLDListElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
-}
-
-declare var HTMLDListElement: {
- prototype: HTMLDListElement;
- new(): HTMLDListElement;
-};
-
-interface HTMLDataElement extends HTMLElement {
- value: string;
- addEventListener(type: K, listener: (this: HTMLDataElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener(type: K, listener: (this: HTMLDataElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
-}
-
-declare var HTMLDataElement: {
- prototype: HTMLDataElement;
- new(): HTMLDataElement;
-};
-
-interface HTMLDataListElement extends HTMLElement {
- readonly options: HTMLCollectionOf;
- addEventListener