diff --git a/.github/ISSUE_TEMPLATE/Feature_request.md b/.github/ISSUE_TEMPLATE/Feature_request.md
index bddacd1f2fc..f40965f503a 100644
--- a/.github/ISSUE_TEMPLATE/Feature_request.md
+++ b/.github/ISSUE_TEMPLATE/Feature_request.md
@@ -32,8 +32,10 @@ What shortcomings exist with current approaches?
## Checklist
My suggestion meets these guidelines:
-* [ ] This wouldn't be a breaking change in existing TypeScript / JavaScript code
+
+* [ ] This wouldn't be a breaking change in existing TypeScript/JavaScript code
* [ ] This wouldn't change the runtime behavior of existing JavaScript code
* [ ] This could be implemented without emitting different JS based on the types of the expressions
-* [ ] This isn't a runtime feature (e.g. new expression-level syntax)
+* [ ] This isn't a runtime feature (e.g. library functionality, non-ECMAScript syntax with JavaScript output, etc.)
+* [ ] This feature would agree with the rest of [TypeScript's Design Goals](https://github.com/Microsoft/TypeScript/wiki/TypeScript-Design-Goals).
diff --git a/.travis.yml b/.travis.yml
index 6d000dd7165..20b47dbe30c 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,8 +1,8 @@
language: node_js
node_js:
- - 'stable'
- - '8'
+ - 'node'
+ - '10'
- '6'
sudo: false
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index 27d2b9f323c..fbce8186fac 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -137,10 +137,10 @@ You can specify which browser to use for debugging. Currently Chrome and IE are
jake runtests-browser tests=2dArrays browser=chrome
```
-You can debug with VS Code or Node instead with `jake runtests debug=true`:
+You can debug with VS Code or Node instead with `jake runtests inspect=true`:
```Shell
-jake runtests tests=2dArrays debug=true
+jake runtests tests=2dArrays inspect=true
```
## Adding a Test
@@ -153,7 +153,7 @@ The supported names and values are the same as those supported in the compiler i
They are useful for tests relating to modules.
See below for examples.
-**Note** that if you have a test corresponding to a specific spec compliance item, you can place it in `tests\cases\conformance` in an appropriately-named subfolder.
+**Note** that if you have a test corresponding to a specific spec compliance item, you can place it in `tests\cases\conformance` in an appropriately-named subfolder.
**Note** that filenames here must be distinct from all other compiler testcase names, so you may have to work a bit to find a unique name if it's something common.
### Tests for multiple files
@@ -194,6 +194,6 @@ to establish the new baselines as the desired behavior. This will change the fil
## Localization
All strings the user may see are stored in [`diagnosticMessages.json`](./src/compiler/diagnosticMessages.json).
-If you make changes to it, run `jake generate-diagnostics` to push them to the `Diagnostic` interface in [`diagnosticInformationMap.generated.ts`](./src/compiler/diagnosticInformationMap.generated.ts).
+If you make changes to it, run `jake generate-diagnostics` to push them to the `Diagnostic` interface in `diagnosticInformationMap.generated.ts`.
See [coding guidelines on diagnostic messages](https://github.com/Microsoft/TypeScript/wiki/Coding-guidelines#diagnostic-messages).
diff --git a/Gulpfile.js b/Gulpfile.js
index 704fbba4447..867f35d4ff7 100644
--- a/Gulpfile.js
+++ b/Gulpfile.js
@@ -26,7 +26,7 @@ const exec = require("./scripts/build/exec");
const browserify = require("./scripts/build/browserify");
const prepend = require("./scripts/build/prepend");
const { removeSourceMaps } = require("./scripts/build/sourcemaps");
-const { CancellationTokenSource, CancelError, delay, Semaphore } = require("prex");
+const { CancellationTokenSource, CancelError, delay, Semaphore } = require("prex");
const { libraryTargets, generateLibs } = require("./scripts/build/lib");
const { runConsoleTests, cleanTestDirs, writeTestConfigFile, refBaseline, localBaseline, refRwcBaseline, localRwcBaseline } = require("./scripts/build/tests");
diff --git a/Jakefile.js b/Jakefile.js
index 6ecb67ab9ce..68cfbf7eef6 100644
--- a/Jakefile.js
+++ b/Jakefile.js
@@ -147,14 +147,14 @@ task(TaskNames.local, [
task("default", [TaskNames.local]);
const RunTestsPrereqs = [TaskNames.lib, Paths.servicesDefinitionFile, Paths.typescriptDefinitionFile, 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.");
+desc("Runs all the tests in parallel using the built run.js file. Optional arguments are: t[ests]=category1|category2|... i[nspect]=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.");
+desc("Runs all the tests in parallel using the built run.js file. Optional arguments are: t[ests]=category1|category2|... i[nspect]=true.");
task(TaskNames.runtests, RunTestsPrereqs, function () {
tsbuild([ConfigFileFor.runjs], true, () => {
runConsoleTests('mocha-fivemat-progress-reporter', /*runInParallel*/ false);
@@ -520,7 +520,6 @@ function runConsoleTests(defaultReporter, runInParallel) {
}
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;
diff --git a/README.md b/README.md
index a8b068bbab8..a7222668ada 100644
--- a/README.md
+++ b/README.md
@@ -29,7 +29,7 @@ There are many ways to [contribute](https://github.com/Microsoft/TypeScript/blob
* [Submit bugs](https://github.com/Microsoft/TypeScript/issues) and help us verify fixes as they are checked in.
* Review the [source code changes](https://github.com/Microsoft/TypeScript/pulls).
* Engage with other TypeScript users and developers on [StackOverflow](https://stackoverflow.com/questions/tagged/typescript).
-* Join the [#typescript](https://twitter.com/#!/search/realtime/%23typescript) discussion on Twitter.
+* Join the [#typescript](https://twitter.com/search?q=%23TypeScript) discussion on Twitter.
* [Contribute bug fixes](https://github.com/Microsoft/TypeScript/blob/master/CONTRIBUTING.md).
* Read the language specification ([docx](https://github.com/Microsoft/TypeScript/blob/master/doc/TypeScript%20Language%20Specification.docx?raw=true),
[pdf](https://github.com/Microsoft/TypeScript/blob/master/doc/TypeScript%20Language%20Specification.pdf?raw=true), [md](https://github.com/Microsoft/TypeScript/blob/master/doc/spec.md)).
diff --git a/lib/de/diagnosticMessages.generated.json b/lib/de/diagnosticMessages.generated.json
index 795136609dc..f7bf53b6755 100644
--- a/lib/de/diagnosticMessages.generated.json
+++ b/lib/de/diagnosticMessages.generated.json
@@ -938,7 +938,7 @@
"Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_con_1322": "Der Typ iterierter Elemente eines \"yield*\"-Operanden muss entweder eine gültige Zusage sein oder darf keinen aufrufbaren \"then\"-Member enthalten.",
"Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_cal_1321": "Der Typ eines \"yield\"-Operanden in einem asynchronen Generator muss entweder eine gültige Zusage sein oder darf keinen aufrufbaren \"then\"-Member enthalten.",
"Type_parameter_0_has_a_circular_constraint_2313": "Der Typparameter \"{0}\" weist eine zirkuläre Einschränkung auf.",
- "Type_parameter_0_has_a_circular_default_2716": "Der Typparameter \"{0}\" weist einen zirkulären Standard auf.",
+ "Type_parameter_0_has_a_circular_default_2716": "Der Typparameter \"{0}\" besitzt einen zirkulären Standardwert.",
"Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1_4008": "Der Typparameter \"{0}\" der Aufrufsignatur aus der exportierten Schnittstelle besitzt oder verwendet den privaten Namen \"{1}\".",
"Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1_4006": "Der Typparameter \"{0}\" der Konstruktorsignatur aus der exportierten Schnittstelle besitzt oder verwendet den privaten Namen \"{1}\".",
"Type_parameter_0_of_exported_class_has_or_is_using_private_name_1_4002": "Der Typparameter \"{0}\" der exportierten Klasse besitzt oder verwendet den privaten Namen \"{1}\".",
diff --git a/lib/enu/diagnosticMessages.generated.json.lcg b/lib/enu/diagnosticMessages.generated.json.lcg
index 2c93bcf114d..e4080a9bb37 100644
--- a/lib/enu/diagnosticMessages.generated.json.lcg
+++ b/lib/enu/diagnosticMessages.generated.json.lcg
@@ -135,9 +135,9 @@
- -
+
-
-
+
@@ -741,6 +741,18 @@
+ -
+
+
+
+
+
+ -
+
+
+
+
+
-
@@ -861,9 +873,21 @@
- -
+
-
-
+
+
+
+
+ -
+
+
+
+
+
+ -
+
+
@@ -1095,6 +1119,12 @@
+ -
+
+
+
+
+
-
@@ -1203,6 +1233,12 @@
+ -
+
+
+
+
+
-
@@ -1233,6 +1269,12 @@
+ -
+
+
+
+
+
-
@@ -1401,6 +1443,36 @@
+ -
+
+
+
+
+
+ -
+
+
+
+
+
+ -
+
+
+
+
+
+ -
+
+
+
+
+
+ -
+
+
+
+
+
-
@@ -2001,6 +2073,24 @@
+ -
+
+ {1}'?]]>
+
+
+
+ -
+
+
+
+
+
+ -
+
+
+
+
+
-
@@ -2259,6 +2349,12 @@
+ -
+
+
+
+
+
-
@@ -2349,6 +2445,12 @@
+ -
+
+
+
+
+
-
@@ -2421,9 +2523,9 @@
- -
+
-
-
+
@@ -2691,12 +2793,24 @@
+ -
+
+
+
+
+
-
+ -
+
+
+
+
+
-
@@ -2775,12 +2889,30 @@
+ -
+
+
+
+
+
-
+ -
+
+
+
+
+
+ -
+
+
+
+
+
-
@@ -2829,12 +2961,6 @@
- -
-
-
-
-
-
-
@@ -3225,6 +3351,12 @@
+ -
+
+
+
+
+
-
@@ -3255,6 +3387,12 @@
+ -
+
+
+
+
+
-
@@ -3483,6 +3621,12 @@
+ -
+
+
+
+
+
-
@@ -3705,6 +3849,12 @@
+ -
+
+
+
+
+
-
@@ -3843,6 +3993,12 @@
+ -
+
+
+
+
+
-
@@ -3909,9 +4065,9 @@
- -
+
-
-
+
@@ -3999,6 +4155,12 @@
+ -
+
+
+
+
+
-
@@ -4203,6 +4365,12 @@
+ -
+
+
+
+
+
-
@@ -4317,6 +4485,18 @@
+ -
+
+
+
+
+
+ -
+
+
+
+
+
-
@@ -4359,6 +4539,12 @@
+ -
+
+
+
+
+
-
@@ -4773,6 +4959,12 @@
+ -
+
+
+
+
+
-
@@ -5025,12 +5217,6 @@
- -
-
-
-
-
-
-
@@ -5313,6 +5499,12 @@
+ -
+
+
+
+
+
-
@@ -5391,9 +5583,9 @@
- -
+
-
-
+
@@ -5481,9 +5673,9 @@
- -
+
-
-
+
@@ -5589,6 +5781,12 @@
+ -
+
+
+
+
+
-
@@ -5679,6 +5877,18 @@
+ -
+
+
+
+
+
+ -
+
+
+
+
+
-
@@ -6051,6 +6261,12 @@
+ -
+
+
+
+
+
-
@@ -6141,6 +6357,12 @@
+ -
+
+
+
+
+
-
@@ -6165,6 +6387,18 @@
+ -
+
+
+
+
+
+ -
+
+
+
+
+
-
@@ -6207,6 +6441,12 @@
+ -
+
+
+
+
+
-
@@ -6243,6 +6483,12 @@
+ -
+
+
+
+
+
-
@@ -6393,6 +6639,12 @@
+ -
+
+
+
+
+
-
@@ -6657,12 +6909,36 @@
+ -
+
+
+
+
+
-
+ -
+
+
+
+
+
+ -
+
+
+
+
+
+ -
+
+
+
+
+
-
@@ -6831,6 +7107,18 @@
+ -
+
+
+
+
+
+ -
+
+
+
+
+
-
diff --git a/lib/es/diagnosticMessages.generated.json b/lib/es/diagnosticMessages.generated.json
index 0e0e31a2b11..52840b1208e 100644
--- a/lib/es/diagnosticMessages.generated.json
+++ b/lib/es/diagnosticMessages.generated.json
@@ -328,7 +328,7 @@
"Do_not_emit_outputs_if_any_errors_were_reported_6008": "No emitir salidas si se informa de algún error.",
"Do_not_emit_use_strict_directives_in_module_output_6112": "No emitir directivas 'use strict' en la salida del módulo.",
"Do_not_erase_const_enum_declarations_in_generated_code_6007": "No borrar las declaraciones de enumeración const en el código generado.",
- "Do_not_generate_custom_helper_functions_like_extends_in_compiled_output_6157": "No generar funciones auxiliares personalizadas como \"__extends\" en la salida compilada.",
+ "Do_not_generate_custom_helper_functions_like_extends_in_compiled_output_6157": "No generar funciones del asistente personalizadas como \"__extends\" en la salida compilada.",
"Do_not_include_the_default_library_file_lib_d_ts_6158": "No incluir el archivo de biblioteca predeterminado (lib.d.ts).",
"Do_not_report_errors_on_unreachable_code_6077": "No notificar los errores del código inaccesible.",
"Do_not_report_errors_on_unused_labels_6074": "No notificar los errores de las etiquetas no usadas.",
@@ -477,7 +477,7 @@
"Import_declaration_0_is_using_private_name_1_4000": "La declaración de importación '{0}' usa el nombre privado '{1}'.",
"Import_declaration_conflicts_with_local_declaration_of_0_2440": "La declaración de importación está en conflicto con la declaración local de \"{0}\".",
"Import_declarations_in_a_namespace_cannot_reference_a_module_1147": "Las declaraciones de importación de un espacio de nombres no pueden hacer referencia a un módulo.",
- "Import_emit_helpers_from_tslib_6139": "Importe elementos auxiliares de emisión de \"tslib\".",
+ "Import_emit_helpers_from_tslib_6139": "Importe asistentes de emisión de \"tslib\".",
"Import_may_be_converted_to_a_default_import_80003": "La importación puede convertirse a una importación predeterminada.",
"Import_name_cannot_be_0_2438": "El nombre de importación no puede ser \"{0}\".",
"Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relati_2439": "La declaración de importación o exportación de una declaración de módulo de ambiente no puede hacer referencia al módulo a través de su nombre relativo.",
@@ -892,8 +892,8 @@
"The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer_1190": "La declaración de variable de una instrucción \"for...of\" no puede tener un inicializador.",
"The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any_2410": "No se admite la instrucción 'with'. Todos los símbolos de un bloque 'with' tendrán el tipo 'any'.",
"This_constructor_function_may_be_converted_to_a_class_declaration_80002": "Esta función de constructor puede convertirse en una declaración de clase.",
- "This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found_2354": "Esta sintaxis requiere una aplicación auxiliar importada, pero no se puede encontrar el módulo \"{0}\".",
- "This_syntax_requires_an_imported_helper_named_1_but_module_0_has_no_exported_member_1_2343": "Esta sintaxis requiere una aplicación auxiliar importada denominada \"{1}\", pero el módulo \"{0}\" no tiene el miembro exportado \"{1}\".",
+ "This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found_2354": "Esta sintaxis requiere un asistente importado, pero no se puede encontrar el módulo \"{0}\".",
+ "This_syntax_requires_an_imported_helper_named_1_but_module_0_has_no_exported_member_1_2343": "Esta sintaxis requiere un asistente importado denominado \"{1}\", pero el módulo \"{0}\" no tiene el miembro exportado \"{1}\".",
"Trailing_comma_not_allowed_1009": "No se permite la coma final.",
"Transpile_each_file_as_a_separate_module_similar_to_ts_transpileModule_6153": "Transpilar cada archivo como un módulo aparte (parecido a \"ts.transpileModule\").",
"Try_npm_install_types_Slash_0_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_mod_7035": "Pruebe \"npm install @types/{0}\" si existe o agregue un nuevo archivo de declaración (.d.ts) que incluya \"declare module '{0}';\"",
diff --git a/lib/ko/diagnosticMessages.generated.json b/lib/ko/diagnosticMessages.generated.json
index c5d6cf984db..a1b1320115a 100644
--- a/lib/ko/diagnosticMessages.generated.json
+++ b/lib/ko/diagnosticMessages.generated.json
@@ -3,7 +3,7 @@
"A_0_modifier_cannot_be_used_with_an_interface_declaration_1045": "'{0}' 한정자는 인터페이스 선언에서 사용할 수 없습니다.",
"A_0_parameter_must_be_the_first_parameter_2680": "'{0}' 매개 변수는 첫 번째 매개 변수여야 합니다.",
"A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature_2463": "바인딩 패턴 매개 변수는 구현 서명에서 선택 사항이 될 수 없습니다.",
- "A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement_1105": "'break' 문은 이 문을 둘러싼 반복 문 또는 switch 문 내에서만 사용할 수 있습니다.",
+ "A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement_1105": "'break' 문은 이 문을 둘러싼 반복문 또는 switch 문 내에서만 사용할 수 있습니다.",
"A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement_1116": "'break' 문은 이 문을 둘러싼 문의 레이블로만 이동할 수 있습니다.",
"A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments_2500": "클래스는 선택적 형식 인수가 포함된 식별자/정규화된 이름만 구현할 수 있습니다.",
"A_class_declaration_without_the_default_modifier_must_have_a_name_1211": "'default' 한정자를 사용하지 않는 클래스 선언에는 이름이 있어야 합니다.",
@@ -23,8 +23,8 @@
"A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_1254": "앰비언트 컨텍스트의 'const' 이니셜라이저는 문자열 또는 숫자 리터럴이어야 합니다.",
"A_constructor_cannot_contain_a_super_call_when_its_class_extends_null_17005": "생성자는 해당 클래스가 'null'을 확장하는 경우 'super' 호출을 포함할 수 없습니다.",
"A_constructor_cannot_have_a_this_parameter_2681": "생성자에는 'this' 매개 변수를 사용할 수 없습니다.",
- "A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement_1104": "'continue' 문은 이 문을 둘러싼 반복 문 내에서만 사용할 수 있습니다.",
- "A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement_1115": "'continue' 문은 이 문을 둘러싼 반복 문의 레이블로만 이동할 수 있습니다.",
+ "A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement_1104": "'continue' 문은 이 문을 둘러싼 반복문 내에서만 사용할 수 있습니다.",
+ "A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement_1115": "'continue' 문은 이 문을 둘러싼 반복문의 레이블로만 이동할 수 있습니다.",
"A_declare_modifier_cannot_be_used_in_an_already_ambient_context_1038": "'declare' 한정자는 이미 존재하는 앰비언트 컨텍스트에서 사용할 수 없습니다.",
"A_declare_modifier_is_required_for_a_top_level_declaration_in_a_d_ts_file_1046": "'declare' 한정자는 .d.ts 파일의 최상위 선언에 필요합니다.",
"A_decorator_can_only_decorate_a_method_implementation_not_an_overload_1249": "데코레이터는 오버로드가 아니라 메서드 구현만 데코레이팅할 수 있습니다.",
@@ -68,7 +68,7 @@
"A_rest_parameter_cannot_have_an_initializer_1048": "rest 매개 변수에는 이니셜라이저를 사용할 수 없습니다.",
"A_rest_parameter_must_be_last_in_a_parameter_list_1014": "rest 매개 변수는 매개 변수 목록 마지막에 있어야 합니다.",
"A_rest_parameter_must_be_of_an_array_type_2370": "rest 매개 변수는 배열 형식이어야 합니다.",
- "A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma_1013": "rest 매개 변수 또는 바인딩 패턴에 후행 쉼표를 사용할 수 없습니다.",
+ "A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma_1013": "rest 매개 변수 또는 바인딩 패턴에 후행 쉼표가 없을 수 있습니다.",
"A_return_statement_can_only_be_used_within_a_function_body_1108": "'return' 문은 함수 본문 내에서만 사용할 수 있습니다.",
"A_series_of_entries_which_re_map_imports_to_lookup_locations_relative_to_the_baseUrl_6167": "가져오기를 'baseUrl'에 상대적인 조회 위치로 다시 매핑하는 일련의 항목입니다.",
"A_set_accessor_cannot_have_a_return_type_annotation_1095": "'set' 접근자에는 반환 형식 주석을 사용할 수 없습니다.",
@@ -232,7 +232,7 @@
"Cannot_invoke_an_object_which_is_possibly_null_2721": "'null'일 수 있는 개체를 호출할 수 없습니다.",
"Cannot_invoke_an_object_which_is_possibly_null_or_undefined_2723": "'null'이거나 '정의되지 않음'일 수 있는 개체를 호출할 수 없습니다.",
"Cannot_invoke_an_object_which_is_possibly_undefined_2722": "'정의되지 않음'일 수 있는 개체를 호출할 수 없습니다.",
- "Cannot_prepend_project_0_because_it_does_not_have_outFile_set_6308": "'outFile' 집합이 없기 때문에 '{0}' 프로젝트를 추가할 수 없습니다.",
+ "Cannot_prepend_project_0_because_it_does_not_have_outFile_set_6308": "'{0}' 프로젝트는 'outFile'이 설정되어 있지 않기 때문에 앞에 추가할 수 없습니다.",
"Cannot_re_export_a_type_when_the_isolatedModules_flag_is_provided_1205": "'--isolatedModules' 플래그가 제공된 경우 형식을 다시 내보낼 수 없습니다.",
"Cannot_read_file_0_Colon_1_5012": "파일 '{0}'을(를) 읽을 수 없습니다. {1}.",
"Cannot_redeclare_block_scoped_variable_0_2451": "블록 범위 변수 '{0}'을(를) 다시 선언할 수 없습니다.",
@@ -274,7 +274,7 @@
"Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json_6020": "구성 파일에 대한 경로 또는 'tsconfig.json'이 포함된 폴더에 대한 경로를 고려하여 프로젝트를 컴파일합니다.",
"Compiler_option_0_expects_an_argument_6044": "컴파일러 옵션 '{0}'에는 인수가 필요합니다.",
"Compiler_option_0_requires_a_value_of_type_1_5024": "컴파일러 옵션 '{0}'에 {1} 형식의 값이 필요합니다.",
- "Composite_projects_may_not_disable_declaration_emit_6304": "복합 프로젝트는 선언 내보내기를 사용하지 않도록 설정할 수 없습니다.",
+ "Composite_projects_may_not_disable_declaration_emit_6304": "복합 프로젝트는 선언 내보내기를 비활성화할 수 없습니다.",
"Computed_property_names_are_not_allowed_in_enums_1164": "컴퓨팅된 속성 이름은 열거형에 사용할 수 없습니다.",
"Computed_values_are_not_permitted_in_an_enum_with_string_valued_members_2553": "계산된 값은 문자열 값 멤버가 포함된 열거형에서 허용되지 않습니다.",
"Concatenate_and_emit_output_to_single_file_6001": "출력을 연결하고 단일 파일로 내보냅니다.",
@@ -445,7 +445,7 @@
"Function_overload_must_be_static_2387": "함수 오버로드는 정적이어야 합니다.",
"Function_overload_must_not_be_static_2388": "함수 오버로드는 정적이 아니어야 합니다.",
"Generate_get_and_set_accessors_95046": "'get' 및 'set' 접근자 생성",
- "Generates_a_sourcemap_for_each_corresponding_d_ts_file_6000": "해당하는 각 '.d.ts' 파일의 sourcemap을 생성합니다.",
+ "Generates_a_sourcemap_for_each_corresponding_d_ts_file_6000": "해당하는 각 '.d.ts' 파일에 sourcemap을 생성합니다.",
"Generates_corresponding_d_ts_file_6002": "해당 '.d.ts' 파일을 생성합니다.",
"Generates_corresponding_map_file_6043": "해당 '.map' 파일을 생성합니다.",
"Generator_implicitly_has_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_return_typ_7025": "생성기는 값을 생성하지 않으므로 암시적으로 '{0}' 형식입니다. 반환 형식을 제공하세요.",
@@ -677,13 +677,13 @@
"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": "'{1}' 종속성에 오류가 있기 때문에 '{0}' 프로젝트를 빌드할 수 없습니다.",
+ "Project_0_can_t_be_built_because_its_dependency_1_has_errors_6363": "'{0}' 프로젝트는 '{1}' 종속성에 오류가 있기 때문에 빌드할 수 없습니다.",
"Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date_6353": "'{1}' 종속성이 최신 상태가 아니기 때문에 '{0}' 프로젝트가 최신 상태가 아닙니다.",
"Project_0_is_out_of_date_because_oldest_output_1_is_older_than_newest_input_2_6350": "가장 오래된 출력 '{1}'이(가) 최신 입력 '{2}'보다 오래되었기 때문에 '{0}' 프로젝트가 최신 상태가 아닙니다.",
"Project_0_is_out_of_date_because_output_file_1_does_not_exist_6352": "'{1}' 출력 파일이 존재하지 않기 때문에 '{0}' 프로젝트가 최신 상태가 아닙니다.",
"Project_0_is_up_to_date_6361": "'{0}' 프로젝트가 최신 상태입니다.",
"Project_0_is_up_to_date_because_newest_input_1_is_older_than_oldest_output_2_6351": "최신 입력 '{1}'이(가) 가장 오래된 출력 '{2}'보다 오래되었기 때문에 '{0}' 프로젝트가 최신 상태입니다.",
- "Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies_6354": "종속성의 .d.ts 파일이 있기 때문에 '{0}' 프로젝트가 최신 상태입니다.",
+ "Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies_6354": "'{0}' 프로젝트는 종속성에 .d.ts 파일이 있는 최신 상태입니다.",
"Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0_6202": "프로젝트 참조는 순환 그래프를 형성할 수 없습니다. 순환이 발견되었습니다. {0}",
"Projects_in_this_build_Colon_0_6355": "이 빌드의 프로젝트: {0}",
"Projects_to_reference_6300": "참조할 프로젝트",
@@ -803,7 +803,7 @@
"Show_what_would_be_built_or_deleted_if_specified_with_clean_6367": "빌드될 항목 표시(또는 '--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": "'{1}' 종속성에 오류가 있기 때문에 '{0}' 프로젝트 빌드를 건너뜁니다.",
+ "Skipping_build_of_project_0_because_its_dependency_1_has_errors_6362": "'{0}' 프로젝트의 빌드는 '{1}' 종속성에 오류가 있기 때문에 건너뜁니다.",
"Skipping_clean_because_not_all_projects_could_be_located_6371": "일부 프로젝트를 찾을 수 없으므로 정리를 건너뛰는 중입니다.",
"Source_Map_Options_6175": "소스 맵 옵션",
"Specialized_overload_signature_is_not_assignable_to_any_non_specialized_signature_2382": "특수화된 오버로드 시그니처는 특수화되지 않은 서명에 할당할 수 없습니다.",
@@ -1039,7 +1039,7 @@
"const_declarations_must_be_initialized_1155": "'const' 선언은 초기화해야 합니다.",
"const_enum_member_initializer_was_evaluated_to_a_non_finite_value_2477": "'const' 열거형 멤버 이니셜라이저가 무한 값에 대해 평가되었습니다.",
"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' 열거형은 속성 또는 인덱스 액세스 식 또는 내보내기 할당 또는 가져오기 선언의 오른쪽 또는 형식 쿼리에서만 사용할 수 있습니다.",
+ "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": "이 항목 삭제 - '{0}' 프로젝트는 이전에 빌드되었기 때문에 최신 상태입니다.",
"enum_declarations_can_only_be_used_in_a_ts_file_8015": "'enum 선언'은 .ts 파일에서만 사용할 수 있습니다.",
diff --git a/lib/lib.dom.d.ts b/lib/lib.dom.d.ts
index f08e5d55677..464dea83926 100644
--- a/lib/lib.dom.d.ts
+++ b/lib/lib.dom.d.ts
@@ -162,6 +162,7 @@ interface BiquadFilterOptions extends AudioNodeOptions {
}
interface BlobPropertyBag {
+ endings?: EndingType;
type?: string;
}
@@ -220,11 +221,12 @@ interface ComputedEffectTiming extends EffectTiming {
progress?: number | null;
}
-interface ComputedKeyframe extends Record {
- composite?: CompositeOperation | null;
- computedOffset?: number;
- easing?: string;
- offset?: number | null;
+interface ComputedKeyframe {
+ composite: CompositeOperationOrAuto;
+ computedOffset: number;
+ easing: string;
+ offset: number | null;
+ [property: string]: string | number | null | undefined;
}
interface ConfirmSiteSpecificExceptionsInformation extends ExceptionInformation {
@@ -586,10 +588,11 @@ interface KeyboardEventInit extends EventModifierInit {
repeat?: boolean;
}
-interface Keyframe extends Record {
- composite?: CompositeOperation | null;
+interface Keyframe {
+ composite?: CompositeOperationOrAuto;
easing?: string;
offset?: number | null;
+ [property: string]: string | number | null | undefined;
}
interface KeyframeAnimationOptions extends KeyframeEffectOptions {
@@ -907,6 +910,12 @@ interface PeriodicWaveOptions extends PeriodicWaveConstraints {
real?: number[] | Float32Array;
}
+interface PipeOptions {
+ preventAbort?: boolean;
+ preventCancel?: boolean;
+ preventClose?: boolean;
+}
+
interface PointerEventInit extends MouseEventInit {
height?: number;
isPrimary?: boolean;
@@ -941,10 +950,11 @@ interface PromiseRejectionEventInit extends EventInit {
reason?: any;
}
-interface PropertyIndexedKeyframes extends Record {
- composite?: CompositeOperation | (CompositeOperation | null)[];
+interface PropertyIndexedKeyframes {
+ composite?: CompositeOperationOrAuto | CompositeOperationOrAuto[];
easing?: string | string[];
offset?: number | (number | null)[];
+ [property: string]: string | string[] | number | null | (number | null)[] | undefined;
}
interface PushSubscriptionJSON {
@@ -958,9 +968,9 @@ interface PushSubscriptionOptionsInit {
userVisibleOnly?: boolean;
}
-interface QueuingStrategy {
+interface QueuingStrategy {
highWaterMark?: number;
- size?: WritableStreamChunkCallback;
+ size?: QueuingStrategySizeCallback;
}
interface RTCAnswerOptions extends RTCOfferAnswerOptions {
@@ -1516,6 +1526,14 @@ interface TrackEventInit extends EventInit {
track?: VideoTrack | AudioTrack | TextTrack | null;
}
+interface Transformer {
+ flush?: TransformStreamDefaultControllerCallback;
+ readableType?: undefined;
+ start?: TransformStreamDefaultControllerCallback;
+ transform?: TransformStreamDefaultControllerTransformCallback;
+ writableType?: undefined;
+}
+
interface TransitionEventInit extends EventInit {
elapsedTime?: number;
propertyName?: string;
@@ -1527,11 +1545,27 @@ interface UIEventInit extends EventInit {
view?: Window | null;
}
-interface UnderlyingSink {
+interface UnderlyingByteSource {
+ autoAllocateChunkSize?: number;
+ cancel?: ReadableStreamErrorCallback;
+ pull?: ReadableByteStreamControllerCallback;
+ start?: ReadableByteStreamControllerCallback;
+ type: "bytes";
+}
+
+interface UnderlyingSink {
abort?: WritableStreamErrorCallback;
- close?: WritableStreamDefaultControllerCallback;
- start: WritableStreamDefaultControllerCallback;
- write?: WritableStreamChunkCallback;
+ close?: WritableStreamDefaultControllerCloseCallback;
+ start?: WritableStreamDefaultControllerStartCallback;
+ type?: undefined;
+ write?: WritableStreamDefaultControllerWriteCallback;
+}
+
+interface UnderlyingSource {
+ cancel?: ReadableStreamErrorCallback;
+ pull?: ReadableStreamDefaultControllerCallback;
+ start?: ReadableStreamDefaultControllerCallback;
+ type?: undefined;
}
interface VRDisplayEventInit extends EventInit {
@@ -1581,6 +1615,12 @@ interface WheelEventInit extends MouseEventInit {
deltaZ?: number;
}
+interface WorkerOptions {
+ credentials?: RequestCredentials;
+ name?: string;
+ type?: WorkerType;
+}
+
interface WorkletOptions {
credentials?: RequestCredentials;
}
@@ -1590,18 +1630,12 @@ interface EventListener {
}
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;
+ drawArraysInstancedANGLE(mode: GLenum, first: GLint, count: GLsizei, primcount: GLsizei): void;
+ drawElementsInstancedANGLE(mode: GLenum, count: GLsizei, type: GLenum, offset: GLintptr, primcount: GLsizei): void;
+ vertexAttribDivisorANGLE(index: GLuint, divisor: GLuint): void;
+ readonly VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE: GLenum;
}
-declare var ANGLE_instanced_arrays: {
- prototype: ANGLE_instanced_arrays;
- new(): ANGLE_instanced_arrays;
- readonly VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE: number;
-};
-
interface AbortController {
/**
* Returns the AbortSignal object associated with this object.
@@ -2188,7 +2222,7 @@ declare var Blob: {
};
interface Body {
- readonly body: ReadableStream | null;
+ readonly body: ReadableStream | null;
readonly bodyUsed: boolean;
arrayBuffer(): Promise;
blob(): Promise;
@@ -2233,14 +2267,14 @@ interface BroadcastChannelEventMap {
messageerror: MessageEvent;
}
-interface ByteLengthQueuingStrategy {
+interface ByteLengthQueuingStrategy extends QueuingStrategy {
highWaterMark: number;
- size(chunk?: any): number;
+ size(chunk: ArrayBufferView): number;
}
declare var ByteLengthQueuingStrategy: {
prototype: ByteLengthQueuingStrategy;
- new(strategy: QueuingStrategy): ByteLengthQueuingStrategy;
+ new(options: { highWaterMark: number }): ByteLengthQueuingStrategy;
};
interface CDATASection extends Text {
@@ -2403,15 +2437,15 @@ interface CSSStyleDeclaration {
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;
+ animation: string;
+ animationDelay: string;
+ animationDirection: string;
+ animationDuration: string;
+ animationFillMode: string;
+ animationIterationCount: string;
+ animationName: string;
+ animationPlayState: string;
+ animationTimingFunction: string;
backfaceVisibility: string | null;
background: string | null;
backgroundAttachment: string | null;
@@ -2654,6 +2688,7 @@ interface CSSStyleDeclaration {
rubyOverhang: string | null;
rubyPosition: string | null;
scale: string | null;
+ scrollBehavior: string;
stopColor: string | null;
stopOpacity: string | null;
stroke: string | null;
@@ -2679,50 +2714,79 @@ interface CSSStyleDeclaration {
textTransform: string | null;
textUnderlinePosition: string | null;
top: string | null;
- touchAction: string | null;
+ touchAction: string;
transform: string | null;
transformOrigin: string | null;
transformStyle: string | null;
- transition: string | null;
- transitionDelay: string | null;
- transitionDuration: string | null;
- transitionProperty: string | null;
- transitionTimingFunction: string | null;
+ transition: string;
+ transitionDelay: string;
+ transitionDuration: string;
+ transitionProperty: string;
+ transitionTimingFunction: string;
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;
+ /** @deprecated */
+ webkitAlignContent: string;
+ /** @deprecated */
+ webkitAlignItems: string;
+ /** @deprecated */
+ webkitAlignSelf: string;
+ /** @deprecated */
+ webkitAnimation: string;
+ /** @deprecated */
+ webkitAnimationDelay: string;
+ /** @deprecated */
+ webkitAnimationDirection: string;
+ /** @deprecated */
+ webkitAnimationDuration: string;
+ /** @deprecated */
+ webkitAnimationFillMode: string;
+ /** @deprecated */
+ webkitAnimationIterationCount: string;
+ /** @deprecated */
+ webkitAnimationName: string;
+ /** @deprecated */
+ webkitAnimationPlayState: string;
+ /** @deprecated */
+ webkitAnimationTimingFunction: string;
+ /** @deprecated */
+ webkitAppearance: string;
+ /** @deprecated */
+ webkitBackfaceVisibility: string;
+ /** @deprecated */
+ webkitBackgroundClip: string;
+ /** @deprecated */
+ webkitBackgroundOrigin: string;
+ /** @deprecated */
+ webkitBackgroundSize: string;
+ /** @deprecated */
+ webkitBorderBottomLeftRadius: string;
+ /** @deprecated */
+ webkitBorderBottomRightRadius: string;
webkitBorderImage: string | null;
- webkitBorderRadius: string | null;
- webkitBorderTopLeftRadius: string | null;
- webkitBorderTopRightRadius: string | null;
- webkitBoxAlign: string | null;
+ /** @deprecated */
+ webkitBorderRadius: string;
+ /** @deprecated */
+ webkitBorderTopLeftRadius: string;
+ /** @deprecated */
+ webkitBorderTopRightRadius: string;
+ /** @deprecated */
+ webkitBoxAlign: string;
webkitBoxDirection: string | null;
- webkitBoxFlex: string | null;
- webkitBoxOrdinalGroup: string | null;
+ /** @deprecated */
+ webkitBoxFlex: string;
+ /** @deprecated */
+ webkitBoxOrdinalGroup: string;
webkitBoxOrient: string | null;
- webkitBoxPack: string | null;
- webkitBoxSizing: string | null;
+ /** @deprecated */
+ webkitBoxPack: string;
+ /** @deprecated */
+ webkitBoxShadow: string;
+ /** @deprecated */
+ webkitBoxSizing: string;
webkitColumnBreakAfter: string | null;
webkitColumnBreakBefore: string | null;
webkitColumnBreakInside: string | null;
@@ -2735,32 +2799,85 @@ interface CSSStyleDeclaration {
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;
+ /** @deprecated */
+ webkitFilter: string;
+ /** @deprecated */
+ webkitFlex: string;
+ /** @deprecated */
+ webkitFlexBasis: string;
+ /** @deprecated */
+ webkitFlexDirection: string;
+ /** @deprecated */
+ webkitFlexFlow: string;
+ /** @deprecated */
+ webkitFlexGrow: string;
+ /** @deprecated */
+ webkitFlexShrink: string;
+ /** @deprecated */
+ webkitFlexWrap: string;
+ /** @deprecated */
+ webkitJustifyContent: string;
+ /** @deprecated */
+ webkitMask: string;
+ /** @deprecated */
+ webkitMaskBoxImage: string;
+ /** @deprecated */
+ webkitMaskBoxImageOutset: string;
+ /** @deprecated */
+ webkitMaskBoxImageRepeat: string;
+ /** @deprecated */
+ webkitMaskBoxImageSlice: string;
+ /** @deprecated */
+ webkitMaskBoxImageSource: string;
+ /** @deprecated */
+ webkitMaskBoxImageWidth: string;
+ /** @deprecated */
+ webkitMaskClip: string;
+ /** @deprecated */
+ webkitMaskComposite: string;
+ /** @deprecated */
+ webkitMaskImage: string;
+ /** @deprecated */
+ webkitMaskOrigin: string;
+ /** @deprecated */
+ webkitMaskPosition: string;
+ /** @deprecated */
+ webkitMaskRepeat: string;
+ /** @deprecated */
+ webkitMaskSize: string;
+ /** @deprecated */
+ webkitOrder: string;
+ /** @deprecated */
+ webkitPerspective: string;
+ /** @deprecated */
+ webkitPerspectiveOrigin: string;
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;
+ /** @deprecated */
+ webkitTextFillColor: string;
+ /** @deprecated */
+ webkitTextSizeAdjust: string;
+ /** @deprecated */
+ webkitTextStroke: string;
+ /** @deprecated */
+ webkitTextStrokeColor: string;
+ /** @deprecated */
+ webkitTextStrokeWidth: string;
+ /** @deprecated */
+ webkitTransform: string;
+ /** @deprecated */
+ webkitTransformOrigin: string;
+ /** @deprecated */
+ webkitTransformStyle: string;
+ /** @deprecated */
+ webkitTransition: string;
+ /** @deprecated */
+ webkitTransitionDelay: string;
+ /** @deprecated */
+ webkitTransitionDuration: string;
+ /** @deprecated */
+ webkitTransitionProperty: string;
+ /** @deprecated */
+ webkitTransitionTimingFunction: string;
webkitUserModify: string | null;
webkitUserSelect: string | null;
webkitWritingMode: string | null;
@@ -3241,14 +3358,14 @@ interface Coordinates {
readonly speed: number | null;
}
-interface CountQueuingStrategy {
+interface CountQueuingStrategy extends QueuingStrategy {
highWaterMark: number;
- size(): number;
+ size(chunk: any): 1;
}
declare var CountQueuingStrategy: {
prototype: CountQueuingStrategy;
- new(strategy: QueuingStrategy): CountQueuingStrategy;
+ new(options: { highWaterMark: number }): CountQueuingStrategy;
};
interface Crypto {
@@ -4004,7 +4121,7 @@ interface Document extends Node, NonElementParentNode, DocumentOrShadowRoot, Par
/**
* Gets a reference to the root node of the document.
*/
- readonly documentElement: HTMLElement | null;
+ readonly documentElement: HTMLElement;
/**
* Returns document's URL.
*/
@@ -4036,7 +4153,7 @@ interface Document extends Node, NonElementParentNode, DocumentOrShadowRoot, Par
/**
* Returns the head element.
*/
- readonly head: HTMLHeadElement | null;
+ readonly head: HTMLHeadElement;
readonly hidden: boolean;
/**
* Retrieves a collection, in source order, of img objects in the document.
@@ -4066,7 +4183,7 @@ interface Document extends Node, NonElementParentNode, DocumentOrShadowRoot, Par
/**
* Contains information about the current URL.
*/
- location: Location | null;
+ location: Location;
onfullscreenchange: ((this: Document, ev: Event) => any) | null;
onfullscreenerror: ((this: Document, ev: Event) => any) | null;
/**
@@ -4116,6 +4233,7 @@ interface Document extends Node, NonElementParentNode, DocumentOrShadowRoot, Par
/** @deprecated */
captureEvents(): void;
caretPositionFromPoint(x: number, y: number): CaretPosition | null;
+ /** @deprecated */
caretRangeFromPoint(x: number, y: number): Range;
/** @deprecated */
clear(): void;
@@ -4169,6 +4287,7 @@ interface Document extends Node, NonElementParentNode, DocumentOrShadowRoot, Par
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: "cursor"): SVGCursorElement;
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;
@@ -4341,7 +4460,9 @@ interface Document extends Node, NonElementParentNode, DocumentOrShadowRoot, Par
* @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 | null, entityReferenceExpansion?: boolean): TreeWalker;
+ createTreeWalker(root: Node, whatToShow?: number, filter?: NodeFilter | null): TreeWalker;
+ /** @deprecated */
+ createTreeWalker(root: Node, whatToShow: number, filter: NodeFilter | null, entityReferenceExpansion?: boolean): TreeWalker;
/**
* Returns the element for the specified x coordinate and the specified y coordinate.
* @param x The x-offset
@@ -4349,7 +4470,7 @@ interface Document extends Node, NonElementParentNode, DocumentOrShadowRoot, Par
*/
elementFromPoint(x: number, y: number): Element | null;
elementsFromPoint(x: number, y: number): Element[];
- evaluate(expression: string, contextNode: Node, resolver: XPathNSResolver | null, type: number, result: XPathResult | null): XPathResult;
+ evaluate(expression: string, contextNode: Node, resolver: XPathNSResolver | ((prefix: string) => string | null) | 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.
@@ -4570,6 +4691,9 @@ interface DocumentOrShadowRoot {
* 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;
+ caretPositionFromPoint(x: number, y: number): CaretPosition | null;
+ /** @deprecated */
+ caretRangeFromPoint(x: number, y: number): Range;
elementFromPoint(x: number, y: number): Element | null;
elementsFromPoint(x: number, y: number): Element[];
getSelection(): Selection | null;
@@ -4621,35 +4745,28 @@ declare var DynamicsCompressorNode: {
};
interface EXT_blend_minmax {
- readonly MAX_EXT: number;
- readonly MIN_EXT: number;
+ readonly MAX_EXT: GLenum;
+ readonly MIN_EXT: GLenum;
}
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;
+ readonly FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING_EXT: GLenum;
+ readonly SRGB8_ALPHA8_EXT: GLenum;
+ readonly SRGB_ALPHA_EXT: GLenum;
+ readonly SRGB_EXT: GLenum;
}
interface EXT_shader_texture_lod {
}
interface EXT_texture_filter_anisotropic {
- readonly MAX_TEXTURE_MAX_ANISOTROPY_EXT: number;
- readonly TEXTURE_MAX_ANISOTROPY_EXT: number;
+ readonly MAX_TEXTURE_MAX_ANISOTROPY_EXT: GLenum;
+ readonly TEXTURE_MAX_ANISOTROPY_EXT: GLenum;
}
-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 {
"fullscreenchange": Event;
"fullscreenerror": Event;
@@ -4867,6 +4984,7 @@ interface Event {
*/
readonly isTrusted: boolean;
returnValue: boolean;
+ /** @deprecated */
readonly srcElement: Element | null;
/**
* Returns the object to which event is dispatched (its target).
@@ -5033,7 +5151,7 @@ interface FileReader extends EventTarget {
readAsArrayBuffer(blob: Blob): void;
readAsBinaryString(blob: Blob): void;
readAsDataURL(blob: Blob): void;
- readAsText(blob: Blob, label?: string): void;
+ readAsText(blob: Blob, encoding?: string): void;
readonly DONE: number;
readonly EMPTY: number;
readonly LOADING: number;
@@ -6520,6 +6638,7 @@ interface HTMLIFrameElement extends HTMLElement, GetSVGDocument {
* Sets or retrieves the frame name.
*/
name: string;
+ readonly referrerPolicy: ReferrerPolicy;
readonly sandbox: DOMTokenList;
/**
* Sets or retrieves whether the frame can be scrolled.
@@ -7155,7 +7274,7 @@ interface HTMLMediaElement extends HTMLElement {
*/
readonly seekable: TimeRanges;
/**
- * Gets a flag that indicates whether the the client is currently moving to a new playback position in the media resource.
+ * Gets a flag that indicates whether the client is currently moving to a new playback position in the media resource.
*/
readonly seeking: boolean;
/**
@@ -9304,7 +9423,9 @@ interface Location {
/**
* Reloads the current page.
*/
- reload(forcedReload?: boolean): void;
+ reload(): void;
+ /** @deprecated */
+ reload(forcedReload: boolean): void;
/**
* Removes the current page from the session history and navigates to the given URL.
*/
@@ -9725,7 +9846,7 @@ interface MediaQueryList extends EventTarget {
/** @deprecated */
addListener(listener: ((this: MediaQueryList, ev: MediaQueryListEvent) => any) | null): void;
/** @deprecated */
- removeListener(listener: EventListenerOrEventListenerObject | null): void;
+ removeListener(listener: ((this: MediaQueryList, ev: MediaQueryListEvent) => any) | null): void;
addEventListener(type: K, listener: (this: MediaQueryList, ev: MediaQueryListEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener(type: K, listener: (this: MediaQueryList, ev: MediaQueryListEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
@@ -10278,6 +10399,7 @@ interface Node extends EventTarget {
* Returns the last child.
*/
readonly lastChild: ChildNode | null;
+ /** @deprecated */
readonly namespaceURI: string | null;
/**
* Returns the next sibling.
@@ -10550,61 +10672,29 @@ declare var Notification: {
interface OES_element_index_uint {
}
-declare var OES_element_index_uint: {
- prototype: OES_element_index_uint;
- new(): OES_element_index_uint;
-};
-
interface OES_standard_derivatives {
- readonly FRAGMENT_SHADER_DERIVATIVE_HINT_OES: number;
+ readonly FRAGMENT_SHADER_DERIVATIVE_HINT_OES: GLenum;
}
-declare var OES_standard_derivatives: {
- prototype: OES_standard_derivatives;
- new(): OES_standard_derivatives;
- readonly FRAGMENT_SHADER_DERIVATIVE_HINT_OES: number;
-};
-
interface OES_texture_float {
}
-declare var OES_texture_float: {
- prototype: OES_texture_float;
- new(): OES_texture_float;
-};
-
interface OES_texture_float_linear {
}
-declare var OES_texture_float_linear: {
- prototype: OES_texture_float_linear;
- new(): OES_texture_float_linear;
-};
-
interface OES_texture_half_float {
- readonly HALF_FLOAT_OES: number;
+ readonly HALF_FLOAT_OES: GLenum;
}
-declare var OES_texture_half_float: {
- prototype: OES_texture_half_float;
- new(): OES_texture_half_float;
- readonly HALF_FLOAT_OES: number;
-};
-
interface OES_texture_half_float_linear {
}
-declare var OES_texture_half_float_linear: {
- prototype: OES_texture_half_float_linear;
- new(): OES_texture_half_float_linear;
-};
-
interface OES_vertex_array_object {
- readonly VERTEX_ARRAY_BINDING_OES: number;
- bindVertexArrayOES(arrayObject: WebGLVertexArrayObjectOES): void;
- createVertexArrayOES(): WebGLVertexArrayObjectOES;
- deleteVertexArrayOES(arrayObject: WebGLVertexArrayObjectOES): void;
- isVertexArrayOES(value: any): value is WebGLVertexArrayObjectOES;
+ bindVertexArrayOES(arrayObject: WebGLVertexArrayObjectOES | null): void;
+ createVertexArrayOES(): WebGLVertexArrayObjectOES | null;
+ deleteVertexArrayOES(arrayObject: WebGLVertexArrayObjectOES | null): void;
+ isVertexArrayOES(arrayObject: WebGLVertexArrayObjectOES | null): GLboolean;
+ readonly VERTEX_ARRAY_BINDING_OES: GLenum;
}
interface OfflineAudioCompletionEvent extends Event {
@@ -11794,20 +11884,70 @@ declare var Range: {
readonly START_TO_START: number;
};
-interface ReadableStream {
+interface ReadableByteStreamController {
+ readonly byobRequest: ReadableStreamBYOBRequest | undefined;
+ readonly desiredSize: number | null;
+ close(): void;
+ enqueue(chunk: ArrayBufferView): void;
+ error(error?: any): void;
+}
+
+interface ReadableStream {
readonly locked: boolean;
- cancel(): Promise;
- getReader(): ReadableStreamReader;
+ cancel(reason?: any): Promise;
+ getReader(options: { mode: "byob" }): ReadableStreamBYOBReader;
+ getReader(): ReadableStreamDefaultReader;
+ pipeThrough({ writable, readable }: { writable: WritableStream, readable: ReadableStream }, options?: PipeOptions): ReadableStream;
+ pipeTo(dest: WritableStream, options?: PipeOptions): Promise;
+ tee(): [ReadableStream, ReadableStream];
}
declare var ReadableStream: {
prototype: ReadableStream;
- new(): ReadableStream;
+ new(underlyingSource: UnderlyingByteSource, strategy?: { highWaterMark?: number, size?: undefined }): ReadableStream;
+ new(underlyingSource?: UnderlyingSource, strategy?: QueuingStrategy): ReadableStream;
};
-interface ReadableStreamReader {
+interface ReadableStreamBYOBReader {
+ readonly closed: Promise;
+ cancel(reason?: any): Promise;
+ read(view: T): Promise>;
+ releaseLock(): void;
+}
+
+declare var ReadableStreamBYOBReader: {
+ prototype: ReadableStreamBYOBReader;
+ new(stream: ReadableStream): ReadableStreamBYOBReader;
+};
+
+interface ReadableStreamBYOBRequest {
+ readonly view: ArrayBufferView;
+ respond(bytesWritten: number): void;
+ respondWithNewView(view: ArrayBufferView): void;
+}
+
+interface ReadableStreamDefaultController {
+ readonly desiredSize: number | null;
+ close(): void;
+ enqueue(chunk: R): void;
+ error(error?: any): void;
+}
+
+interface ReadableStreamDefaultReader {
+ readonly closed: Promise;
+ cancel(reason?: any): Promise;
+ read(): Promise>;
+ releaseLock(): void;
+}
+
+interface ReadableStreamReadResult {
+ done: boolean;
+ value: T;
+}
+
+interface ReadableStreamReader {
cancel(): Promise;
- read(): Promise;
+ read(): Promise>;
releaseLock(): void;
}
@@ -11819,7 +11959,7 @@ declare var ReadableStreamReader: {
interface Request extends Body {
/**
* Returns the cache mode associated with request, which is a string indicating
- * how the the request will interact with the browser's cache when fetching.
+ * how the request will interact with the browser's cache when fetching.
*/
readonly cache: RequestCache;
/**
@@ -11957,6 +12097,42 @@ declare var SVGAngle: {
readonly SVG_ANGLETYPE_UNSPECIFIED: number;
};
+interface SVGAnimateElement extends SVGAnimationElement {
+ addEventListener(type: K, listener: (this: SVGAnimateElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
+ addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
+ removeEventListener(type: K, listener: (this: SVGAnimateElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
+ removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
+}
+
+declare var SVGAnimateElement: {
+ prototype: SVGAnimateElement;
+ new(): SVGAnimateElement;
+};
+
+interface SVGAnimateMotionElement extends SVGAnimationElement {
+ addEventListener(type: K, listener: (this: SVGAnimateMotionElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
+ addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
+ removeEventListener(type: K, listener: (this: SVGAnimateMotionElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
+ removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
+}
+
+declare var SVGAnimateMotionElement: {
+ prototype: SVGAnimateMotionElement;
+ new(): SVGAnimateMotionElement;
+};
+
+interface SVGAnimateTransformElement extends SVGAnimationElement {
+ addEventListener(type: K, listener: (this: SVGAnimateTransformElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
+ addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
+ removeEventListener(type: K, listener: (this: SVGAnimateTransformElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
+ removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
+}
+
+declare var SVGAnimateTransformElement: {
+ prototype: SVGAnimateTransformElement;
+ new(): SVGAnimateTransformElement;
+};
+
interface SVGAnimatedAngle {
readonly animVal: SVGAngle;
readonly baseVal: SVGAngle;
@@ -12082,6 +12258,22 @@ declare var SVGAnimatedTransformList: {
new(): SVGAnimatedTransformList;
};
+interface SVGAnimationElement extends SVGElement {
+ readonly targetElement: SVGElement;
+ getCurrentTime(): number;
+ getSimpleDuration(): number;
+ getStartTime(): number;
+ addEventListener(type: K, listener: (this: SVGAnimationElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
+ addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
+ removeEventListener(type: K, listener: (this: SVGAnimationElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
+ removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
+}
+
+declare var SVGAnimationElement: {
+ prototype: SVGAnimationElement;
+ new(): SVGAnimationElement;
+};
+
interface SVGCircleElement extends SVGGraphicsElement {
readonly cx: SVGAnimatedLength;
readonly cy: SVGAnimatedLength;
@@ -12141,6 +12333,20 @@ declare var SVGComponentTransferFunctionElement: {
readonly SVG_FECOMPONENTTRANSFER_TYPE_UNKNOWN: number;
};
+interface SVGCursorElement extends SVGElement {
+ readonly x: SVGAnimatedLength;
+ readonly y: SVGAnimatedLength;
+ addEventListener(type: K, listener: (this: SVGCursorElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
+ addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
+ removeEventListener(type: K, listener: (this: SVGCursorElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
+ removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
+}
+
+declare var SVGCursorElement: {
+ prototype: SVGCursorElement;
+ new(): SVGCursorElement;
+};
+
interface SVGDefsElement extends SVGGraphicsElement {
addEventListener(type: K, listener: (this: SVGDefsElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
@@ -14798,6 +15004,23 @@ declare var TrackEvent: {
new(typeArg: string, eventInitDict?: TrackEventInit): TrackEvent;
};
+interface TransformStream {
+ readonly readable: ReadableStream;
+ readonly writable: WritableStream;
+}
+
+declare var TransformStream: {
+ prototype: TransformStream;
+ new(transformer?: Transformer, writableStrategy?: QueuingStrategy, readableStrategy?: QueuingStrategy): TransformStream;
+};
+
+interface TransformStreamDefaultController {
+ readonly desiredSize: number | null;
+ enqueue(chunk: O): void;
+ error(reason?: any): void;
+ terminate(): void;
+}
+
interface TransitionEvent extends Event {
readonly elapsedTime: number;
readonly propertyName: string;
@@ -15115,129 +15338,106 @@ declare var VideoTrackList: {
};
interface WEBGL_color_buffer_float {
- readonly FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE_EXT: number;
- readonly RGB32F_EXT: number;
- readonly RGBA32F_EXT: number;
- readonly UNSIGNED_NORMALIZED_EXT: number;
+ readonly FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE_EXT: GLenum;
+ readonly RGBA32F_EXT: GLenum;
+ readonly UNSIGNED_NORMALIZED_EXT: GLenum;
}
interface WEBGL_compressed_texture_astc {
- readonly COMPRESSED_RGBA_ASTC_10x10_KHR: number;
- readonly COMPRESSED_RGBA_ASTC_10x5_KHR: number;
- readonly COMPRESSED_RGBA_ASTC_10x6_KHR: number;
- readonly COMPRESSED_RGBA_ASTC_10x8_KHR: number;
- readonly COMPRESSED_RGBA_ASTC_12x10_KHR: number;
- readonly COMPRESSED_RGBA_ASTC_12x12_KHR: number;
- readonly COMPRESSED_RGBA_ASTC_4x4_KHR: number;
- readonly COMPRESSED_RGBA_ASTC_5x4_KHR: number;
- readonly COMPRESSED_RGBA_ASTC_5x5_KHR: number;
- readonly COMPRESSED_RGBA_ASTC_6x5_KHR: number;
- readonly COMPRESSED_RGBA_ASTC_6x6_KHR: number;
- readonly COMPRESSED_RGBA_ASTC_8x5_KHR: number;
- readonly COMPRESSED_RGBA_ASTC_8x6_KHR: number;
- readonly COMPRESSED_RGBA_ASTC_8x8_KHR: number;
- readonly COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR: number;
- readonly COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR: number;
- readonly COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR: number;
- readonly COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR: number;
- readonly COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR: number;
- readonly COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR: number;
- readonly COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR: number;
- readonly COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR: number;
- readonly COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR: number;
- readonly COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR: number;
- readonly COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR: number;
- readonly COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR: number;
- readonly COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR: number;
- readonly COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR: number;
getSupportedProfiles(): string[];
+ readonly COMPRESSED_RGBA_ASTC_10x10_KHR: GLenum;
+ readonly COMPRESSED_RGBA_ASTC_10x5_KHR: GLenum;
+ readonly COMPRESSED_RGBA_ASTC_10x6_KHR: GLenum;
+ readonly COMPRESSED_RGBA_ASTC_10x8_KHR: GLenum;
+ readonly COMPRESSED_RGBA_ASTC_12x10_KHR: GLenum;
+ readonly COMPRESSED_RGBA_ASTC_12x12_KHR: GLenum;
+ readonly COMPRESSED_RGBA_ASTC_4x4_KHR: GLenum;
+ readonly COMPRESSED_RGBA_ASTC_5x4_KHR: GLenum;
+ readonly COMPRESSED_RGBA_ASTC_5x5_KHR: GLenum;
+ readonly COMPRESSED_RGBA_ASTC_6x5_KHR: GLenum;
+ readonly COMPRESSED_RGBA_ASTC_6x6_KHR: GLenum;
+ readonly COMPRESSED_RGBA_ASTC_8x5_KHR: GLenum;
+ readonly COMPRESSED_RGBA_ASTC_8x6_KHR: GLenum;
+ readonly COMPRESSED_RGBA_ASTC_8x8_KHR: GLenum;
+ readonly COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR: GLenum;
+ readonly COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR: GLenum;
+ readonly COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR: GLenum;
+ readonly COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR: GLenum;
+ readonly COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR: GLenum;
+ readonly COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR: GLenum;
+ readonly COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR: GLenum;
+ readonly COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR: GLenum;
+ readonly COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR: GLenum;
+ readonly COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR: GLenum;
+ readonly COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR: GLenum;
+ readonly COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR: GLenum;
+ readonly COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR: GLenum;
+ readonly COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR: GLenum;
}
interface WEBGL_compressed_texture_s3tc {
- readonly COMPRESSED_RGBA_S3TC_DXT1_EXT: number;
- readonly COMPRESSED_RGBA_S3TC_DXT3_EXT: number;
- readonly COMPRESSED_RGBA_S3TC_DXT5_EXT: number;
- readonly COMPRESSED_RGB_S3TC_DXT1_EXT: number;
+ readonly COMPRESSED_RGBA_S3TC_DXT1_EXT: GLenum;
+ readonly COMPRESSED_RGBA_S3TC_DXT3_EXT: GLenum;
+ readonly COMPRESSED_RGBA_S3TC_DXT5_EXT: GLenum;
+ readonly COMPRESSED_RGB_S3TC_DXT1_EXT: GLenum;
}
-declare var WEBGL_compressed_texture_s3tc: {
- prototype: WEBGL_compressed_texture_s3tc;
- new(): WEBGL_compressed_texture_s3tc;
- readonly COMPRESSED_RGBA_S3TC_DXT1_EXT: number;
- readonly COMPRESSED_RGBA_S3TC_DXT3_EXT: number;
- readonly COMPRESSED_RGBA_S3TC_DXT5_EXT: number;
- readonly COMPRESSED_RGB_S3TC_DXT1_EXT: number;
-};
-
interface WEBGL_compressed_texture_s3tc_srgb {
- readonly COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT: number;
- readonly COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT: number;
- readonly COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT: number;
- readonly COMPRESSED_SRGB_S3TC_DXT1_EXT: number;
+ readonly COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT: GLenum;
+ readonly COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT: GLenum;
+ readonly COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT: GLenum;
+ readonly COMPRESSED_SRGB_S3TC_DXT1_EXT: GLenum;
}
interface WEBGL_debug_renderer_info {
- readonly UNMASKED_RENDERER_WEBGL: number;
- readonly UNMASKED_VENDOR_WEBGL: number;
+ readonly UNMASKED_RENDERER_WEBGL: GLenum;
+ readonly UNMASKED_VENDOR_WEBGL: GLenum;
}
-declare var WEBGL_debug_renderer_info: {
- prototype: WEBGL_debug_renderer_info;
- new(): WEBGL_debug_renderer_info;
- readonly UNMASKED_RENDERER_WEBGL: number;
- readonly UNMASKED_VENDOR_WEBGL: number;
-};
-
interface WEBGL_debug_shaders {
getTranslatedShaderSource(shader: WebGLShader): string;
}
interface WEBGL_depth_texture {
- readonly UNSIGNED_INT_24_8_WEBGL: number;
+ readonly UNSIGNED_INT_24_8_WEBGL: GLenum;
}
-declare var WEBGL_depth_texture: {
- prototype: WEBGL_depth_texture;
- new(): WEBGL_depth_texture;
- readonly UNSIGNED_INT_24_8_WEBGL: number;
-};
-
interface WEBGL_draw_buffers {
- readonly COLOR_ATTACHMENT0_WEBGL: number;
- readonly COLOR_ATTACHMENT10_WEBGL: number;
- readonly COLOR_ATTACHMENT11_WEBGL: number;
- readonly COLOR_ATTACHMENT12_WEBGL: number;
- readonly COLOR_ATTACHMENT13_WEBGL: number;
- readonly COLOR_ATTACHMENT14_WEBGL: number;
- readonly COLOR_ATTACHMENT15_WEBGL: number;
- readonly COLOR_ATTACHMENT1_WEBGL: number;
- readonly COLOR_ATTACHMENT2_WEBGL: number;
- readonly COLOR_ATTACHMENT3_WEBGL: number;
- readonly COLOR_ATTACHMENT4_WEBGL: number;
- readonly COLOR_ATTACHMENT5_WEBGL: number;
- readonly COLOR_ATTACHMENT6_WEBGL: number;
- readonly COLOR_ATTACHMENT7_WEBGL: number;
- readonly COLOR_ATTACHMENT8_WEBGL: number;
- readonly COLOR_ATTACHMENT9_WEBGL: number;
- readonly DRAW_BUFFER0_WEBGL: number;
- readonly DRAW_BUFFER10_WEBGL: number;
- readonly DRAW_BUFFER11_WEBGL: number;
- readonly DRAW_BUFFER12_WEBGL: number;
- readonly DRAW_BUFFER13_WEBGL: number;
- readonly DRAW_BUFFER14_WEBGL: number;
- readonly DRAW_BUFFER15_WEBGL: number;
- readonly DRAW_BUFFER1_WEBGL: number;
- readonly DRAW_BUFFER2_WEBGL: number;
- readonly DRAW_BUFFER3_WEBGL: number;
- readonly DRAW_BUFFER4_WEBGL: number;
- readonly DRAW_BUFFER5_WEBGL: number;
- readonly DRAW_BUFFER6_WEBGL: number;
- readonly DRAW_BUFFER7_WEBGL: number;
- readonly DRAW_BUFFER8_WEBGL: number;
- readonly DRAW_BUFFER9_WEBGL: number;
- readonly MAX_COLOR_ATTACHMENTS_WEBGL: number;
- readonly MAX_DRAW_BUFFERS_WEBGL: number;
- drawBuffersWEBGL(buffers: number[]): void;
+ drawBuffersWEBGL(buffers: GLenum[]): void;
+ readonly COLOR_ATTACHMENT0_WEBGL: GLenum;
+ readonly COLOR_ATTACHMENT10_WEBGL: GLenum;
+ readonly COLOR_ATTACHMENT11_WEBGL: GLenum;
+ readonly COLOR_ATTACHMENT12_WEBGL: GLenum;
+ readonly COLOR_ATTACHMENT13_WEBGL: GLenum;
+ readonly COLOR_ATTACHMENT14_WEBGL: GLenum;
+ readonly COLOR_ATTACHMENT15_WEBGL: GLenum;
+ readonly COLOR_ATTACHMENT1_WEBGL: GLenum;
+ readonly COLOR_ATTACHMENT2_WEBGL: GLenum;
+ readonly COLOR_ATTACHMENT3_WEBGL: GLenum;
+ readonly COLOR_ATTACHMENT4_WEBGL: GLenum;
+ readonly COLOR_ATTACHMENT5_WEBGL: GLenum;
+ readonly COLOR_ATTACHMENT6_WEBGL: GLenum;
+ readonly COLOR_ATTACHMENT7_WEBGL: GLenum;
+ readonly COLOR_ATTACHMENT8_WEBGL: GLenum;
+ readonly COLOR_ATTACHMENT9_WEBGL: GLenum;
+ readonly DRAW_BUFFER0_WEBGL: GLenum;
+ readonly DRAW_BUFFER10_WEBGL: GLenum;
+ readonly DRAW_BUFFER11_WEBGL: GLenum;
+ readonly DRAW_BUFFER12_WEBGL: GLenum;
+ readonly DRAW_BUFFER13_WEBGL: GLenum;
+ readonly DRAW_BUFFER14_WEBGL: GLenum;
+ readonly DRAW_BUFFER15_WEBGL: GLenum;
+ readonly DRAW_BUFFER1_WEBGL: GLenum;
+ readonly DRAW_BUFFER2_WEBGL: GLenum;
+ readonly DRAW_BUFFER3_WEBGL: GLenum;
+ readonly DRAW_BUFFER4_WEBGL: GLenum;
+ readonly DRAW_BUFFER5_WEBGL: GLenum;
+ readonly DRAW_BUFFER6_WEBGL: GLenum;
+ readonly DRAW_BUFFER7_WEBGL: GLenum;
+ readonly DRAW_BUFFER8_WEBGL: GLenum;
+ readonly DRAW_BUFFER9_WEBGL: GLenum;
+ readonly MAX_COLOR_ATTACHMENTS_WEBGL: GLenum;
+ readonly MAX_DRAW_BUFFERS_WEBGL: GLenum;
}
interface WEBGL_lose_context {
@@ -16139,7 +16339,7 @@ declare var WebGLUniformLocation: {
new(): WebGLUniformLocation;
};
-interface WebGLVertexArrayObjectOES {
+interface WebGLVertexArrayObjectOES extends WebGLObject {
}
interface WebKitPoint {
@@ -16196,9 +16396,6 @@ interface WheelEvent extends MouseEvent {
readonly deltaX: number;
readonly deltaY: number;
readonly deltaZ: number;
- readonly wheelDelta: number;
- readonly wheelDeltaX: number;
- readonly wheelDeltaY: number;
getCurrentPoint(element: Element): void;
initWheelEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, viewArg: Window, detailArg: number, screenXArg: number, screenYArg: number, clientXArg: number, clientYArg: number, buttonArg: number, relatedTargetArg: EventTarget, modifiersListArg: string, deltaXArg: number, deltaYArg: number, deltaZArg: number, deltaMode: number): void;
readonly DOM_DELTA_LINE: number;
@@ -16545,7 +16742,7 @@ interface Worker extends EventTarget, AbstractWorker {
declare var Worker: {
prototype: Worker;
- new(stringUrl: string): Worker;
+ new(stringUrl: string, options?: WorkerOptions): Worker;
};
interface Worklet {
@@ -16557,41 +16754,31 @@ declare var Worklet: {
new(): Worklet;
};
-interface WritableStream {
+interface WritableStream {
readonly locked: boolean;
abort(reason?: any): Promise;
- getWriter(): WritableStreamDefaultWriter;
+ getWriter(): WritableStreamDefaultWriter;
}
declare var WritableStream: {
prototype: WritableStream;
- new(underlyingSink?: UnderlyingSink, strategy?: QueuingStrategy): WritableStream;
+ new(underlyingSink?: UnderlyingSink, strategy?: QueuingStrategy): WritableStream;
};
interface WritableStreamDefaultController {
error(error?: any): void;
}
-declare var WritableStreamDefaultController: {
- prototype: WritableStreamDefaultController;
- new(): WritableStreamDefaultController;
-};
-
-interface WritableStreamDefaultWriter {
+interface WritableStreamDefaultWriter {
readonly closed: Promise;
- readonly desiredSize: number;
+ readonly desiredSize: number | null;
readonly ready: Promise;
abort(reason?: any): Promise;
close(): Promise;
releaseLock(): void;
- write(chunk?: any): Promise;
+ write(chunk: W): Promise;
}
-declare var WritableStreamDefaultWriter: {
- prototype: WritableStreamDefaultWriter;
- new(): WritableStreamDefaultWriter;
-};
-
interface XMLDocument extends Document {
addEventListener(type: K, listener: (this: XMLDocument, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
@@ -16772,7 +16959,7 @@ declare var XMLSerializer: {
interface XPathEvaluator {
createExpression(expression: string, resolver: XPathNSResolver): XPathExpression;
createNSResolver(nodeResolver?: Node): XPathNSResolver;
- evaluate(expression: string, contextNode: Node, resolver: XPathNSResolver | null, type: number, result: XPathResult | null): XPathResult;
+ evaluate(expression: string, contextNode: Node, resolver: XPathNSResolver | ((prefix: string) => string | null) | null, type: number, result: XPathResult | null): XPathResult;
}
declare var XPathEvaluator: {
@@ -16790,7 +16977,7 @@ declare var XPathExpression: {
};
interface XPathNSResolver {
- lookupNamespaceURI(prefix: string): string;
+ lookupNamespaceURI(prefix: string): string | null;
}
declare var XPathNSResolver: {
@@ -16941,6 +17128,10 @@ interface PositionErrorCallback {
(positionError: PositionError): void;
}
+interface QueuingStrategySizeCallback {
+ (chunk: T): number;
+}
+
interface RTCPeerConnectionErrorCallback {
(error: DOMException): void;
}
@@ -16953,20 +17144,44 @@ interface RTCStatsCallback {
(report: RTCStatsReport): void;
}
+interface ReadableByteStreamControllerCallback {
+ (controller: ReadableByteStreamController): void | PromiseLike;
+}
+
+interface ReadableStreamDefaultControllerCallback {
+ (controller: ReadableStreamDefaultController): void | PromiseLike;
+}
+
+interface ReadableStreamErrorCallback {
+ (reason: any): void | PromiseLike;
+}
+
+interface TransformStreamDefaultControllerCallback {
+ (controller: TransformStreamDefaultController): void | PromiseLike;
+}
+
+interface TransformStreamDefaultControllerTransformCallback {
+ (chunk: I, controller: TransformStreamDefaultController): void | PromiseLike;
+}
+
interface VoidFunction {
(): void;
}
-interface WritableStreamChunkCallback {
- (chunk: any, controller: WritableStreamDefaultController): void;
+interface WritableStreamDefaultControllerCloseCallback {
+ (): void | PromiseLike;
}
-interface WritableStreamDefaultControllerCallback {
- (controller: WritableStreamDefaultController): void;
+interface WritableStreamDefaultControllerStartCallback {
+ (controller: WritableStreamDefaultController): void | PromiseLike;
+}
+
+interface WritableStreamDefaultControllerWriteCallback {
+ (chunk: W, controller: WritableStreamDefaultController): void | PromiseLike;
}
interface WritableStreamErrorCallback {
- (reason: string): void;
+ (reason: any): void | PromiseLike;
}
interface HTMLElementTagNameMap {
@@ -17600,7 +17815,7 @@ declare function removeEventListener(type: K, li
declare function removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
type BlobPart = BufferSource | Blob | string;
type HeadersInit = Headers | string[][] | Record;
-type BodyInit = Blob | BufferSource | FormData | URLSearchParams | ReadableStream | string;
+type BodyInit = Blob | BufferSource | FormData | URLSearchParams | ReadableStream | string;
type RequestInfo = Request | string;
type DOMHighResTimeStamp = number;
type RenderingContext = CanvasRenderingContext2D | ImageBitmapRenderingContext | WebGLRenderingContext;
@@ -17646,6 +17861,7 @@ type IDBKeyPath = string;
type Transferable = ArrayBuffer | MessagePort | ImageBitmap;
type RTCIceGatherCandidate = RTCIceCandidateDictionary | RTCIceCandidateComplete;
type RTCTransport = RTCDtlsTransport | RTCSrtpSdesTransport;
+/** @deprecated */
type MouseWheelEvent = WheelEvent;
type WindowProxy = Window;
type AlignSetting = "start" | "center" | "end" | "left" | "right";
@@ -17668,11 +17884,13 @@ type ChannelCountMode = "max" | "clamped-max" | "explicit";
type ChannelInterpretation = "speakers" | "discrete";
type ClientTypes = "window" | "worker" | "sharedworker" | "all";
type CompositeOperation = "replace" | "add" | "accumulate";
+type CompositeOperationOrAuto = "replace" | "add" | "accumulate" | "auto";
type DirectionSetting = "" | "rl" | "lr";
type DisplayCaptureSurfaceType = "monitor" | "window" | "application" | "browser";
type DistanceModelType = "linear" | "inverse" | "exponential";
type DocumentReadyState = "loading" | "interactive" | "complete";
type EndOfStreamError = "network" | "decode";
+type EndingType = "transparent" | "native";
type FillMode = "none" | "forwards" | "backwards" | "both" | "auto";
type GamepadHand = "" | "left" | "right";
type GamepadHapticActuatorType = "vibration";
@@ -17751,7 +17969,7 @@ type RequestMode = "navigate" | "same-origin" | "no-cors" | "cors";
type RequestRedirect = "follow" | "error" | "manual";
type ResponseType = "basic" | "cors" | "default" | "error" | "opaque" | "opaqueredirect";
type ScopedCredentialType = "ScopedCred";
-type ScrollBehavior = "auto" | "instant" | "smooth";
+type ScrollBehavior = "auto" | "smooth";
type ScrollLogicalPosition = "start" | "center" | "end" | "nearest";
type ScrollRestoration = "auto" | "manual";
type ScrollSetting = "" | "up";
diff --git a/lib/lib.es2015.collection.d.ts b/lib/lib.es2015.collection.d.ts
index c6a02b32cc2..2c19919dd20 100644
--- a/lib/lib.es2015.collection.d.ts
+++ b/lib/lib.es2015.collection.d.ts
@@ -29,7 +29,8 @@ interface Map {
}
interface MapConstructor {
- new (entries?: ReadonlyArray<[K, V]> | null): Map;
+ new(): Map;
+ new(entries?: ReadonlyArray<[K, V]> | null): Map;
readonly prototype: Map;
}
declare var Map: MapConstructor;
diff --git a/lib/lib.es2015.iterable.d.ts b/lib/lib.es2015.iterable.d.ts
index 793f587059b..43b021a197d 100644
--- a/lib/lib.es2015.iterable.d.ts
+++ b/lib/lib.es2015.iterable.d.ts
@@ -155,7 +155,7 @@ interface MapConstructor {
interface WeakMap { }
interface WeakMapConstructor {
- new (iterable: Iterable<[K, V]>): WeakMap;
+ new (iterable: Iterable<[K, V]>): WeakMap;
}
interface Set {
diff --git a/lib/lib.es2015.promise.d.ts b/lib/lib.es2015.promise.d.ts
index 9f27b7b59ab..002d69165fd 100644
--- a/lib/lib.es2015.promise.d.ts
+++ b/lib/lib.es2015.promise.d.ts
@@ -27,7 +27,7 @@ interface PromiseConstructor {
/**
* Creates a new Promise.
* @param executor A callback used to initialize the promise. This callback is passed two arguments:
- * a resolve callback used resolve the promise with a value or the result of another promise,
+ * a resolve callback used to resolve the promise with a value or the result of another promise,
* and a reject callback used to reject the promise with a provided reason or error.
*/
new (executor: (resolve: (value?: T | PromiseLike) => void, reject: (reason?: any) => void) => void): Promise;
@@ -213,4 +213,4 @@ interface PromiseConstructor {
resolve(): Promise;
}
-declare var Promise: PromiseConstructor;
\ No newline at end of file
+declare var Promise: PromiseConstructor;
diff --git a/lib/lib.es2015.symbol.wellknown.d.ts b/lib/lib.es2015.symbol.wellknown.d.ts
index 922cbb35a82..400f70a7f4d 100644
--- a/lib/lib.es2015.symbol.wellknown.d.ts
+++ b/lib/lib.es2015.symbol.wellknown.d.ts
@@ -83,7 +83,7 @@ interface SymbolConstructor {
}
interface Symbol {
- readonly [Symbol.toStringTag]: "Symbol";
+ readonly [Symbol.toStringTag]: string;
}
interface Array {
@@ -127,23 +127,23 @@ interface Date {
}
interface Map {
- readonly [Symbol.toStringTag]: "Map";
+ readonly [Symbol.toStringTag]: string;
}
interface WeakMap {
- readonly [Symbol.toStringTag]: "WeakMap";
+ readonly [Symbol.toStringTag]: string;
}
interface Set {
- readonly [Symbol.toStringTag]: "Set";
+ readonly [Symbol.toStringTag]: string;
}
interface WeakSet {
- readonly [Symbol.toStringTag]: "WeakSet";
+ readonly [Symbol.toStringTag]: string;
}
interface JSON {
- readonly [Symbol.toStringTag]: "JSON";
+ readonly [Symbol.toStringTag]: string;
}
interface Function {
@@ -158,15 +158,15 @@ interface Function {
}
interface GeneratorFunction {
- readonly [Symbol.toStringTag]: "GeneratorFunction";
+ readonly [Symbol.toStringTag]: string;
}
interface Math {
- readonly [Symbol.toStringTag]: "Math";
+ readonly [Symbol.toStringTag]: string;
}
interface Promise {
- readonly [Symbol.toStringTag]: "Promise";
+ readonly [Symbol.toStringTag]: string;
}
interface PromiseConstructor {
@@ -261,11 +261,11 @@ interface String {
}
interface ArrayBuffer {
- readonly [Symbol.toStringTag]: "ArrayBuffer";
+ readonly [Symbol.toStringTag]: string;
}
interface DataView {
- readonly [Symbol.toStringTag]: "DataView";
+ readonly [Symbol.toStringTag]: string;
}
interface Int8Array {
diff --git a/lib/lib.es5.d.ts b/lib/lib.es5.d.ts
index 840fd682789..d1a9d6f0d2a 100644
--- a/lib/lib.es5.d.ts
+++ b/lib/lib.es5.d.ts
@@ -315,6 +315,66 @@ interface FunctionConstructor {
declare const Function: FunctionConstructor;
+interface CallableFunction extends Function {
+ /**
+ * Calls the function with the specified object as the this value and the elements of specified array as the arguments.
+ * @param thisArg The object to be used as the this object.
+ * @param args An array of argument values to be passed to the function.
+ */
+ apply(this: (this: T) => R, thisArg: T): R;
+ apply(this: (this: T, ...args: A) => R, thisArg: T, args: A): R;
+
+ /**
+ * Calls the function with the specified object as the this value and the specified rest arguments as the arguments.
+ * @param thisArg The object to be used as the this object.
+ * @param args Argument values to be passed to the function.
+ */
+ call(this: (this: T, ...args: A) => R, thisArg: T, ...args: A): R;
+
+ /**
+ * 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 The object to be used as the this object.
+ * @param args Arguments to bind to the parameters of the function.
+ */
+ bind(this: (this: T, ...args: A) => R, thisArg: T): (...args: A) => R;
+ bind(this: (this: T, arg0: A0, ...args: A) => R, thisArg: T, arg0: A0): (...args: A) => R;
+ bind(this: (this: T, arg0: A0, arg1: A1, ...args: A) => R, thisArg: T, arg0: A0, arg1: A1): (...args: A) => R;
+ bind(this: (this: T, arg0: A0, arg1: A1, arg2: A2, ...args: A) => R, thisArg: T, arg0: A0, arg1: A1, arg2: A2): (...args: A) => R;
+ bind(this: (this: T, arg0: A0, arg1: A1, arg2: A2, arg3: A3, ...args: A) => R, thisArg: T, arg0: A0, arg1: A1, arg2: A2, arg3: A3): (...args: A) => R;
+ bind(this: (this: T, ...args: AX[]) => R, thisArg: T, ...args: AX[]): (...args: AX[]) => R;
+}
+
+interface NewableFunction extends Function {
+ /**
+ * Calls the function with the specified object as the this value and the elements of specified array as the arguments.
+ * @param thisArg The object to be used as the this object.
+ * @param args An array of argument values to be passed to the function.
+ */
+ apply(this: new () => T, thisArg: T): void;
+ apply(this: new (...args: A) => T, thisArg: T, args: A): void;
+
+ /**
+ * Calls the function with the specified object as the this value and the specified rest arguments as the arguments.
+ * @param thisArg The object to be used as the this object.
+ * @param args Argument values to be passed to the function.
+ */
+ call(this: new (...args: A) => T, thisArg: T, ...args: A): void;
+
+ /**
+ * 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 The object to be used as the this object.
+ * @param args Arguments to bind to the parameters of the function.
+ */
+ bind(this: new (...args: A) => R, thisArg: any): new (...args: A) => R;
+ bind(this: new (arg0: A0, ...args: A) => R, thisArg: any, arg0: A0): new (...args: A) => R;
+ bind(this: new (arg0: A0, arg1: A1, ...args: A) => R, thisArg: any, arg0: A0, arg1: A1): new (...args: A) => R;
+ bind(this: new (arg0: A0, arg1: A1, arg2: A2, ...args: A) => R, thisArg: any, arg0: A0, arg1: A1, arg2: A2): new (...args: A) => R;
+ bind(this: new (arg0: A0, arg1: A1, arg2: A2, arg3: A3, ...args: A) => R, thisArg: any, arg0: A0, arg1: A1, arg2: A2, arg3: A3): new (...args: A) => R;
+ bind(this: new (...args: AX[]) => R, thisArg: any, ...args: AX[]): new (...args: AX[]) => R;
+}
+
interface IArguments {
[index: number]: any;
length: number;
@@ -1370,7 +1430,7 @@ type Readonly = {
};
/**
- * From T pick a set of properties K
+ * From T, pick a set of properties whose keys are in the union K
*/
type Pick = {
[P in K]: T[P];
@@ -1398,6 +1458,16 @@ type Extract = T extends U ? T : never;
*/
type NonNullable = T extends null | undefined ? never : T;
+/**
+ * Obtain the parameters of a function type in a tuple
+ */
+type Parameters any> = T extends (...args: infer P) => any ? P : never;
+
+/**
+ * Obtain the parameters of a constructor function type in a tuple
+ */
+type ConstructorParameters any> = T extends new (...args: infer P) => any ? P : never;
+
/**
* Obtain the return type of a function type
*/
diff --git a/lib/lib.esnext.array.d.ts b/lib/lib.esnext.array.d.ts
index 3da8562d2ea..6c751223209 100644
--- a/lib/lib.esnext.array.d.ts
+++ b/lib/lib.esnext.array.d.ts
@@ -31,7 +31,7 @@ interface ReadonlyArray {
* thisArg is omitted, undefined is used as the this value.
*/
flatMap (
- callback: (this: This, value: T, index: number, array: T[]) => U|U[],
+ callback: (this: This, value: T, index: number, array: T[]) => U|ReadonlyArray,
thisArg?: This
): U[]
@@ -145,7 +145,7 @@ interface Array {
* thisArg is omitted, undefined is used as the this value.
*/
flatMap (
- callback: (this: This, value: T, index: number, array: T[]) => U|U[],
+ callback: (this: This, value: T, index: number, array: T[]) => U|ReadonlyArray,
thisArg?: This
): U[]
diff --git a/lib/lib.esnext.bigint.d.ts b/lib/lib.esnext.bigint.d.ts
new file mode 100644
index 00000000000..ccb73bee761
--- /dev/null
+++ b/lib/lib.esnext.bigint.d.ts
@@ -0,0 +1,629 @@
+/*! *****************************************************************************
+Copyright (c) Microsoft Corporation. All rights reserved.
+Licensed under the Apache License, Version 2.0 (the "License"); you may not use
+this file except in compliance with the License. You may obtain a copy of the
+License at http://www.apache.org/licenses/LICENSE-2.0
+
+THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
+WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
+MERCHANTABLITY OR NON-INFRINGEMENT.
+
+See the Apache Version 2.0 License for specific language governing permissions
+and limitations under the License.
+***************************************************************************** */
+
+
+
+///
+
+
+interface BigInt {
+ /**
+ * Returns a string representation of an object.
+ * @param radix Specifies a radix for converting numeric values to strings.
+ */
+ toString(radix?: number): string;
+
+ /** Returns a string representation appropriate to the host environment's current locale. */
+ toLocaleString(): string;
+
+ /** Returns the primitive value of the specified object. */
+ valueOf(): bigint;
+
+ readonly [Symbol.toStringTag]: "BigInt";
+}
+
+interface BigIntConstructor {
+ (value?: any): bigint;
+ readonly prototype: BigInt;
+
+ /**
+ * Interprets the low bits of a BigInt as a 2's-complement signed integer.
+ * All higher bits are discarded.
+ * @param bits The number of low bits to use
+ * @param int The BigInt whose bits to extract
+ */
+ asIntN(bits: number, int: bigint): bigint;
+ /**
+ * Interprets the low bits of a BigInt as an unsigned integer.
+ * All higher bits are discarded.
+ * @param bits The number of low bits to use
+ * @param int The BigInt whose bits to extract
+ */
+ asUintN(bits: number, int: bigint): bigint;
+}
+
+declare const BigInt: BigIntConstructor;
+
+/**
+ * A typed array of 64-bit signed integer values. The contents are initialized to 0. If the
+ * requested number of bytes could not be allocated, an exception is raised.
+ */
+interface BigInt64Array {
+ /** 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;
+
+ /** Yields index, value pairs for every entry in the array. */
+ entries(): IterableIterator<[number, bigint]>;
+
+ /**
+ * 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 the array 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: bigint, index: number, array: BigInt64Array) => 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: bigint, 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: bigint, index: number, array: BigInt64Array) => any, thisArg?: any): BigInt64Array;
+
+ /**
+ * 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: bigint, index: number, array: BigInt64Array) => boolean, thisArg?: any): bigint | 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: bigint, index: number, array: BigInt64Array) => 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: bigint, index: number, array: BigInt64Array) => void, thisArg?: any): void;
+
+ /**
+ * Determines whether an array includes a certain element, returning true or false as appropriate.
+ * @param searchElement The element to search for.
+ * @param fromIndex The position in this array at which to begin searching for searchElement.
+ */
+ includes(searchElement: bigint, fromIndex?: number): boolean;
+
+ /**
+ * Returns the index of the first occurrence of a value in an array.
+ * @param searchElement The value to locate in the array.
+ * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
+ * search starts at index 0.
+ */
+ indexOf(searchElement: bigint, 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;
+
+ /** Yields each index in the array. */
+ keys(): IterableIterator;
+
+ /**
+ * 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: bigint, 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: bigint, index: number, array: BigInt64Array) => bigint, thisArg?: any): BigInt64Array;
+
+ /**
+ * 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: bigint, currentValue: bigint, currentIndex: number, array: BigInt64Array) => bigint): bigint;
+
+ /**
+ * 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: bigint, currentIndex: number, array: BigInt64Array) => 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: bigint, currentValue: bigint, currentIndex: number, array: BigInt64Array) => bigint): bigint;
+
+ /**
+ * 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: bigint, currentIndex: number, array: BigInt64Array) => U, initialValue: U): U;
+
+ /** Reverses the elements in the array. */
+ reverse(): this;
+
+ /**
+ * 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): BigInt64Array;
+
+ /**
+ * 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 the array 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: bigint, index: number, array: BigInt64Array) => boolean, thisArg?: any): boolean;
+
+ /**
+ * Sorts the array.
+ * @param compareFn The function used to determine the order of the elements. If omitted, the elements are sorted in ascending order.
+ */
+ sort(compareFn?: (a: bigint, b: bigint) => number | bigint): this;
+
+ /**
+ * Gets a new BigInt64Array 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): BigInt64Array;
+
+ /** Converts the array to a string by using the current locale. */
+ toLocaleString(): string;
+
+ /** Returns a string representation of the array. */
+ toString(): string;
+
+ /** Yields each value in the array. */
+ values(): IterableIterator;
+
+ [Symbol.iterator](): IterableIterator;
+
+ readonly [Symbol.toStringTag]: "BigInt64Array";
+
+ [index: number]: bigint;
+}
+
+interface BigInt64ArrayConstructor {
+ readonly prototype: BigInt64Array;
+ new(length?: number): BigInt64Array;
+ new(array: Iterable): BigInt64Array;
+ new(buffer: ArrayBufferLike, byteOffset?: number, length?: number): BigInt64Array;
+
+ /** 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: bigint[]): BigInt64Array;
+
+ /**
+ * 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): BigInt64Array;
+ from(arrayLike: ArrayLike, mapfn: (v: U, k: number) => bigint, thisArg?: any): BigInt64Array;
+}
+
+declare const BigInt64Array: BigInt64ArrayConstructor;
+
+/**
+ * A typed array of 64-bit unsigned integer values. The contents are initialized to 0. If the
+ * requested number of bytes could not be allocated, an exception is raised.
+ */
+interface BigUint64Array {
+ /** 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;
+
+ /** Yields index, value pairs for every entry in the array. */
+ entries(): IterableIterator<[number, bigint]>;
+
+ /**
+ * 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 the array 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: bigint, index: number, array: BigUint64Array) => 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: bigint, 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: bigint, index: number, array: BigUint64Array) => any, thisArg?: any): BigUint64Array;
+
+ /**
+ * 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: bigint, index: number, array: BigUint64Array) => boolean, thisArg?: any): bigint | 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: bigint, index: number, array: BigUint64Array) => 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: bigint, index: number, array: BigUint64Array) => void, thisArg?: any): void;
+
+ /**
+ * Determines whether an array includes a certain element, returning true or false as appropriate.
+ * @param searchElement The element to search for.
+ * @param fromIndex The position in this array at which to begin searching for searchElement.
+ */
+ includes(searchElement: bigint, fromIndex?: number): boolean;
+
+ /**
+ * Returns the index of the first occurrence of a value in an array.
+ * @param searchElement The value to locate in the array.
+ * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
+ * search starts at index 0.
+ */
+ indexOf(searchElement: bigint, 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;
+
+ /** Yields each index in the array. */
+ keys(): IterableIterator;
+
+ /**
+ * 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: bigint, 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: bigint, index: number, array: BigUint64Array) => bigint, thisArg?: any): BigUint64Array;
+
+ /**
+ * 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: bigint, currentValue: bigint, currentIndex: number, array: BigUint64Array) => bigint): bigint;
+
+ /**
+ * 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: bigint, currentIndex: number, array: BigUint64Array) => 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: bigint, currentValue: bigint, currentIndex: number, array: BigUint64Array) => bigint): bigint;
+
+ /**
+ * 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: bigint, currentIndex: number, array: BigUint64Array) => U, initialValue: U): U;
+
+ /** Reverses the elements in the array. */
+ reverse(): this;
+
+ /**
+ * 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): BigUint64Array;
+
+ /**
+ * 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 the array 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: bigint, index: number, array: BigUint64Array) => boolean, thisArg?: any): boolean;
+
+ /**
+ * Sorts the array.
+ * @param compareFn The function used to determine the order of the elements. If omitted, the elements are sorted in ascending order.
+ */
+ sort(compareFn?: (a: bigint, b: bigint) => number | bigint): this;
+
+ /**
+ * Gets a new BigUint64Array 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): BigUint64Array;
+
+ /** Converts the array to a string by using the current locale. */
+ toLocaleString(): string;
+
+ /** Returns a string representation of the array. */
+ toString(): string;
+
+ /** Yields each value in the array. */
+ values(): IterableIterator;
+
+ [Symbol.iterator](): IterableIterator;
+
+ readonly [Symbol.toStringTag]: "BigUint64Array";
+
+ [index: number]: bigint;
+}
+
+interface BigUint64ArrayConstructor {
+ readonly prototype: BigUint64Array;
+ new(length?: number): BigUint64Array;
+ new(array: Iterable): BigUint64Array;
+ new(buffer: ArrayBufferLike, byteOffset?: number, length?: number): BigUint64Array;
+
+ /** 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: bigint[]): BigUint64Array;
+
+ /**
+ * 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): BigUint64Array;
+ from(arrayLike: ArrayLike, mapfn: (v: U, k: number) => bigint, thisArg?: any): BigUint64Array;
+}
+
+declare const BigUint64Array: BigUint64ArrayConstructor;
+
+interface DataView {
+ /**
+ * Gets the BigInt64 value at the specified byte offset from the start of the view. There is
+ * no alignment constraint; multi-byte values may be fetched from any offset.
+ * @param byteOffset The place in the buffer at which the value should be retrieved.
+ */
+ getBigInt64(byteOffset: number, littleEndian?: boolean): bigint;
+
+ /**
+ * Gets the BigUint64 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.
+ */
+ getBigUint64(byteOffset: number, littleEndian?: boolean): bigint;
+
+ /**
+ * Stores a BigInt64 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.
+ */
+ setBigInt64(byteOffset: number, value: bigint, littleEndian?: boolean): void;
+
+ /**
+ * Stores a BigUint64 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.
+ */
+ setBigUint64(byteOffset: number, value: bigint, littleEndian?: boolean): void;
+}
\ No newline at end of file
diff --git a/lib/lib.esnext.d.ts b/lib/lib.esnext.d.ts
index 8e8592bd61a..f213999684d 100644
--- a/lib/lib.esnext.d.ts
+++ b/lib/lib.esnext.d.ts
@@ -21,5 +21,6 @@ and limitations under the License.
///
///
///
+///
///
///
diff --git a/lib/lib.webworker.d.ts b/lib/lib.webworker.d.ts
index 2fa70fb2a6b..238702731fd 100644
--- a/lib/lib.webworker.d.ts
+++ b/lib/lib.webworker.d.ts
@@ -59,6 +59,7 @@ interface Algorithm {
}
interface BlobPropertyBag {
+ endings?: EndingType;
type?: string;
}
@@ -302,6 +303,12 @@ interface PerformanceObserverInit {
entryTypes: string[];
}
+interface PipeOptions {
+ preventAbort?: boolean;
+ preventCancel?: boolean;
+ preventClose?: boolean;
+}
+
interface ProgressEventInit extends EventInit {
lengthComputable?: boolean;
loaded?: number;
@@ -333,6 +340,11 @@ interface PushSubscriptionOptionsInit {
userVisibleOnly?: boolean;
}
+interface QueuingStrategy {
+ highWaterMark?: number;
+ size?: QueuingStrategySizeCallback;
+}
+
interface RegistrationOptions {
scope?: string;
type?: WorkerType;
@@ -407,10 +419,69 @@ interface TextDecoderOptions {
ignoreBOM?: boolean;
}
+interface Transformer {
+ flush?: TransformStreamDefaultControllerCallback;
+ readableType?: undefined;
+ start?: TransformStreamDefaultControllerCallback;
+ transform?: TransformStreamDefaultControllerTransformCallback;
+ writableType?: undefined;
+}
+
+interface UnderlyingByteSource {
+ autoAllocateChunkSize?: number;
+ cancel?: ReadableStreamErrorCallback;
+ pull?: ReadableByteStreamControllerCallback;
+ start?: ReadableByteStreamControllerCallback;
+ type: "bytes";
+}
+
+interface UnderlyingSink {
+ abort?: WritableStreamErrorCallback;
+ close?: WritableStreamDefaultControllerCloseCallback;
+ start?: WritableStreamDefaultControllerStartCallback;
+ type?: undefined;
+ write?: WritableStreamDefaultControllerWriteCallback;
+}
+
+interface UnderlyingSource {
+ cancel?: ReadableStreamErrorCallback;
+ pull?: ReadableStreamDefaultControllerCallback;
+ start?: ReadableStreamDefaultControllerCallback;
+ type?: undefined;
+}
+
+interface WebGLContextAttributes {
+ alpha?: GLboolean;
+ antialias?: GLboolean;
+ depth?: GLboolean;
+ failIfMajorPerformanceCaveat?: boolean;
+ powerPreference?: WebGLPowerPreference;
+ premultipliedAlpha?: GLboolean;
+ preserveDrawingBuffer?: GLboolean;
+ stencil?: GLboolean;
+}
+
+interface WebGLContextEventInit extends EventInit {
+ statusMessage?: string;
+}
+
+interface WorkerOptions {
+ credentials?: RequestCredentials;
+ name?: string;
+ type?: WorkerType;
+}
+
interface EventListener {
(evt: Event): void;
}
+interface ANGLE_instanced_arrays {
+ drawArraysInstancedANGLE(mode: GLenum, first: GLint, count: GLsizei, primcount: GLsizei): void;
+ drawElementsInstancedANGLE(mode: GLenum, count: GLsizei, type: GLenum, offset: GLintptr, primcount: GLsizei): void;
+ vertexAttribDivisorANGLE(index: GLuint, divisor: GLuint): void;
+ readonly VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE: GLenum;
+}
+
interface AbortController {
/**
* Returns the AbortSignal object associated with this object.
@@ -482,7 +553,7 @@ declare var Blob: {
};
interface Body {
- readonly body: ReadableStream | null;
+ readonly body: ReadableStream | null;
readonly bodyUsed: boolean;
arrayBuffer(): Promise;
blob(): Promise;
@@ -527,6 +598,16 @@ interface BroadcastChannelEventMap {
messageerror: MessageEvent;
}
+interface ByteLengthQueuingStrategy extends QueuingStrategy {
+ highWaterMark: number;
+ size(chunk: ArrayBufferView): number;
+}
+
+declare var ByteLengthQueuingStrategy: {
+ prototype: ByteLengthQueuingStrategy;
+ new(options: { highWaterMark: number }): ByteLengthQueuingStrategy;
+};
+
interface Cache {
add(request: RequestInfo): Promise;
addAll(requests: RequestInfo[]): Promise;
@@ -675,6 +756,16 @@ declare var Console: {
new(): Console;
};
+interface CountQueuingStrategy extends QueuingStrategy {
+ highWaterMark: number;
+ size(chunk: any): 1;
+}
+
+declare var CountQueuingStrategy: {
+ prototype: CountQueuingStrategy;
+ new(options: { highWaterMark: number }): CountQueuingStrategy;
+};
+
interface Crypto {
readonly subtle: SubtleCrypto;
getRandomValues(array: T): T;
@@ -1002,6 +1093,29 @@ interface DhKeyGenParams extends Algorithm {
prime: Uint8Array;
}
+interface EXT_blend_minmax {
+ readonly MAX_EXT: GLenum;
+ readonly MIN_EXT: GLenum;
+}
+
+interface EXT_frag_depth {
+}
+
+interface EXT_sRGB {
+ readonly FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING_EXT: GLenum;
+ readonly SRGB8_ALPHA8_EXT: GLenum;
+ readonly SRGB_ALPHA_EXT: GLenum;
+ readonly SRGB_EXT: GLenum;
+}
+
+interface EXT_shader_texture_lod {
+}
+
+interface EXT_texture_filter_anisotropic {
+ readonly MAX_TEXTURE_MAX_ANISOTROPY_EXT: GLenum;
+ readonly TEXTURE_MAX_ANISOTROPY_EXT: GLenum;
+}
+
interface ErrorEvent extends Event {
readonly colno: number;
readonly error: any;
@@ -1039,7 +1153,6 @@ interface Event {
*/
readonly isTrusted: boolean;
returnValue: boolean;
- readonly srcElement: object | null;
/**
* Returns the object to which event is dispatched (its target).
*/
@@ -1217,7 +1330,7 @@ interface FileReader extends EventTarget {
readAsArrayBuffer(blob: Blob): void;
readAsBinaryString(blob: Blob): void;
readAsDataURL(blob: Blob): void;
- readAsText(blob: Blob, label?: string): void;
+ readAsText(blob: Blob, encoding?: string): void;
readonly DONE: number;
readonly EMPTY: number;
readonly LOADING: number;
@@ -1239,7 +1352,7 @@ interface FileReaderSync {
readAsArrayBuffer(blob: Blob): ArrayBuffer;
readAsBinaryString(blob: Blob): string;
readAsDataURL(blob: Blob): string;
- readAsText(blob: Blob, label?: string): string;
+ readAsText(blob: Blob, encoding?: string): string;
}
declare var FileReaderSync: {
@@ -1994,6 +2107,34 @@ declare var NotificationEvent: {
new(type: string, eventInitDict: NotificationEventInit): NotificationEvent;
};
+interface OES_element_index_uint {
+}
+
+interface OES_standard_derivatives {
+ readonly FRAGMENT_SHADER_DERIVATIVE_HINT_OES: GLenum;
+}
+
+interface OES_texture_float {
+}
+
+interface OES_texture_float_linear {
+}
+
+interface OES_texture_half_float {
+ readonly HALF_FLOAT_OES: GLenum;
+}
+
+interface OES_texture_half_float_linear {
+}
+
+interface OES_vertex_array_object {
+ bindVertexArrayOES(arrayObject: WebGLVertexArrayObjectOES | null): void;
+ createVertexArrayOES(): WebGLVertexArrayObjectOES | null;
+ deleteVertexArrayOES(arrayObject: WebGLVertexArrayObjectOES | null): void;
+ isVertexArrayOES(arrayObject: WebGLVertexArrayObjectOES | null): GLboolean;
+ readonly VERTEX_ARRAY_BINDING_OES: GLenum;
+}
+
interface Path2D extends CanvasPath {
addPath(path: Path2D, transform?: DOMMatrix2DInit): void;
}
@@ -2197,20 +2338,70 @@ declare var PushSubscriptionOptions: {
new(): PushSubscriptionOptions;
};
-interface ReadableStream {
+interface ReadableByteStreamController {
+ readonly byobRequest: ReadableStreamBYOBRequest | undefined;
+ readonly desiredSize: number | null;
+ close(): void;
+ enqueue(chunk: ArrayBufferView): void;
+ error(error?: any): void;
+}
+
+interface ReadableStream {
readonly locked: boolean;
- cancel(): Promise;
- getReader(): ReadableStreamReader;
+ cancel(reason?: any): Promise;
+ getReader(options: { mode: "byob" }): ReadableStreamBYOBReader;
+ getReader(): ReadableStreamDefaultReader;
+ pipeThrough({ writable, readable }: { writable: WritableStream, readable: ReadableStream }, options?: PipeOptions): ReadableStream;
+ pipeTo(dest: WritableStream, options?: PipeOptions): Promise;
+ tee(): [ReadableStream, ReadableStream];
}
declare var ReadableStream: {
prototype: ReadableStream;
- new(): ReadableStream;
+ new(underlyingSource: UnderlyingByteSource, strategy?: { highWaterMark?: number, size?: undefined }): ReadableStream;
+ new(underlyingSource?: UnderlyingSource, strategy?: QueuingStrategy): ReadableStream;
};
-interface ReadableStreamReader {
+interface ReadableStreamBYOBReader {
+ readonly closed: Promise;
+ cancel(reason?: any): Promise;
+ read(view: T): Promise>;
+ releaseLock(): void;
+}
+
+declare var ReadableStreamBYOBReader: {
+ prototype: ReadableStreamBYOBReader;
+ new(stream: ReadableStream): ReadableStreamBYOBReader;
+};
+
+interface ReadableStreamBYOBRequest {
+ readonly view: ArrayBufferView;
+ respond(bytesWritten: number): void;
+ respondWithNewView(view: ArrayBufferView): void;
+}
+
+interface ReadableStreamDefaultController {
+ readonly desiredSize: number | null;
+ close(): void;
+ enqueue(chunk: R): void;
+ error(error?: any): void;
+}
+
+interface ReadableStreamDefaultReader {
+ readonly closed: Promise;
+ cancel(reason?: any): Promise;
+ read(): Promise>;
+ releaseLock(): void;
+}
+
+interface ReadableStreamReadResult {
+ done: boolean;
+ value: T;
+}
+
+interface ReadableStreamReader {
cancel(): Promise;
- read(): Promise;
+ read(): Promise>;
releaseLock(): void;
}
@@ -2222,7 +2413,7 @@ declare var ReadableStreamReader: {
interface Request extends Body {
/**
* Returns the cache mode associated with request, which is a string indicating
- * how the the request will interact with the browser's cache when fetching.
+ * how the request will interact with the browser's cache when fetching.
*/
readonly cache: RequestCache;
/**
@@ -2544,6 +2735,46 @@ declare var TextEncoder: {
new(): TextEncoder;
};
+interface TextMetrics {
+ readonly actualBoundingBoxAscent: number;
+ readonly actualBoundingBoxDescent: number;
+ readonly actualBoundingBoxLeft: number;
+ readonly actualBoundingBoxRight: number;
+ readonly alphabeticBaseline: number;
+ readonly emHeightAscent: number;
+ readonly emHeightDescent: number;
+ readonly fontBoundingBoxAscent: number;
+ readonly fontBoundingBoxDescent: number;
+ readonly hangingBaseline: number;
+ /**
+ * Returns the measurement described below.
+ */
+ readonly ideographicBaseline: number;
+ readonly width: number;
+}
+
+declare var TextMetrics: {
+ prototype: TextMetrics;
+ new(): TextMetrics;
+};
+
+interface TransformStream {
+ readonly readable: ReadableStream;
+ readonly writable: WritableStream;
+}
+
+declare var TransformStream: {
+ prototype: TransformStream;
+ new(transformer?: Transformer, writableStrategy?: QueuingStrategy, readableStrategy?: QueuingStrategy): TransformStream;
+};
+
+interface TransformStreamDefaultController {
+ readonly desiredSize: number | null;
+ enqueue(chunk: O): void;
+ error(reason?: any): void;
+ terminate(): void;
+}
+
interface URL {
hash: string;
host: string;
@@ -2601,6 +2832,978 @@ declare var URLSearchParams: {
new(init?: string[][] | Record | string | URLSearchParams): URLSearchParams;
};
+interface WEBGL_color_buffer_float {
+ readonly FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE_EXT: GLenum;
+ readonly RGBA32F_EXT: GLenum;
+ readonly UNSIGNED_NORMALIZED_EXT: GLenum;
+}
+
+interface WEBGL_compressed_texture_astc {
+ getSupportedProfiles(): string[];
+ readonly COMPRESSED_RGBA_ASTC_10x10_KHR: GLenum;
+ readonly COMPRESSED_RGBA_ASTC_10x5_KHR: GLenum;
+ readonly COMPRESSED_RGBA_ASTC_10x6_KHR: GLenum;
+ readonly COMPRESSED_RGBA_ASTC_10x8_KHR: GLenum;
+ readonly COMPRESSED_RGBA_ASTC_12x10_KHR: GLenum;
+ readonly COMPRESSED_RGBA_ASTC_12x12_KHR: GLenum;
+ readonly COMPRESSED_RGBA_ASTC_4x4_KHR: GLenum;
+ readonly COMPRESSED_RGBA_ASTC_5x4_KHR: GLenum;
+ readonly COMPRESSED_RGBA_ASTC_5x5_KHR: GLenum;
+ readonly COMPRESSED_RGBA_ASTC_6x5_KHR: GLenum;
+ readonly COMPRESSED_RGBA_ASTC_6x6_KHR: GLenum;
+ readonly COMPRESSED_RGBA_ASTC_8x5_KHR: GLenum;
+ readonly COMPRESSED_RGBA_ASTC_8x6_KHR: GLenum;
+ readonly COMPRESSED_RGBA_ASTC_8x8_KHR: GLenum;
+ readonly COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR: GLenum;
+ readonly COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR: GLenum;
+ readonly COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR: GLenum;
+ readonly COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR: GLenum;
+ readonly COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR: GLenum;
+ readonly COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR: GLenum;
+ readonly COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR: GLenum;
+ readonly COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR: GLenum;
+ readonly COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR: GLenum;
+ readonly COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR: GLenum;
+ readonly COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR: GLenum;
+ readonly COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR: GLenum;
+ readonly COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR: GLenum;
+ readonly COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR: GLenum;
+}
+
+interface WEBGL_compressed_texture_s3tc {
+ readonly COMPRESSED_RGBA_S3TC_DXT1_EXT: GLenum;
+ readonly COMPRESSED_RGBA_S3TC_DXT3_EXT: GLenum;
+ readonly COMPRESSED_RGBA_S3TC_DXT5_EXT: GLenum;
+ readonly COMPRESSED_RGB_S3TC_DXT1_EXT: GLenum;
+}
+
+interface WEBGL_compressed_texture_s3tc_srgb {
+ readonly COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT: GLenum;
+ readonly COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT: GLenum;
+ readonly COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT: GLenum;
+ readonly COMPRESSED_SRGB_S3TC_DXT1_EXT: GLenum;
+}
+
+interface WEBGL_debug_renderer_info {
+ readonly UNMASKED_RENDERER_WEBGL: GLenum;
+ readonly UNMASKED_VENDOR_WEBGL: GLenum;
+}
+
+interface WEBGL_debug_shaders {
+ getTranslatedShaderSource(shader: WebGLShader): string;
+}
+
+interface WEBGL_depth_texture {
+ readonly UNSIGNED_INT_24_8_WEBGL: GLenum;
+}
+
+interface WEBGL_draw_buffers {
+ drawBuffersWEBGL(buffers: GLenum[]): void;
+ readonly COLOR_ATTACHMENT0_WEBGL: GLenum;
+ readonly COLOR_ATTACHMENT10_WEBGL: GLenum;
+ readonly COLOR_ATTACHMENT11_WEBGL: GLenum;
+ readonly COLOR_ATTACHMENT12_WEBGL: GLenum;
+ readonly COLOR_ATTACHMENT13_WEBGL: GLenum;
+ readonly COLOR_ATTACHMENT14_WEBGL: GLenum;
+ readonly COLOR_ATTACHMENT15_WEBGL: GLenum;
+ readonly COLOR_ATTACHMENT1_WEBGL: GLenum;
+ readonly COLOR_ATTACHMENT2_WEBGL: GLenum;
+ readonly COLOR_ATTACHMENT3_WEBGL: GLenum;
+ readonly COLOR_ATTACHMENT4_WEBGL: GLenum;
+ readonly COLOR_ATTACHMENT5_WEBGL: GLenum;
+ readonly COLOR_ATTACHMENT6_WEBGL: GLenum;
+ readonly COLOR_ATTACHMENT7_WEBGL: GLenum;
+ readonly COLOR_ATTACHMENT8_WEBGL: GLenum;
+ readonly COLOR_ATTACHMENT9_WEBGL: GLenum;
+ readonly DRAW_BUFFER0_WEBGL: GLenum;
+ readonly DRAW_BUFFER10_WEBGL: GLenum;
+ readonly DRAW_BUFFER11_WEBGL: GLenum;
+ readonly DRAW_BUFFER12_WEBGL: GLenum;
+ readonly DRAW_BUFFER13_WEBGL: GLenum;
+ readonly DRAW_BUFFER14_WEBGL: GLenum;
+ readonly DRAW_BUFFER15_WEBGL: GLenum;
+ readonly DRAW_BUFFER1_WEBGL: GLenum;
+ readonly DRAW_BUFFER2_WEBGL: GLenum;
+ readonly DRAW_BUFFER3_WEBGL: GLenum;
+ readonly DRAW_BUFFER4_WEBGL: GLenum;
+ readonly DRAW_BUFFER5_WEBGL: GLenum;
+ readonly DRAW_BUFFER6_WEBGL: GLenum;
+ readonly DRAW_BUFFER7_WEBGL: GLenum;
+ readonly DRAW_BUFFER8_WEBGL: GLenum;
+ readonly DRAW_BUFFER9_WEBGL: GLenum;
+ readonly MAX_COLOR_ATTACHMENTS_WEBGL: GLenum;
+ readonly MAX_DRAW_BUFFERS_WEBGL: GLenum;
+}
+
+interface WEBGL_lose_context {
+ loseContext(): void;
+ restoreContext(): void;
+}
+
+interface WebGLActiveInfo {
+ readonly name: string;
+ readonly size: GLint;
+ readonly type: GLenum;
+}
+
+declare var WebGLActiveInfo: {
+ prototype: WebGLActiveInfo;
+ new(): WebGLActiveInfo;
+};
+
+interface WebGLBuffer extends WebGLObject {
+}
+
+declare var WebGLBuffer: {
+ prototype: WebGLBuffer;
+ new(): WebGLBuffer;
+};
+
+interface WebGLContextEvent extends Event {
+ readonly statusMessage: string;
+}
+
+declare var WebGLContextEvent: {
+ prototype: WebGLContextEvent;
+ new(type: string, eventInit?: WebGLContextEventInit): WebGLContextEvent;
+};
+
+interface WebGLFramebuffer extends WebGLObject {
+}
+
+declare var WebGLFramebuffer: {
+ prototype: WebGLFramebuffer;
+ new(): WebGLFramebuffer;
+};
+
+interface WebGLObject {
+}
+
+declare var WebGLObject: {
+ prototype: WebGLObject;
+ new(): WebGLObject;
+};
+
+interface WebGLProgram extends WebGLObject {
+}
+
+declare var WebGLProgram: {
+ prototype: WebGLProgram;
+ new(): WebGLProgram;
+};
+
+interface WebGLRenderbuffer extends WebGLObject {
+}
+
+declare var WebGLRenderbuffer: {
+ prototype: WebGLRenderbuffer;
+ new(): WebGLRenderbuffer;
+};
+
+interface WebGLRenderingContext extends WebGLRenderingContextBase {
+}
+
+declare var WebGLRenderingContext: {
+ prototype: WebGLRenderingContext;
+ new(): WebGLRenderingContext;
+ readonly ACTIVE_ATTRIBUTES: GLenum;
+ readonly ACTIVE_TEXTURE: GLenum;
+ readonly ACTIVE_UNIFORMS: GLenum;
+ readonly ALIASED_LINE_WIDTH_RANGE: GLenum;
+ readonly ALIASED_POINT_SIZE_RANGE: GLenum;
+ readonly ALPHA: GLenum;
+ readonly ALPHA_BITS: GLenum;
+ readonly ALWAYS: GLenum;
+ readonly ARRAY_BUFFER: GLenum;
+ readonly ARRAY_BUFFER_BINDING: GLenum;
+ readonly ATTACHED_SHADERS: GLenum;
+ readonly BACK: GLenum;
+ readonly BLEND: GLenum;
+ readonly BLEND_COLOR: GLenum;
+ readonly BLEND_DST_ALPHA: GLenum;
+ readonly BLEND_DST_RGB: GLenum;
+ readonly BLEND_EQUATION: GLenum;
+ readonly BLEND_EQUATION_ALPHA: GLenum;
+ readonly BLEND_EQUATION_RGB: GLenum;
+ readonly BLEND_SRC_ALPHA: GLenum;
+ readonly BLEND_SRC_RGB: GLenum;
+ readonly BLUE_BITS: GLenum;
+ readonly BOOL: GLenum;
+ readonly BOOL_VEC2: GLenum;
+ readonly BOOL_VEC3: GLenum;
+ readonly BOOL_VEC4: GLenum;
+ readonly BROWSER_DEFAULT_WEBGL: GLenum;
+ readonly BUFFER_SIZE: GLenum;
+ readonly BUFFER_USAGE: GLenum;
+ readonly BYTE: GLenum;
+ readonly CCW: GLenum;
+ readonly CLAMP_TO_EDGE: GLenum;
+ readonly COLOR_ATTACHMENT0: GLenum;
+ readonly COLOR_BUFFER_BIT: GLenum;
+ readonly COLOR_CLEAR_VALUE: GLenum;
+ readonly COLOR_WRITEMASK: GLenum;
+ readonly COMPILE_STATUS: GLenum;
+ readonly COMPRESSED_TEXTURE_FORMATS: GLenum;
+ readonly CONSTANT_ALPHA: GLenum;
+ readonly CONSTANT_COLOR: GLenum;
+ readonly CONTEXT_LOST_WEBGL: GLenum;
+ readonly CULL_FACE: GLenum;
+ readonly CULL_FACE_MODE: GLenum;
+ readonly CURRENT_PROGRAM: GLenum;
+ readonly CURRENT_VERTEX_ATTRIB: GLenum;
+ readonly CW: GLenum;
+ readonly DECR: GLenum;
+ readonly DECR_WRAP: GLenum;
+ readonly DELETE_STATUS: GLenum;
+ readonly DEPTH_ATTACHMENT: GLenum;
+ readonly DEPTH_BITS: GLenum;
+ readonly DEPTH_BUFFER_BIT: GLenum;
+ readonly DEPTH_CLEAR_VALUE: GLenum;
+ readonly DEPTH_COMPONENT: GLenum;
+ readonly DEPTH_COMPONENT16: GLenum;
+ readonly DEPTH_FUNC: GLenum;
+ readonly DEPTH_RANGE: GLenum;
+ readonly DEPTH_STENCIL: GLenum;
+ readonly DEPTH_STENCIL_ATTACHMENT: GLenum;
+ readonly DEPTH_TEST: GLenum;
+ readonly DEPTH_WRITEMASK: GLenum;
+ readonly DITHER: GLenum;
+ readonly DONT_CARE: GLenum;
+ readonly DST_ALPHA: GLenum;
+ readonly DST_COLOR: GLenum;
+ readonly DYNAMIC_DRAW: GLenum;
+ readonly ELEMENT_ARRAY_BUFFER: GLenum;
+ readonly ELEMENT_ARRAY_BUFFER_BINDING: GLenum;
+ readonly EQUAL: GLenum;
+ readonly FASTEST: GLenum;
+ readonly FLOAT: GLenum;
+ readonly FLOAT_MAT2: GLenum;
+ readonly FLOAT_MAT3: GLenum;
+ readonly FLOAT_MAT4: GLenum;
+ readonly FLOAT_VEC2: GLenum;
+ readonly FLOAT_VEC3: GLenum;
+ readonly FLOAT_VEC4: GLenum;
+ readonly FRAGMENT_SHADER: GLenum;
+ readonly FRAMEBUFFER: GLenum;
+ readonly FRAMEBUFFER_ATTACHMENT_OBJECT_NAME: GLenum;
+ readonly FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE: GLenum;
+ readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE: GLenum;
+ readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL: GLenum;
+ readonly FRAMEBUFFER_BINDING: GLenum;
+ readonly FRAMEBUFFER_COMPLETE: GLenum;
+ readonly FRAMEBUFFER_INCOMPLETE_ATTACHMENT: GLenum;
+ readonly FRAMEBUFFER_INCOMPLETE_DIMENSIONS: GLenum;
+ readonly FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT: GLenum;
+ readonly FRAMEBUFFER_UNSUPPORTED: GLenum;
+ readonly FRONT: GLenum;
+ readonly FRONT_AND_BACK: GLenum;
+ readonly FRONT_FACE: GLenum;
+ readonly FUNC_ADD: GLenum;
+ readonly FUNC_REVERSE_SUBTRACT: GLenum;
+ readonly FUNC_SUBTRACT: GLenum;
+ readonly GENERATE_MIPMAP_HINT: GLenum;
+ readonly GEQUAL: GLenum;
+ readonly GREATER: GLenum;
+ readonly GREEN_BITS: GLenum;
+ readonly HIGH_FLOAT: GLenum;
+ readonly HIGH_INT: GLenum;
+ readonly IMPLEMENTATION_COLOR_READ_FORMAT: GLenum;
+ readonly IMPLEMENTATION_COLOR_READ_TYPE: GLenum;
+ readonly INCR: GLenum;
+ readonly INCR_WRAP: GLenum;
+ readonly INT: GLenum;
+ readonly INT_VEC2: GLenum;
+ readonly INT_VEC3: GLenum;
+ readonly INT_VEC4: GLenum;
+ readonly INVALID_ENUM: GLenum;
+ readonly INVALID_FRAMEBUFFER_OPERATION: GLenum;
+ readonly INVALID_OPERATION: GLenum;
+ readonly INVALID_VALUE: GLenum;
+ readonly INVERT: GLenum;
+ readonly KEEP: GLenum;
+ readonly LEQUAL: GLenum;
+ readonly LESS: GLenum;
+ readonly LINEAR: GLenum;
+ readonly LINEAR_MIPMAP_LINEAR: GLenum;
+ readonly LINEAR_MIPMAP_NEAREST: GLenum;
+ readonly LINES: GLenum;
+ readonly LINE_LOOP: GLenum;
+ readonly LINE_STRIP: GLenum;
+ readonly LINE_WIDTH: GLenum;
+ readonly LINK_STATUS: GLenum;
+ readonly LOW_FLOAT: GLenum;
+ readonly LOW_INT: GLenum;
+ readonly LUMINANCE: GLenum;
+ readonly LUMINANCE_ALPHA: GLenum;
+ readonly MAX_COMBINED_TEXTURE_IMAGE_UNITS: GLenum;
+ readonly MAX_CUBE_MAP_TEXTURE_SIZE: GLenum;
+ readonly MAX_FRAGMENT_UNIFORM_VECTORS: GLenum;
+ readonly MAX_RENDERBUFFER_SIZE: GLenum;
+ readonly MAX_TEXTURE_IMAGE_UNITS: GLenum;
+ readonly MAX_TEXTURE_SIZE: GLenum;
+ readonly MAX_VARYING_VECTORS: GLenum;
+ readonly MAX_VERTEX_ATTRIBS: GLenum;
+ readonly MAX_VERTEX_TEXTURE_IMAGE_UNITS: GLenum;
+ readonly MAX_VERTEX_UNIFORM_VECTORS: GLenum;
+ readonly MAX_VIEWPORT_DIMS: GLenum;
+ readonly MEDIUM_FLOAT: GLenum;
+ readonly MEDIUM_INT: GLenum;
+ readonly MIRRORED_REPEAT: GLenum;
+ readonly NEAREST: GLenum;
+ readonly NEAREST_MIPMAP_LINEAR: GLenum;
+ readonly NEAREST_MIPMAP_NEAREST: GLenum;
+ readonly NEVER: GLenum;
+ readonly NICEST: GLenum;
+ readonly NONE: GLenum;
+ readonly NOTEQUAL: GLenum;
+ readonly NO_ERROR: GLenum;
+ readonly ONE: GLenum;
+ readonly ONE_MINUS_CONSTANT_ALPHA: GLenum;
+ readonly ONE_MINUS_CONSTANT_COLOR: GLenum;
+ readonly ONE_MINUS_DST_ALPHA: GLenum;
+ readonly ONE_MINUS_DST_COLOR: GLenum;
+ readonly ONE_MINUS_SRC_ALPHA: GLenum;
+ readonly ONE_MINUS_SRC_COLOR: GLenum;
+ readonly OUT_OF_MEMORY: GLenum;
+ readonly PACK_ALIGNMENT: GLenum;
+ readonly POINTS: GLenum;
+ readonly POLYGON_OFFSET_FACTOR: GLenum;
+ readonly POLYGON_OFFSET_FILL: GLenum;
+ readonly POLYGON_OFFSET_UNITS: GLenum;
+ readonly RED_BITS: GLenum;
+ readonly RENDERBUFFER: GLenum;
+ readonly RENDERBUFFER_ALPHA_SIZE: GLenum;
+ readonly RENDERBUFFER_BINDING: GLenum;
+ readonly RENDERBUFFER_BLUE_SIZE: GLenum;
+ readonly RENDERBUFFER_DEPTH_SIZE: GLenum;
+ readonly RENDERBUFFER_GREEN_SIZE: GLenum;
+ readonly RENDERBUFFER_HEIGHT: GLenum;
+ readonly RENDERBUFFER_INTERNAL_FORMAT: GLenum;
+ readonly RENDERBUFFER_RED_SIZE: GLenum;
+ readonly RENDERBUFFER_STENCIL_SIZE: GLenum;
+ readonly RENDERBUFFER_WIDTH: GLenum;
+ readonly RENDERER: GLenum;
+ readonly REPEAT: GLenum;
+ readonly REPLACE: GLenum;
+ readonly RGB: GLenum;
+ readonly RGB565: GLenum;
+ readonly RGB5_A1: GLenum;
+ readonly RGBA: GLenum;
+ readonly RGBA4: GLenum;
+ readonly SAMPLER_2D: GLenum;
+ readonly SAMPLER_CUBE: GLenum;
+ readonly SAMPLES: GLenum;
+ readonly SAMPLE_ALPHA_TO_COVERAGE: GLenum;
+ readonly SAMPLE_BUFFERS: GLenum;
+ readonly SAMPLE_COVERAGE: GLenum;
+ readonly SAMPLE_COVERAGE_INVERT: GLenum;
+ readonly SAMPLE_COVERAGE_VALUE: GLenum;
+ readonly SCISSOR_BOX: GLenum;
+ readonly SCISSOR_TEST: GLenum;
+ readonly SHADER_TYPE: GLenum;
+ readonly SHADING_LANGUAGE_VERSION: GLenum;
+ readonly SHORT: GLenum;
+ readonly SRC_ALPHA: GLenum;
+ readonly SRC_ALPHA_SATURATE: GLenum;
+ readonly SRC_COLOR: GLenum;
+ readonly STATIC_DRAW: GLenum;
+ readonly STENCIL_ATTACHMENT: GLenum;
+ readonly STENCIL_BACK_FAIL: GLenum;
+ readonly STENCIL_BACK_FUNC: GLenum;
+ readonly STENCIL_BACK_PASS_DEPTH_FAIL: GLenum;
+ readonly STENCIL_BACK_PASS_DEPTH_PASS: GLenum;
+ readonly STENCIL_BACK_REF: GLenum;
+ readonly STENCIL_BACK_VALUE_MASK: GLenum;
+ readonly STENCIL_BACK_WRITEMASK: GLenum;
+ readonly STENCIL_BITS: GLenum;
+ readonly STENCIL_BUFFER_BIT: GLenum;
+ readonly STENCIL_CLEAR_VALUE: GLenum;
+ readonly STENCIL_FAIL: GLenum;
+ readonly STENCIL_FUNC: GLenum;
+ readonly STENCIL_INDEX8: GLenum;
+ readonly STENCIL_PASS_DEPTH_FAIL: GLenum;
+ readonly STENCIL_PASS_DEPTH_PASS: GLenum;
+ readonly STENCIL_REF: GLenum;
+ readonly STENCIL_TEST: GLenum;
+ readonly STENCIL_VALUE_MASK: GLenum;
+ readonly STENCIL_WRITEMASK: GLenum;
+ readonly STREAM_DRAW: GLenum;
+ readonly SUBPIXEL_BITS: GLenum;
+ readonly TEXTURE: GLenum;
+ readonly TEXTURE0: GLenum;
+ readonly TEXTURE1: GLenum;
+ readonly TEXTURE10: GLenum;
+ readonly TEXTURE11: GLenum;
+ readonly TEXTURE12: GLenum;
+ readonly TEXTURE13: GLenum;
+ readonly TEXTURE14: GLenum;
+ readonly TEXTURE15: GLenum;
+ readonly TEXTURE16: GLenum;
+ readonly TEXTURE17: GLenum;
+ readonly TEXTURE18: GLenum;
+ readonly TEXTURE19: GLenum;
+ readonly TEXTURE2: GLenum;
+ readonly TEXTURE20: GLenum;
+ readonly TEXTURE21: GLenum;
+ readonly TEXTURE22: GLenum;
+ readonly TEXTURE23: GLenum;
+ readonly TEXTURE24: GLenum;
+ readonly TEXTURE25: GLenum;
+ readonly TEXTURE26: GLenum;
+ readonly TEXTURE27: GLenum;
+ readonly TEXTURE28: GLenum;
+ readonly TEXTURE29: GLenum;
+ readonly TEXTURE3: GLenum;
+ readonly TEXTURE30: GLenum;
+ readonly TEXTURE31: GLenum;
+ readonly TEXTURE4: GLenum;
+ readonly TEXTURE5: GLenum;
+ readonly TEXTURE6: GLenum;
+ readonly TEXTURE7: GLenum;
+ readonly TEXTURE8: GLenum;
+ readonly TEXTURE9: GLenum;
+ readonly TEXTURE_2D: GLenum;
+ readonly TEXTURE_BINDING_2D: GLenum;
+ readonly TEXTURE_BINDING_CUBE_MAP: GLenum;
+ readonly TEXTURE_CUBE_MAP: GLenum;
+ readonly TEXTURE_CUBE_MAP_NEGATIVE_X: GLenum;
+ readonly TEXTURE_CUBE_MAP_NEGATIVE_Y: GLenum;
+ readonly TEXTURE_CUBE_MAP_NEGATIVE_Z: GLenum;
+ readonly TEXTURE_CUBE_MAP_POSITIVE_X: GLenum;
+ readonly TEXTURE_CUBE_MAP_POSITIVE_Y: GLenum;
+ readonly TEXTURE_CUBE_MAP_POSITIVE_Z: GLenum;
+ readonly TEXTURE_MAG_FILTER: GLenum;
+ readonly TEXTURE_MIN_FILTER: GLenum;
+ readonly TEXTURE_WRAP_S: GLenum;
+ readonly TEXTURE_WRAP_T: GLenum;
+ readonly TRIANGLES: GLenum;
+ readonly TRIANGLE_FAN: GLenum;
+ readonly TRIANGLE_STRIP: GLenum;
+ readonly UNPACK_ALIGNMENT: GLenum;
+ readonly UNPACK_COLORSPACE_CONVERSION_WEBGL: GLenum;
+ readonly UNPACK_FLIP_Y_WEBGL: GLenum;
+ readonly UNPACK_PREMULTIPLY_ALPHA_WEBGL: GLenum;
+ readonly UNSIGNED_BYTE: GLenum;
+ readonly UNSIGNED_INT: GLenum;
+ readonly UNSIGNED_SHORT: GLenum;
+ readonly UNSIGNED_SHORT_4_4_4_4: GLenum;
+ readonly UNSIGNED_SHORT_5_5_5_1: GLenum;
+ readonly UNSIGNED_SHORT_5_6_5: GLenum;
+ readonly VALIDATE_STATUS: GLenum;
+ readonly VENDOR: GLenum;
+ readonly VERSION: GLenum;
+ readonly VERTEX_ATTRIB_ARRAY_BUFFER_BINDING: GLenum;
+ readonly VERTEX_ATTRIB_ARRAY_ENABLED: GLenum;
+ readonly VERTEX_ATTRIB_ARRAY_NORMALIZED: GLenum;
+ readonly VERTEX_ATTRIB_ARRAY_POINTER: GLenum;
+ readonly VERTEX_ATTRIB_ARRAY_SIZE: GLenum;
+ readonly VERTEX_ATTRIB_ARRAY_STRIDE: GLenum;
+ readonly VERTEX_ATTRIB_ARRAY_TYPE: GLenum;
+ readonly VERTEX_SHADER: GLenum;
+ readonly VIEWPORT: GLenum;
+ readonly ZERO: GLenum;
+};
+
+interface WebGLRenderingContextBase {
+ readonly drawingBufferHeight: GLsizei;
+ readonly drawingBufferWidth: GLsizei;
+ activeTexture(texture: GLenum): void;
+ attachShader(program: WebGLProgram, shader: WebGLShader): void;
+ bindAttribLocation(program: WebGLProgram, index: GLuint, name: string): void;
+ bindBuffer(target: GLenum, buffer: WebGLBuffer | null): void;
+ bindFramebuffer(target: GLenum, framebuffer: WebGLFramebuffer | null): void;
+ bindRenderbuffer(target: GLenum, renderbuffer: WebGLRenderbuffer | null): void;
+ bindTexture(target: GLenum, texture: WebGLTexture | null): void;
+ blendColor(red: GLclampf, green: GLclampf, blue: GLclampf, alpha: GLclampf): void;
+ blendEquation(mode: GLenum): void;
+ blendEquationSeparate(modeRGB: GLenum, modeAlpha: GLenum): void;
+ blendFunc(sfactor: GLenum, dfactor: GLenum): void;
+ blendFuncSeparate(srcRGB: GLenum, dstRGB: GLenum, srcAlpha: GLenum, dstAlpha: GLenum): void;
+ bufferData(target: GLenum, size: GLsizeiptr, usage: GLenum): void;
+ bufferData(target: GLenum, data: BufferSource | null, usage: GLenum): void;
+ bufferSubData(target: GLenum, offset: GLintptr, data: BufferSource): void;
+ checkFramebufferStatus(target: GLenum): GLenum;
+ clear(mask: GLbitfield): void;
+ clearColor(red: GLclampf, green: GLclampf, blue: GLclampf, alpha: GLclampf): void;
+ clearDepth(depth: GLclampf): void;
+ clearStencil(s: GLint): void;
+ colorMask(red: GLboolean, green: GLboolean, blue: GLboolean, alpha: GLboolean): void;
+ compileShader(shader: WebGLShader): void;
+ compressedTexImage2D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, border: GLint, data: ArrayBufferView): void;
+ compressedTexSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, data: ArrayBufferView): void;
+ copyTexImage2D(target: GLenum, level: GLint, internalformat: GLenum, x: GLint, y: GLint, width: GLsizei, height: GLsizei, border: GLint): void;
+ copyTexSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;
+ createBuffer(): WebGLBuffer | null;
+ createFramebuffer(): WebGLFramebuffer | null;
+ createProgram(): WebGLProgram | null;
+ createRenderbuffer(): WebGLRenderbuffer | null;
+ createShader(type: GLenum): WebGLShader | null;
+ createTexture(): WebGLTexture | null;
+ cullFace(mode: GLenum): void;
+ deleteBuffer(buffer: WebGLBuffer | null): void;
+ deleteFramebuffer(framebuffer: WebGLFramebuffer | null): void;
+ deleteProgram(program: WebGLProgram | null): void;
+ deleteRenderbuffer(renderbuffer: WebGLRenderbuffer | null): void;
+ deleteShader(shader: WebGLShader | null): void;
+ deleteTexture(texture: WebGLTexture | null): void;
+ depthFunc(func: GLenum): void;
+ depthMask(flag: GLboolean): void;
+ depthRange(zNear: GLclampf, zFar: GLclampf): void;
+ detachShader(program: WebGLProgram, shader: WebGLShader): void;
+ disable(cap: GLenum): void;
+ disableVertexAttribArray(index: GLuint): void;
+ drawArrays(mode: GLenum, first: GLint, count: GLsizei): void;
+ drawElements(mode: GLenum, count: GLsizei, type: GLenum, offset: GLintptr): void;
+ enable(cap: GLenum): void;
+ enableVertexAttribArray(index: GLuint): void;
+ finish(): void;
+ flush(): void;
+ framebufferRenderbuffer(target: GLenum, attachment: GLenum, renderbuffertarget: GLenum, renderbuffer: WebGLRenderbuffer | null): void;
+ framebufferTexture2D(target: GLenum, attachment: GLenum, textarget: GLenum, texture: WebGLTexture | null, level: GLint): void;
+ frontFace(mode: GLenum): void;
+ generateMipmap(target: GLenum): void;
+ getActiveAttrib(program: WebGLProgram, index: GLuint): WebGLActiveInfo | null;
+ getActiveUniform(program: WebGLProgram, index: GLuint): WebGLActiveInfo | null;
+ getAttachedShaders(program: WebGLProgram): WebGLShader[] | null;
+ getAttribLocation(program: WebGLProgram, name: string): GLint;
+ getBufferParameter(target: GLenum, pname: GLenum): any;
+ getContextAttributes(): WebGLContextAttributes | null;
+ getError(): GLenum;
+ getExtension(extensionName: "EXT_blend_minmax"): EXT_blend_minmax | null;
+ getExtension(extensionName: "EXT_texture_filter_anisotropic"): EXT_texture_filter_anisotropic | null;
+ getExtension(extensionName: "EXT_frag_depth"): EXT_frag_depth | null;
+ getExtension(extensionName: "EXT_shader_texture_lod"): EXT_shader_texture_lod | null;
+ getExtension(extensionName: "EXT_sRGB"): EXT_sRGB | null;
+ getExtension(extensionName: "OES_vertex_array_object"): OES_vertex_array_object | null;
+ getExtension(extensionName: "WEBGL_color_buffer_float"): WEBGL_color_buffer_float | null;
+ getExtension(extensionName: "WEBGL_compressed_texture_astc"): WEBGL_compressed_texture_astc | null;
+ getExtension(extensionName: "WEBGL_compressed_texture_s3tc_srgb"): WEBGL_compressed_texture_s3tc_srgb | null;
+ getExtension(extensionName: "WEBGL_debug_shaders"): WEBGL_debug_shaders | null;
+ getExtension(extensionName: "WEBGL_draw_buffers"): WEBGL_draw_buffers | null;
+ getExtension(extensionName: "WEBGL_lose_context"): WEBGL_lose_context | null;
+ getExtension(extensionName: "WEBGL_depth_texture"): WEBGL_depth_texture | null;
+ getExtension(extensionName: "WEBGL_debug_renderer_info"): WEBGL_debug_renderer_info | null;
+ getExtension(extensionName: "WEBGL_compressed_texture_s3tc"): WEBGL_compressed_texture_s3tc | null;
+ getExtension(extensionName: "OES_texture_half_float_linear"): OES_texture_half_float_linear | null;
+ getExtension(extensionName: "OES_texture_half_float"): OES_texture_half_float | null;
+ getExtension(extensionName: "OES_texture_float_linear"): OES_texture_float_linear | null;
+ getExtension(extensionName: "OES_texture_float"): OES_texture_float | null;
+ getExtension(extensionName: "OES_standard_derivatives"): OES_standard_derivatives | null;
+ getExtension(extensionName: "OES_element_index_uint"): OES_element_index_uint | null;
+ getExtension(extensionName: "ANGLE_instanced_arrays"): ANGLE_instanced_arrays | null;
+ getExtension(extensionName: string): any;
+ getFramebufferAttachmentParameter(target: GLenum, attachment: GLenum, pname: GLenum): any;
+ getParameter(pname: GLenum): any;
+ getProgramInfoLog(program: WebGLProgram): string | null;
+ getProgramParameter(program: WebGLProgram, pname: GLenum): any;
+ getRenderbufferParameter(target: GLenum, pname: GLenum): any;
+ getShaderInfoLog(shader: WebGLShader): string | null;
+ getShaderParameter(shader: WebGLShader, pname: GLenum): any;
+ getShaderPrecisionFormat(shadertype: GLenum, precisiontype: GLenum): WebGLShaderPrecisionFormat | null;
+ getShaderSource(shader: WebGLShader): string | null;
+ getSupportedExtensions(): string[] | null;
+ getTexParameter(target: GLenum, pname: GLenum): any;
+ getUniform(program: WebGLProgram, location: WebGLUniformLocation): any;
+ getUniformLocation(program: WebGLProgram, name: string): WebGLUniformLocation | null;
+ getVertexAttrib(index: GLuint, pname: GLenum): any;
+ getVertexAttribOffset(index: GLuint, pname: GLenum): GLintptr;
+ hint(target: GLenum, mode: GLenum): void;
+ isBuffer(buffer: WebGLBuffer | null): GLboolean;
+ isContextLost(): boolean;
+ isEnabled(cap: GLenum): GLboolean;
+ isFramebuffer(framebuffer: WebGLFramebuffer | null): GLboolean;
+ isProgram(program: WebGLProgram | null): GLboolean;
+ isRenderbuffer(renderbuffer: WebGLRenderbuffer | null): GLboolean;
+ isShader(shader: WebGLShader | null): GLboolean;
+ isTexture(texture: WebGLTexture | null): GLboolean;
+ lineWidth(width: GLfloat): void;
+ linkProgram(program: WebGLProgram): void;
+ pixelStorei(pname: GLenum, param: GLint): void;
+ polygonOffset(factor: GLfloat, units: GLfloat): void;
+ readPixels(x: GLint, y: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, pixels: ArrayBufferView | null): void;
+ renderbufferStorage(target: GLenum, internalformat: GLenum, width: GLsizei, height: GLsizei): void;
+ sampleCoverage(value: GLclampf, invert: GLboolean): void;
+ scissor(x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;
+ shaderSource(shader: WebGLShader, source: string): void;
+ stencilFunc(func: GLenum, ref: GLint, mask: GLuint): void;
+ stencilFuncSeparate(face: GLenum, func: GLenum, ref: GLint, mask: GLuint): void;
+ stencilMask(mask: GLuint): void;
+ stencilMaskSeparate(face: GLenum, mask: GLuint): void;
+ stencilOp(fail: GLenum, zfail: GLenum, zpass: GLenum): void;
+ stencilOpSeparate(face: GLenum, fail: GLenum, zfail: GLenum, zpass: GLenum): void;
+ texImage2D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type: GLenum, pixels: ArrayBufferView | null): void;
+ texImage2D(target: GLenum, level: GLint, internalformat: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;
+ texParameterf(target: GLenum, pname: GLenum, param: GLfloat): void;
+ texParameteri(target: GLenum, pname: GLenum, param: GLint): void;
+ texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, pixels: ArrayBufferView | null): void;
+ texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;
+ uniform1f(location: WebGLUniformLocation | null, x: GLfloat): void;
+ uniform1fv(location: WebGLUniformLocation | null, v: Float32List): void;
+ uniform1i(location: WebGLUniformLocation | null, x: GLint): void;
+ uniform1iv(location: WebGLUniformLocation | null, v: Int32List): void;
+ uniform2f(location: WebGLUniformLocation | null, x: GLfloat, y: GLfloat): void;
+ uniform2fv(location: WebGLUniformLocation | null, v: Float32List): void;
+ uniform2i(location: WebGLUniformLocation | null, x: GLint, y: GLint): void;
+ uniform2iv(location: WebGLUniformLocation | null, v: Int32List): void;
+ uniform3f(location: WebGLUniformLocation | null, x: GLfloat, y: GLfloat, z: GLfloat): void;
+ uniform3fv(location: WebGLUniformLocation | null, v: Float32List): void;
+ uniform3i(location: WebGLUniformLocation | null, x: GLint, y: GLint, z: GLint): void;
+ uniform3iv(location: WebGLUniformLocation | null, v: Int32List): void;
+ uniform4f(location: WebGLUniformLocation | null, x: GLfloat, y: GLfloat, z: GLfloat, w: GLfloat): void;
+ uniform4fv(location: WebGLUniformLocation | null, v: Float32List): void;
+ uniform4i(location: WebGLUniformLocation | null, x: GLint, y: GLint, z: GLint, w: GLint): void;
+ uniform4iv(location: WebGLUniformLocation | null, v: Int32List): void;
+ uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Float32List): void;
+ uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Float32List): void;
+ uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Float32List): void;
+ useProgram(program: WebGLProgram | null): void;
+ validateProgram(program: WebGLProgram): void;
+ vertexAttrib1f(index: GLuint, x: GLfloat): void;
+ vertexAttrib1fv(index: GLuint, values: Float32List): void;
+ vertexAttrib2f(index: GLuint, x: GLfloat, y: GLfloat): void;
+ vertexAttrib2fv(index: GLuint, values: Float32List): void;
+ vertexAttrib3f(index: GLuint, x: GLfloat, y: GLfloat, z: GLfloat): void;
+ vertexAttrib3fv(index: GLuint, values: Float32List): void;
+ vertexAttrib4f(index: GLuint, x: GLfloat, y: GLfloat, z: GLfloat, w: GLfloat): void;
+ vertexAttrib4fv(index: GLuint, values: Float32List): void;
+ vertexAttribPointer(index: GLuint, size: GLint, type: GLenum, normalized: GLboolean, stride: GLsizei, offset: GLintptr): void;
+ viewport(x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;
+ readonly ACTIVE_ATTRIBUTES: GLenum;
+ readonly ACTIVE_TEXTURE: GLenum;
+ readonly ACTIVE_UNIFORMS: GLenum;
+ readonly ALIASED_LINE_WIDTH_RANGE: GLenum;
+ readonly ALIASED_POINT_SIZE_RANGE: GLenum;
+ readonly ALPHA: GLenum;
+ readonly ALPHA_BITS: GLenum;
+ readonly ALWAYS: GLenum;
+ readonly ARRAY_BUFFER: GLenum;
+ readonly ARRAY_BUFFER_BINDING: GLenum;
+ readonly ATTACHED_SHADERS: GLenum;
+ readonly BACK: GLenum;
+ readonly BLEND: GLenum;
+ readonly BLEND_COLOR: GLenum;
+ readonly BLEND_DST_ALPHA: GLenum;
+ readonly BLEND_DST_RGB: GLenum;
+ readonly BLEND_EQUATION: GLenum;
+ readonly BLEND_EQUATION_ALPHA: GLenum;
+ readonly BLEND_EQUATION_RGB: GLenum;
+ readonly BLEND_SRC_ALPHA: GLenum;
+ readonly BLEND_SRC_RGB: GLenum;
+ readonly BLUE_BITS: GLenum;
+ readonly BOOL: GLenum;
+ readonly BOOL_VEC2: GLenum;
+ readonly BOOL_VEC3: GLenum;
+ readonly BOOL_VEC4: GLenum;
+ readonly BROWSER_DEFAULT_WEBGL: GLenum;
+ readonly BUFFER_SIZE: GLenum;
+ readonly BUFFER_USAGE: GLenum;
+ readonly BYTE: GLenum;
+ readonly CCW: GLenum;
+ readonly CLAMP_TO_EDGE: GLenum;
+ readonly COLOR_ATTACHMENT0: GLenum;
+ readonly COLOR_BUFFER_BIT: GLenum;
+ readonly COLOR_CLEAR_VALUE: GLenum;
+ readonly COLOR_WRITEMASK: GLenum;
+ readonly COMPILE_STATUS: GLenum;
+ readonly COMPRESSED_TEXTURE_FORMATS: GLenum;
+ readonly CONSTANT_ALPHA: GLenum;
+ readonly CONSTANT_COLOR: GLenum;
+ readonly CONTEXT_LOST_WEBGL: GLenum;
+ readonly CULL_FACE: GLenum;
+ readonly CULL_FACE_MODE: GLenum;
+ readonly CURRENT_PROGRAM: GLenum;
+ readonly CURRENT_VERTEX_ATTRIB: GLenum;
+ readonly CW: GLenum;
+ readonly DECR: GLenum;
+ readonly DECR_WRAP: GLenum;
+ readonly DELETE_STATUS: GLenum;
+ readonly DEPTH_ATTACHMENT: GLenum;
+ readonly DEPTH_BITS: GLenum;
+ readonly DEPTH_BUFFER_BIT: GLenum;
+ readonly DEPTH_CLEAR_VALUE: GLenum;
+ readonly DEPTH_COMPONENT: GLenum;
+ readonly DEPTH_COMPONENT16: GLenum;
+ readonly DEPTH_FUNC: GLenum;
+ readonly DEPTH_RANGE: GLenum;
+ readonly DEPTH_STENCIL: GLenum;
+ readonly DEPTH_STENCIL_ATTACHMENT: GLenum;
+ readonly DEPTH_TEST: GLenum;
+ readonly DEPTH_WRITEMASK: GLenum;
+ readonly DITHER: GLenum;
+ readonly DONT_CARE: GLenum;
+ readonly DST_ALPHA: GLenum;
+ readonly DST_COLOR: GLenum;
+ readonly DYNAMIC_DRAW: GLenum;
+ readonly ELEMENT_ARRAY_BUFFER: GLenum;
+ readonly ELEMENT_ARRAY_BUFFER_BINDING: GLenum;
+ readonly EQUAL: GLenum;
+ readonly FASTEST: GLenum;
+ readonly FLOAT: GLenum;
+ readonly FLOAT_MAT2: GLenum;
+ readonly FLOAT_MAT3: GLenum;
+ readonly FLOAT_MAT4: GLenum;
+ readonly FLOAT_VEC2: GLenum;
+ readonly FLOAT_VEC3: GLenum;
+ readonly FLOAT_VEC4: GLenum;
+ readonly FRAGMENT_SHADER: GLenum;
+ readonly FRAMEBUFFER: GLenum;
+ readonly FRAMEBUFFER_ATTACHMENT_OBJECT_NAME: GLenum;
+ readonly FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE: GLenum;
+ readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE: GLenum;
+ readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL: GLenum;
+ readonly FRAMEBUFFER_BINDING: GLenum;
+ readonly FRAMEBUFFER_COMPLETE: GLenum;
+ readonly FRAMEBUFFER_INCOMPLETE_ATTACHMENT: GLenum;
+ readonly FRAMEBUFFER_INCOMPLETE_DIMENSIONS: GLenum;
+ readonly FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT: GLenum;
+ readonly FRAMEBUFFER_UNSUPPORTED: GLenum;
+ readonly FRONT: GLenum;
+ readonly FRONT_AND_BACK: GLenum;
+ readonly FRONT_FACE: GLenum;
+ readonly FUNC_ADD: GLenum;
+ readonly FUNC_REVERSE_SUBTRACT: GLenum;
+ readonly FUNC_SUBTRACT: GLenum;
+ readonly GENERATE_MIPMAP_HINT: GLenum;
+ readonly GEQUAL: GLenum;
+ readonly GREATER: GLenum;
+ readonly GREEN_BITS: GLenum;
+ readonly HIGH_FLOAT: GLenum;
+ readonly HIGH_INT: GLenum;
+ readonly IMPLEMENTATION_COLOR_READ_FORMAT: GLenum;
+ readonly IMPLEMENTATION_COLOR_READ_TYPE: GLenum;
+ readonly INCR: GLenum;
+ readonly INCR_WRAP: GLenum;
+ readonly INT: GLenum;
+ readonly INT_VEC2: GLenum;
+ readonly INT_VEC3: GLenum;
+ readonly INT_VEC4: GLenum;
+ readonly INVALID_ENUM: GLenum;
+ readonly INVALID_FRAMEBUFFER_OPERATION: GLenum;
+ readonly INVALID_OPERATION: GLenum;
+ readonly INVALID_VALUE: GLenum;
+ readonly INVERT: GLenum;
+ readonly KEEP: GLenum;
+ readonly LEQUAL: GLenum;
+ readonly LESS: GLenum;
+ readonly LINEAR: GLenum;
+ readonly LINEAR_MIPMAP_LINEAR: GLenum;
+ readonly LINEAR_MIPMAP_NEAREST: GLenum;
+ readonly LINES: GLenum;
+ readonly LINE_LOOP: GLenum;
+ readonly LINE_STRIP: GLenum;
+ readonly LINE_WIDTH: GLenum;
+ readonly LINK_STATUS: GLenum;
+ readonly LOW_FLOAT: GLenum;
+ readonly LOW_INT: GLenum;
+ readonly LUMINANCE: GLenum;
+ readonly LUMINANCE_ALPHA: GLenum;
+ readonly MAX_COMBINED_TEXTURE_IMAGE_UNITS: GLenum;
+ readonly MAX_CUBE_MAP_TEXTURE_SIZE: GLenum;
+ readonly MAX_FRAGMENT_UNIFORM_VECTORS: GLenum;
+ readonly MAX_RENDERBUFFER_SIZE: GLenum;
+ readonly MAX_TEXTURE_IMAGE_UNITS: GLenum;
+ readonly MAX_TEXTURE_SIZE: GLenum;
+ readonly MAX_VARYING_VECTORS: GLenum;
+ readonly MAX_VERTEX_ATTRIBS: GLenum;
+ readonly MAX_VERTEX_TEXTURE_IMAGE_UNITS: GLenum;
+ readonly MAX_VERTEX_UNIFORM_VECTORS: GLenum;
+ readonly MAX_VIEWPORT_DIMS: GLenum;
+ readonly MEDIUM_FLOAT: GLenum;
+ readonly MEDIUM_INT: GLenum;
+ readonly MIRRORED_REPEAT: GLenum;
+ readonly NEAREST: GLenum;
+ readonly NEAREST_MIPMAP_LINEAR: GLenum;
+ readonly NEAREST_MIPMAP_NEAREST: GLenum;
+ readonly NEVER: GLenum;
+ readonly NICEST: GLenum;
+ readonly NONE: GLenum;
+ readonly NOTEQUAL: GLenum;
+ readonly NO_ERROR: GLenum;
+ readonly ONE: GLenum;
+ readonly ONE_MINUS_CONSTANT_ALPHA: GLenum;
+ readonly ONE_MINUS_CONSTANT_COLOR: GLenum;
+ readonly ONE_MINUS_DST_ALPHA: GLenum;
+ readonly ONE_MINUS_DST_COLOR: GLenum;
+ readonly ONE_MINUS_SRC_ALPHA: GLenum;
+ readonly ONE_MINUS_SRC_COLOR: GLenum;
+ readonly OUT_OF_MEMORY: GLenum;
+ readonly PACK_ALIGNMENT: GLenum;
+ readonly POINTS: GLenum;
+ readonly POLYGON_OFFSET_FACTOR: GLenum;
+ readonly POLYGON_OFFSET_FILL: GLenum;
+ readonly POLYGON_OFFSET_UNITS: GLenum;
+ readonly RED_BITS: GLenum;
+ readonly RENDERBUFFER: GLenum;
+ readonly RENDERBUFFER_ALPHA_SIZE: GLenum;
+ readonly RENDERBUFFER_BINDING: GLenum;
+ readonly RENDERBUFFER_BLUE_SIZE: GLenum;
+ readonly RENDERBUFFER_DEPTH_SIZE: GLenum;
+ readonly RENDERBUFFER_GREEN_SIZE: GLenum;
+ readonly RENDERBUFFER_HEIGHT: GLenum;
+ readonly RENDERBUFFER_INTERNAL_FORMAT: GLenum;
+ readonly RENDERBUFFER_RED_SIZE: GLenum;
+ readonly RENDERBUFFER_STENCIL_SIZE: GLenum;
+ readonly RENDERBUFFER_WIDTH: GLenum;
+ readonly RENDERER: GLenum;
+ readonly REPEAT: GLenum;
+ readonly REPLACE: GLenum;
+ readonly RGB: GLenum;
+ readonly RGB565: GLenum;
+ readonly RGB5_A1: GLenum;
+ readonly RGBA: GLenum;
+ readonly RGBA4: GLenum;
+ readonly SAMPLER_2D: GLenum;
+ readonly SAMPLER_CUBE: GLenum;
+ readonly SAMPLES: GLenum;
+ readonly SAMPLE_ALPHA_TO_COVERAGE: GLenum;
+ readonly SAMPLE_BUFFERS: GLenum;
+ readonly SAMPLE_COVERAGE: GLenum;
+ readonly SAMPLE_COVERAGE_INVERT: GLenum;
+ readonly SAMPLE_COVERAGE_VALUE: GLenum;
+ readonly SCISSOR_BOX: GLenum;
+ readonly SCISSOR_TEST: GLenum;
+ readonly SHADER_TYPE: GLenum;
+ readonly SHADING_LANGUAGE_VERSION: GLenum;
+ readonly SHORT: GLenum;
+ readonly SRC_ALPHA: GLenum;
+ readonly SRC_ALPHA_SATURATE: GLenum;
+ readonly SRC_COLOR: GLenum;
+ readonly STATIC_DRAW: GLenum;
+ readonly STENCIL_ATTACHMENT: GLenum;
+ readonly STENCIL_BACK_FAIL: GLenum;
+ readonly STENCIL_BACK_FUNC: GLenum;
+ readonly STENCIL_BACK_PASS_DEPTH_FAIL: GLenum;
+ readonly STENCIL_BACK_PASS_DEPTH_PASS: GLenum;
+ readonly STENCIL_BACK_REF: GLenum;
+ readonly STENCIL_BACK_VALUE_MASK: GLenum;
+ readonly STENCIL_BACK_WRITEMASK: GLenum;
+ readonly STENCIL_BITS: GLenum;
+ readonly STENCIL_BUFFER_BIT: GLenum;
+ readonly STENCIL_CLEAR_VALUE: GLenum;
+ readonly STENCIL_FAIL: GLenum;
+ readonly STENCIL_FUNC: GLenum;
+ readonly STENCIL_INDEX8: GLenum;
+ readonly STENCIL_PASS_DEPTH_FAIL: GLenum;
+ readonly STENCIL_PASS_DEPTH_PASS: GLenum;
+ readonly STENCIL_REF: GLenum;
+ readonly STENCIL_TEST: GLenum;
+ readonly STENCIL_VALUE_MASK: GLenum;
+ readonly STENCIL_WRITEMASK: GLenum;
+ readonly STREAM_DRAW: GLenum;
+ readonly SUBPIXEL_BITS: GLenum;
+ readonly TEXTURE: GLenum;
+ readonly TEXTURE0: GLenum;
+ readonly TEXTURE1: GLenum;
+ readonly TEXTURE10: GLenum;
+ readonly TEXTURE11: GLenum;
+ readonly TEXTURE12: GLenum;
+ readonly TEXTURE13: GLenum;
+ readonly TEXTURE14: GLenum;
+ readonly TEXTURE15: GLenum;
+ readonly TEXTURE16: GLenum;
+ readonly TEXTURE17: GLenum;
+ readonly TEXTURE18: GLenum;
+ readonly TEXTURE19: GLenum;
+ readonly TEXTURE2: GLenum;
+ readonly TEXTURE20: GLenum;
+ readonly TEXTURE21: GLenum;
+ readonly TEXTURE22: GLenum;
+ readonly TEXTURE23: GLenum;
+ readonly TEXTURE24: GLenum;
+ readonly TEXTURE25: GLenum;
+ readonly TEXTURE26: GLenum;
+ readonly TEXTURE27: GLenum;
+ readonly TEXTURE28: GLenum;
+ readonly TEXTURE29: GLenum;
+ readonly TEXTURE3: GLenum;
+ readonly TEXTURE30: GLenum;
+ readonly TEXTURE31: GLenum;
+ readonly TEXTURE4: GLenum;
+ readonly TEXTURE5: GLenum;
+ readonly TEXTURE6: GLenum;
+ readonly TEXTURE7: GLenum;
+ readonly TEXTURE8: GLenum;
+ readonly TEXTURE9: GLenum;
+ readonly TEXTURE_2D: GLenum;
+ readonly TEXTURE_BINDING_2D: GLenum;
+ readonly TEXTURE_BINDING_CUBE_MAP: GLenum;
+ readonly TEXTURE_CUBE_MAP: GLenum;
+ readonly TEXTURE_CUBE_MAP_NEGATIVE_X: GLenum;
+ readonly TEXTURE_CUBE_MAP_NEGATIVE_Y: GLenum;
+ readonly TEXTURE_CUBE_MAP_NEGATIVE_Z: GLenum;
+ readonly TEXTURE_CUBE_MAP_POSITIVE_X: GLenum;
+ readonly TEXTURE_CUBE_MAP_POSITIVE_Y: GLenum;
+ readonly TEXTURE_CUBE_MAP_POSITIVE_Z: GLenum;
+ readonly TEXTURE_MAG_FILTER: GLenum;
+ readonly TEXTURE_MIN_FILTER: GLenum;
+ readonly TEXTURE_WRAP_S: GLenum;
+ readonly TEXTURE_WRAP_T: GLenum;
+ readonly TRIANGLES: GLenum;
+ readonly TRIANGLE_FAN: GLenum;
+ readonly TRIANGLE_STRIP: GLenum;
+ readonly UNPACK_ALIGNMENT: GLenum;
+ readonly UNPACK_COLORSPACE_CONVERSION_WEBGL: GLenum;
+ readonly UNPACK_FLIP_Y_WEBGL: GLenum;
+ readonly UNPACK_PREMULTIPLY_ALPHA_WEBGL: GLenum;
+ readonly UNSIGNED_BYTE: GLenum;
+ readonly UNSIGNED_INT: GLenum;
+ readonly UNSIGNED_SHORT: GLenum;
+ readonly UNSIGNED_SHORT_4_4_4_4: GLenum;
+ readonly UNSIGNED_SHORT_5_5_5_1: GLenum;
+ readonly UNSIGNED_SHORT_5_6_5: GLenum;
+ readonly VALIDATE_STATUS: GLenum;
+ readonly VENDOR: GLenum;
+ readonly VERSION: GLenum;
+ readonly VERTEX_ATTRIB_ARRAY_BUFFER_BINDING: GLenum;
+ readonly VERTEX_ATTRIB_ARRAY_ENABLED: GLenum;
+ readonly VERTEX_ATTRIB_ARRAY_NORMALIZED: GLenum;
+ readonly VERTEX_ATTRIB_ARRAY_POINTER: GLenum;
+ readonly VERTEX_ATTRIB_ARRAY_SIZE: GLenum;
+ readonly VERTEX_ATTRIB_ARRAY_STRIDE: GLenum;
+ readonly VERTEX_ATTRIB_ARRAY_TYPE: GLenum;
+ readonly VERTEX_SHADER: GLenum;
+ readonly VIEWPORT: GLenum;
+ readonly ZERO: GLenum;
+}
+
+interface WebGLShader extends WebGLObject {
+}
+
+declare var WebGLShader: {
+ prototype: WebGLShader;
+ new(): WebGLShader;
+};
+
+interface WebGLShaderPrecisionFormat {
+ readonly precision: GLint;
+ readonly rangeMax: GLint;
+ readonly rangeMin: GLint;
+}
+
+declare var WebGLShaderPrecisionFormat: {
+ prototype: WebGLShaderPrecisionFormat;
+ new(): WebGLShaderPrecisionFormat;
+};
+
+interface WebGLTexture extends WebGLObject {
+}
+
+declare var WebGLTexture: {
+ prototype: WebGLTexture;
+ new(): WebGLTexture;
+};
+
+interface WebGLUniformLocation {
+}
+
+declare var WebGLUniformLocation: {
+ prototype: WebGLUniformLocation;
+ new(): WebGLUniformLocation;
+};
+
+interface WebGLVertexArrayObjectOES extends WebGLObject {
+}
+
interface WebSocketEventMap {
"close": CloseEvent;
"error": Event;
@@ -2696,7 +3899,7 @@ interface Worker extends EventTarget, AbstractWorker {
declare var Worker: {
prototype: Worker;
- new(stringUrl: string): Worker;
+ new(stringUrl: string, options?: WorkerOptions): Worker;
};
interface WorkerGlobalScopeEventMap {
@@ -2756,6 +3959,31 @@ interface WorkerUtils extends WindowBase64 {
importScripts(...urls: string[]): void;
}
+interface WritableStream {
+ readonly locked: boolean;
+ abort(reason?: any): Promise;
+ getWriter(): WritableStreamDefaultWriter;
+}
+
+declare var WritableStream: {
+ prototype: WritableStream;
+ new(underlyingSink?: UnderlyingSink, strategy?: QueuingStrategy): WritableStream;
+};
+
+interface WritableStreamDefaultController {
+ error(error?: any): void;
+}
+
+interface WritableStreamDefaultWriter {
+ readonly closed: Promise;
+ readonly desiredSize: number | null;
+ readonly ready: Promise;
+ abort(reason?: any): Promise;
+ close(): Promise;
+ releaseLock(): void;
+ write(chunk: W): Promise