diff --git a/.gitignore b/.gitignore
index 0cc31cb..f89fcb1 100644
--- a/.gitignore
+++ b/.gitignore
@@ -5,3 +5,6 @@ target/
/com.palantir.typescript/bin/
/com.palantir.typescript/bridge/build/
+
+TypeScript/*
+updatesite
\ No newline at end of file
diff --git a/README.md b/README.md
index 657803a..02940ef 100644
--- a/README.md
+++ b/README.md
@@ -6,7 +6,7 @@ An Eclipse plug-in for developing in the TypeScript language.
1. Install [Node.js](http://nodejs.org/)
1. Open Eclipse and go to Help->Install New Software
1. Add the update site: http://eclipse-update.palantir.com/eclipse-typescript/
-1. Reboot Eclipse
+1. Restart Eclipse
1. (optional) Right-click on a project and select Configure->Enable TypeScript Builder
## Features
@@ -28,18 +28,24 @@ An Eclipse plug-in for developing in the TypeScript language.
* toggle comments
## Additional Information
-* Eclipse Kepler (4.3) and Luna (4.4) are supported
-* Eclipse must be running via Java 6+
+* Eclipse Luna (4.4) Neon (4.5) Oxygen (4.6)
+* Eclipse must be running via Java 8+
* [Wiki](https://github.com/palantir/eclipse-typescript/wiki) (contains information about developing the plug-in)
## Development
### Update Typescript
+* For 100% working result, If your not in Linux use Cygwin shell (download dos2unix).
* Clone Typescript into a sibling folder
+* Manually checkout latest branch. This is simpler and 100% sure.
* Run `npm install` in the Typescript project
* Run `npm install -g dos2unix jake`
-* Update Typescript branch in `./scripts/updateTypeScript.sh`
-* Run `./scripts/updateTypeScript.sh`
+* In script directory Run `./updateTypeScript.sh`
-### Build and Test
-* Run `maven package`
+### now build Eclipse plugin and Test
+* Update package.json for new version.
+* Run `mvn versions:set -DnewVersion=x.x.x -DgenerateBackupPoms=false -U`
+* Run `update_version.sh old_version new_version` This is to change all version ".qualifier"
+* Run `npm install`
+* Run `grunt`
+* Run `mvn package`
* Install zip in Eclipse following `Install New Software...` -> `Add...` -> `Archive...`
diff --git a/com.palantir.typescript.feature/.project b/com.palantir.typescript.feature/.project
index 282bb3e..9f9ed9b 100644
--- a/com.palantir.typescript.feature/.project
+++ b/com.palantir.typescript.feature/.project
@@ -10,8 +10,14 @@
+
+ org.eclipse.m2e.core.maven2Builder
+
+
+
+ org.eclipse.m2e.core.maven2Nature
org.eclipse.pde.FeatureNature
diff --git a/com.palantir.typescript.feature/feature.xml b/com.palantir.typescript.feature/feature.xml
index 33e99a3..9df606e 100644
--- a/com.palantir.typescript.feature/feature.xml
+++ b/com.palantir.typescript.feature/feature.xml
@@ -1,4 +1,4 @@
-
+
-
-
-
- An Eclipse plug-in for developing in the TypeScript language.
-
-
-
- Copyright 2013 Palantir Technologies, Inc.
-
-
-
+-->
+
+
+
+ An Eclipse plug-in for developing in the TypeScript language.
+
+
+
+ Copyright 2013 Palantir Technologies, Inc.
+
+
+
.
Apache License
Version 2.0, January 2004
@@ -230,13 +230,13 @@
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
- limitations under the License.
-
-
-
-
-
+ limitations under the License.
+
+
+
+
+
diff --git a/com.palantir.typescript.feature/pom.xml b/com.palantir.typescript.feature/pom.xml
index 7d26252..c0c6a7f 100644
--- a/com.palantir.typescript.feature/pom.xml
+++ b/com.palantir.typescript.feature/pom.xml
@@ -21,7 +21,7 @@
../pom.xml
com.palantir
parent
- 2.1.0.qualifier
+ 2.6.1
com.palantir.typescript.feature
diff --git a/com.palantir.typescript.p2updatesite/.project b/com.palantir.typescript.p2updatesite/.project
index bdb3038..282fb3e 100644
--- a/com.palantir.typescript.p2updatesite/.project
+++ b/com.palantir.typescript.p2updatesite/.project
@@ -5,7 +5,13 @@
+
+ org.eclipse.m2e.core.maven2Builder
+
+
+
+ org.eclipse.m2e.core.maven2Nature
diff --git a/com.palantir.typescript.p2updatesite/category.xml b/com.palantir.typescript.p2updatesite/category.xml
index 825e57e..48921a6 100644
--- a/com.palantir.typescript.p2updatesite/category.xml
+++ b/com.palantir.typescript.p2updatesite/category.xml
@@ -1,22 +1,22 @@
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
diff --git a/com.palantir.typescript.p2updatesite/pom.xml b/com.palantir.typescript.p2updatesite/pom.xml
index e18ec77..c0c9342 100644
--- a/com.palantir.typescript.p2updatesite/pom.xml
+++ b/com.palantir.typescript.p2updatesite/pom.xml
@@ -21,7 +21,7 @@
../pom.xml
com.palantir
parent
- 2.1.0.qualifier
+ 2.6.1
com.palantir.typescript.p2updatesite
diff --git a/com.palantir.typescript/.classpath b/com.palantir.typescript/.classpath
index 89a9d9b..44e53e9 100644
--- a/com.palantir.typescript/.classpath
+++ b/com.palantir.typescript/.classpath
@@ -1,12 +1,11 @@
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
diff --git a/com.palantir.typescript/.project b/com.palantir.typescript/.project
index 6e2a093..8c503a8 100644
--- a/com.palantir.typescript/.project
+++ b/com.palantir.typescript/.project
@@ -11,22 +11,22 @@
- org.eclipse.pde.ManifestBuilder
+ com.palantir.typescript.typeScriptBuilder
- org.eclipse.pde.SchemaBuilder
+ org.eclipse.pde.ManifestBuilder
- net.sf.eclipsecs.core.CheckstyleBuilder
+ org.eclipse.pde.SchemaBuilder
- com.palantir.typescript.typeScriptBuilder
+ net.sf.eclipsecs.core.CheckstyleBuilder
diff --git a/com.palantir.typescript/.settings/org.eclipse.jdt.core.prefs b/com.palantir.typescript/.settings/org.eclipse.jdt.core.prefs
index 10b9517..d432fc3 100644
--- a/com.palantir.typescript/.settings/org.eclipse.jdt.core.prefs
+++ b/com.palantir.typescript/.settings/org.eclipse.jdt.core.prefs
@@ -7,9 +7,9 @@ org.eclipse.jdt.core.compiler.annotation.nullable=org.eclipse.jdt.annotation.Nul
org.eclipse.jdt.core.compiler.annotation.nullanalysis=disabled
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
org.eclipse.jdt.core.compiler.codegen.methodParameters=do not generate
-org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8
org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
-org.eclipse.jdt.core.compiler.compliance=1.6
+org.eclipse.jdt.core.compiler.compliance=1.8
org.eclipse.jdt.core.compiler.debug.lineNumber=generate
org.eclipse.jdt.core.compiler.debug.localVariable=generate
org.eclipse.jdt.core.compiler.debug.sourceFile=generate
@@ -111,7 +111,7 @@ org.eclipse.jdt.core.compiler.problem.unusedPrivateMember=warning
org.eclipse.jdt.core.compiler.problem.unusedTypeParameter=ignore
org.eclipse.jdt.core.compiler.problem.unusedWarningToken=ignore
org.eclipse.jdt.core.compiler.problem.varargsArgumentNeedCast=error
-org.eclipse.jdt.core.compiler.source=1.6
+org.eclipse.jdt.core.compiler.source=1.8
org.eclipse.jdt.core.formatter.align_type_members_on_columns=false
org.eclipse.jdt.core.formatter.alignment_for_arguments_in_allocation_expression=20
org.eclipse.jdt.core.formatter.alignment_for_arguments_in_annotation=0
diff --git a/com.palantir.typescript/META-INF/MANIFEST.MF b/com.palantir.typescript/META-INF/MANIFEST.MF
index 0955241..56b7566 100644
--- a/com.palantir.typescript/META-INF/MANIFEST.MF
+++ b/com.palantir.typescript/META-INF/MANIFEST.MF
@@ -3,7 +3,7 @@ Bundle-Localization: plugin
Bundle-ManifestVersion: 2
Bundle-Name: TypeScript
Bundle-SymbolicName: com.palantir.typescript;singleton:=true
-Bundle-Version: 2.1.0.qualifier
+Bundle-Version: 2.6.1.qualifier
Bundle-Activator: com.palantir.typescript.TypeScriptPlugin
Bundle-Vendor: Palantir Technologies
Require-Bundle: org.eclipse.compare,
@@ -19,7 +19,7 @@ Require-Bundle: org.eclipse.compare,
org.eclipse.ui.ide,
org.eclipse.ui.views,
org.eclipse.ui.workbench.texteditor
-Bundle-RequiredExecutionEnvironment: JavaSE-1.6
+Bundle-RequiredExecutionEnvironment: JavaSE-1.8
Bundle-ActivationPolicy: lazy
Bundle-ClassPath: lib/guava-19.0.jar,
.,
diff --git a/com.palantir.typescript/bridge/lib/lib.d.ts b/com.palantir.typescript/bridge/lib/lib.d.ts
index 5b1f3d7..42d69ed 100644
--- a/com.palantir.typescript/bridge/lib/lib.d.ts
+++ b/com.palantir.typescript/bridge/lib/lib.d.ts
@@ -87,8 +87,8 @@ interface PropertyDescriptor {
enumerable?: boolean;
value?: any;
writable?: boolean;
- get? (): any;
- set? (v: any): void;
+ get?(): any;
+ set?(v: any): void;
}
interface PropertyDescriptorMap {
@@ -128,7 +128,7 @@ interface Object {
}
interface ObjectConstructor {
- new (value?: any): Object;
+ new(value?: any): Object;
(): any;
(value: any): any;
@@ -147,7 +147,7 @@ interface ObjectConstructor {
* @param o Object that contains the property.
* @param p Name of the property.
*/
- getOwnPropertyDescriptor(o: any, p: string): PropertyDescriptor;
+ getOwnPropertyDescriptor(o: any, p: string): PropertyDescriptor | undefined;
/**
* Returns the names of the own properties of an object. The own properties of an object are those that are defined directly
@@ -157,23 +157,17 @@ interface ObjectConstructor {
getOwnPropertyNames(o: any): string[];
/**
- * Creates an object that has null prototype.
- * @param o Object to use as a prototype. May be null
- */
- create(o: null): any;
-
- /**
- * Creates an object that has the specified prototype, and that optionally contains specified properties.
- * @param o Object to use as a prototype. May be null
+ * Creates an object that has the specified prototype or that has null prototype.
+ * @param o Object to use as a prototype. May be null.
*/
- create(o: T): T;
+ create(o: object | null): any;
/**
* Creates an object that has the specified prototype, and that optionally contains specified properties.
* @param o Object to use as a prototype. May be null
* @param properties JavaScript object that contains one or more property descriptors.
*/
- create(o: any, properties: PropertyDescriptorMap): any;
+ create(o: object | null, properties: PropertyDescriptorMap & ThisType): any;
/**
* Adds a property to an object, or modifies attributes of an existing property.
@@ -181,14 +175,14 @@ interface ObjectConstructor {
* @param p The property name.
* @param attributes Descriptor for the property. It can be for a data property or an accessor property.
*/
- defineProperty(o: any, p: string, attributes: PropertyDescriptor): any;
+ defineProperty(o: any, p: string, attributes: PropertyDescriptor & ThisType): any;
/**
* Adds one or more properties to an object, and/or modifies attributes of existing properties.
* @param o Object on which to add or modify the properties. This can be a native JavaScript object or a DOM object.
* @param properties JavaScript object that contains one or more descriptor objects. Each descriptor object describes a data property or an accessor property.
*/
- defineProperties(o: any, properties: PropertyDescriptorMap): any;
+ defineProperties(o: any, properties: PropertyDescriptorMap & ThisType): any;
/**
* Prevents the modification of attributes of existing properties, and prevents the addition of new properties.
@@ -242,7 +236,7 @@ interface ObjectConstructor {
* Returns the names of the enumerable properties and methods of an object.
* @param o Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object.
*/
- keys(o: any): string[];
+ keys(o: {}): string[];
}
/**
@@ -292,7 +286,7 @@ interface FunctionConstructor {
* Creates a new function.
* @param args A list of arguments the function accepts.
*/
- new (...args: string[]): Function;
+ new(...args: string[]): Function;
(...args: string[]): Function;
readonly prototype: Function;
}
@@ -351,53 +345,27 @@ interface String {
* Matches a string with a regular expression, and returns an array containing the results of that search.
* @param regexp A variable name or string literal containing the regular expression pattern and flags.
*/
- match(regexp: string): RegExpMatchArray | null;
-
- /**
- * Matches a string with a regular expression, and returns an array containing the results of that search.
- * @param regexp A regular expression object that contains the regular expression pattern and applicable flags.
- */
- match(regexp: RegExp): RegExpMatchArray | null;
-
- /**
- * Replaces text in a string, using a regular expression or search string.
- * @param searchValue A string that represents the regular expression.
- * @param replaceValue A string containing the text to replace for every successful match of searchValue in this string.
- */
- replace(searchValue: string, replaceValue: string): string;
-
- /**
- * Replaces text in a string, using a regular expression or search string.
- * @param searchValue A string that represents the regular expression.
- * @param replacer A function that returns the replacement text.
- */
- replace(searchValue: string, replacer: (substring: string, ...args: any[]) => string): string;
+ match(regexp: string | RegExp): RegExpMatchArray | null;
/**
* Replaces text in a string, using a regular expression or search string.
- * @param searchValue A Regular Expression object containing the regular expression pattern and applicable flags.
+ * @param searchValue A string to search for.
* @param replaceValue A string containing the text to replace for every successful match of searchValue in this string.
*/
- replace(searchValue: RegExp, replaceValue: string): string;
+ replace(searchValue: string | RegExp, replaceValue: string): string;
/**
* Replaces text in a string, using a regular expression or search string.
- * @param searchValue A Regular Expression object containing the regular expression pattern and applicable flags
+ * @param searchValue A string to search for.
* @param replacer A function that returns the replacement text.
*/
- replace(searchValue: RegExp, replacer: (substring: string, ...args: any[]) => string): string;
-
- /**
- * Finds the first substring match in a regular expression search.
- * @param regexp The regular expression pattern and applicable flags.
- */
- search(regexp: string): number;
+ replace(searchValue: string | RegExp, replacer: (substring: string, ...args: any[]) => string): string;
/**
* Finds the first substring match in a regular expression search.
* @param regexp The regular expression pattern and applicable flags.
*/
- search(regexp: RegExp): number;
+ search(regexp: string | RegExp): number;
/**
* Returns a section of a string.
@@ -412,14 +380,7 @@ interface String {
* @param separator A string that identifies character or characters to use in separating the string. If omitted, a single-element array containing the entire string is returned.
* @param limit A value used to limit the number of elements returned in the array.
*/
- split(separator: string, limit?: number): string[];
-
- /**
- * Split a string into substrings using the specified separator and return them as an array.
- * @param separator A Regular Express that identifies character or characters to use in separating the string. If omitted, a single-element array containing the entire string is returned.
- * @param limit A value used to limit the number of elements returned in the array.
- */
- split(separator: RegExp, limit?: number): string[];
+ split(separator: string | RegExp, limit?: number): string[];
/**
* Returns the substring at the specified location within a String object.
@@ -462,7 +423,7 @@ interface String {
}
interface StringConstructor {
- new (value?: any): String;
+ new(value?: any): String;
(value?: any): string;
readonly prototype: String;
fromCharCode(...codes: number[]): string;
@@ -479,7 +440,7 @@ interface Boolean {
}
interface BooleanConstructor {
- new (value?: any): Boolean;
+ new(value?: any): Boolean;
(value?: any): boolean;
readonly prototype: Boolean;
}
@@ -516,7 +477,7 @@ interface Number {
}
interface NumberConstructor {
- new (value?: any): Number;
+ new(value?: any): Number;
(value?: any): number;
readonly prototype: Number;
@@ -549,7 +510,7 @@ interface NumberConstructor {
declare const Number: NumberConstructor;
interface TemplateStringsArray extends ReadonlyArray {
- readonly raw: ReadonlyArray
+ readonly raw: ReadonlyArray;
}
interface Math {
@@ -818,10 +779,10 @@ interface Date {
}
interface DateConstructor {
- new (): Date;
- new (value: number): Date;
- new (value: string): Date;
- new (year: number, month: number, date?: number, hours?: number, minutes?: number, seconds?: number, ms?: number): Date;
+ new(): Date;
+ new(value: number): Date;
+ new(value: string): Date;
+ new(year: number, month: number, date?: number, hours?: number, minutes?: number, seconds?: number, ms?: number): Date;
(): string;
readonly prototype: Date;
/**
@@ -887,9 +848,9 @@ interface RegExp {
}
interface RegExpConstructor {
- new (pattern: RegExp): RegExp;
- new (pattern: string, flags?: string): RegExp;
- (pattern: RegExp): RegExp;
+ new(pattern: RegExp | string): RegExp;
+ new(pattern: string, flags?: string): RegExp;
+ (pattern: RegExp | string): RegExp;
(pattern: string, flags?: string): RegExp;
readonly prototype: RegExp;
@@ -915,7 +876,7 @@ interface Error {
}
interface ErrorConstructor {
- new (message?: string): Error;
+ new(message?: string): Error;
(message?: string): Error;
readonly prototype: Error;
}
@@ -926,7 +887,7 @@ interface EvalError extends Error {
}
interface EvalErrorConstructor {
- new (message?: string): EvalError;
+ new(message?: string): EvalError;
(message?: string): EvalError;
readonly prototype: EvalError;
}
@@ -937,7 +898,7 @@ interface RangeError extends Error {
}
interface RangeErrorConstructor {
- new (message?: string): RangeError;
+ new(message?: string): RangeError;
(message?: string): RangeError;
readonly prototype: RangeError;
}
@@ -948,7 +909,7 @@ interface ReferenceError extends Error {
}
interface ReferenceErrorConstructor {
- new (message?: string): ReferenceError;
+ new(message?: string): ReferenceError;
(message?: string): ReferenceError;
readonly prototype: ReferenceError;
}
@@ -959,7 +920,7 @@ interface SyntaxError extends Error {
}
interface SyntaxErrorConstructor {
- new (message?: string): SyntaxError;
+ new(message?: string): SyntaxError;
(message?: string): SyntaxError;
readonly prototype: SyntaxError;
}
@@ -970,7 +931,7 @@ interface TypeError extends Error {
}
interface TypeErrorConstructor {
- new (message?: string): TypeError;
+ new(message?: string): TypeError;
(message?: string): TypeError;
readonly prototype: TypeError;
}
@@ -981,7 +942,7 @@ interface URIError extends Error {
}
interface URIErrorConstructor {
- new (message?: string): URIError;
+ new(message?: string): URIError;
(message?: string): URIError;
readonly prototype: URIError;
}
@@ -1031,22 +992,20 @@ interface ReadonlyArray {
* Returns a string representation of an array.
*/
toString(): string;
- toLocaleString(): string;
/**
- * Combines two or more arrays.
- * @param items Additional items to add to the end of array1.
+ * Returns a string representation of an array. The elements are converted to string using thier toLocalString methods.
*/
- concat>(...items: U[]): T[];
+ toLocaleString(): string;
/**
* Combines two or more arrays.
* @param items Additional items to add to the end of array1.
*/
- concat(...items: T[][]): T[];
+ concat(...items: ReadonlyArray[]): T[];
/**
* Combines two or more arrays.
* @param items Additional items to add to the end of array1.
*/
- concat(...items: (T | T[])[]): T[];
+ concat(...items: (T | ReadonlyArray)[]): T[];
/**
* Adds all the elements of an array separated by the specified separator string.
* @param separator A string used to separate one element of an array from the next in the resulting String. If omitted, the array elements are separated with a comma.
@@ -1064,7 +1023,6 @@ interface ReadonlyArray {
* @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the search starts at index 0.
*/
indexOf(searchElement: T, fromIndex?: number): number;
-
/**
* Returns the index of the last occurrence of a specified value in an array.
* @param searchElement The value to locate in the array.
@@ -1112,7 +1070,8 @@ interface ReadonlyArray {
* @param callbackfn A function that accepts up to four arguments. The reduce method calls the callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.
*/
- reduce(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: ReadonlyArray) => T, initialValue?: T): T;
+ reduce(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: ReadonlyArray) => T): T;
+ reduce(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: ReadonlyArray) => T, initialValue: T): T;
/**
* Calls the specified callback function for all the elements in an array. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduce method calls the callbackfn function one time for each element in the array.
@@ -1124,7 +1083,8 @@ interface ReadonlyArray {
* @param callbackfn A function that accepts up to four arguments. The reduceRight method calls the callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.
*/
- reduceRight(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: ReadonlyArray) => T, initialValue?: T): T;
+ reduceRight(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: ReadonlyArray) => T): T;
+ reduceRight(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: ReadonlyArray) => T, initialValue: T): T;
/**
* Calls the specified callback function for all the elements in an array, in descending order. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduceRight method calls the callbackfn function one time for each element in the array.
@@ -1144,6 +1104,9 @@ interface Array {
* Returns a string representation of an array.
*/
toString(): string;
+ /**
+ * Returns a string representation of an array. The elements are converted to string using thier toLocalString methods.
+ */
toLocaleString(): string;
/**
* Appends new elements to an array, and returns the new length of the array.
@@ -1158,12 +1121,12 @@ interface Array {
* Combines two or more arrays.
* @param items Additional items to add to the end of array1.
*/
- concat(...items: T[][]): T[];
+ concat(...items: ReadonlyArray[]): T[];
/**
* Combines two or more arrays.
* @param items Additional items to add to the end of array1.
*/
- concat(...items: (T | T[])[]): T[];
+ concat(...items: (T | ReadonlyArray)[]): T[];
/**
* Adds all the elements of an array separated by the specified separator string.
* @param separator A string used to separate one element of an array from the next in the resulting String. If omitted, the array elements are separated with a comma.
@@ -1191,8 +1154,9 @@ interface Array {
/**
* Removes elements from an array and, if necessary, inserts new elements in their place, returning the deleted elements.
* @param start The zero-based location in the array from which to start removing elements.
+ * @param deleteCount The number of elements to remove.
*/
- splice(start: number): T[];
+ splice(start: number, deleteCount?: number): T[];
/**
* Removes elements from an array and, if necessary, inserts new elements in their place, returning the deleted elements.
* @param start The zero-based location in the array from which to start removing elements.
@@ -1235,36 +1199,18 @@ interface Array {
* @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.
*/
forEach(callbackfn: (value: T, index: number, array: T[]) => void, thisArg?: any): void;
- /**
- * Calls a defined callback function on each element of an array, and returns an array that contains the results.
- * @param callbackfn A function that accepts up to three arguments. The map method calls the callbackfn function one time for each element in the array.
- * @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.
- */
- map(this: [T, T, T, T, T], callbackfn: (value: T, index: number, array: T[]) => U, thisArg?: any): [U, U, U, U, U];
- /**
- * 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(this: [T, T, T, T], callbackfn: (value: T, index: number, array: T[]) => U, thisArg?: any): [U, U, U, U];
- /**
- * 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(this: [T, T, T], callbackfn: (value: T, index: number, array: T[]) => U, thisArg?: any): [U, U, U];
- /**
- * 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(this: [T, T], callbackfn: (value: T, index: number, array: T[]) => U, thisArg?: any): [U, U];
/**
* Calls a defined callback function on each element of an array, and returns an array that contains the results.
* @param callbackfn A function that accepts up to three arguments. The map method calls the callbackfn function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.
*/
map(callbackfn: (value: T, index: number, array: T[]) => U, thisArg?: any): U[];
+ /**
+ * Returns the elements of an array that meet the condition specified in a callback function.
+ * @param callbackfn A function that accepts up to three arguments. The filter method calls the callbackfn function one time for each element in the array.
+ * @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.
+ */
+ filter(callbackfn: (value: T, index: number, array: T[]) => value is S, thisArg?: any): S[];
/**
* Returns the elements of an array that meet the condition specified in a callback function.
* @param callbackfn A function that accepts up to three arguments. The filter method calls the callbackfn function one time for each element in the array.
@@ -1276,7 +1222,8 @@ interface Array {
* @param callbackfn A function that accepts up to four arguments. The reduce method calls the callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.
*/
- reduce(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: T[]) => T, initialValue?: T): T;
+ reduce(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: T[]) => T): T;
+ reduce(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: T[]) => T, initialValue: T): T;
/**
* Calls the specified callback function for all the elements in an array. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduce method calls the callbackfn function one time for each element in the array.
@@ -1288,7 +1235,8 @@ interface Array {
* @param callbackfn A function that accepts up to four arguments. The reduceRight method calls the callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.
*/
- reduceRight(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: T[]) => T, initialValue?: T): T;
+ reduceRight(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: T[]) => T): T;
+ reduceRight(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: T[]) => T, initialValue: T): T;
/**
* Calls the specified callback function for all the elements in an array, in descending order. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduceRight method calls the callbackfn function one time for each element in the array.
@@ -1300,7 +1248,7 @@ interface Array {
}
interface ArrayConstructor {
- new (arrayLength?: number): any[];
+ new(arrayLength?: number): any[];
new (arrayLength: number): T[];
new (...items: T[]): T[];
(arrayLength?: number): any[];
@@ -1335,39 +1283,27 @@ interface PromiseLike {
* @param onrejected The callback to execute when the Promise is rejected.
* @returns A Promise for the completion of which ever callback is executed.
*/
- then(
- onfulfilled?: ((value: T) => T | PromiseLike) | undefined | null,
- onrejected?: ((reason: any) => T | PromiseLike) | undefined | null): PromiseLike;
-
- /**
- * Attaches callbacks for the resolution and/or rejection of the Promise.
- * @param onfulfilled The callback to execute when the Promise is resolved.
- * @param onrejected The callback to execute when the Promise is rejected.
- * @returns A Promise for the completion of which ever callback is executed.
- */
- then(
- onfulfilled: ((value: T) => T | PromiseLike) | undefined | null,
- onrejected: (reason: any) => TResult | PromiseLike): PromiseLike;
+ then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): PromiseLike;
+}
+/**
+ * Represents the completion of an asynchronous operation
+ */
+interface Promise {
/**
* Attaches callbacks for the resolution and/or rejection of the Promise.
* @param onfulfilled The callback to execute when the Promise is resolved.
* @param onrejected The callback to execute when the Promise is rejected.
* @returns A Promise for the completion of which ever callback is executed.
*/
- then(
- onfulfilled: (value: T) => TResult | PromiseLike,
- onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): PromiseLike;
+ then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): Promise;
/**
- * Attaches callbacks for the resolution and/or rejection of the Promise.
- * @param onfulfilled The callback to execute when the Promise is resolved.
+ * Attaches a callback for only the rejection of the Promise.
* @param onrejected The callback to execute when the Promise is rejected.
- * @returns A Promise for the completion of which ever callback is executed.
+ * @returns A Promise for the completion of the callback.
*/
- then(
- onfulfilled: (value: T) => TResult1 | PromiseLike,
- onrejected: (reason: any) => TResult2 | PromiseLike): PromiseLike;
+ catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): Promise;
}
interface ArrayLike {
@@ -1394,14 +1330,19 @@ type Readonly = {
*/
type Pick = {
[P in K]: T[P];
-}
+};
/**
* Construct a type with a set of properties K of type T
*/
type Record = {
[P in K]: T;
-}
+};
+
+/**
+ * Marker for contextual 'this' type
+ */
+interface ThisType { }
/**
* Represents a raw buffer of binary data, which is used to store data for the
@@ -1418,12 +1359,20 @@ interface ArrayBuffer {
/**
* Returns a section of an ArrayBuffer.
*/
- slice(begin:number, end?:number): ArrayBuffer;
+ slice(begin: number, end?: number): ArrayBuffer;
+}
+
+/**
+ * Allowed ArrayBuffer types for the buffer of an ArrayBufferView and related Typed Arrays.
+ */
+interface ArrayBufferTypes {
+ ArrayBuffer: ArrayBuffer;
}
+type ArrayBufferLike = ArrayBufferTypes[keyof ArrayBufferTypes];
interface ArrayBufferConstructor {
readonly prototype: ArrayBuffer;
- new (byteLength: number): ArrayBuffer;
+ new(byteLength: number): ArrayBuffer;
isView(arg: any): arg is ArrayBufferView;
}
declare const ArrayBuffer: ArrayBufferConstructor;
@@ -1432,7 +1381,7 @@ interface ArrayBufferView {
/**
* The ArrayBuffer instance referenced by the array.
*/
- buffer: ArrayBuffer;
+ buffer: ArrayBufferLike;
/**
* The length in bytes of the array.
@@ -1574,7 +1523,7 @@ interface DataView {
}
interface DataViewConstructor {
- new (buffer: ArrayBuffer, byteOffset?: number, byteLength?: number): DataView;
+ new(buffer: ArrayBufferLike, byteOffset?: number, byteLength?: number): DataView;
}
declare const DataView: DataViewConstructor;
@@ -1591,7 +1540,7 @@ interface Int8Array {
/**
* The ArrayBuffer instance referenced by the array.
*/
- readonly buffer: ArrayBuffer;
+ readonly buffer: ArrayBufferLike;
/**
* The length in bytes of the array.
@@ -1652,7 +1601,7 @@ interface Int8Array {
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
- find(predicate: (value: number, index: number, obj: Array) => boolean, thisArg?: any): number | undefined;
+ find(predicate: (value: number, index: number, obj: Int8Array) => boolean, thisArg?: any): number | undefined;
/**
* Returns the index of the first element in the array where predicate is true, and -1
@@ -1663,7 +1612,7 @@ interface Int8Array {
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
- findIndex(predicate: (value: number, index: number, obj: Array) => boolean, thisArg?: any): number;
+ findIndex(predicate: (value: number, index: number, obj: Int8Array) => boolean, thisArg?: any): number;
/**
* Performs the specified action for each element in an array.
@@ -1722,7 +1671,8 @@ interface Int8Array {
* the accumulation. The first call to the callbackfn function provides this value as an argument
* instead of an array value.
*/
- reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int8Array) => number, initialValue?: number): number;
+ reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int8Array) => number): number;
+ reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int8Array) => number, initialValue: number): number;
/**
* Calls the specified callback function for all the elements in an array. The return value of
@@ -1746,7 +1696,8 @@ interface Int8Array {
* the accumulation. The first call to the callbackfn function provides this value as an
* argument instead of an array value.
*/
- reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int8Array) => number, initialValue?: number): number;
+ reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int8Array) => number): number;
+ reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int8Array) => number, initialValue: number): number;
/**
* Calls the specified callback function for all the elements in an array, in descending order.
@@ -1765,13 +1716,6 @@ interface Int8Array {
*/
reverse(): Int8Array;
- /**
- * Sets a value or an array of values.
- * @param index The index of the location to set.
- * @param value The value to set.
- */
- set(index: number, value: number): void;
-
/**
* Sets a value or an array of values.
* @param array A typed or untyped array of values to set.
@@ -1825,9 +1769,9 @@ interface Int8Array {
}
interface Int8ArrayConstructor {
readonly prototype: Int8Array;
- new (length: number): Int8Array;
- new (array: ArrayLike): Int8Array;
- new (buffer: ArrayBuffer, byteOffset?: number, length?: number): Int8Array;
+ new(length: number): Int8Array;
+ new(arrayOrArrayBuffer: ArrayLike | ArrayBufferLike): Int8Array;
+ new(buffer: ArrayBufferLike, byteOffset: number, length?: number): Int8Array;
/**
* The size in bytes of each element in the array.
@@ -1848,6 +1792,7 @@ interface Int8ArrayConstructor {
*/
from(arrayLike: ArrayLike, mapfn?: (v: number, k: number) => number, thisArg?: any): Int8Array;
+
}
declare const Int8Array: Int8ArrayConstructor;
@@ -1864,7 +1809,7 @@ interface Uint8Array {
/**
* The ArrayBuffer instance referenced by the array.
*/
- readonly buffer: ArrayBuffer;
+ readonly buffer: ArrayBufferLike;
/**
* The length in bytes of the array.
@@ -1925,7 +1870,7 @@ interface Uint8Array {
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
- find(predicate: (value: number, index: number, obj: Array) => boolean, thisArg?: any): number | undefined;
+ find(predicate: (value: number, index: number, obj: Uint8Array) => boolean, thisArg?: any): number | undefined;
/**
* Returns the index of the first element in the array where predicate is true, and -1
@@ -1936,7 +1881,7 @@ interface Uint8Array {
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
- findIndex(predicate: (value: number, index: number, obj: Array) => boolean, thisArg?: any): number;
+ findIndex(predicate: (value: number, index: number, obj: Uint8Array) => boolean, thisArg?: any): number;
/**
* Performs the specified action for each element in an array.
@@ -1995,7 +1940,8 @@ interface Uint8Array {
* the accumulation. The first call to the callbackfn function provides this value as an argument
* instead of an array value.
*/
- reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8Array) => number, initialValue?: number): number;
+ reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8Array) => number): number;
+ reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8Array) => number, initialValue: number): number;
/**
* Calls the specified callback function for all the elements in an array. The return value of
@@ -2019,7 +1965,8 @@ interface Uint8Array {
* the accumulation. The first call to the callbackfn function provides this value as an
* argument instead of an array value.
*/
- reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8Array) => number, initialValue?: number): number;
+ reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8Array) => number): number;
+ reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8Array) => number, initialValue: number): number;
/**
* Calls the specified callback function for all the elements in an array, in descending order.
@@ -2038,13 +1985,6 @@ interface Uint8Array {
*/
reverse(): Uint8Array;
- /**
- * Sets a value or an array of values.
- * @param index The index of the location to set.
- * @param value The value to set.
- */
- set(index: number, value: number): void;
-
/**
* Sets a value or an array of values.
* @param array A typed or untyped array of values to set.
@@ -2099,9 +2039,9 @@ interface Uint8Array {
interface Uint8ArrayConstructor {
readonly prototype: Uint8Array;
- new (length: number): Uint8Array;
- new (array: ArrayLike): Uint8Array;
- new (buffer: ArrayBuffer, byteOffset?: number, length?: number): Uint8Array;
+ new(length: number): Uint8Array;
+ new(arrayOrArrayBuffer: ArrayLike | ArrayBufferLike): Uint8Array;
+ new(buffer: ArrayBufferLike, byteOffset: number, length?: number): Uint8Array;
/**
* The size in bytes of each element in the array.
@@ -2138,7 +2078,7 @@ interface Uint8ClampedArray {
/**
* The ArrayBuffer instance referenced by the array.
*/
- readonly buffer: ArrayBuffer;
+ readonly buffer: ArrayBufferLike;
/**
* The length in bytes of the array.
@@ -2199,7 +2139,7 @@ interface Uint8ClampedArray {
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
- find(predicate: (value: number, index: number, obj: Array) => boolean, thisArg?: any): number | undefined;
+ find(predicate: (value: number, index: number, obj: Uint8ClampedArray) => boolean, thisArg?: any): number | undefined;
/**
* Returns the index of the first element in the array where predicate is true, and -1
@@ -2210,7 +2150,7 @@ interface Uint8ClampedArray {
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
- findIndex(predicate: (value: number, index: number, obj: Array) => boolean, thisArg?: any): number;
+ findIndex(predicate: (value: number, index: number, obj: Uint8ClampedArray) => boolean, thisArg?: any): number;
/**
* Performs the specified action for each element in an array.
@@ -2269,7 +2209,8 @@ interface Uint8ClampedArray {
* the accumulation. The first call to the callbackfn function provides this value as an argument
* instead of an array value.
*/
- reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8ClampedArray) => number, initialValue?: number): number;
+ reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8ClampedArray) => number): number;
+ reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8ClampedArray) => number, initialValue: number): number;
/**
* Calls the specified callback function for all the elements in an array. The return value of
@@ -2293,7 +2234,8 @@ interface Uint8ClampedArray {
* the accumulation. The first call to the callbackfn function provides this value as an
* argument instead of an array value.
*/
- reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8ClampedArray) => number, initialValue?: number): number;
+ reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8ClampedArray) => number): number;
+ reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8ClampedArray) => number, initialValue: number): number;
/**
* Calls the specified callback function for all the elements in an array, in descending order.
@@ -2312,19 +2254,12 @@ interface Uint8ClampedArray {
*/
reverse(): Uint8ClampedArray;
- /**
- * Sets a value or an array of values.
- * @param index The index of the location to set.
- * @param value The value to set.
- */
- set(index: number, value: number): void;
-
/**
* 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: Uint8ClampedArray, offset?: number): void;
+ set(array: ArrayLike, offset?: number): void;
/**
* Returns a section of an array.
@@ -2373,9 +2308,9 @@ interface Uint8ClampedArray {
interface Uint8ClampedArrayConstructor {
readonly prototype: Uint8ClampedArray;
- new (length: number): Uint8ClampedArray;
- new (array: ArrayLike): Uint8ClampedArray;
- new (buffer: ArrayBuffer, byteOffset?: number, length?: number): Uint8ClampedArray;
+ new(length: number): Uint8ClampedArray;
+ new(arrayOrArrayBuffer: ArrayLike | ArrayBufferLike): Uint8ClampedArray;
+ new(buffer: ArrayBufferLike, byteOffset: number, length?: number): Uint8ClampedArray;
/**
* The size in bytes of each element in the array.
@@ -2411,7 +2346,7 @@ interface Int16Array {
/**
* The ArrayBuffer instance referenced by the array.
*/
- readonly buffer: ArrayBuffer;
+ readonly buffer: ArrayBufferLike;
/**
* The length in bytes of the array.
@@ -2472,7 +2407,7 @@ interface Int16Array {
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
- find(predicate: (value: number, index: number, obj: Array) => boolean, thisArg?: any): number | undefined;
+ find(predicate: (value: number, index: number, obj: Int16Array) => boolean, thisArg?: any): number | undefined;
/**
* Returns the index of the first element in the array where predicate is true, and -1
@@ -2483,7 +2418,7 @@ interface Int16Array {
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
- findIndex(predicate: (value: number, index: number, obj: Array) => boolean, thisArg?: any): number;
+ findIndex(predicate: (value: number, index: number, obj: Int16Array) => boolean, thisArg?: any): number;
/**
* Performs the specified action for each element in an array.
@@ -2493,7 +2428,6 @@ interface Int16Array {
* If thisArg is omitted, undefined is used as the this value.
*/
forEach(callbackfn: (value: number, index: number, array: Int16Array) => void, thisArg?: any): void;
-
/**
* Returns the index of the first occurrence of a value in an array.
* @param searchElement The value to locate in the array.
@@ -2542,7 +2476,8 @@ interface Int16Array {
* the accumulation. The first call to the callbackfn function provides this value as an argument
* instead of an array value.
*/
- reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int16Array) => number, initialValue?: number): number;
+ reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int16Array) => number): number;
+ reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int16Array) => number, initialValue: number): number;
/**
* Calls the specified callback function for all the elements in an array. The return value of
@@ -2566,7 +2501,8 @@ interface Int16Array {
* the accumulation. The first call to the callbackfn function provides this value as an
* argument instead of an array value.
*/
- reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int16Array) => number, initialValue?: number): number;
+ reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int16Array) => number): number;
+ reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int16Array) => number, initialValue: number): number;
/**
* Calls the specified callback function for all the elements in an array, in descending order.
@@ -2585,13 +2521,6 @@ interface Int16Array {
*/
reverse(): Int16Array;
- /**
- * Sets a value or an array of values.
- * @param index The index of the location to set.
- * @param value The value to set.
- */
- set(index: number, value: number): void;
-
/**
* Sets a value or an array of values.
* @param array A typed or untyped array of values to set.
@@ -2646,9 +2575,9 @@ interface Int16Array {
interface Int16ArrayConstructor {
readonly prototype: Int16Array;
- new (length: number): Int16Array;
- new (array: ArrayLike): Int16Array;
- new (buffer: ArrayBuffer, byteOffset?: number, length?: number): Int16Array;
+ new(length: number): Int16Array;
+ new(arrayOrArrayBuffer: ArrayLike | ArrayBufferLike): Int16Array;
+ new(buffer: ArrayBufferLike, byteOffset: number, length?: number): Int16Array;
/**
* The size in bytes of each element in the array.
@@ -2669,6 +2598,7 @@ interface Int16ArrayConstructor {
*/
from(arrayLike: ArrayLike, mapfn?: (v: number, k: number) => number, thisArg?: any): Int16Array;
+
}
declare const Int16Array: Int16ArrayConstructor;
@@ -2685,7 +2615,7 @@ interface Uint16Array {
/**
* The ArrayBuffer instance referenced by the array.
*/
- readonly buffer: ArrayBuffer;
+ readonly buffer: ArrayBufferLike;
/**
* The length in bytes of the array.
@@ -2746,7 +2676,7 @@ interface Uint16Array {
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
- find(predicate: (value: number, index: number, obj: Array) => boolean, thisArg?: any): number | undefined;
+ find(predicate: (value: number, index: number, obj: Uint16Array) => boolean, thisArg?: any): number | undefined;
/**
* Returns the index of the first element in the array where predicate is true, and -1
@@ -2757,7 +2687,7 @@ interface Uint16Array {
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
- findIndex(predicate: (value: number, index: number, obj: Array) => boolean, thisArg?: any): number;
+ findIndex(predicate: (value: number, index: number, obj: Uint16Array) => boolean, thisArg?: any): number;
/**
* Performs the specified action for each element in an array.
@@ -2816,7 +2746,8 @@ interface Uint16Array {
* the accumulation. The first call to the callbackfn function provides this value as an argument
* instead of an array value.
*/
- reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint16Array) => number, initialValue?: number): number;
+ reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint16Array) => number): number;
+ reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint16Array) => number, initialValue: number): number;
/**
* Calls the specified callback function for all the elements in an array. The return value of
@@ -2840,7 +2771,8 @@ interface Uint16Array {
* the accumulation. The first call to the callbackfn function provides this value as an
* argument instead of an array value.
*/
- reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint16Array) => number, initialValue?: number): number;
+ reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint16Array) => number): number;
+ reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint16Array) => number, initialValue: number): number;
/**
* Calls the specified callback function for all the elements in an array, in descending order.
@@ -2859,13 +2791,6 @@ interface Uint16Array {
*/
reverse(): Uint16Array;
- /**
- * Sets a value or an array of values.
- * @param index The index of the location to set.
- * @param value The value to set.
- */
- set(index: number, value: number): void;
-
/**
* Sets a value or an array of values.
* @param array A typed or untyped array of values to set.
@@ -2920,9 +2845,9 @@ interface Uint16Array {
interface Uint16ArrayConstructor {
readonly prototype: Uint16Array;
- new (length: number): Uint16Array;
- new (array: ArrayLike): Uint16Array;
- new (buffer: ArrayBuffer, byteOffset?: number, length?: number): Uint16Array;
+ new(length: number): Uint16Array;
+ new(arrayOrArrayBuffer: ArrayLike | ArrayBufferLike): Uint16Array;
+ new(buffer: ArrayBufferLike, byteOffset: number, length?: number): Uint16Array;
/**
* The size in bytes of each element in the array.
@@ -2943,6 +2868,7 @@ interface Uint16ArrayConstructor {
*/
from(arrayLike: ArrayLike, mapfn?: (v: number, k: number) => number, thisArg?: any): Uint16Array;
+
}
declare const Uint16Array: Uint16ArrayConstructor;
/**
@@ -2958,7 +2884,7 @@ interface Int32Array {
/**
* The ArrayBuffer instance referenced by the array.
*/
- readonly buffer: ArrayBuffer;
+ readonly buffer: ArrayBufferLike;
/**
* The length in bytes of the array.
@@ -3019,7 +2945,7 @@ interface Int32Array {
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
- find(predicate: (value: number, index: number, obj: Array) => boolean, thisArg?: any): number | undefined;
+ find(predicate: (value: number, index: number, obj: Int32Array) => boolean, thisArg?: any): number | undefined;
/**
* Returns the index of the first element in the array where predicate is true, and -1
@@ -3030,7 +2956,7 @@ interface Int32Array {
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
- findIndex(predicate: (value: number, index: number, obj: Array) => boolean, thisArg?: any): number;
+ findIndex(predicate: (value: number, index: number, obj: Int32Array) => boolean, thisArg?: any): number;
/**
* Performs the specified action for each element in an array.
@@ -3089,7 +3015,8 @@ interface Int32Array {
* the accumulation. The first call to the callbackfn function provides this value as an argument
* instead of an array value.
*/
- reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int32Array) => number, initialValue?: number): number;
+ reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int32Array) => number): number;
+ reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int32Array) => number, initialValue: number): number;
/**
* Calls the specified callback function for all the elements in an array. The return value of
@@ -3113,7 +3040,8 @@ interface Int32Array {
* the accumulation. The first call to the callbackfn function provides this value as an
* argument instead of an array value.
*/
- reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int32Array) => number, initialValue?: number): number;
+ reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int32Array) => number): number;
+ reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int32Array) => number, initialValue: number): number;
/**
* Calls the specified callback function for all the elements in an array, in descending order.
@@ -3132,13 +3060,6 @@ interface Int32Array {
*/
reverse(): Int32Array;
- /**
- * Sets a value or an array of values.
- * @param index The index of the location to set.
- * @param value The value to set.
- */
- set(index: number, value: number): void;
-
/**
* Sets a value or an array of values.
* @param array A typed or untyped array of values to set.
@@ -3193,9 +3114,9 @@ interface Int32Array {
interface Int32ArrayConstructor {
readonly prototype: Int32Array;
- new (length: number): Int32Array;
- new (array: ArrayLike): Int32Array;
- new (buffer: ArrayBuffer, byteOffset?: number, length?: number): Int32Array;
+ new(length: number): Int32Array;
+ new(arrayOrArrayBuffer: ArrayLike | ArrayBufferLike): Int32Array;
+ new(buffer: ArrayBufferLike, byteOffset: number, length?: number): Int32Array;
/**
* The size in bytes of each element in the array.
@@ -3215,6 +3136,7 @@ interface Int32ArrayConstructor {
* @param thisArg Value of 'this' used to invoke the mapfn.
*/
from(arrayLike: ArrayLike, mapfn?: (v: number, k: number) => number, thisArg?: any): Int32Array;
+
}
declare const Int32Array: Int32ArrayConstructor;
@@ -3231,7 +3153,7 @@ interface Uint32Array {
/**
* The ArrayBuffer instance referenced by the array.
*/
- readonly buffer: ArrayBuffer;
+ readonly buffer: ArrayBufferLike;
/**
* The length in bytes of the array.
@@ -3292,7 +3214,7 @@ interface Uint32Array {
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
- find(predicate: (value: number, index: number, obj: Array) => boolean, thisArg?: any): number | undefined;
+ find(predicate: (value: number, index: number, obj: Uint32Array) => boolean, thisArg?: any): number | undefined;
/**
* Returns the index of the first element in the array where predicate is true, and -1
@@ -3303,7 +3225,7 @@ interface Uint32Array {
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
- findIndex(predicate: (value: number, index: number, obj: Array) => boolean, thisArg?: any): number;
+ findIndex(predicate: (value: number, index: number, obj: Uint32Array) => boolean, thisArg?: any): number;
/**
* Performs the specified action for each element in an array.
@@ -3313,7 +3235,6 @@ interface Uint32Array {
* If thisArg is omitted, undefined is used as the this value.
*/
forEach(callbackfn: (value: number, index: number, array: Uint32Array) => void, thisArg?: any): void;
-
/**
* Returns the index of the first occurrence of a value in an array.
* @param searchElement The value to locate in the array.
@@ -3362,7 +3283,8 @@ interface Uint32Array {
* the accumulation. The first call to the callbackfn function provides this value as an argument
* instead of an array value.
*/
- reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint32Array) => number, initialValue?: number): number;
+ reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint32Array) => number): number;
+ reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint32Array) => number, initialValue: number): number;
/**
* Calls the specified callback function for all the elements in an array. The return value of
@@ -3386,7 +3308,8 @@ interface Uint32Array {
* the accumulation. The first call to the callbackfn function provides this value as an
* argument instead of an array value.
*/
- reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint32Array) => number, initialValue?: number): number;
+ reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint32Array) => number): number;
+ reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint32Array) => number, initialValue: number): number;
/**
* Calls the specified callback function for all the elements in an array, in descending order.
@@ -3405,13 +3328,6 @@ interface Uint32Array {
*/
reverse(): Uint32Array;
- /**
- * Sets a value or an array of values.
- * @param index The index of the location to set.
- * @param value The value to set.
- */
- set(index: number, value: number): void;
-
/**
* Sets a value or an array of values.
* @param array A typed or untyped array of values to set.
@@ -3466,9 +3382,9 @@ interface Uint32Array {
interface Uint32ArrayConstructor {
readonly prototype: Uint32Array;
- new (length: number): Uint32Array;
- new (array: ArrayLike): Uint32Array;
- new (buffer: ArrayBuffer, byteOffset?: number, length?: number): Uint32Array;
+ new(length: number): Uint32Array;
+ new(arrayOrArrayBuffer: ArrayLike | ArrayBufferLike): Uint32Array;
+ new(buffer: ArrayBufferLike, byteOffset: number, length?: number): Uint32Array;
/**
* The size in bytes of each element in the array.
@@ -3488,6 +3404,7 @@ interface Uint32ArrayConstructor {
* @param thisArg Value of 'this' used to invoke the mapfn.
*/
from(arrayLike: ArrayLike, mapfn?: (v: number, k: number) => number, thisArg?: any): Uint32Array;
+
}
declare const Uint32Array: Uint32ArrayConstructor;
@@ -3504,7 +3421,7 @@ interface Float32Array {
/**
* The ArrayBuffer instance referenced by the array.
*/
- readonly buffer: ArrayBuffer;
+ readonly buffer: ArrayBufferLike;
/**
* The length in bytes of the array.
@@ -3565,7 +3482,7 @@ interface Float32Array {
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
- find(predicate: (value: number, index: number, obj: Array) => boolean, thisArg?: any): number | undefined;
+ find(predicate: (value: number, index: number, obj: Float32Array) => boolean, thisArg?: any): number | undefined;
/**
* Returns the index of the first element in the array where predicate is true, and -1
@@ -3576,7 +3493,7 @@ interface Float32Array {
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
- findIndex(predicate: (value: number, index: number, obj: Array) => boolean, thisArg?: any): number;
+ findIndex(predicate: (value: number, index: number, obj: Float32Array) => boolean, thisArg?: any): number;
/**
* Performs the specified action for each element in an array.
@@ -3635,7 +3552,8 @@ interface Float32Array {
* the accumulation. The first call to the callbackfn function provides this value as an argument
* instead of an array value.
*/
- reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float32Array) => number, initialValue?: number): number;
+ reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float32Array) => number): number;
+ reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float32Array) => number, initialValue: number): number;
/**
* Calls the specified callback function for all the elements in an array. The return value of
@@ -3659,7 +3577,8 @@ interface Float32Array {
* the accumulation. The first call to the callbackfn function provides this value as an
* argument instead of an array value.
*/
- reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float32Array) => number, initialValue?: number): number;
+ reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float32Array) => number): number;
+ reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float32Array) => number, initialValue: number): number;
/**
* Calls the specified callback function for all the elements in an array, in descending order.
@@ -3678,13 +3597,6 @@ interface Float32Array {
*/
reverse(): Float32Array;
- /**
- * Sets a value or an array of values.
- * @param index The index of the location to set.
- * @param value The value to set.
- */
- set(index: number, value: number): void;
-
/**
* Sets a value or an array of values.
* @param array A typed or untyped array of values to set.
@@ -3739,9 +3651,9 @@ interface Float32Array {
interface Float32ArrayConstructor {
readonly prototype: Float32Array;
- new (length: number): Float32Array;
- new (array: ArrayLike): Float32Array;
- new (buffer: ArrayBuffer, byteOffset?: number, length?: number): Float32Array;
+ new(length: number): Float32Array;
+ new(arrayOrArrayBuffer: ArrayLike | ArrayBufferLike): Float32Array;
+ new(buffer: ArrayBufferLike, byteOffset: number, length?: number): Float32Array;
/**
* The size in bytes of each element in the array.
@@ -3762,6 +3674,7 @@ interface Float32ArrayConstructor {
*/
from(arrayLike: ArrayLike, mapfn?: (v: number, k: number) => number, thisArg?: any): Float32Array;
+
}
declare const Float32Array: Float32ArrayConstructor;
@@ -3778,7 +3691,7 @@ interface Float64Array {
/**
* The ArrayBuffer instance referenced by the array.
*/
- readonly buffer: ArrayBuffer;
+ readonly buffer: ArrayBufferLike;
/**
* The length in bytes of the array.
@@ -3839,7 +3752,7 @@ interface Float64Array {
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
- find(predicate: (value: number, index: number, obj: Array) => boolean, thisArg?: any): number | undefined;
+ find(predicate: (value: number, index: number, obj: Float64Array) => boolean, thisArg?: any): number | undefined;
/**
* Returns the index of the first element in the array where predicate is true, and -1
@@ -3850,7 +3763,7 @@ interface Float64Array {
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
- findIndex(predicate: (value: number, index: number, obj: Array) => boolean, thisArg?: any): number;
+ findIndex(predicate: (value: number, index: number, obj: Float64Array) => boolean, thisArg?: any): number;
/**
* Performs the specified action for each element in an array.
@@ -3909,7 +3822,8 @@ interface Float64Array {
* the accumulation. The first call to the callbackfn function provides this value as an argument
* instead of an array value.
*/
- reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float64Array) => number, initialValue?: number): number;
+ reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float64Array) => number): number;
+ reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float64Array) => number, initialValue: number): number;
/**
* Calls the specified callback function for all the elements in an array. The return value of
@@ -3933,7 +3847,8 @@ interface Float64Array {
* the accumulation. The first call to the callbackfn function provides this value as an
* argument instead of an array value.
*/
- reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float64Array) => number, initialValue?: number): number;
+ reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float64Array) => number): number;
+ reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float64Array) => number, initialValue: number): number;
/**
* Calls the specified callback function for all the elements in an array, in descending order.
@@ -3952,13 +3867,6 @@ interface Float64Array {
*/
reverse(): Float64Array;
- /**
- * Sets a value or an array of values.
- * @param index The index of the location to set.
- * @param value The value to set.
- */
- set(index: number, value: number): void;
-
/**
* Sets a value or an array of values.
* @param array A typed or untyped array of values to set.
@@ -4013,9 +3921,9 @@ interface Float64Array {
interface Float64ArrayConstructor {
readonly prototype: Float64Array;
- new (length: number): Float64Array;
- new (array: ArrayLike): Float64Array;
- new (buffer: ArrayBuffer, byteOffset?: number, length?: number): Float64Array;
+ new(length: number): Float64Array;
+ new(arrayOrArrayBuffer: ArrayLike | ArrayBufferLike): Float64Array;
+ new(buffer: ArrayBufferLike, byteOffset: number, length?: number): Float64Array;
/**
* The size in bytes of each element in the array.
@@ -4035,6 +3943,7 @@ interface Float64ArrayConstructor {
* @param thisArg Value of 'this' used to invoke the mapfn.
*/
from(arrayLike: ArrayLike, mapfn?: (v: number, k: number) => number, thisArg?: any): Float64Array;
+
}
declare const Float64Array: Float64ArrayConstructor;
@@ -4042,7 +3951,7 @@ declare const Float64Array: Float64ArrayConstructor;
/// ECMAScript Internationalization API
/////////////////////////////
-declare module Intl {
+declare namespace Intl {
interface CollatorOptions {
usage?: string;
localeMatcher?: string;
@@ -4067,10 +3976,10 @@ declare module Intl {
resolvedOptions(): ResolvedCollatorOptions;
}
var Collator: {
- new (locales?: string | string[], options?: CollatorOptions): Collator;
+ new(locales?: string | string[], options?: CollatorOptions): Collator;
(locales?: string | string[], options?: CollatorOptions): Collator;
supportedLocalesOf(locales: string | string[], options?: CollatorOptions): string[];
- }
+ };
interface NumberFormatOptions {
localeMatcher?: string;
@@ -4104,10 +4013,10 @@ declare module Intl {
resolvedOptions(): ResolvedNumberFormatOptions;
}
var NumberFormat: {
- new (locales?: string | string[], options?: NumberFormatOptions): NumberFormat;
+ new(locales?: string | string[], options?: NumberFormatOptions): NumberFormat;
(locales?: string | string[], options?: NumberFormatOptions): NumberFormat;
supportedLocalesOf(locales: string | string[], options?: NumberFormatOptions): string[];
- }
+ };
interface DateTimeFormatOptions {
localeMatcher?: string;
@@ -4147,10 +4056,10 @@ declare module Intl {
resolvedOptions(): ResolvedDateTimeFormatOptions;
}
var DateTimeFormat: {
- new (locales?: string | string[], options?: DateTimeFormatOptions): DateTimeFormat;
+ new(locales?: string | string[], options?: DateTimeFormatOptions): DateTimeFormat;
(locales?: string | string[], options?: DateTimeFormatOptions): DateTimeFormat;
supportedLocalesOf(locales: string | string[], options?: DateTimeFormatOptions): string[];
- }
+ };
}
interface String {
@@ -4197,21 +4106,53 @@ interface Date {
/////////////////////////////
-/// IE DOM APIs
+/// DOM APIs
/////////////////////////////
+interface Account {
+ displayName: string;
+ id: string;
+ imageURL?: string;
+ name?: string;
+ rpDisplayName: string;
+}
+
interface Algorithm {
name: string;
}
-interface AriaRequestEventInit extends EventInit {
- attributeName?: string;
- attributeValue?: string;
+interface AnimationEventInit extends EventInit {
+ animationName?: string;
+ elapsedTime?: number;
+}
+
+interface AssertionOptions {
+ allowList?: ScopedCredentialDescriptor[];
+ extensions?: WebAuthnExtensions;
+ rpId?: USVString;
+ timeoutSeconds?: number;
}
-interface CommandEventInit extends EventInit {
- commandName?: string;
- detail?: string;
+interface CacheQueryOptions {
+ cacheName?: string;
+ ignoreMethod?: boolean;
+ ignoreSearch?: boolean;
+ ignoreVary?: boolean;
+}
+
+interface ClientData {
+ challenge: string;
+ extensions?: WebAuthnExtensions;
+ hashAlg: string | Algorithm;
+ origin: string;
+ rpId: string;
+ tokenBinding?: string;
+}
+
+interface CloseEventInit extends EventInit {
+ code?: number;
+ reason?: string;
+ wasClean?: boolean;
}
interface CompositionEventInit extends UIEventInit {
@@ -4243,8 +4184,8 @@ interface ConstrainLongRange extends LongRange {
}
interface ConstrainVideoFacingModeParameters {
- exact?: string | string[];
- ideal?: string | string[];
+ exact?: VideoFacingModeEnum | VideoFacingModeEnum[];
+ ideal?: VideoFacingModeEnum | VideoFacingModeEnum[];
}
interface CustomEventInit extends EventInit {
@@ -4252,19 +4193,40 @@ interface CustomEventInit extends EventInit {
}
interface DeviceAccelerationDict {
- x?: number;
- y?: number;
- z?: number;
+ x?: number | null;
+ y?: number | null;
+ z?: number | null;
}
interface DeviceLightEventInit extends EventInit {
value?: number;
}
+interface DeviceMotionEventInit extends EventInit {
+ acceleration?: DeviceAccelerationDict | null;
+ accelerationIncludingGravity?: DeviceAccelerationDict | null;
+ interval?: number | null;
+ rotationRate?: DeviceRotationRateDict | null;
+}
+
+interface DeviceOrientationEventInit extends EventInit {
+ absolute?: boolean;
+ alpha?: number | null;
+ beta?: number | null;
+ gamma?: number | null;
+}
+
interface DeviceRotationRateDict {
- alpha?: number;
- beta?: number;
- gamma?: number;
+ alpha?: number | null;
+ beta?: number | null;
+ gamma?: number | null;
+}
+
+interface DOMRectInit {
+ height?: number;
+ width?: number;
+ x?: number;
+ y?: number;
}
interface DoubleRange {
@@ -4272,6 +4234,14 @@ interface DoubleRange {
min?: number;
}
+interface ErrorEventInit extends EventInit {
+ colno?: number;
+ error?: any;
+ filename?: string;
+ lineno?: number;
+ message?: string;
+}
+
interface EventInit {
scoped?: boolean;
bubbles?: boolean;
@@ -4279,9 +4249,8 @@ interface EventInit {
}
interface EventModifierInit extends UIEventInit {
- ctrlKey?: boolean;
- shiftKey?: boolean;
altKey?: boolean;
+ ctrlKey?: boolean;
metaKey?: boolean;
modifierAltGraph?: boolean;
modifierCapsLock?: boolean;
@@ -4294,19 +4263,43 @@ interface EventModifierInit extends UIEventInit {
modifierSuper?: boolean;
modifierSymbol?: boolean;
modifierSymbolLock?: boolean;
+ shiftKey?: boolean;
}
interface ExceptionInformation {
- domain?: string;
+ domain?: string | null;
}
interface FocusEventInit extends UIEventInit {
- relatedTarget?: EventTarget;
+ relatedTarget?: EventTarget | null;
+}
+
+interface FocusNavigationEventInit extends EventInit {
+ navigationReason?: string | null;
+ originHeight?: number;
+ originLeft?: number;
+ originTop?: number;
+ originWidth?: number;
+}
+
+interface FocusNavigationOrigin {
+ originHeight?: number;
+ originLeft?: number;
+ originTop?: number;
+ originWidth?: number;
+}
+
+interface GamepadEventInit extends EventInit {
+ gamepad?: Gamepad | null;
+}
+
+interface GetNotificationOptions {
+ tag?: string;
}
interface HashChangeEventInit extends EventInit {
- newURL?: string;
- oldURL?: string;
+ newURL?: string | null;
+ oldURL?: string | null;
}
interface IDBIndexParameters {
@@ -4316,7 +4309,22 @@ interface IDBIndexParameters {
interface IDBObjectStoreParameters {
autoIncrement?: boolean;
- keyPath?: IDBKeyPath;
+ keyPath?: IDBKeyPath | null;
+}
+
+interface IntersectionObserverEntryInit {
+ isIntersecting: boolean;
+ boundingClientRect: DOMRectInit;
+ intersectionRect: DOMRectInit;
+ rootBounds: DOMRectInit;
+ target: Element;
+ time: number;
+}
+
+interface IntersectionObserverInit {
+ root?: Element | null;
+ rootMargin?: string;
+ threshold?: number | number[];
}
interface KeyAlgorithm {
@@ -4335,79 +4343,198 @@ interface LongRange {
min?: number;
}
-interface MSAccountInfo {
- rpDisplayName?: string;
- userDisplayName?: string;
- accountName?: string;
- userId?: string;
- accountImageUri?: string;
+interface MediaEncryptedEventInit extends EventInit {
+ initData?: ArrayBuffer | null;
+ initDataType?: string;
}
-interface MSAudioLocalClientEvent extends MSLocalClientEventBase {
- networkSendQualityEventRatio?: number;
- networkDelayEventRatio?: number;
- cpuInsufficientEventRatio?: number;
- deviceHalfDuplexAECEventRatio?: number;
- deviceRenderNotFunctioningEventRatio?: number;
- deviceCaptureNotFunctioningEventRatio?: number;
- deviceGlitchesEventRatio?: number;
- deviceLowSNREventRatio?: number;
- deviceLowSpeechLevelEventRatio?: number;
- deviceClippingEventRatio?: number;
- deviceEchoEventRatio?: number;
- deviceNearEndToEchoRatioEventRatio?: number;
- deviceRenderZeroVolumeEventRatio?: number;
- deviceRenderMuteEventRatio?: number;
- deviceMultipleEndpointsEventCount?: number;
- deviceHowlingEventCount?: number;
+interface MediaKeyMessageEventInit extends EventInit {
+ message?: ArrayBuffer | null;
+ messageType?: MediaKeyMessageType;
}
-interface MSAudioRecvPayload extends MSPayloadBase {
- samplingRate?: number;
- signal?: MSAudioRecvSignal;
- packetReorderRatio?: number;
- packetReorderDepthAvg?: number;
- packetReorderDepthMax?: number;
- burstLossLength1?: number;
- burstLossLength2?: number;
- burstLossLength3?: number;
- burstLossLength4?: number;
- burstLossLength5?: number;
- burstLossLength6?: number;
- burstLossLength7?: number;
- burstLossLength8OrHigher?: number;
- fecRecvDistance1?: number;
- fecRecvDistance2?: number;
- fecRecvDistance3?: number;
- ratioConcealedSamplesAvg?: number;
- ratioStretchedSamplesAvg?: number;
- ratioCompressedSamplesAvg?: number;
+interface MediaKeySystemConfiguration {
+ audioCapabilities?: MediaKeySystemMediaCapability[];
+ distinctiveIdentifier?: MediaKeysRequirement;
+ initDataTypes?: string[];
+ persistentState?: MediaKeysRequirement;
+ videoCapabilities?: MediaKeySystemMediaCapability[];
}
-interface MSAudioRecvSignal {
- initialSignalLevelRMS?: number;
- recvSignalLevelCh1?: number;
- recvNoiseLevelCh1?: number;
- renderSignalLevel?: number;
- renderNoiseLevel?: number;
- renderLoopbackSignalLevel?: number;
+interface MediaKeySystemMediaCapability {
+ contentType?: string;
+ robustness?: string;
}
-interface MSAudioSendPayload extends MSPayloadBase {
+interface MediaStreamConstraints {
+ audio?: boolean | MediaTrackConstraints;
+ video?: boolean | MediaTrackConstraints;
+}
+
+interface MediaStreamErrorEventInit extends EventInit {
+ error?: MediaStreamError | null;
+}
+
+interface MediaStreamEventInit extends EventInit {
+ stream?: MediaStream;
+}
+
+interface MediaStreamTrackEventInit extends EventInit {
+ track?: MediaStreamTrack | null;
+}
+
+interface MediaTrackCapabilities {
+ aspectRatio?: number | DoubleRange;
+ deviceId?: string;
+ echoCancellation?: boolean[];
+ facingMode?: string;
+ frameRate?: number | DoubleRange;
+ groupId?: string;
+ height?: number | LongRange;
+ sampleRate?: number | LongRange;
+ sampleSize?: number | LongRange;
+ volume?: number | DoubleRange;
+ width?: number | LongRange;
+}
+
+interface MediaTrackConstraints extends MediaTrackConstraintSet {
+ advanced?: MediaTrackConstraintSet[];
+}
+
+interface MediaTrackConstraintSet {
+ aspectRatio?: number | ConstrainDoubleRange;
+ deviceId?: string | string[] | ConstrainDOMStringParameters;
+ echoCancelation?: boolean | ConstrainBooleanParameters;
+ facingMode?: string | string[] | ConstrainDOMStringParameters;
+ frameRate?: number | ConstrainDoubleRange;
+ groupId?: string | string[] | ConstrainDOMStringParameters;
+ height?: number | ConstrainLongRange;
+ sampleRate?: number | ConstrainLongRange;
+ sampleSize?: number | ConstrainLongRange;
+ volume?: number | ConstrainDoubleRange;
+ width?: number | ConstrainLongRange;
+}
+
+interface MediaTrackSettings {
+ aspectRatio?: number;
+ deviceId?: string;
+ echoCancellation?: boolean;
+ facingMode?: string;
+ frameRate?: number;
+ groupId?: string;
+ height?: number;
+ sampleRate?: number;
+ sampleSize?: number;
+ volume?: number;
+ width?: number;
+}
+
+interface MediaTrackSupportedConstraints {
+ aspectRatio?: boolean;
+ deviceId?: boolean;
+ echoCancellation?: boolean;
+ facingMode?: boolean;
+ frameRate?: boolean;
+ groupId?: boolean;
+ height?: boolean;
+ sampleRate?: boolean;
+ sampleSize?: boolean;
+ volume?: boolean;
+ width?: boolean;
+}
+
+interface MessageEventInit extends EventInit {
+ lastEventId?: string;
+ channel?: string;
+ data?: any;
+ origin?: string;
+ ports?: MessagePort[];
+ source?: Window;
+}
+
+interface MouseEventInit extends EventModifierInit {
+ button?: number;
+ buttons?: number;
+ clientX?: number;
+ clientY?: number;
+ relatedTarget?: EventTarget | null;
+ screenX?: number;
+ screenY?: number;
+}
+
+interface MSAccountInfo {
+ accountImageUri?: string;
+ accountName?: string;
+ rpDisplayName: string;
+ userDisplayName: string;
+ userId?: string;
+}
+
+interface MSAudioLocalClientEvent extends MSLocalClientEventBase {
+ cpuInsufficientEventRatio?: number;
+ deviceCaptureNotFunctioningEventRatio?: number;
+ deviceClippingEventRatio?: number;
+ deviceEchoEventRatio?: number;
+ deviceGlitchesEventRatio?: number;
+ deviceHalfDuplexAECEventRatio?: number;
+ deviceHowlingEventCount?: number;
+ deviceLowSNREventRatio?: number;
+ deviceLowSpeechLevelEventRatio?: number;
+ deviceMultipleEndpointsEventCount?: number;
+ deviceNearEndToEchoRatioEventRatio?: number;
+ deviceRenderMuteEventRatio?: number;
+ deviceRenderNotFunctioningEventRatio?: number;
+ deviceRenderZeroVolumeEventRatio?: number;
+ networkDelayEventRatio?: number;
+ networkSendQualityEventRatio?: number;
+}
+
+interface MSAudioRecvPayload extends MSPayloadBase {
+ burstLossLength1?: number;
+ burstLossLength2?: number;
+ burstLossLength3?: number;
+ burstLossLength4?: number;
+ burstLossLength5?: number;
+ burstLossLength6?: number;
+ burstLossLength7?: number;
+ burstLossLength8OrHigher?: number;
+ fecRecvDistance1?: number;
+ fecRecvDistance2?: number;
+ fecRecvDistance3?: number;
+ packetReorderDepthAvg?: number;
+ packetReorderDepthMax?: number;
+ packetReorderRatio?: number;
+ ratioCompressedSamplesAvg?: number;
+ ratioConcealedSamplesAvg?: number;
+ ratioStretchedSamplesAvg?: number;
samplingRate?: number;
- signal?: MSAudioSendSignal;
+ signal?: MSAudioRecvSignal;
+}
+
+interface MSAudioRecvSignal {
+ initialSignalLevelRMS?: number;
+ recvNoiseLevelCh1?: number;
+ recvSignalLevelCh1?: number;
+ renderLoopbackSignalLevel?: number;
+ renderNoiseLevel?: number;
+ renderSignalLevel?: number;
+}
+
+interface MSAudioSendPayload extends MSPayloadBase {
audioFECUsed?: boolean;
+ samplingRate?: number;
sendMutePercent?: number;
+ signal?: MSAudioSendSignal;
}
interface MSAudioSendSignal {
noiseLevel?: number;
- sendSignalLevelCh1?: number;
sendNoiseLevelCh1?: number;
+ sendSignalLevelCh1?: number;
}
interface MSConnectivity {
- iceType?: string;
+ iceType?: MSIceType;
iceWarningFlags?: MSIceWarningFlags;
relayAddress?: MSRelayAddress;
}
@@ -4417,12 +4544,12 @@ interface MSCredentialFilter {
}
interface MSCredentialParameters {
- type?: string;
+ type?: MSCredentialType;
}
interface MSCredentialSpec {
- type?: string;
id?: string;
+ type: MSCredentialType;
}
interface MSDelay {
@@ -4432,12 +4559,12 @@ interface MSDelay {
interface MSDescription extends RTCStats {
connectivity?: MSConnectivity;
- transport?: string;
- networkconnectivity?: MSNetworkConnectivityInfo;
- localAddr?: MSIPAddressInfo;
- remoteAddr?: MSIPAddressInfo;
deviceDevName?: string;
+ localAddr?: MSIPAddressInfo;
+ networkconnectivity?: MSNetworkConnectivityInfo;
reflexiveLocalIPAddr?: MSIPAddressInfo;
+ remoteAddr?: MSIPAddressInfo;
+ transport?: RTCIceProtocol;
}
interface MSFIDOCredentialParameters extends MSCredentialParameters {
@@ -4445,35 +4572,35 @@ interface MSFIDOCredentialParameters extends MSCredentialParameters {
authenticators?: AAGUID[];
}
-interface MSIPAddressInfo {
- ipAddr?: string;
- port?: number;
- manufacturerMacAddrMask?: string;
-}
-
interface MSIceWarningFlags {
- turnTcpTimedOut?: boolean;
- turnUdpAllocateFailed?: boolean;
- turnUdpSendFailed?: boolean;
- turnTcpAllocateFailed?: boolean;
- turnTcpSendFailed?: boolean;
- udpLocalConnectivityFailed?: boolean;
- udpNatConnectivityFailed?: boolean;
- udpRelayConnectivityFailed?: boolean;
- tcpNatConnectivityFailed?: boolean;
- tcpRelayConnectivityFailed?: boolean;
- connCheckMessageIntegrityFailed?: boolean;
allocationMessageIntegrityFailed?: boolean;
+ alternateServerReceived?: boolean;
+ connCheckMessageIntegrityFailed?: boolean;
connCheckOtherError?: boolean;
- turnAuthUnknownUsernameError?: boolean;
- noRelayServersConfigured?: boolean;
+ fipsAllocationFailure?: boolean;
multipleRelayServersAttempted?: boolean;
+ noRelayServersConfigured?: boolean;
portRangeExhausted?: boolean;
- alternateServerReceived?: boolean;
pseudoTLSFailure?: boolean;
+ tcpNatConnectivityFailed?: boolean;
+ tcpRelayConnectivityFailed?: boolean;
+ turnAuthUnknownUsernameError?: boolean;
+ turnTcpAllocateFailed?: boolean;
+ turnTcpSendFailed?: boolean;
+ turnTcpTimedOut?: boolean;
turnTurnTcpConnectivityFailed?: boolean;
+ turnUdpAllocateFailed?: boolean;
+ turnUdpSendFailed?: boolean;
+ udpLocalConnectivityFailed?: boolean;
+ udpNatConnectivityFailed?: boolean;
+ udpRelayConnectivityFailed?: boolean;
useCandidateChecksFailed?: boolean;
- fipsAllocationFailure?: boolean;
+}
+
+interface MSIPAddressInfo {
+ ipAddr?: string;
+ manufacturerMacAddrMask?: string;
+ port?: number;
}
interface MSJitter {
@@ -4483,28 +4610,28 @@ interface MSJitter {
}
interface MSLocalClientEventBase extends RTCStats {
- networkReceiveQualityEventRatio?: number;
networkBandwidthLowEventRatio?: number;
+ networkReceiveQualityEventRatio?: number;
}
interface MSNetwork extends RTCStats {
- jitter?: MSJitter;
delay?: MSDelay;
+ jitter?: MSJitter;
packetLoss?: MSPacketLoss;
utilization?: MSUtilization;
}
interface MSNetworkConnectivityInfo {
- vpn?: boolean;
linkspeed?: number;
networkConnectionDetails?: string;
+ vpn?: boolean;
}
interface MSNetworkInterfaceType {
interfaceTypeEthernet?: boolean;
- interfaceTypeWireless?: boolean;
interfaceTypePPP?: boolean;
interfaceTypeTunnel?: boolean;
+ interfaceTypeWireless?: boolean;
interfaceTypeWWAN?: boolean;
}
@@ -4521,9 +4648,14 @@ interface MSPayloadBase extends RTCStats {
payloadDescription?: string;
}
+interface MSPortRange {
+ max?: number;
+ min?: number;
+}
+
interface MSRelayAddress {
- relayAddress?: string;
port?: number;
+ relayAddress?: string;
}
interface MSSignatureParameters {
@@ -4531,224 +4663,176 @@ interface MSSignatureParameters {
}
interface MSTransportDiagnosticsStats extends RTCStats {
+ allocationTimeInMs?: number;
baseAddress?: string;
+ baseInterface?: MSNetworkInterfaceType;
+ iceRole?: RTCIceRole;
+ iceWarningFlags?: MSIceWarningFlags;
+ interfaces?: MSNetworkInterfaceType;
localAddress?: string;
+ localAddrType?: MSIceAddrType;
+ localInterface?: MSNetworkInterfaceType;
+ localMR?: string;
+ localMRTCPPort?: number;
localSite?: string;
+ msRtcEngineVersion?: string;
networkName?: string;
+ numConsentReqReceived?: number;
+ numConsentReqSent?: number;
+ numConsentRespReceived?: number;
+ numConsentRespSent?: number;
+ portRangeMax?: number;
+ portRangeMin?: number;
+ protocol?: RTCIceProtocol;
remoteAddress?: string;
- remoteSite?: string;
- localMR?: string;
+ remoteAddrType?: MSIceAddrType;
remoteMR?: string;
- iceWarningFlags?: MSIceWarningFlags;
- portRangeMin?: number;
- portRangeMax?: number;
- localMRTCPPort?: number;
remoteMRTCPPort?: number;
- stunVer?: number;
- numConsentReqSent?: number;
- numConsentReqReceived?: number;
- numConsentRespSent?: number;
- numConsentRespReceived?: number;
- interfaces?: MSNetworkInterfaceType;
- baseInterface?: MSNetworkInterfaceType;
- protocol?: string;
- localInterface?: MSNetworkInterfaceType;
- localAddrType?: string;
- remoteAddrType?: string;
- iceRole?: string;
+ remoteSite?: string;
rtpRtcpMux?: boolean;
- allocationTimeInMs?: number;
- msRtcEngineVersion?: string;
+ stunVer?: number;
}
interface MSUtilization {
- packets?: number;
bandwidthEstimation?: number;
- bandwidthEstimationMin?: number;
+ bandwidthEstimationAvg?: number;
bandwidthEstimationMax?: number;
+ bandwidthEstimationMin?: number;
bandwidthEstimationStdDev?: number;
- bandwidthEstimationAvg?: number;
+ packets?: number;
}
interface MSVideoPayload extends MSPayloadBase {
- resoluton?: string;
+ durationSeconds?: number;
+ resolution?: string;
videoBitRateAvg?: number;
videoBitRateMax?: number;
videoFrameRateAvg?: number;
videoPacketLossRate?: number;
- durationSeconds?: number;
}
interface MSVideoRecvPayload extends MSVideoPayload {
- videoFrameLossRate?: number;
+ lowBitRateCallPercent?: number;
+ lowFrameRateCallPercent?: number;
+ recvBitRateAverage?: number;
+ recvBitRateMaximum?: number;
recvCodecType?: string;
- recvResolutionWidth?: number;
- recvResolutionHeight?: number;
- videoResolutions?: MSVideoResolutionDistribution;
+ recvFpsHarmonicAverage?: number;
recvFrameRateAverage?: number;
- recvBitRateMaximum?: number;
- recvBitRateAverage?: number;
+ recvNumResSwitches?: number;
+ recvReorderBufferMaxSuccessfullyOrderedExtent?: number;
+ recvReorderBufferMaxSuccessfullyOrderedLateTime?: number;
+ recvReorderBufferPacketsDroppedDueToBufferExhaustion?: number;
+ recvReorderBufferPacketsDroppedDueToTimeout?: number;
+ recvReorderBufferReorderedPackets?: number;
+ recvResolutionHeight?: number;
+ recvResolutionWidth?: number;
recvVideoStreamsMax?: number;
recvVideoStreamsMin?: number;
recvVideoStreamsMode?: number;
- videoPostFECPLR?: number;
- lowBitRateCallPercent?: number;
- lowFrameRateCallPercent?: number;
reorderBufferTotalPackets?: number;
- recvReorderBufferReorderedPackets?: number;
- recvReorderBufferPacketsDroppedDueToBufferExhaustion?: number;
- recvReorderBufferMaxSuccessfullyOrderedExtent?: number;
- recvReorderBufferMaxSuccessfullyOrderedLateTime?: number;
- recvReorderBufferPacketsDroppedDueToTimeout?: number;
- recvFpsHarmonicAverage?: number;
- recvNumResSwitches?: number;
+ videoFrameLossRate?: number;
+ videoPostFECPLR?: number;
+ videoResolutions?: MSVideoResolutionDistribution;
}
interface MSVideoResolutionDistribution {
cifQuality?: number;
- vgaQuality?: number;
- h720Quality?: number;
h1080Quality?: number;
h1440Quality?: number;
h2160Quality?: number;
+ h720Quality?: number;
+ vgaQuality?: number;
}
interface MSVideoSendPayload extends MSVideoPayload {
- sendFrameRateAverage?: number;
- sendBitRateMaximum?: number;
sendBitRateAverage?: number;
- sendVideoStreamsMax?: number;
- sendResolutionWidth?: number;
+ sendBitRateMaximum?: number;
+ sendFrameRateAverage?: number;
sendResolutionHeight?: number;
+ sendResolutionWidth?: number;
+ sendVideoStreamsMax?: number;
}
-interface MediaEncryptedEventInit extends EventInit {
- initDataType?: string;
- initData?: ArrayBuffer;
-}
-
-interface MediaKeyMessageEventInit extends EventInit {
- messageType?: string;
- message?: ArrayBuffer;
-}
-
-interface MediaKeySystemConfiguration {
- initDataTypes?: string[];
- audioCapabilities?: MediaKeySystemMediaCapability[];
- videoCapabilities?: MediaKeySystemMediaCapability[];
- distinctiveIdentifier?: string;
- persistentState?: string;
-}
-
-interface MediaKeySystemMediaCapability {
- contentType?: string;
- robustness?: string;
-}
-
-interface MediaStreamConstraints {
- video?: boolean | MediaTrackConstraints;
- audio?: boolean | MediaTrackConstraints;
+interface MsZoomToOptions {
+ animate?: string;
+ contentX?: number;
+ contentY?: number;
+ scaleFactor?: number;
+ viewportX?: string | null;
+ viewportY?: string | null;
}
-interface MediaStreamErrorEventInit extends EventInit {
- error?: MediaStreamError;
+interface MutationObserverInit {
+ attributeFilter?: string[];
+ attributeOldValue?: boolean;
+ attributes?: boolean;
+ characterData?: boolean;
+ characterDataOldValue?: boolean;
+ childList?: boolean;
+ subtree?: boolean;
}
-interface MediaStreamTrackEventInit extends EventInit {
- track?: MediaStreamTrack;
+interface NotificationOptions {
+ body?: string;
+ dir?: NotificationDirection;
+ icon?: string;
+ lang?: string;
+ tag?: string;
}
-interface MediaTrackCapabilities {
- width?: number | LongRange;
- height?: number | LongRange;
- aspectRatio?: number | DoubleRange;
- frameRate?: number | DoubleRange;
- facingMode?: string;
- volume?: number | DoubleRange;
- sampleRate?: number | LongRange;
- sampleSize?: number | LongRange;
- echoCancellation?: boolean[];
- deviceId?: string;
- groupId?: string;
+interface ObjectURLOptions {
+ oneTimeOnly?: boolean;
}
-interface MediaTrackConstraintSet {
- width?: number | ConstrainLongRange;
- height?: number | ConstrainLongRange;
- aspectRatio?: number | ConstrainDoubleRange;
- frameRate?: number | ConstrainDoubleRange;
- facingMode?: string | string[] | ConstrainDOMStringParameters;
- volume?: number | ConstrainDoubleRange;
- sampleRate?: number | ConstrainLongRange;
- sampleSize?: number | ConstrainLongRange;
- echoCancelation?: boolean | ConstrainBooleanParameters;
- deviceId?: string | string[] | ConstrainDOMStringParameters;
- groupId?: string | string[] | ConstrainDOMStringParameters;
+interface PaymentCurrencyAmount {
+ currency: string;
+ currencySystem?: string;
+ value: string;
}
-interface MediaTrackConstraints extends MediaTrackConstraintSet {
- advanced?: MediaTrackConstraintSet[];
+interface PaymentDetails {
+ displayItems?: PaymentItem[];
+ error?: string;
+ modifiers?: PaymentDetailsModifier[];
+ shippingOptions?: PaymentShippingOption[];
+ total?: PaymentItem;
}
-interface MediaTrackSettings {
- width?: number;
- height?: number;
- aspectRatio?: number;
- frameRate?: number;
- facingMode?: string;
- volume?: number;
- sampleRate?: number;
- sampleSize?: number;
- echoCancellation?: boolean;
- deviceId?: string;
- groupId?: string;
+interface PaymentDetailsModifier {
+ additionalDisplayItems?: PaymentItem[];
+ data?: any;
+ supportedMethods: string[];
+ total?: PaymentItem;
}
-interface MediaTrackSupportedConstraints {
- width?: boolean;
- height?: boolean;
- aspectRatio?: boolean;
- frameRate?: boolean;
- facingMode?: boolean;
- volume?: boolean;
- sampleRate?: boolean;
- sampleSize?: boolean;
- echoCancellation?: boolean;
- deviceId?: boolean;
- groupId?: boolean;
+interface PaymentItem {
+ amount: PaymentCurrencyAmount;
+ label: string;
+ pending?: boolean;
}
-interface MouseEventInit extends EventModifierInit {
- screenX?: number;
- screenY?: number;
- clientX?: number;
- clientY?: number;
- button?: number;
- buttons?: number;
- relatedTarget?: EventTarget;
+interface PaymentMethodData {
+ data?: any;
+ supportedMethods: string[];
}
-interface MsZoomToOptions {
- contentX?: number;
- contentY?: number;
- viewportX?: string;
- viewportY?: string;
- scaleFactor?: number;
- animate?: string;
+interface PaymentOptions {
+ requestPayerEmail?: boolean;
+ requestPayerName?: boolean;
+ requestPayerPhone?: boolean;
+ requestShipping?: boolean;
+ shippingType?: string;
}
-interface MutationObserverInit {
- childList?: boolean;
- attributes?: boolean;
- characterData?: boolean;
- subtree?: boolean;
- attributeOldValue?: boolean;
- characterDataOldValue?: boolean;
- attributeFilter?: string[];
+interface PaymentRequestUpdateEventInit extends EventInit {
}
-interface ObjectURLOptions {
- oneTimeOnly?: boolean;
+interface PaymentShippingOption {
+ amount: PaymentCurrencyAmount;
+ id: string;
+ label: string;
+ selected?: boolean;
}
interface PeriodicWaveConstraints {
@@ -4756,24 +4840,67 @@ interface PeriodicWaveConstraints {
}
interface PointerEventInit extends MouseEventInit {
- pointerId?: number;
- width?: number;
height?: number;
+ isPrimary?: boolean;
+ pointerId?: number;
+ pointerType?: string;
pressure?: number;
tiltX?: number;
tiltY?: number;
- pointerType?: string;
- isPrimary?: boolean;
+ width?: number;
+}
+
+interface PopStateEventInit extends EventInit {
+ state?: any;
}
interface PositionOptions {
enableHighAccuracy?: boolean;
- timeout?: number;
maximumAge?: number;
+ timeout?: number;
}
-interface RTCDTMFToneChangeEventInit extends EventInit {
- tone?: string;
+interface ProgressEventInit extends EventInit {
+ lengthComputable?: boolean;
+ loaded?: number;
+ total?: number;
+}
+
+interface PushSubscriptionOptionsInit {
+ applicationServerKey?: any;
+ userVisibleOnly?: boolean;
+}
+
+interface RegistrationOptions {
+ scope?: string;
+}
+
+interface RequestInit {
+ body?: any;
+ cache?: RequestCache;
+ credentials?: RequestCredentials;
+ headers?: Headers | string[][];
+ integrity?: string;
+ keepalive?: boolean;
+ method?: string;
+ mode?: RequestMode;
+ redirect?: RequestRedirect;
+ referrer?: string;
+ referrerPolicy?: ReferrerPolicy;
+ window?: any;
+}
+
+interface ResponseInit {
+ headers?: Headers | string[][];
+ status?: number;
+ statusText?: string;
+}
+
+interface RTCConfiguration {
+ bundlePolicy?: RTCBundlePolicy;
+ iceServers?: RTCIceServer[];
+ iceTransportPolicy?: RTCIceTransportPolicy;
+ peerIdentity?: string;
}
interface RTCDtlsFingerprint {
@@ -4782,205 +4909,219 @@ interface RTCDtlsFingerprint {
}
interface RTCDtlsParameters {
- role?: string;
fingerprints?: RTCDtlsFingerprint[];
+ role?: RTCDtlsRole;
}
-interface RTCIceCandidate {
- foundation?: string;
- priority?: number;
- ip?: string;
- protocol?: string;
- port?: number;
- type?: string;
- tcpType?: string;
- relatedAddress?: string;
- relatedPort?: number;
+interface RTCDTMFToneChangeEventInit extends EventInit {
+ tone?: string;
}
interface RTCIceCandidateAttributes extends RTCStats {
+ addressSourceUrl?: string;
+ candidateType?: RTCStatsIceCandidateType;
ipAddress?: string;
portNumber?: number;
- transport?: string;
- candidateType?: string;
priority?: number;
- addressSourceUrl?: string;
+ transport?: string;
}
interface RTCIceCandidateComplete {
}
+interface RTCIceCandidateDictionary {
+ foundation?: string;
+ ip?: string;
+ msMTurnSessionId?: string;
+ port?: number;
+ priority?: number;
+ protocol?: RTCIceProtocol;
+ relatedAddress?: string;
+ relatedPort?: number;
+ tcpType?: RTCIceTcpCandidateType;
+ type?: RTCIceCandidateType;
+}
+
+interface RTCIceCandidateInit {
+ candidate?: string;
+ sdpMid?: string;
+ sdpMLineIndex?: number;
+}
+
interface RTCIceCandidatePair {
- local?: RTCIceCandidate;
- remote?: RTCIceCandidate;
+ local?: RTCIceCandidateDictionary;
+ remote?: RTCIceCandidateDictionary;
}
interface RTCIceCandidatePairStats extends RTCStats {
- transportId?: string;
+ availableIncomingBitrate?: number;
+ availableOutgoingBitrate?: number;
+ bytesReceived?: number;
+ bytesSent?: number;
localCandidateId?: string;
- remoteCandidateId?: string;
- state?: string;
- priority?: number;
nominated?: boolean;
- writable?: boolean;
+ priority?: number;
readable?: boolean;
- bytesSent?: number;
- bytesReceived?: number;
+ remoteCandidateId?: string;
roundTripTime?: number;
- availableOutgoingBitrate?: number;
- availableIncomingBitrate?: number;
+ state?: RTCStatsIceCandidatePairState;
+ transportId?: string;
+ writable?: boolean;
}
interface RTCIceGatherOptions {
- gatherPolicy?: string;
+ gatherPolicy?: RTCIceGatherPolicy;
iceservers?: RTCIceServer[];
+ portRange?: MSPortRange;
}
interface RTCIceParameters {
- usernameFragment?: string;
+ iceLite?: boolean | null;
password?: string;
+ usernameFragment?: string;
}
interface RTCIceServer {
+ credential?: string | null;
urls?: any;
- username?: string;
- credential?: string;
+ username?: string | null;
}
interface RTCInboundRTPStreamStats extends RTCRTPStreamStats {
- packetsReceived?: number;
bytesReceived?: number;
- packetsLost?: number;
- jitter?: number;
fractionLost?: number;
+ jitter?: number;
+ packetsLost?: number;
+ packetsReceived?: number;
}
interface RTCMediaStreamTrackStats extends RTCStats {
- trackIdentifier?: string;
- remoteSource?: boolean;
- ssrcIds?: string[];
- frameWidth?: number;
- frameHeight?: number;
- framesPerSecond?: number;
- framesSent?: number;
- framesReceived?: number;
- framesDecoded?: number;
- framesDropped?: number;
- framesCorrupted?: number;
audioLevel?: number;
echoReturnLoss?: number;
echoReturnLossEnhancement?: number;
-}
-
-interface RTCOutboundRTPStreamStats extends RTCRTPStreamStats {
- packetsSent?: number;
- bytesSent?: number;
- targetBitrate?: number;
- roundTripTime?: number;
-}
-
-interface RTCRTPStreamStats extends RTCStats {
- ssrc?: string;
- associateStatsId?: string;
- isRemote?: boolean;
- mediaTrackId?: string;
- transportId?: string;
- codecId?: string;
- firCount?: number;
- pliCount?: number;
- nackCount?: number;
- sliCount?: number;
+ frameHeight?: number;
+ framesCorrupted?: number;
+ framesDecoded?: number;
+ framesDropped?: number;
+ framesPerSecond?: number;
+ framesReceived?: number;
+ framesSent?: number;
+ frameWidth?: number;
+ remoteSource?: boolean;
+ ssrcIds?: string[];
+ trackIdentifier?: string;
+}
+
+interface RTCOfferOptions {
+ iceRestart?: boolean;
+ offerToReceiveAudio?: number;
+ offerToReceiveVideo?: number;
+ voiceActivityDetection?: boolean;
+}
+
+interface RTCOutboundRTPStreamStats extends RTCRTPStreamStats {
+ bytesSent?: number;
+ packetsSent?: number;
+ roundTripTime?: number;
+ targetBitrate?: number;
+}
+
+interface RTCPeerConnectionIceEventInit extends EventInit {
+ candidate?: RTCIceCandidate;
}
interface RTCRtcpFeedback {
- type?: string;
parameter?: string;
+ type?: string;
}
interface RTCRtcpParameters {
- ssrc?: number;
cname?: string;
- reducedSize?: boolean;
mux?: boolean;
+ reducedSize?: boolean;
+ ssrc?: number;
}
interface RTCRtpCapabilities {
codecs?: RTCRtpCodecCapability[];
- headerExtensions?: RTCRtpHeaderExtension[];
fecMechanisms?: string[];
+ headerExtensions?: RTCRtpHeaderExtension[];
}
interface RTCRtpCodecCapability {
- name?: string;
- kind?: string;
clockRate?: number;
- preferredPayloadType?: number;
+ kind?: string;
maxptime?: number;
+ maxSpatialLayers?: number;
+ maxTemporalLayers?: number;
+ name?: string;
numChannels?: number;
- rtcpFeedback?: RTCRtcpFeedback[];
- parameters?: any;
options?: any;
- maxTemporalLayers?: number;
- maxSpatialLayers?: number;
+ parameters?: any;
+ preferredPayloadType?: number;
+ ptime?: number;
+ rtcpFeedback?: RTCRtcpFeedback[];
svcMultiStreamSupport?: boolean;
}
interface RTCRtpCodecParameters {
- name?: string;
- payloadType?: any;
clockRate?: number;
maxptime?: number;
+ name?: string;
numChannels?: number;
- rtcpFeedback?: RTCRtcpFeedback[];
parameters?: any;
+ payloadType?: any;
+ ptime?: number;
+ rtcpFeedback?: RTCRtcpFeedback[];
}
interface RTCRtpContributingSource {
- timestamp?: number;
- csrc?: number;
audioLevel?: number;
+ csrc?: number;
+ timestamp?: number;
}
interface RTCRtpEncodingParameters {
- ssrc?: number;
+ active?: boolean;
codecPayloadType?: number;
+ dependencyEncodingIds?: string[];
+ encodingId?: string;
fec?: RTCRtpFecParameters;
- rtx?: RTCRtpRtxParameters;
- priority?: number;
+ framerateScale?: number;
maxBitrate?: number;
+ maxFramerate?: number;
minQuality?: number;
- framerateBias?: number;
+ priority?: number;
resolutionScale?: number;
- framerateScale?: number;
- active?: boolean;
- encodingId?: string;
- dependencyEncodingIds?: string[];
+ rtx?: RTCRtpRtxParameters;
+ ssrc?: number;
ssrcRange?: RTCSsrcRange;
}
interface RTCRtpFecParameters {
- ssrc?: number;
mechanism?: string;
+ ssrc?: number;
}
interface RTCRtpHeaderExtension {
kind?: string;
- uri?: string;
- preferredId?: number;
preferredEncrypt?: boolean;
+ preferredId?: number;
+ uri?: string;
}
interface RTCRtpHeaderExtensionParameters {
- uri?: string;
- id?: number;
encrypt?: boolean;
+ id?: number;
+ uri?: string;
}
interface RTCRtpParameters {
- muxId?: string;
codecs?: RTCRtpCodecParameters[];
- headerExtensions?: RTCRtpHeaderExtensionParameters[];
+ degradationPreference?: RTCDegradationPreference;
encodings?: RTCRtpEncodingParameters[];
+ headerExtensions?: RTCRtpHeaderExtensionParameters[];
+ muxId?: string;
rtcp?: RTCRtcpParameters;
}
@@ -4988,75 +5129,138 @@ interface RTCRtpRtxParameters {
ssrc?: number;
}
+interface RTCRTPStreamStats extends RTCStats {
+ associateStatsId?: string;
+ codecId?: string;
+ firCount?: number;
+ isRemote?: boolean;
+ mediaTrackId?: string;
+ nackCount?: number;
+ pliCount?: number;
+ sliCount?: number;
+ ssrc?: string;
+ transportId?: string;
+}
+
interface RTCRtpUnhandled {
- ssrc?: number;
- payloadType?: number;
muxId?: string;
+ payloadType?: number;
+ ssrc?: number;
+}
+
+interface RTCSessionDescriptionInit {
+ sdp?: string;
+ type?: RTCSdpType;
}
interface RTCSrtpKeyParam {
keyMethod?: string;
keySalt?: string;
lifetime?: string;
- mkiValue?: number;
mkiLength?: number;
+ mkiValue?: number;
}
interface RTCSrtpSdesParameters {
- tag?: number;
cryptoSuite?: string;
keyParams?: RTCSrtpKeyParam[];
sessionParams?: string[];
+ tag?: number;
}
interface RTCSsrcRange {
- min?: number;
max?: number;
+ min?: number;
}
interface RTCStats {
- timestamp?: number;
- type?: string;
id?: string;
- msType?: string;
+ msType?: MSStatsType;
+ timestamp?: number;
+ type?: RTCStatsType;
}
interface RTCStatsReport {
}
interface RTCTransportStats extends RTCStats {
- bytesSent?: number;
- bytesReceived?: number;
- rtcpTransportStatsId?: string;
activeConnection?: boolean;
- selectedCandidatePairId?: string;
+ bytesReceived?: number;
+ bytesSent?: number;
localCertificateId?: string;
remoteCertificateId?: string;
+ rtcpTransportStatsId?: string;
+ selectedCandidatePairId?: string;
+}
+
+interface ScopedCredentialDescriptor {
+ id: any;
+ transports?: Transport[];
+ type: ScopedCredentialType;
+}
+
+interface ScopedCredentialOptions {
+ excludeList?: ScopedCredentialDescriptor[];
+ extensions?: WebAuthnExtensions;
+ rpId?: USVString;
+ timeoutSeconds?: number;
+}
+
+interface ScopedCredentialParameters {
+ algorithm: string | Algorithm;
+ type: ScopedCredentialType;
+}
+
+interface ServiceWorkerMessageEventInit extends EventInit {
+ data?: any;
+ lastEventId?: string;
+ origin?: string;
+ ports?: MessagePort[] | null;
+ source?: ServiceWorker | MessagePort | null;
+}
+
+interface SpeechSynthesisEventInit extends EventInit {
+ charIndex?: number;
+ elapsedTime?: number;
+ name?: string;
+ utterance?: SpeechSynthesisUtterance | null;
}
interface StoreExceptionsInformation extends ExceptionInformation {
- siteName?: string;
- explanationString?: string;
- detailURI?: string;
+ detailURI?: string | null;
+ explanationString?: string | null;
+ siteName?: string | null;
}
interface StoreSiteSpecificExceptionsInformation extends StoreExceptionsInformation {
arrayOfDomainStrings?: string[];
}
+interface TrackEventInit extends EventInit {
+ track?: VideoTrack | AudioTrack | TextTrack | null;
+}
+
+interface TransitionEventInit extends EventInit {
+ elapsedTime?: number;
+ propertyName?: string;
+}
+
interface UIEventInit extends EventInit {
- view?: Window;
detail?: number;
+ view?: Window | null;
+}
+
+interface WebAuthnExtensions {
}
interface WebGLContextAttributes {
failIfMajorPerformanceCaveat?: boolean;
alpha?: boolean;
- depth?: boolean;
- stencil?: boolean;
antialias?: boolean;
+ depth?: boolean;
premultipliedAlpha?: boolean;
preserveDrawingBuffer?: boolean;
+ stencil?: boolean;
}
interface WebGLContextEventInit extends EventInit {
@@ -5064,27 +5268,26 @@ interface WebGLContextEventInit extends EventInit {
}
interface WheelEventInit extends MouseEventInit {
+ deltaMode?: number;
deltaX?: number;
deltaY?: number;
deltaZ?: number;
- deltaMode?: number;
}
interface EventListener {
(evt: Event): void;
}
-interface ANGLE_instanced_arrays {
- drawArraysInstancedANGLE(mode: number, first: number, count: number, primcount: number): void;
- drawElementsInstancedANGLE(mode: number, count: number, type: number, offset: number, primcount: number): void;
- vertexAttribDivisorANGLE(index: number, divisor: number): void;
- readonly VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE: number;
+interface WebKitEntriesCallback {
+ (evt: Event): void;
}
-declare var ANGLE_instanced_arrays: {
- prototype: ANGLE_instanced_arrays;
- new(): ANGLE_instanced_arrays;
- readonly VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE: number;
+interface WebKitErrorCallback {
+ (evt: Event): void;
+}
+
+interface WebKitFileCallback {
+ (evt: Event): void;
}
interface AnalyserNode extends AudioNode {
@@ -5102,8 +5305,21 @@ interface AnalyserNode extends AudioNode {
declare var AnalyserNode: {
prototype: AnalyserNode;
new(): AnalyserNode;
+};
+
+interface ANGLE_instanced_arrays {
+ drawArraysInstancedANGLE(mode: number, first: number, count: number, primcount: number): void;
+ drawElementsInstancedANGLE(mode: number, count: number, type: number, offset: number, primcount: number): void;
+ vertexAttribDivisorANGLE(index: number, divisor: number): void;
+ readonly VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE: number;
}
+declare var ANGLE_instanced_arrays: {
+ prototype: ANGLE_instanced_arrays;
+ new(): ANGLE_instanced_arrays;
+ readonly VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE: number;
+};
+
interface AnimationEvent extends Event {
readonly animationName: string;
readonly elapsedTime: number;
@@ -5112,14 +5328,14 @@ interface AnimationEvent extends Event {
declare var AnimationEvent: {
prototype: AnimationEvent;
- new(): AnimationEvent;
-}
+ new(typeArg: string, eventInitDict?: AnimationEventInit): AnimationEvent;
+};
interface ApplicationCacheEventMap {
"cached": Event;
"checking": Event;
"downloading": Event;
- "error": ErrorEvent;
+ "error": Event;
"noupdate": Event;
"obsolete": Event;
"progress": ProgressEvent;
@@ -5130,7 +5346,7 @@ interface ApplicationCache extends EventTarget {
oncached: (this: ApplicationCache, ev: Event) => any;
onchecking: (this: ApplicationCache, ev: Event) => any;
ondownloading: (this: ApplicationCache, ev: Event) => any;
- onerror: (this: ApplicationCache, ev: ErrorEvent) => any;
+ onerror: (this: ApplicationCache, ev: Event) => any;
onnoupdate: (this: ApplicationCache, ev: Event) => any;
onobsolete: (this: ApplicationCache, ev: Event) => any;
onprogress: (this: ApplicationCache, ev: ProgressEvent) => any;
@@ -5147,6 +5363,8 @@ interface ApplicationCache extends EventTarget {
readonly UPDATEREADY: number;
addEventListener(type: K, listener: (this: ApplicationCache, ev: ApplicationCacheEventMap[K]) => any, useCapture?: boolean): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
+ removeEventListener(type: K, listener: (this: ApplicationCache, ev: ApplicationCacheEventMap[K]) => any, useCapture?: boolean): void;
+ removeEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
}
declare var ApplicationCache: {
@@ -5158,17 +5376,7 @@ declare var ApplicationCache: {
readonly OBSOLETE: number;
readonly UNCACHED: number;
readonly UPDATEREADY: number;
-}
-
-interface AriaRequestEvent extends Event {
- readonly attributeName: string;
- attributeValue: string | null;
-}
-
-declare var AriaRequestEvent: {
- prototype: AriaRequestEvent;
- new(type: string, eventInitDict?: AriaRequestEventInit): AriaRequestEvent;
-}
+};
interface Attr extends Node {
readonly name: string;
@@ -5181,7 +5389,7 @@ interface Attr extends Node {
declare var Attr: {
prototype: Attr;
new(): Attr;
-}
+};
interface AudioBuffer {
readonly duration: number;
@@ -5196,7 +5404,7 @@ interface AudioBuffer {
declare var AudioBuffer: {
prototype: AudioBuffer;
new(): AudioBuffer;
-}
+};
interface AudioBufferSourceNodeEventMap {
"ended": MediaStreamErrorEvent;
@@ -5214,19 +5422,27 @@ interface AudioBufferSourceNode extends AudioNode {
stop(when?: number): void;
addEventListener(type: K, listener: (this: AudioBufferSourceNode, ev: AudioBufferSourceNodeEventMap[K]) => any, useCapture?: boolean): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
+ removeEventListener(type: K, listener: (this: AudioBufferSourceNode, ev: AudioBufferSourceNodeEventMap[K]) => any, useCapture?: boolean): void;
+ removeEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
}
declare var AudioBufferSourceNode: {
prototype: AudioBufferSourceNode;
new(): AudioBufferSourceNode;
+};
+
+interface AudioContextEventMap {
+ "statechange": Event;
}
-interface AudioContext extends EventTarget {
+interface AudioContextBase extends EventTarget {
readonly currentTime: number;
readonly destination: AudioDestinationNode;
readonly listener: AudioListener;
+ onstatechange: (this: AudioContext, ev: Event) => any;
readonly sampleRate: number;
- state: string;
+ readonly state: AudioContextState;
+ close(): Promise;
createAnalyser(): AnalyserNode;
createBiquadFilter(): BiquadFilterNode;
createBuffer(numberOfChannels: number, length: number, sampleRate: number): AudioBuffer;
@@ -5237,6 +5453,7 @@ interface AudioContext extends EventTarget {
createDelay(maxDelayTime?: number): DelayNode;
createDynamicsCompressor(): DynamicsCompressorNode;
createGain(): GainNode;
+ createIIRFilter(feedforward: number[], feedback: number[]): IIRFilterNode;
createMediaElementSource(mediaElement: HTMLMediaElement): MediaElementAudioSourceNode;
createMediaStreamSource(mediaStream: MediaStream): MediaStreamAudioSourceNode;
createOscillator(): OscillatorNode;
@@ -5245,13 +5462,22 @@ interface AudioContext extends EventTarget {
createScriptProcessor(bufferSize?: number, numberOfInputChannels?: number, numberOfOutputChannels?: number): ScriptProcessorNode;
createStereoPanner(): StereoPannerNode;
createWaveShaper(): WaveShaperNode;
- decodeAudioData(audioData: ArrayBuffer, successCallback?: DecodeSuccessCallback, errorCallback?: DecodeErrorCallback): PromiseLike;
+ decodeAudioData(audioData: ArrayBuffer, successCallback?: DecodeSuccessCallback, errorCallback?: DecodeErrorCallback): Promise;
+ resume(): Promise;
+ addEventListener(type: K, listener: (this: AudioContext, ev: AudioContextEventMap[K]) => any, useCapture?: boolean): void;
+ addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
+ removeEventListener(type: K, listener: (this: AudioContext, ev: AudioContextEventMap[K]) => any, useCapture?: boolean): void;
+ removeEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+interface AudioContext extends AudioContextBase {
+ suspend(): Promise;
}
declare var AudioContext: {
prototype: AudioContext;
new(): AudioContext;
-}
+};
interface AudioDestinationNode extends AudioNode {
readonly maxChannelCount: number;
@@ -5260,7 +5486,7 @@ interface AudioDestinationNode extends AudioNode {
declare var AudioDestinationNode: {
prototype: AudioDestinationNode;
new(): AudioDestinationNode;
-}
+};
interface AudioListener {
dopplerFactor: number;
@@ -5273,16 +5499,17 @@ interface AudioListener {
declare var AudioListener: {
prototype: AudioListener;
new(): AudioListener;
-}
+};
interface AudioNode extends EventTarget {
channelCount: number;
- channelCountMode: string;
- channelInterpretation: string;
+ channelCountMode: ChannelCountMode;
+ channelInterpretation: ChannelInterpretation;
readonly context: AudioContext;
readonly numberOfInputs: number;
readonly numberOfOutputs: number;
- connect(destination: AudioNode, output?: number, input?: number): void;
+ connect(destination: AudioNode, output?: number, input?: number): AudioNode;
+ connect(destination: AudioParam, output?: number): void;
disconnect(output?: number): void;
disconnect(destination: AudioNode, output?: number, input?: number): void;
disconnect(destination: AudioParam, output?: number): void;
@@ -5291,23 +5518,23 @@ interface AudioNode extends EventTarget {
declare var AudioNode: {
prototype: AudioNode;
new(): AudioNode;
-}
+};
interface AudioParam {
readonly defaultValue: number;
value: number;
- cancelScheduledValues(startTime: number): void;
- exponentialRampToValueAtTime(value: number, endTime: number): void;
- linearRampToValueAtTime(value: number, endTime: number): void;
- setTargetAtTime(target: number, startTime: number, timeConstant: number): void;
- setValueAtTime(value: number, startTime: number): void;
- setValueCurveAtTime(values: Float32Array, startTime: number, duration: number): void;
+ cancelScheduledValues(startTime: number): AudioParam;
+ exponentialRampToValueAtTime(value: number, endTime: number): AudioParam;
+ linearRampToValueAtTime(value: number, endTime: number): AudioParam;
+ setTargetAtTime(target: number, startTime: number, timeConstant: number): AudioParam;
+ setValueAtTime(value: number, startTime: number): AudioParam;
+ setValueCurveAtTime(values: Float32Array, startTime: number, duration: number): AudioParam;
}
declare var AudioParam: {
prototype: AudioParam;
new(): AudioParam;
-}
+};
interface AudioProcessingEvent extends Event {
readonly inputBuffer: AudioBuffer;
@@ -5318,7 +5545,7 @@ interface AudioProcessingEvent extends Event {
declare var AudioProcessingEvent: {
prototype: AudioProcessingEvent;
new(): AudioProcessingEvent;
-}
+};
interface AudioTrack {
enabled: boolean;
@@ -5332,7 +5559,7 @@ interface AudioTrack {
declare var AudioTrack: {
prototype: AudioTrack;
new(): AudioTrack;
-}
+};
interface AudioTrackListEventMap {
"addtrack": TrackEvent;
@@ -5349,13 +5576,15 @@ interface AudioTrackList extends EventTarget {
item(index: number): AudioTrack;
addEventListener(type: K, listener: (this: AudioTrackList, ev: AudioTrackListEventMap[K]) => any, useCapture?: boolean): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
+ removeEventListener(type: K, listener: (this: AudioTrackList, ev: AudioTrackListEventMap[K]) => any, useCapture?: boolean): void;
+ removeEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
[index: number]: AudioTrack;
}
declare var AudioTrackList: {
prototype: AudioTrackList;
new(): AudioTrackList;
-}
+};
interface BarProp {
readonly visible: boolean;
@@ -5364,7 +5593,7 @@ interface BarProp {
declare var BarProp: {
prototype: BarProp;
new(): BarProp;
-}
+};
interface BeforeUnloadEvent extends Event {
returnValue: any;
@@ -5373,21 +5602,21 @@ interface BeforeUnloadEvent extends Event {
declare var BeforeUnloadEvent: {
prototype: BeforeUnloadEvent;
new(): BeforeUnloadEvent;
-}
+};
interface BiquadFilterNode extends AudioNode {
- readonly Q: AudioParam;
readonly detune: AudioParam;
readonly frequency: AudioParam;
readonly gain: AudioParam;
- type: string;
+ readonly Q: AudioParam;
+ type: BiquadFilterType;
getFrequencyResponse(frequencyHz: Float32Array, magResponse: Float32Array, phaseResponse: Float32Array): void;
}
declare var BiquadFilterNode: {
prototype: BiquadFilterNode;
new(): BiquadFilterNode;
-}
+};
interface Blob {
readonly size: number;
@@ -5400,167 +5629,456 @@ interface Blob {
declare var Blob: {
prototype: Blob;
new (blobParts?: any[], options?: BlobPropertyBag): Blob;
-}
+};
-interface CDATASection extends Text {
+interface Cache {
+ add(request: RequestInfo): Promise;
+ addAll(requests: RequestInfo[]): Promise;
+ delete(request: RequestInfo, options?: CacheQueryOptions): Promise;
+ keys(request?: RequestInfo, options?: CacheQueryOptions): Promise;
+ match(request: RequestInfo, options?: CacheQueryOptions): Promise;
+ matchAll(request?: RequestInfo, options?: CacheQueryOptions): Promise;
+ put(request: RequestInfo, response: Response): Promise;
}
-declare var CDATASection: {
- prototype: CDATASection;
- new(): CDATASection;
-}
+declare var Cache: {
+ prototype: Cache;
+ new(): Cache;
+};
-interface CSS {
- supports(property: string, value?: string): boolean;
+interface CacheStorage {
+ delete(cacheName: string): Promise;
+ has(cacheName: string): Promise;
+ keys(): Promise;
+ match(request: RequestInfo, options?: CacheQueryOptions): Promise;
+ open(cacheName: string): Promise;
}
-declare var CSS: CSS;
-interface CSSConditionRule extends CSSGroupingRule {
- conditionText: string;
-}
+declare var CacheStorage: {
+ prototype: CacheStorage;
+ new(): CacheStorage;
+};
-declare var CSSConditionRule: {
- prototype: CSSConditionRule;
- new(): CSSConditionRule;
+interface CanvasGradient {
+ addColorStop(offset: number, color: string): void;
}
-interface CSSFontFaceRule extends CSSRule {
- readonly style: CSSStyleDeclaration;
+declare var CanvasGradient: {
+ prototype: CanvasGradient;
+ new(): CanvasGradient;
+};
+
+interface CanvasPattern {
+ setTransform(matrix: SVGMatrix): void;
}
-declare var CSSFontFaceRule: {
- prototype: CSSFontFaceRule;
- new(): CSSFontFaceRule;
-}
+declare var CanvasPattern: {
+ prototype: CanvasPattern;
+ new(): CanvasPattern;
+};
-interface CSSGroupingRule extends CSSRule {
- readonly cssRules: CSSRuleList;
- deleteRule(index: number): void;
- insertRule(rule: string, index: number): number;
+interface CanvasRenderingContext2D extends Object, CanvasPathMethods {
+ readonly canvas: HTMLCanvasElement;
+ fillStyle: string | CanvasGradient | CanvasPattern;
+ font: string;
+ globalAlpha: number;
+ globalCompositeOperation: string;
+ imageSmoothingEnabled: boolean;
+ lineCap: string;
+ lineDashOffset: number;
+ lineJoin: string;
+ lineWidth: number;
+ miterLimit: number;
+ msFillRule: CanvasFillRule;
+ shadowBlur: number;
+ shadowColor: string;
+ shadowOffsetX: number;
+ shadowOffsetY: number;
+ strokeStyle: string | CanvasGradient | CanvasPattern;
+ textAlign: string;
+ textBaseline: string;
+ mozImageSmoothingEnabled: boolean;
+ webkitImageSmoothingEnabled: boolean;
+ oImageSmoothingEnabled: boolean;
+ beginPath(): void;
+ clearRect(x: number, y: number, w: number, h: number): void;
+ clip(fillRule?: CanvasFillRule): void;
+ createImageData(imageDataOrSw: number | ImageData, sh?: number): ImageData;
+ createLinearGradient(x0: number, y0: number, x1: number, y1: number): CanvasGradient;
+ createPattern(image: HTMLImageElement | HTMLCanvasElement | HTMLVideoElement, repetition: string): CanvasPattern;
+ createRadialGradient(x0: number, y0: number, r0: number, x1: number, y1: number, r1: number): CanvasGradient;
+ drawFocusIfNeeded(element: Element): void;
+ drawImage(image: HTMLImageElement | HTMLCanvasElement | HTMLVideoElement | ImageBitmap, dstX: number, dstY: number): void;
+ drawImage(image: HTMLImageElement | HTMLCanvasElement | HTMLVideoElement | ImageBitmap, dstX: number, dstY: number, dstW: number, dstH: number): void;
+ drawImage(image: HTMLImageElement | HTMLCanvasElement | HTMLVideoElement | ImageBitmap, srcX: number, srcY: number, srcW: number, srcH: number, dstX: number, dstY: number, dstW: number, dstH: number): void;
+ fill(fillRule?: CanvasFillRule): void;
+ fillRect(x: number, y: number, w: number, h: number): void;
+ fillText(text: string, x: number, y: number, maxWidth?: number): void;
+ getImageData(sx: number, sy: number, sw: number, sh: number): ImageData;
+ getLineDash(): number[];
+ isPointInPath(x: number, y: number, fillRule?: CanvasFillRule): boolean;
+ measureText(text: string): TextMetrics;
+ putImageData(imagedata: ImageData, dx: number, dy: number, dirtyX?: number, dirtyY?: number, dirtyWidth?: number, dirtyHeight?: number): void;
+ restore(): void;
+ rotate(angle: number): void;
+ save(): void;
+ scale(x: number, y: number): void;
+ setLineDash(segments: number[]): void;
+ setTransform(m11: number, m12: number, m21: number, m22: number, dx: number, dy: number): void;
+ stroke(path?: Path2D): void;
+ strokeRect(x: number, y: number, w: number, h: number): void;
+ strokeText(text: string, x: number, y: number, maxWidth?: number): void;
+ transform(m11: number, m12: number, m21: number, m22: number, dx: number, dy: number): void;
+ translate(x: number, y: number): void;
}
-declare var CSSGroupingRule: {
- prototype: CSSGroupingRule;
- new(): CSSGroupingRule;
-}
+declare var CanvasRenderingContext2D: {
+ prototype: CanvasRenderingContext2D;
+ new(): CanvasRenderingContext2D;
+};
-interface CSSImportRule extends CSSRule {
- readonly href: string;
- readonly media: MediaList;
- readonly styleSheet: CSSStyleSheet;
+interface CDATASection extends Text {
}
-declare var CSSImportRule: {
- prototype: CSSImportRule;
- new(): CSSImportRule;
-}
+declare var CDATASection: {
+ prototype: CDATASection;
+ new(): CDATASection;
+};
-interface CSSKeyframeRule extends CSSRule {
- keyText: string;
- readonly style: CSSStyleDeclaration;
+interface ChannelMergerNode extends AudioNode {
}
-declare var CSSKeyframeRule: {
- prototype: CSSKeyframeRule;
- new(): CSSKeyframeRule;
-}
+declare var ChannelMergerNode: {
+ prototype: ChannelMergerNode;
+ new(): ChannelMergerNode;
+};
-interface CSSKeyframesRule extends CSSRule {
- readonly cssRules: CSSRuleList;
- name: string;
- appendRule(rule: string): void;
- deleteRule(rule: string): void;
- findRule(rule: string): CSSKeyframeRule;
+interface ChannelSplitterNode extends AudioNode {
}
-declare var CSSKeyframesRule: {
- prototype: CSSKeyframesRule;
- new(): CSSKeyframesRule;
-}
+declare var ChannelSplitterNode: {
+ prototype: ChannelSplitterNode;
+ new(): ChannelSplitterNode;
+};
-interface CSSMediaRule extends CSSConditionRule {
- readonly media: MediaList;
+interface CharacterData extends Node, ChildNode {
+ data: string;
+ readonly length: number;
+ appendData(arg: string): void;
+ deleteData(offset: number, count: number): void;
+ insertData(offset: number, arg: string): void;
+ replaceData(offset: number, count: number, arg: string): void;
+ substringData(offset: number, count: number): string;
}
-declare var CSSMediaRule: {
- prototype: CSSMediaRule;
- new(): CSSMediaRule;
-}
+declare var CharacterData: {
+ prototype: CharacterData;
+ new(): CharacterData;
+};
-interface CSSNamespaceRule extends CSSRule {
- readonly namespaceURI: string;
- readonly prefix: string;
+interface ClientRect {
+ bottom: number;
+ readonly height: number;
+ left: number;
+ right: number;
+ top: number;
+ readonly width: number;
}
-declare var CSSNamespaceRule: {
- prototype: CSSNamespaceRule;
- new(): CSSNamespaceRule;
+declare var ClientRect: {
+ prototype: ClientRect;
+ new(): ClientRect;
+};
+
+interface ClientRectList {
+ readonly length: number;
+ item(index: number): ClientRect;
+ [index: number]: ClientRect;
}
-interface CSSPageRule extends CSSRule {
- readonly pseudoClass: string;
- readonly selector: string;
- selectorText: string;
- readonly style: CSSStyleDeclaration;
+declare var ClientRectList: {
+ prototype: ClientRectList;
+ new(): ClientRectList;
+};
+
+interface ClipboardEvent extends Event {
+ readonly clipboardData: DataTransfer;
}
-declare var CSSPageRule: {
- prototype: CSSPageRule;
- new(): CSSPageRule;
+declare var ClipboardEvent: {
+ prototype: ClipboardEvent;
+ new(type: string, eventInitDict?: ClipboardEventInit): ClipboardEvent;
+};
+
+interface CloseEvent extends Event {
+ readonly code: number;
+ readonly reason: string;
+ readonly wasClean: boolean;
+ initCloseEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, wasCleanArg: boolean, codeArg: number, reasonArg: string): void;
}
-interface CSSRule {
- cssText: string;
- readonly parentRule: CSSRule;
- readonly parentStyleSheet: CSSStyleSheet;
- readonly type: number;
- readonly CHARSET_RULE: number;
- readonly FONT_FACE_RULE: number;
- readonly IMPORT_RULE: number;
- readonly KEYFRAMES_RULE: number;
- readonly KEYFRAME_RULE: number;
- readonly MEDIA_RULE: number;
- readonly NAMESPACE_RULE: number;
- readonly PAGE_RULE: number;
- readonly STYLE_RULE: number;
- readonly SUPPORTS_RULE: number;
- readonly UNKNOWN_RULE: number;
- readonly VIEWPORT_RULE: number;
+declare var CloseEvent: {
+ prototype: CloseEvent;
+ new(typeArg: string, eventInitDict?: CloseEventInit): CloseEvent;
+};
+
+interface Comment extends CharacterData {
+ text: string;
}
-declare var CSSRule: {
- prototype: CSSRule;
- new(): CSSRule;
- readonly CHARSET_RULE: number;
- readonly FONT_FACE_RULE: number;
- readonly IMPORT_RULE: number;
- readonly KEYFRAMES_RULE: number;
- readonly KEYFRAME_RULE: number;
- readonly MEDIA_RULE: number;
- readonly NAMESPACE_RULE: number;
- readonly PAGE_RULE: number;
- readonly STYLE_RULE: number;
- readonly SUPPORTS_RULE: number;
- readonly UNKNOWN_RULE: number;
- readonly VIEWPORT_RULE: number;
+declare var Comment: {
+ prototype: Comment;
+ new(): Comment;
+};
+
+interface CompositionEvent extends UIEvent {
+ readonly data: string;
+ readonly locale: string;
+ initCompositionEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, viewArg: Window, dataArg: string, locale: string): void;
}
-interface CSSRuleList {
- readonly length: number;
- item(index: number): CSSRule;
- [index: number]: CSSRule;
+declare var CompositionEvent: {
+ prototype: CompositionEvent;
+ new(typeArg: string, eventInitDict?: CompositionEventInit): CompositionEvent;
+};
+
+interface Console {
+ assert(test?: boolean, message?: string, ...optionalParams: any[]): void;
+ clear(): void;
+ count(countTitle?: string): void;
+ debug(message?: any, ...optionalParams: any[]): void;
+ dir(value?: any, ...optionalParams: any[]): void;
+ dirxml(value: any): void;
+ error(message?: any, ...optionalParams: any[]): void;
+ exception(message?: string, ...optionalParams: any[]): void;
+ group(groupTitle?: string, ...optionalParams: any[]): void;
+ groupCollapsed(groupTitle?: string, ...optionalParams: any[]): void;
+ groupEnd(): void;
+ info(message?: any, ...optionalParams: any[]): void;
+ log(message?: any, ...optionalParams: any[]): void;
+ msIsIndependentlyComposed(element: Element): boolean;
+ profile(reportName?: string): void;
+ profileEnd(): void;
+ select(element: Element): void;
+ table(...data: any[]): void;
+ time(timerName?: string): void;
+ timeEnd(timerName?: string): void;
+ trace(message?: any, ...optionalParams: any[]): void;
+ warn(message?: any, ...optionalParams: any[]): void;
}
-declare var CSSRuleList: {
- prototype: CSSRuleList;
- new(): CSSRuleList;
+declare var Console: {
+ prototype: Console;
+ new(): Console;
+};
+
+interface ConvolverNode extends AudioNode {
+ buffer: AudioBuffer | null;
+ normalize: boolean;
}
-interface CSSStyleDeclaration {
- alignContent: string | null;
- alignItems: string | null;
- alignSelf: string | null;
+declare var ConvolverNode: {
+ prototype: ConvolverNode;
+ new(): ConvolverNode;
+};
+
+interface Coordinates {
+ readonly accuracy: number;
+ readonly altitude: number | null;
+ readonly altitudeAccuracy: number | null;
+ readonly heading: number | null;
+ readonly latitude: number;
+ readonly longitude: number;
+ readonly speed: number | null;
+}
+
+declare var Coordinates: {
+ prototype: Coordinates;
+ new(): Coordinates;
+};
+
+interface Crypto extends Object, RandomSource {
+ readonly subtle: SubtleCrypto;
+}
+
+declare var Crypto: {
+ prototype: Crypto;
+ new(): Crypto;
+};
+
+interface CryptoKey {
+ readonly algorithm: KeyAlgorithm;
+ readonly extractable: boolean;
+ readonly type: string;
+ readonly usages: string[];
+}
+
+declare var CryptoKey: {
+ prototype: CryptoKey;
+ new(): CryptoKey;
+};
+
+interface CryptoKeyPair {
+ privateKey: CryptoKey;
+ publicKey: CryptoKey;
+}
+
+declare var CryptoKeyPair: {
+ prototype: CryptoKeyPair;
+ new(): CryptoKeyPair;
+};
+
+interface CSS {
+ supports(property: string, value?: string): boolean;
+}
+declare var CSS: CSS;
+
+interface CSSConditionRule extends CSSGroupingRule {
+ conditionText: string;
+}
+
+declare var CSSConditionRule: {
+ prototype: CSSConditionRule;
+ new(): CSSConditionRule;
+};
+
+interface CSSFontFaceRule extends CSSRule {
+ readonly style: CSSStyleDeclaration;
+}
+
+declare var CSSFontFaceRule: {
+ prototype: CSSFontFaceRule;
+ new(): CSSFontFaceRule;
+};
+
+interface CSSGroupingRule extends CSSRule {
+ readonly cssRules: CSSRuleList;
+ deleteRule(index: number): void;
+ insertRule(rule: string, index: number): number;
+}
+
+declare var CSSGroupingRule: {
+ prototype: CSSGroupingRule;
+ new(): CSSGroupingRule;
+};
+
+interface CSSImportRule extends CSSRule {
+ readonly href: string;
+ readonly media: MediaList;
+ readonly styleSheet: CSSStyleSheet;
+}
+
+declare var CSSImportRule: {
+ prototype: CSSImportRule;
+ new(): CSSImportRule;
+};
+
+interface CSSKeyframeRule extends CSSRule {
+ keyText: string;
+ readonly style: CSSStyleDeclaration;
+}
+
+declare var CSSKeyframeRule: {
+ prototype: CSSKeyframeRule;
+ new(): CSSKeyframeRule;
+};
+
+interface CSSKeyframesRule extends CSSRule {
+ readonly cssRules: CSSRuleList;
+ name: string;
+ appendRule(rule: string): void;
+ deleteRule(rule: string): void;
+ findRule(rule: string): CSSKeyframeRule;
+}
+
+declare var CSSKeyframesRule: {
+ prototype: CSSKeyframesRule;
+ new(): CSSKeyframesRule;
+};
+
+interface CSSMediaRule extends CSSConditionRule {
+ readonly media: MediaList;
+}
+
+declare var CSSMediaRule: {
+ prototype: CSSMediaRule;
+ new(): CSSMediaRule;
+};
+
+interface CSSNamespaceRule extends CSSRule {
+ readonly namespaceURI: string;
+ readonly prefix: string;
+}
+
+declare var CSSNamespaceRule: {
+ prototype: CSSNamespaceRule;
+ new(): CSSNamespaceRule;
+};
+
+interface CSSPageRule extends CSSRule {
+ readonly pseudoClass: string;
+ readonly selector: string;
+ selectorText: string;
+ readonly style: CSSStyleDeclaration;
+}
+
+declare var CSSPageRule: {
+ prototype: CSSPageRule;
+ new(): CSSPageRule;
+};
+
+interface CSSRule {
+ cssText: string;
+ readonly parentRule: CSSRule;
+ readonly parentStyleSheet: CSSStyleSheet;
+ readonly type: number;
+ readonly CHARSET_RULE: number;
+ readonly FONT_FACE_RULE: number;
+ readonly IMPORT_RULE: number;
+ readonly KEYFRAME_RULE: number;
+ readonly KEYFRAMES_RULE: number;
+ readonly MEDIA_RULE: number;
+ readonly NAMESPACE_RULE: number;
+ readonly PAGE_RULE: number;
+ readonly STYLE_RULE: number;
+ readonly SUPPORTS_RULE: number;
+ readonly UNKNOWN_RULE: number;
+ readonly VIEWPORT_RULE: number;
+}
+
+declare var CSSRule: {
+ prototype: CSSRule;
+ new(): CSSRule;
+ readonly CHARSET_RULE: number;
+ readonly FONT_FACE_RULE: number;
+ readonly IMPORT_RULE: number;
+ readonly KEYFRAME_RULE: number;
+ readonly KEYFRAMES_RULE: number;
+ readonly MEDIA_RULE: number;
+ readonly NAMESPACE_RULE: number;
+ readonly PAGE_RULE: number;
+ readonly STYLE_RULE: number;
+ readonly SUPPORTS_RULE: number;
+ readonly UNKNOWN_RULE: number;
+ readonly VIEWPORT_RULE: number;
+};
+
+interface CSSRuleList {
+ readonly length: number;
+ item(index: number): CSSRule;
+ [index: number]: CSSRule;
+}
+
+declare var CSSRuleList: {
+ prototype: CSSRuleList;
+ new(): CSSRuleList;
+};
+
+interface CSSStyleDeclaration {
+ alignContent: string | null;
+ alignItems: string | null;
alignmentBaseline: string | null;
+ alignSelf: string | null;
animation: string | null;
animationDelay: string | null;
animationDirection: string | null;
@@ -5636,9 +6154,9 @@ interface CSSStyleDeclaration {
columnRuleColor: any;
columnRuleStyle: string | null;
columnRuleWidth: any;
+ columns: string | null;
columnSpan: string | null;
columnWidth: any;
- columns: string | null;
content: string | null;
counterIncrement: string | null;
counterReset: string | null;
@@ -5678,10 +6196,16 @@ interface CSSStyleDeclaration {
imeMode: string | null;
justifyContent: string | null;
kerning: string | null;
+ layoutGrid: string | null;
+ layoutGridChar: string | null;
+ layoutGridLine: string | null;
+ layoutGridMode: string | null;
+ layoutGridType: string | null;
left: string | null;
readonly length: number;
letterSpacing: string | null;
lightingColor: string | null;
+ lineBreak: string | null;
lineHeight: string | null;
listStyle: string | null;
listStyleImage: string | null;
@@ -5702,24 +6226,24 @@ interface CSSStyleDeclaration {
minHeight: string | null;
minWidth: string | null;
msContentZoomChaining: string | null;
+ msContentZooming: string | null;
msContentZoomLimit: string | null;
msContentZoomLimitMax: any;
msContentZoomLimitMin: any;
msContentZoomSnap: string | null;
msContentZoomSnapPoints: string | null;
msContentZoomSnapType: string | null;
- msContentZooming: string | null;
msFlowFrom: string | null;
msFlowInto: string | null;
msFontFeatureSettings: string | null;
msGridColumn: any;
msGridColumnAlign: string | null;
- msGridColumnSpan: any;
msGridColumns: string | null;
+ msGridColumnSpan: any;
msGridRow: any;
msGridRowAlign: string | null;
- msGridRowSpan: any;
msGridRows: string | null;
+ msGridRowSpan: any;
msHighContrastAdjust: string | null;
msHyphenateLimitChars: string | null;
msHyphenateLimitLines: any;
@@ -5753,6 +6277,7 @@ interface CSSStyleDeclaration {
orphans: string | null;
outline: string | null;
outlineColor: string | null;
+ outlineOffset: string | null;
outlineStyle: string | null;
outlineWidth: string | null;
overflow: string | null;
@@ -5773,9 +6298,11 @@ interface CSSStyleDeclaration {
position: string | null;
quotes: string | null;
right: string | null;
+ rotate: string | null;
rubyAlign: string | null;
rubyOverhang: string | null;
rubyPosition: string | null;
+ scale: string | null;
stopColor: string | null;
stopOpacity: string | null;
stroke: string | null;
@@ -5809,6 +6336,7 @@ interface CSSStyleDeclaration {
transitionDuration: string | null;
transitionProperty: string | null;
transitionTimingFunction: string | null;
+ translate: string | null;
unicodeBidi: string | null;
verticalAlign: string | null;
visibility: string | null;
@@ -5851,9 +6379,9 @@ interface CSSStyleDeclaration {
webkitColumnRuleColor: any;
webkitColumnRuleStyle: string | null;
webkitColumnRuleWidth: any;
+ webkitColumns: string | null;
webkitColumnSpan: string | null;
webkitColumnWidth: any;
- webkitColumns: string | null;
webkitFilter: string | null;
webkitFlex: string | null;
webkitFlexBasis: string | null;
@@ -5869,6 +6397,9 @@ interface CSSStyleDeclaration {
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;
@@ -5890,6 +6421,7 @@ interface CSSStyleDeclaration {
zIndex: string | null;
zoom: string | null;
resize: string | null;
+ userSelect: string | null;
getPropertyPriority(propertyName: string): string;
getPropertyValue(propertyName: string): string;
item(index: number): string;
@@ -5901,7 +6433,7 @@ interface CSSStyleDeclaration {
declare var CSSStyleDeclaration: {
prototype: CSSStyleDeclaration;
new(): CSSStyleDeclaration;
-}
+};
interface CSSStyleRule extends CSSRule {
readonly readOnly: boolean;
@@ -5912,12 +6444,11 @@ interface CSSStyleRule extends CSSRule {
declare var CSSStyleRule: {
prototype: CSSStyleRule;
new(): CSSStyleRule;
-}
+};
interface CSSStyleSheet extends StyleSheet {
readonly cssRules: CSSRuleList;
cssText: string;
- readonly href: string;
readonly id: string;
readonly imports: StyleSheetList;
readonly isAlternate: boolean;
@@ -5939,7 +6470,7 @@ interface CSSStyleSheet extends StyleSheet {
declare var CSSStyleSheet: {
prototype: CSSStyleSheet;
new(): CSSStyleSheet;
-}
+};
interface CSSSupportsRule extends CSSConditionRule {
}
@@ -5947,560 +6478,153 @@ interface CSSSupportsRule extends CSSConditionRule {
declare var CSSSupportsRule: {
prototype: CSSSupportsRule;
new(): CSSSupportsRule;
-}
+};
-interface CanvasGradient {
- addColorStop(offset: number, color: string): void;
+interface CustomEvent extends Event {
+ readonly detail: any;
+ initCustomEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, detailArg: any): void;
}
-declare var CanvasGradient: {
- prototype: CanvasGradient;
- new(): CanvasGradient;
-}
+declare var CustomEvent: {
+ prototype: CustomEvent;
+ new(typeArg: string, eventInitDict?: CustomEventInit): CustomEvent;
+};
-interface CanvasPattern {
- setTransform(matrix: SVGMatrix): void;
+interface DataCue extends TextTrackCue {
+ data: ArrayBuffer;
+ addEventListener(type: K, listener: (this: DataCue, ev: TextTrackCueEventMap[K]) => any, useCapture?: boolean): void;
+ addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
+ removeEventListener(type: K, listener: (this: DataCue, ev: TextTrackCueEventMap[K]) => any, useCapture?: boolean): void;
+ removeEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
}
-declare var CanvasPattern: {
- prototype: CanvasPattern;
- new(): CanvasPattern;
+declare var DataCue: {
+ prototype: DataCue;
+ new(): DataCue;
+};
+
+interface DataTransfer {
+ dropEffect: string;
+ effectAllowed: string;
+ readonly files: FileList;
+ readonly items: DataTransferItemList;
+ readonly types: string[];
+ clearData(format?: string): boolean;
+ getData(format: string): string;
+ setData(format: string, data: string): boolean;
+ setDragImage(image: Element, x: number, y: number): void;
}
-interface CanvasRenderingContext2D extends Object, CanvasPathMethods {
- readonly canvas: HTMLCanvasElement;
- fillStyle: string | CanvasGradient | CanvasPattern;
- font: string;
- globalAlpha: number;
- globalCompositeOperation: string;
- lineCap: string;
- lineDashOffset: number;
- lineJoin: string;
- lineWidth: number;
- miterLimit: number;
- msFillRule: string;
- msImageSmoothingEnabled: boolean;
- shadowBlur: number;
- shadowColor: string;
- shadowOffsetX: number;
- shadowOffsetY: number;
- strokeStyle: string | CanvasGradient | CanvasPattern;
- textAlign: string;
- textBaseline: string;
- mozImageSmoothingEnabled: boolean;
- webkitImageSmoothingEnabled: boolean;
- oImageSmoothingEnabled: boolean;
- beginPath(): void;
- clearRect(x: number, y: number, w: number, h: number): void;
- clip(fillRule?: string): void;
- createImageData(imageDataOrSw: number | ImageData, sh?: number): ImageData;
- createLinearGradient(x0: number, y0: number, x1: number, y1: number): CanvasGradient;
- createPattern(image: HTMLImageElement | HTMLCanvasElement | HTMLVideoElement, repetition: string): CanvasPattern;
- createRadialGradient(x0: number, y0: number, r0: number, x1: number, y1: number, r1: number): CanvasGradient;
- drawImage(image: HTMLImageElement | HTMLCanvasElement | HTMLVideoElement, offsetX: number, offsetY: number, width?: number, height?: number, canvasOffsetX?: number, canvasOffsetY?: number, canvasImageWidth?: number, canvasImageHeight?: number): void;
- fill(fillRule?: string): void;
- fillRect(x: number, y: number, w: number, h: number): void;
- fillText(text: string, x: number, y: number, maxWidth?: number): void;
- getImageData(sx: number, sy: number, sw: number, sh: number): ImageData;
- getLineDash(): number[];
- isPointInPath(x: number, y: number, fillRule?: string): boolean;
- measureText(text: string): TextMetrics;
- putImageData(imagedata: ImageData, dx: number, dy: number, dirtyX?: number, dirtyY?: number, dirtyWidth?: number, dirtyHeight?: number): void;
- restore(): void;
- rotate(angle: number): void;
- save(): void;
- scale(x: number, y: number): void;
- setLineDash(segments: number[]): void;
- setTransform(m11: number, m12: number, m21: number, m22: number, dx: number, dy: number): void;
- stroke(): void;
- strokeRect(x: number, y: number, w: number, h: number): void;
- strokeText(text: string, x: number, y: number, maxWidth?: number): void;
- transform(m11: number, m12: number, m21: number, m22: number, dx: number, dy: number): void;
- translate(x: number, y: number): void;
-}
-
-declare var CanvasRenderingContext2D: {
- prototype: CanvasRenderingContext2D;
- new(): CanvasRenderingContext2D;
-}
-
-interface ChannelMergerNode extends AudioNode {
-}
-
-declare var ChannelMergerNode: {
- prototype: ChannelMergerNode;
- new(): ChannelMergerNode;
-}
-
-interface ChannelSplitterNode extends AudioNode {
-}
-
-declare var ChannelSplitterNode: {
- prototype: ChannelSplitterNode;
- new(): ChannelSplitterNode;
-}
-
-interface CharacterData extends Node, ChildNode {
- data: string;
- readonly length: number;
- appendData(arg: string): void;
- deleteData(offset: number, count: number): void;
- insertData(offset: number, arg: string): void;
- replaceData(offset: number, count: number, arg: string): void;
- substringData(offset: number, count: number): string;
-}
-
-declare var CharacterData: {
- prototype: CharacterData;
- new(): CharacterData;
-}
+declare var DataTransfer: {
+ prototype: DataTransfer;
+ new(): DataTransfer;
+};
-interface ClientRect {
- bottom: number;
- readonly height: number;
- left: number;
- right: number;
- top: number;
- readonly width: number;
+interface DataTransferItem {
+ readonly kind: string;
+ readonly type: string;
+ getAsFile(): File | null;
+ getAsString(_callback: FunctionStringCallback | null): void;
+ webkitGetAsEntry(): any;
}
-declare var ClientRect: {
- prototype: ClientRect;
- new(): ClientRect;
-}
+declare var DataTransferItem: {
+ prototype: DataTransferItem;
+ new(): DataTransferItem;
+};
-interface ClientRectList {
+interface DataTransferItemList {
readonly length: number;
- item(index: number): ClientRect;
- [index: number]: ClientRect;
-}
-
-declare var ClientRectList: {
- prototype: ClientRectList;
- new(): ClientRectList;
-}
-
-interface ClipboardEvent extends Event {
- readonly clipboardData: DataTransfer;
-}
-
-declare var ClipboardEvent: {
- prototype: ClipboardEvent;
- new(type: string, eventInitDict?: ClipboardEventInit): ClipboardEvent;
+ add(data: File): DataTransferItem | null;
+ clear(): void;
+ item(index: number): DataTransferItem;
+ remove(index: number): void;
+ [index: number]: DataTransferItem;
}
-interface CloseEvent extends Event {
- readonly code: number;
- readonly reason: string;
- readonly wasClean: boolean;
- initCloseEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, wasCleanArg: boolean, codeArg: number, reasonArg: string): void;
-}
+declare var DataTransferItemList: {
+ prototype: DataTransferItemList;
+ new(): DataTransferItemList;
+};
-declare var CloseEvent: {
- prototype: CloseEvent;
- new(): CloseEvent;
+interface DeferredPermissionRequest {
+ readonly id: number;
+ readonly type: MSWebViewPermissionType;
+ readonly uri: string;
+ allow(): void;
+ deny(): void;
}
-interface CommandEvent extends Event {
- readonly commandName: string;
- readonly detail: string | null;
-}
+declare var DeferredPermissionRequest: {
+ prototype: DeferredPermissionRequest;
+ new(): DeferredPermissionRequest;
+};
-declare var CommandEvent: {
- prototype: CommandEvent;
- new(type: string, eventInitDict?: CommandEventInit): CommandEvent;
+interface DelayNode extends AudioNode {
+ readonly delayTime: AudioParam;
}
-interface Comment extends CharacterData {
- text: string;
-}
+declare var DelayNode: {
+ prototype: DelayNode;
+ new(): DelayNode;
+};
-declare var Comment: {
- prototype: Comment;
- new(): Comment;
+interface DeviceAcceleration {
+ readonly x: number | null;
+ readonly y: number | null;
+ readonly z: number | null;
}
-interface CompositionEvent extends UIEvent {
- readonly data: string;
- readonly locale: string;
- initCompositionEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, viewArg: Window, dataArg: string, locale: string): void;
-}
+declare var DeviceAcceleration: {
+ prototype: DeviceAcceleration;
+ new(): DeviceAcceleration;
+};
-declare var CompositionEvent: {
- prototype: CompositionEvent;
- new(typeArg: string, eventInitDict?: CompositionEventInit): CompositionEvent;
+interface DeviceLightEvent extends Event {
+ readonly value: number;
}
-interface Console {
- assert(test?: boolean, message?: string, ...optionalParams: any[]): void;
- clear(): void;
- count(countTitle?: string): void;
- debug(message?: string, ...optionalParams: any[]): void;
- dir(value?: any, ...optionalParams: any[]): void;
- dirxml(value: any): void;
- error(message?: any, ...optionalParams: any[]): void;
- exception(message?: string, ...optionalParams: any[]): void;
- group(groupTitle?: string): void;
- groupCollapsed(groupTitle?: string): void;
- groupEnd(): void;
- info(message?: any, ...optionalParams: any[]): void;
- log(message?: any, ...optionalParams: any[]): void;
- msIsIndependentlyComposed(element: Element): boolean;
- profile(reportName?: string): void;
- profileEnd(): void;
- select(element: Element): void;
- table(...data: any[]): void;
- time(timerName?: string): void;
- timeEnd(timerName?: string): void;
- trace(message?: any, ...optionalParams: any[]): void;
- warn(message?: any, ...optionalParams: any[]): void;
-}
+declare var DeviceLightEvent: {
+ prototype: DeviceLightEvent;
+ new(typeArg: string, eventInitDict?: DeviceLightEventInit): DeviceLightEvent;
+};
-declare var Console: {
- prototype: Console;
- new(): Console;
+interface DeviceMotionEvent extends Event {
+ readonly acceleration: DeviceAcceleration | null;
+ readonly accelerationIncludingGravity: DeviceAcceleration | null;
+ readonly interval: number | null;
+ readonly rotationRate: DeviceRotationRate | null;
+ initDeviceMotionEvent(type: string, bubbles: boolean, cancelable: boolean, acceleration: DeviceAccelerationDict | null, accelerationIncludingGravity: DeviceAccelerationDict | null, rotationRate: DeviceRotationRateDict | null, interval: number | null): void;
}
-interface ConvolverNode extends AudioNode {
- buffer: AudioBuffer | null;
- normalize: boolean;
-}
+declare var DeviceMotionEvent: {
+ prototype: DeviceMotionEvent;
+ new(typeArg: string, eventInitDict?: DeviceMotionEventInit): DeviceMotionEvent;
+};
-declare var ConvolverNode: {
- prototype: ConvolverNode;
- new(): ConvolverNode;
+interface DeviceOrientationEvent extends Event {
+ readonly absolute: boolean;
+ readonly alpha: number | null;
+ readonly beta: number | null;
+ readonly gamma: number | null;
+ initDeviceOrientationEvent(type: string, bubbles: boolean, cancelable: boolean, alpha: number | null, beta: number | null, gamma: number | null, absolute: boolean): void;
}
-interface Coordinates {
- readonly accuracy: number;
- readonly altitude: number | null;
- readonly altitudeAccuracy: number | null;
- readonly heading: number | null;
- readonly latitude: number;
- readonly longitude: number;
- readonly speed: number | null;
-}
+declare var DeviceOrientationEvent: {
+ prototype: DeviceOrientationEvent;
+ new(typeArg: string, eventInitDict?: DeviceOrientationEventInit): DeviceOrientationEvent;
+};
-declare var Coordinates: {
- prototype: Coordinates;
- new(): Coordinates;
+interface DeviceRotationRate {
+ readonly alpha: number | null;
+ readonly beta: number | null;
+ readonly gamma: number | null;
}
-interface Crypto extends Object, RandomSource {
- readonly subtle: SubtleCrypto;
-}
-
-declare var Crypto: {
- prototype: Crypto;
- new(): Crypto;
-}
-
-interface CryptoKey {
- readonly algorithm: KeyAlgorithm;
- readonly extractable: boolean;
- readonly type: string;
- readonly usages: string[];
-}
-
-declare var CryptoKey: {
- prototype: CryptoKey;
- new(): CryptoKey;
-}
-
-interface CryptoKeyPair {
- privateKey: CryptoKey;
- publicKey: CryptoKey;
-}
-
-declare var CryptoKeyPair: {
- prototype: CryptoKeyPair;
- new(): CryptoKeyPair;
-}
-
-interface CustomEvent extends Event {
- readonly detail: any;
- initCustomEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, detailArg: any): void;
-}
-
-declare var CustomEvent: {
- prototype: CustomEvent;
- new(typeArg: string, eventInitDict?: CustomEventInit): CustomEvent;
-}
-
-interface DOMError {
- readonly name: string;
- toString(): string;
-}
-
-declare var DOMError: {
- prototype: DOMError;
- new(): DOMError;
-}
-
-interface DOMException {
- readonly code: number;
- readonly message: string;
- readonly name: string;
- toString(): string;
- readonly ABORT_ERR: number;
- readonly DATA_CLONE_ERR: number;
- readonly DOMSTRING_SIZE_ERR: number;
- readonly HIERARCHY_REQUEST_ERR: number;
- readonly INDEX_SIZE_ERR: number;
- readonly INUSE_ATTRIBUTE_ERR: number;
- readonly INVALID_ACCESS_ERR: number;
- readonly INVALID_CHARACTER_ERR: number;
- readonly INVALID_MODIFICATION_ERR: number;
- readonly INVALID_NODE_TYPE_ERR: number;
- readonly INVALID_STATE_ERR: number;
- readonly NAMESPACE_ERR: number;
- readonly NETWORK_ERR: number;
- readonly NOT_FOUND_ERR: number;
- readonly NOT_SUPPORTED_ERR: number;
- readonly NO_DATA_ALLOWED_ERR: number;
- readonly NO_MODIFICATION_ALLOWED_ERR: number;
- readonly PARSE_ERR: number;
- readonly QUOTA_EXCEEDED_ERR: number;
- readonly SECURITY_ERR: number;
- readonly SERIALIZE_ERR: number;
- readonly SYNTAX_ERR: number;
- readonly TIMEOUT_ERR: number;
- readonly TYPE_MISMATCH_ERR: number;
- readonly URL_MISMATCH_ERR: number;
- readonly VALIDATION_ERR: number;
- readonly WRONG_DOCUMENT_ERR: number;
-}
-
-declare var DOMException: {
- prototype: DOMException;
- new(): DOMException;
- readonly ABORT_ERR: number;
- readonly DATA_CLONE_ERR: number;
- readonly DOMSTRING_SIZE_ERR: number;
- readonly HIERARCHY_REQUEST_ERR: number;
- readonly INDEX_SIZE_ERR: number;
- readonly INUSE_ATTRIBUTE_ERR: number;
- readonly INVALID_ACCESS_ERR: number;
- readonly INVALID_CHARACTER_ERR: number;
- readonly INVALID_MODIFICATION_ERR: number;
- readonly INVALID_NODE_TYPE_ERR: number;
- readonly INVALID_STATE_ERR: number;
- readonly NAMESPACE_ERR: number;
- readonly NETWORK_ERR: number;
- readonly NOT_FOUND_ERR: number;
- readonly NOT_SUPPORTED_ERR: number;
- readonly NO_DATA_ALLOWED_ERR: number;
- readonly NO_MODIFICATION_ALLOWED_ERR: number;
- readonly PARSE_ERR: number;
- readonly QUOTA_EXCEEDED_ERR: number;
- readonly SECURITY_ERR: number;
- readonly SERIALIZE_ERR: number;
- readonly SYNTAX_ERR: number;
- readonly TIMEOUT_ERR: number;
- readonly TYPE_MISMATCH_ERR: number;
- readonly URL_MISMATCH_ERR: number;
- readonly VALIDATION_ERR: number;
- readonly WRONG_DOCUMENT_ERR: number;
-}
-
-interface DOMImplementation {
- createDocument(namespaceURI: string | null, qualifiedName: string | null, doctype: DocumentType): Document;
- createDocumentType(qualifiedName: string, publicId: string | null, systemId: string | null): DocumentType;
- createHTMLDocument(title: string): Document;
- hasFeature(feature: string | null, version: string | null): boolean;
-}
-
-declare var DOMImplementation: {
- prototype: DOMImplementation;
- new(): DOMImplementation;
-}
-
-interface DOMParser {
- parseFromString(source: string, mimeType: string): Document;
-}
-
-declare var DOMParser: {
- prototype: DOMParser;
- new(): DOMParser;
-}
-
-interface DOMSettableTokenList extends DOMTokenList {
- value: string;
-}
-
-declare var DOMSettableTokenList: {
- prototype: DOMSettableTokenList;
- new(): DOMSettableTokenList;
-}
-
-interface DOMStringList {
- readonly length: number;
- contains(str: string): boolean;
- item(index: number): string | null;
- [index: number]: string;
-}
-
-declare var DOMStringList: {
- prototype: DOMStringList;
- new(): DOMStringList;
-}
-
-interface DOMStringMap {
- [name: string]: string;
-}
-
-declare var DOMStringMap: {
- prototype: DOMStringMap;
- new(): DOMStringMap;
-}
-
-interface DOMTokenList {
- readonly length: number;
- add(...token: string[]): void;
- contains(token: string): boolean;
- item(index: number): string;
- remove(...token: string[]): void;
- toString(): string;
- toggle(token: string, force?: boolean): boolean;
- [index: number]: string;
-}
-
-declare var DOMTokenList: {
- prototype: DOMTokenList;
- new(): DOMTokenList;
-}
-
-interface DataCue extends TextTrackCue {
- data: ArrayBuffer;
- addEventListener(type: K, listener: (this: TextTrackCue, ev: TextTrackCueEventMap[K]) => any, useCapture?: boolean): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var DataCue: {
- prototype: DataCue;
- new(): DataCue;
-}
-
-interface DataTransfer {
- dropEffect: string;
- effectAllowed: string;
- readonly files: FileList;
- readonly items: DataTransferItemList;
- readonly types: string[];
- clearData(format?: string): boolean;
- getData(format: string): string;
- setData(format: string, data: string): boolean;
-}
-
-declare var DataTransfer: {
- prototype: DataTransfer;
- new(): DataTransfer;
-}
-
-interface DataTransferItem {
- readonly kind: string;
- readonly type: string;
- getAsFile(): File | null;
- getAsString(_callback: FunctionStringCallback | null): void;
-}
-
-declare var DataTransferItem: {
- prototype: DataTransferItem;
- new(): DataTransferItem;
-}
-
-interface DataTransferItemList {
- readonly length: number;
- add(data: File): DataTransferItem | null;
- clear(): void;
- item(index: number): DataTransferItem;
- remove(index: number): void;
- [index: number]: DataTransferItem;
-}
-
-declare var DataTransferItemList: {
- prototype: DataTransferItemList;
- new(): DataTransferItemList;
-}
-
-interface DeferredPermissionRequest {
- readonly id: number;
- readonly type: string;
- readonly uri: string;
- allow(): void;
- deny(): void;
-}
-
-declare var DeferredPermissionRequest: {
- prototype: DeferredPermissionRequest;
- new(): DeferredPermissionRequest;
-}
-
-interface DelayNode extends AudioNode {
- readonly delayTime: AudioParam;
-}
-
-declare var DelayNode: {
- prototype: DelayNode;
- new(): DelayNode;
-}
-
-interface DeviceAcceleration {
- readonly x: number | null;
- readonly y: number | null;
- readonly z: number | null;
-}
-
-declare var DeviceAcceleration: {
- prototype: DeviceAcceleration;
- new(): DeviceAcceleration;
-}
-
-interface DeviceLightEvent extends Event {
- readonly value: number;
-}
-
-declare var DeviceLightEvent: {
- prototype: DeviceLightEvent;
- new(type: string, eventInitDict?: DeviceLightEventInit): DeviceLightEvent;
-}
-
-interface DeviceMotionEvent extends Event {
- readonly acceleration: DeviceAcceleration | null;
- readonly accelerationIncludingGravity: DeviceAcceleration | null;
- readonly interval: number | null;
- readonly rotationRate: DeviceRotationRate | null;
- initDeviceMotionEvent(type: string, bubbles: boolean, cancelable: boolean, acceleration: DeviceAccelerationDict | null, accelerationIncludingGravity: DeviceAccelerationDict | null, rotationRate: DeviceRotationRateDict | null, interval: number | null): void;
-}
-
-declare var DeviceMotionEvent: {
- prototype: DeviceMotionEvent;
- new(): DeviceMotionEvent;
-}
-
-interface DeviceOrientationEvent extends Event {
- readonly absolute: boolean;
- readonly alpha: number | null;
- readonly beta: number | null;
- readonly gamma: number | null;
- initDeviceOrientationEvent(type: string, bubbles: boolean, cancelable: boolean, alpha: number | null, beta: number | null, gamma: number | null, absolute: boolean): void;
-}
-
-declare var DeviceOrientationEvent: {
- prototype: DeviceOrientationEvent;
- new(): DeviceOrientationEvent;
-}
-
-interface DeviceRotationRate {
- readonly alpha: number | null;
- readonly beta: number | null;
- readonly gamma: number | null;
-}
-
-declare var DeviceRotationRate: {
- prototype: DeviceRotationRate;
- new(): DeviceRotationRate;
-}
+declare var DeviceRotationRate: {
+ prototype: DeviceRotationRate;
+ new(): DeviceRotationRate;
+};
interface DocumentEventMap extends GlobalEventHandlersEventMap {
"abort": UIEvent;
@@ -6570,7 +6694,7 @@ interface DocumentEventMap extends GlobalEventHandlersEventMap {
"pointerlockerror": Event;
"progress": ProgressEvent;
"ratechange": Event;
- "readystatechange": ProgressEvent;
+ "readystatechange": Event;
"reset": Event;
"scroll": UIEvent;
"seeked": Event;
@@ -6595,303 +6719,291 @@ interface DocumentEventMap extends GlobalEventHandlersEventMap {
interface Document extends Node, GlobalEventHandlers, NodeSelector, DocumentEvent, ParentNode, DocumentOrShadowRoot {
/**
- * Sets or gets the URL for the current document.
- */
- readonly URL: string;
- /**
- * Gets the URL for the document, stripped of any character encoding.
- */
- readonly URLUnencoded: string;
- /**
- * Gets the object that has the focus when the parent document has focus.
- */
+ * Gets the object that has the focus when the parent document has focus.
+ */
readonly activeElement: Element;
/**
- * Sets or gets the color of all active links in the document.
- */
+ * Sets or gets the color of all active links in the document.
+ */
alinkColor: string;
/**
- * Returns a reference to the collection of elements contained by the object.
- */
+ * Returns a reference to the collection of elements contained by the object.
+ */
readonly all: HTMLAllCollection;
/**
- * Retrieves a collection of all a objects that have a name and/or id property. Objects in this collection are in HTML source order.
- */
+ * Retrieves a collection of all a objects that have a name and/or id property. Objects in this collection are in HTML source order.
+ */
anchors: HTMLCollectionOf;
/**
- * Retrieves a collection of all applet objects in the document.
- */
+ * Retrieves a collection of all applet objects in the document.
+ */
applets: HTMLCollectionOf;
/**
- * Deprecated. Sets or retrieves a value that indicates the background color behind the object.
- */
+ * Deprecated. Sets or retrieves a value that indicates the background color behind the object.
+ */
bgColor: string;
/**
- * Specifies the beginning and end of the document body.
- */
+ * Specifies the beginning and end of the document body.
+ */
body: HTMLElement;
readonly characterSet: string;
/**
- * Gets or sets the character set used to encode the object.
- */
+ * Gets or sets the character set used to encode the object.
+ */
charset: string;
/**
- * Gets a value that indicates whether standards-compliant mode is switched on for the object.
- */
+ * Gets a value that indicates whether standards-compliant mode is switched on for the object.
+ */
readonly compatMode: string;
cookie: string;
- readonly currentScript: HTMLScriptElement | SVGScriptElement;
- /**
- * Gets the default character set from the current regional language settings.
- */
- readonly defaultCharset: string;
+ readonly currentScript: HTMLScriptElement | SVGScriptElement | null;
readonly defaultView: Window;
/**
- * Sets or gets a value that indicates whether the document can be edited.
- */
+ * Sets or gets a value that indicates whether the document can be edited.
+ */
designMode: string;
/**
- * Sets or retrieves a value that indicates the reading order of the object.
- */
+ * Sets or retrieves a value that indicates the reading order of the object.
+ */
dir: string;
/**
- * Gets an object representing the document type declaration associated with the current document.
- */
+ * Gets an object representing the document type declaration associated with the current document.
+ */
readonly doctype: DocumentType;
/**
- * Gets a reference to the root node of the document.
- */
+ * Gets a reference to the root node of the document.
+ */
documentElement: HTMLElement;
/**
- * Sets or gets the security domain of the document.
- */
+ * Sets or gets the security domain of the document.
+ */
domain: string;
/**
- * Retrieves a collection of all embed objects in the document.
- */
+ * Retrieves a collection of all embed objects in the document.
+ */
embeds: HTMLCollectionOf;
/**
- * Sets or gets the foreground (text) color of the document.
- */
+ * Sets or gets the foreground (text) color of the document.
+ */
fgColor: string;
/**
- * Retrieves a collection, in source order, of all form objects in the document.
- */
+ * Retrieves a collection, in source order, of all form objects in the document.
+ */
forms: HTMLCollectionOf;
readonly fullscreenElement: Element | null;
readonly fullscreenEnabled: boolean;
readonly head: HTMLHeadElement;
readonly hidden: boolean;
/**
- * Retrieves a collection, in source order, of img objects in the document.
- */
+ * Retrieves a collection, in source order, of img objects in the document.
+ */
images: HTMLCollectionOf;
/**
- * Gets the implementation object of the current document.
- */
+ * Gets the implementation object of the current document.
+ */
readonly implementation: DOMImplementation;
/**
- * Returns the character encoding used to create the webpage that is loaded into the document object.
- */
+ * Returns the character encoding used to create the webpage that is loaded into the document object.
+ */
readonly inputEncoding: string | null;
/**
- * Gets the date that the page was last modified, if the page supplies one.
- */
+ * Gets the date that the page was last modified, if the page supplies one.
+ */
readonly lastModified: string;
/**
- * Sets or gets the color of the document links.
- */
+ * Sets or gets the color of the document links.
+ */
linkColor: string;
/**
- * Retrieves a collection of all a objects that specify the href property and all area objects in the document.
- */
+ * Retrieves a collection of all a objects that specify the href property and all area objects in the document.
+ */
links: HTMLCollectionOf;
/**
- * Contains information about the current URL.
- */
+ * Contains information about the current URL.
+ */
readonly location: Location;
- msCSSOMElementFloatMetrics: boolean;
msCapsLockWarningOff: boolean;
+ msCSSOMElementFloatMetrics: boolean;
/**
- * Fires when the user aborts the download.
- * @param ev The event.
- */
+ * Fires when the user aborts the download.
+ * @param ev The event.
+ */
onabort: (this: Document, ev: UIEvent) => any;
/**
- * Fires when the object is set as the active element.
- * @param ev The event.
- */
+ * Fires when the object is set as the active element.
+ * @param ev The event.
+ */
onactivate: (this: Document, ev: UIEvent) => any;
/**
- * Fires immediately before the object is set as the active element.
- * @param ev The event.
- */
+ * Fires immediately before the object is set as the active element.
+ * @param ev The event.
+ */
onbeforeactivate: (this: Document, ev: UIEvent) => any;
/**
- * Fires immediately before the activeElement is changed from the current object to another object in the parent document.
- * @param ev The event.
- */
+ * Fires immediately before the activeElement is changed from the current object to another object in the parent document.
+ * @param ev The event.
+ */
onbeforedeactivate: (this: Document, ev: UIEvent) => any;
- /**
- * Fires when the object loses the input focus.
- * @param ev The focus event.
- */
+ /**
+ * Fires when the object loses the input focus.
+ * @param ev The focus event.
+ */
onblur: (this: Document, ev: FocusEvent) => any;
/**
- * Occurs when playback is possible, but would require further buffering.
- * @param ev The event.
- */
+ * Occurs when playback is possible, but would require further buffering.
+ * @param ev The event.
+ */
oncanplay: (this: Document, ev: Event) => any;
oncanplaythrough: (this: Document, ev: Event) => any;
/**
- * Fires when the contents of the object or selection have changed.
- * @param ev The event.
- */
+ * Fires when the contents of the object or selection have changed.
+ * @param ev The event.
+ */
onchange: (this: Document, ev: Event) => any;
/**
- * Fires when the user clicks the left mouse button on the object
- * @param ev The mouse event.
- */
+ * Fires when the user clicks the left mouse button on the object
+ * @param ev The mouse event.
+ */
onclick: (this: Document, ev: MouseEvent) => any;
/**
- * Fires when the user clicks the right mouse button in the client area, opening the context menu.
- * @param ev The mouse event.
- */
+ * Fires when the user clicks the right mouse button in the client area, opening the context menu.
+ * @param ev The mouse event.
+ */
oncontextmenu: (this: Document, ev: PointerEvent) => any;
/**
- * Fires when the user double-clicks the object.
- * @param ev The mouse event.
- */
+ * Fires when the user double-clicks the object.
+ * @param ev The mouse event.
+ */
ondblclick: (this: Document, ev: MouseEvent) => any;
/**
- * Fires when the activeElement is changed from the current object to another object in the parent document.
- * @param ev The UI Event
- */
+ * Fires when the activeElement is changed from the current object to another object in the parent document.
+ * @param ev The UI Event
+ */
ondeactivate: (this: Document, ev: UIEvent) => any;
/**
- * Fires on the source object continuously during a drag operation.
- * @param ev The event.
- */
+ * Fires on the source object continuously during a drag operation.
+ * @param ev The event.
+ */
ondrag: (this: Document, ev: DragEvent) => any;
/**
- * Fires on the source object when the user releases the mouse at the close of a drag operation.
- * @param ev The event.
- */
+ * Fires on the source object when the user releases the mouse at the close of a drag operation.
+ * @param ev The event.
+ */
ondragend: (this: Document, ev: DragEvent) => any;
- /**
- * Fires on the target element when the user drags the object to a valid drop target.
- * @param ev The drag event.
- */
+ /**
+ * Fires on the target element when the user drags the object to a valid drop target.
+ * @param ev The drag event.
+ */
ondragenter: (this: Document, ev: DragEvent) => any;
- /**
- * Fires on the target object when the user moves the mouse out of a valid drop target during a drag operation.
- * @param ev The drag event.
- */
+ /**
+ * Fires on the target object when the user moves the mouse out of a valid drop target during a drag operation.
+ * @param ev The drag event.
+ */
ondragleave: (this: Document, ev: DragEvent) => any;
/**
- * Fires on the target element continuously while the user drags the object over a valid drop target.
- * @param ev The event.
- */
+ * Fires on the target element continuously while the user drags the object over a valid drop target.
+ * @param ev The event.
+ */
ondragover: (this: Document, ev: DragEvent) => any;
/**
- * Fires on the source object when the user starts to drag a text selection or selected object.
- * @param ev The event.
- */
+ * Fires on the source object when the user starts to drag a text selection or selected object.
+ * @param ev The event.
+ */
ondragstart: (this: Document, ev: DragEvent) => any;
ondrop: (this: Document, ev: DragEvent) => any;
/**
- * Occurs when the duration attribute is updated.
- * @param ev The event.
- */
+ * Occurs when the duration attribute is updated.
+ * @param ev The event.
+ */
ondurationchange: (this: Document, ev: Event) => any;
/**
- * Occurs when the media element is reset to its initial state.
- * @param ev The event.
- */
+ * Occurs when the media element is reset to its initial state.
+ * @param ev The event.
+ */
onemptied: (this: Document, ev: Event) => any;
/**
- * Occurs when the end of playback is reached.
- * @param ev The event
- */
+ * Occurs when the end of playback is reached.
+ * @param ev The event
+ */
onended: (this: Document, ev: MediaStreamErrorEvent) => any;
/**
- * Fires when an error occurs during object loading.
- * @param ev The event.
- */
+ * Fires when an error occurs during object loading.
+ * @param ev The event.
+ */
onerror: (this: Document, ev: ErrorEvent) => any;
/**
- * Fires when the object receives focus.
- * @param ev The event.
- */
+ * Fires when the object receives focus.
+ * @param ev The event.
+ */
onfocus: (this: Document, ev: FocusEvent) => any;
onfullscreenchange: (this: Document, ev: Event) => any;
onfullscreenerror: (this: Document, ev: Event) => any;
oninput: (this: Document, ev: Event) => any;
oninvalid: (this: Document, ev: Event) => any;
/**
- * Fires when the user presses a key.
- * @param ev The keyboard event
- */
+ * Fires when the user presses a key.
+ * @param ev The keyboard event
+ */
onkeydown: (this: Document, ev: KeyboardEvent) => any;
/**
- * Fires when the user presses an alphanumeric key.
- * @param ev The event.
- */
+ * Fires when the user presses an alphanumeric key.
+ * @param ev The event.
+ */
onkeypress: (this: Document, ev: KeyboardEvent) => any;
/**
- * Fires when the user releases a key.
- * @param ev The keyboard event
- */
+ * Fires when the user releases a key.
+ * @param ev The keyboard event
+ */
onkeyup: (this: Document, ev: KeyboardEvent) => any;
/**
- * Fires immediately after the browser loads the object.
- * @param ev The event.
- */
+ * Fires immediately after the browser loads the object.
+ * @param ev The event.
+ */
onload: (this: Document, ev: Event) => any;
/**
- * Occurs when media data is loaded at the current playback position.
- * @param ev The event.
- */
+ * Occurs when media data is loaded at the current playback position.
+ * @param ev The event.
+ */
onloadeddata: (this: Document, ev: Event) => any;
/**
- * Occurs when the duration and dimensions of the media have been determined.
- * @param ev The event.
- */
+ * Occurs when the duration and dimensions of the media have been determined.
+ * @param ev The event.
+ */
onloadedmetadata: (this: Document, ev: Event) => any;
/**
- * Occurs when Internet Explorer begins looking for media data.
- * @param ev The event.
- */
+ * Occurs when Internet Explorer begins looking for media data.
+ * @param ev The event.
+ */
onloadstart: (this: Document, ev: Event) => any;
/**
- * Fires when the user clicks the object with either mouse button.
- * @param ev The mouse event.
- */
+ * Fires when the user clicks the object with either mouse button.
+ * @param ev The mouse event.
+ */
onmousedown: (this: Document, ev: MouseEvent) => any;
/**
- * Fires when the user moves the mouse over the object.
- * @param ev The mouse event.
- */
+ * Fires when the user moves the mouse over the object.
+ * @param ev The mouse event.
+ */
onmousemove: (this: Document, ev: MouseEvent) => any;
/**
- * Fires when the user moves the mouse pointer outside the boundaries of the object.
- * @param ev The mouse event.
- */
+ * Fires when the user moves the mouse pointer outside the boundaries of the object.
+ * @param ev The mouse event.
+ */
onmouseout: (this: Document, ev: MouseEvent) => any;
/**
- * Fires when the user moves the mouse pointer into the object.
- * @param ev The mouse event.
- */
+ * Fires when the user moves the mouse pointer into the object.
+ * @param ev The mouse event.
+ */
onmouseover: (this: Document, ev: MouseEvent) => any;
/**
- * Fires when the user releases a mouse button while the mouse is over the object.
- * @param ev The mouse event.
- */
+ * Fires when the user releases a mouse button while the mouse is over the object.
+ * @param ev The mouse event.
+ */
onmouseup: (this: Document, ev: MouseEvent) => any;
/**
- * Fires when the wheel button is rotated.
- * @param ev The mouse event
- */
+ * Fires when the wheel button is rotated.
+ * @param ev The mouse event
+ */
onmousewheel: (this: Document, ev: WheelEvent) => any;
onmscontentzoom: (this: Document, ev: UIEvent) => any;
onmsgesturechange: (this: Document, ev: MSGestureEvent) => any;
@@ -6911,146 +7023,154 @@ interface Document extends Node, GlobalEventHandlers, NodeSelector, DocumentEven
onmspointerover: (this: Document, ev: MSPointerEvent) => any;
onmspointerup: (this: Document, ev: MSPointerEvent) => any;
/**
- * Occurs when an item is removed from a Jump List of a webpage running in Site Mode.
- * @param ev The event.
- */
+ * Occurs when an item is removed from a Jump List of a webpage running in Site Mode.
+ * @param ev The event.
+ */
onmssitemodejumplistitemremoved: (this: Document, ev: MSSiteModeEvent) => any;
/**
- * Occurs when a user clicks a button in a Thumbnail Toolbar of a webpage running in Site Mode.
- * @param ev The event.
- */
+ * Occurs when a user clicks a button in a Thumbnail Toolbar of a webpage running in Site Mode.
+ * @param ev The event.
+ */
onmsthumbnailclick: (this: Document, ev: MSSiteModeEvent) => any;
/**
- * Occurs when playback is paused.
- * @param ev The event.
- */
+ * Occurs when playback is paused.
+ * @param ev The event.
+ */
onpause: (this: Document, ev: Event) => any;
/**
- * Occurs when the play method is requested.
- * @param ev The event.
- */
+ * Occurs when the play method is requested.
+ * @param ev The event.
+ */
onplay: (this: Document, ev: Event) => any;
/**
- * Occurs when the audio or video has started playing.
- * @param ev The event.
- */
+ * Occurs when the audio or video has started playing.
+ * @param ev The event.
+ */
onplaying: (this: Document, ev: Event) => any;
onpointerlockchange: (this: Document, ev: Event) => any;
onpointerlockerror: (this: Document, ev: Event) => any;
/**
- * Occurs to indicate progress while downloading media data.
- * @param ev The event.
- */
+ * Occurs to indicate progress while downloading media data.
+ * @param ev The event.
+ */
onprogress: (this: Document, ev: ProgressEvent) => any;
/**
- * Occurs when the playback rate is increased or decreased.
- * @param ev The event.
- */
+ * Occurs when the playback rate is increased or decreased.
+ * @param ev The event.
+ */
onratechange: (this: Document, ev: Event) => any;
/**
- * Fires when the state of the object has changed.
- * @param ev The event
- */
- onreadystatechange: (this: Document, ev: ProgressEvent) => any;
+ * Fires when the state of the object has changed.
+ * @param ev The event
+ */
+ onreadystatechange: (this: Document, ev: Event) => any;
/**
- * Fires when the user resets a form.
- * @param ev The event.
- */
+ * Fires when the user resets a form.
+ * @param ev The event.
+ */
onreset: (this: Document, ev: Event) => any;
/**
- * Fires when the user repositions the scroll box in the scroll bar on the object.
- * @param ev The event.
- */
+ * Fires when the user repositions the scroll box in the scroll bar on the object.
+ * @param ev The event.
+ */
onscroll: (this: Document, ev: UIEvent) => any;
/**
- * Occurs when the seek operation ends.
- * @param ev The event.
- */
+ * Occurs when the seek operation ends.
+ * @param ev The event.
+ */
onseeked: (this: Document, ev: Event) => any;
/**
- * Occurs when the current playback position is moved.
- * @param ev The event.
- */
+ * Occurs when the current playback position is moved.
+ * @param ev The event.
+ */
onseeking: (this: Document, ev: Event) => any;
/**
- * Fires when the current selection changes.
- * @param ev The event.
- */
+ * Fires when the current selection changes.
+ * @param ev The event.
+ */
onselect: (this: Document, ev: UIEvent) => any;
/**
- * Fires when the selection state of a document changes.
- * @param ev The event.
- */
+ * Fires when the selection state of a document changes.
+ * @param ev The event.
+ */
onselectionchange: (this: Document, ev: Event) => any;
onselectstart: (this: Document, ev: Event) => any;
/**
- * Occurs when the download has stopped.
- * @param ev The event.
- */
+ * Occurs when the download has stopped.
+ * @param ev The event.
+ */
onstalled: (this: Document, ev: Event) => any;
/**
- * Fires when the user clicks the Stop button or leaves the Web page.
- * @param ev The event.
- */
+ * Fires when the user clicks the Stop button or leaves the Web page.
+ * @param ev The event.
+ */
onstop: (this: Document, ev: Event) => any;
onsubmit: (this: Document, ev: Event) => any;
/**
- * Occurs if the load operation has been intentionally halted.
- * @param ev The event.
- */
+ * Occurs if the load operation has been intentionally halted.
+ * @param ev The event.
+ */
onsuspend: (this: Document, ev: Event) => any;
/**
- * Occurs to indicate the current playback position.
- * @param ev The event.
- */
+ * Occurs to indicate the current playback position.
+ * @param ev The event.
+ */
ontimeupdate: (this: Document, ev: Event) => any;
ontouchcancel: (ev: TouchEvent) => any;
ontouchend: (ev: TouchEvent) => any;
ontouchmove: (ev: TouchEvent) => any;
ontouchstart: (ev: TouchEvent) => any;
/**
- * Occurs when the volume is changed, or playback is muted or unmuted.
- * @param ev The event.
- */
+ * Occurs when the volume is changed, or playback is muted or unmuted.
+ * @param ev The event.
+ */
onvolumechange: (this: Document, ev: Event) => any;
/**
- * Occurs when playback stops because the next frame of a video resource is not available.
- * @param ev The event.
- */
+ * Occurs when playback stops because the next frame of a video resource is not available.
+ * @param ev The event.
+ */
onwaiting: (this: Document, ev: Event) => any;
onwebkitfullscreenchange: (this: Document, ev: Event) => any;
onwebkitfullscreenerror: (this: Document, ev: Event) => any;
plugins: HTMLCollectionOf;
readonly pointerLockElement: Element;
/**
- * Retrieves a value that indicates the current state of the object.
- */
+ * Retrieves a value that indicates the current state of the object.
+ */
readonly readyState: string;
/**
- * Gets the URL of the location that referred the user to the current page.
- */
+ * Gets the URL of the location that referred the user to the current page.
+ */
readonly referrer: string;
/**
- * Gets the root svg element in the document hierarchy.
- */
+ * Gets the root svg element in the document hierarchy.
+ */
readonly rootElement: SVGSVGElement;
/**
- * Retrieves a collection of all script objects in the document.
- */
+ * Retrieves a collection of all script objects in the document.
+ */
scripts: HTMLCollectionOf;
readonly scrollingElement: Element | null;
/**
- * Retrieves a collection of styleSheet objects representing the style sheets that correspond to each instance of a link or style object in the document.
- */
+ * Retrieves a collection of styleSheet objects representing the style sheets that correspond to each instance of a link or style object in the document.
+ */
readonly styleSheets: StyleSheetList;
/**
- * Contains the title of the document.
- */
+ * Contains the title of the document.
+ */
title: string;
- readonly visibilityState: string;
- /**
- * Sets or gets the color of the links that the user has visited.
- */
+ /**
+ * Sets or gets the URL for the current document.
+ */
+ readonly URL: string;
+ /**
+ * Gets the URL for the document, stripped of any character encoding.
+ */
+ readonly URLUnencoded: string;
+ readonly visibilityState: VisibilityState;
+ /**
+ * Sets or gets the color of the links that the user has visited.
+ */
vlinkColor: string;
readonly webkitCurrentFullScreenElement: Element | null;
readonly webkitFullscreenElement: Element | null;
@@ -7059,275 +7179,421 @@ interface Document extends Node, GlobalEventHandlers, NodeSelector, DocumentEven
readonly xmlEncoding: string | null;
xmlStandalone: boolean;
/**
- * Gets or sets the version attribute specified in the declaration of an XML document.
- */
+ * Gets or sets the version attribute specified in the declaration of an XML document.
+ */
xmlVersion: string | null;
- adoptNode(source: Node): Node;
+ adoptNode(source: T): T;
captureEvents(): void;
caretRangeFromPoint(x: number, y: number): Range;
clear(): void;
/**
- * Closes an output stream and forces the sent data to display.
- */
+ * Closes an output stream and forces the sent data to display.
+ */
close(): void;
/**
- * Creates an attribute object with a specified name.
- * @param name String that sets the attribute object's name.
- */
+ * Creates an attribute object with a specified name.
+ * @param name String that sets the attribute object's name.
+ */
createAttribute(name: string): Attr;
createAttributeNS(namespaceURI: string | null, qualifiedName: string): Attr;
createCDATASection(data: string): CDATASection;
/**
- * Creates a comment object with the specified data.
- * @param data Sets the comment object's data.
- */
+ * Creates a comment object with the specified data.
+ * @param data Sets the comment object's data.
+ */
createComment(data: string): Comment;
/**
- * Creates a new document.
- */
+ * Creates a new document.
+ */
createDocumentFragment(): DocumentFragment;
/**
- * Creates an instance of the element for the specified tag.
- * @param tagName The name of an element.
- */
+ * Creates an instance of the element for the specified tag.
+ * @param tagName The name of an element.
+ */
createElement(tagName: K): HTMLElementTagNameMap[K];
createElement(tagName: string): HTMLElement;
- createElementNS(namespaceURI: "http://www.w3.org/1999/xhtml", qualifiedName: string): HTMLElement
- createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "a"): SVGAElement
- createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "circle"): SVGCircleElement
- createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "clipPath"): SVGClipPathElement
- createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "componentTransferFunction"): SVGComponentTransferFunctionElement
- createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "defs"): SVGDefsElement
- createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "desc"): SVGDescElement
- createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "ellipse"): SVGEllipseElement
- createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feBlend"): SVGFEBlendElement
- createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feColorMatrix"): SVGFEColorMatrixElement
- createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feComponentTransfer"): SVGFEComponentTransferElement
- createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feComposite"): SVGFECompositeElement
- createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feConvolveMatrix"): SVGFEConvolveMatrixElement
- createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feDiffuseLighting"): SVGFEDiffuseLightingElement
- createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feDisplacementMap"): SVGFEDisplacementMapElement
- createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feDistantLight"): SVGFEDistantLightElement
- createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feFlood"): SVGFEFloodElement
- createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feFuncA"): SVGFEFuncAElement
- createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feFuncB"): SVGFEFuncBElement
- createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feFuncG"): SVGFEFuncGElement
- createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feFuncR"): SVGFEFuncRElement
- createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feGaussianBlur"): SVGFEGaussianBlurElement
- createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feImage"): SVGFEImageElement
- createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feMerge"): SVGFEMergeElement
- createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feMergeNode"): SVGFEMergeNodeElement
- createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feMorphology"): SVGFEMorphologyElement
- createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feOffset"): SVGFEOffsetElement
- createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "fePointLight"): SVGFEPointLightElement
- createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feSpecularLighting"): SVGFESpecularLightingElement
- createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feSpotLight"): SVGFESpotLightElement
- createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feTile"): SVGFETileElement
- createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feTurbulence"): SVGFETurbulenceElement
- createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "filter"): SVGFilterElement
- createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "foreignObject"): SVGForeignObjectElement
- createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "g"): SVGGElement
- createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "image"): SVGImageElement
- createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "gradient"): SVGGradientElement
- createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "line"): SVGLineElement
- createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "linearGradient"): SVGLinearGradientElement
- createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "marker"): SVGMarkerElement
- createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "mask"): SVGMaskElement
- createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "path"): SVGPathElement
- createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "metadata"): SVGMetadataElement
- createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "pattern"): SVGPatternElement
- createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "polygon"): SVGPolygonElement
- createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "polyline"): SVGPolylineElement
- createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "radialGradient"): SVGRadialGradientElement
- createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "rect"): SVGRectElement
- createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "svg"): SVGSVGElement
- createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "script"): SVGScriptElement
- createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "stop"): SVGStopElement
- createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "style"): SVGStyleElement
- createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "switch"): SVGSwitchElement
- createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "symbol"): SVGSymbolElement
- createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "tspan"): SVGTSpanElement
- createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "textContent"): SVGTextContentElement
- createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "text"): SVGTextElement
- createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "textPath"): SVGTextPathElement
- createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "textPositioning"): SVGTextPositioningElement
- createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "title"): SVGTitleElement
- createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "use"): SVGUseElement
- createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "view"): SVGViewElement
- createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: string): SVGElement
+ createElementNS(namespaceURI: "http://www.w3.org/1999/xhtml", qualifiedName: string): HTMLElement;
+ createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "a"): SVGAElement;
+ createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "circle"): SVGCircleElement;
+ createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "clipPath"): SVGClipPathElement;
+ createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "componentTransferFunction"): SVGComponentTransferFunctionElement;
+ createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "defs"): SVGDefsElement;
+ createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "desc"): SVGDescElement;
+ createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "ellipse"): SVGEllipseElement;
+ createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feBlend"): SVGFEBlendElement;
+ createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feColorMatrix"): SVGFEColorMatrixElement;
+ createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feComponentTransfer"): SVGFEComponentTransferElement;
+ createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feComposite"): SVGFECompositeElement;
+ createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feConvolveMatrix"): SVGFEConvolveMatrixElement;
+ createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feDiffuseLighting"): SVGFEDiffuseLightingElement;
+ createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feDisplacementMap"): SVGFEDisplacementMapElement;
+ createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feDistantLight"): SVGFEDistantLightElement;
+ createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feFlood"): SVGFEFloodElement;
+ createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feFuncA"): SVGFEFuncAElement;
+ createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feFuncB"): SVGFEFuncBElement;
+ createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feFuncG"): SVGFEFuncGElement;
+ createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feFuncR"): SVGFEFuncRElement;
+ createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feGaussianBlur"): SVGFEGaussianBlurElement;
+ createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feImage"): SVGFEImageElement;
+ createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feMerge"): SVGFEMergeElement;
+ createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feMergeNode"): SVGFEMergeNodeElement;
+ createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feMorphology"): SVGFEMorphologyElement;
+ createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feOffset"): SVGFEOffsetElement;
+ createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "fePointLight"): SVGFEPointLightElement;
+ createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feSpecularLighting"): SVGFESpecularLightingElement;
+ createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feSpotLight"): SVGFESpotLightElement;
+ createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feTile"): SVGFETileElement;
+ createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feTurbulence"): SVGFETurbulenceElement;
+ createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "filter"): SVGFilterElement;
+ createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "foreignObject"): SVGForeignObjectElement;
+ createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "g"): SVGGElement;
+ createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "image"): SVGImageElement;
+ createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "gradient"): SVGGradientElement;
+ createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "line"): SVGLineElement;
+ createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "linearGradient"): SVGLinearGradientElement;
+ createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "marker"): SVGMarkerElement;
+ createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "mask"): SVGMaskElement;
+ createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "path"): SVGPathElement;
+ createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "metadata"): SVGMetadataElement;
+ createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "pattern"): SVGPatternElement;
+ createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "polygon"): SVGPolygonElement;
+ createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "polyline"): SVGPolylineElement;
+ createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "radialGradient"): SVGRadialGradientElement;
+ createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "rect"): SVGRectElement;
+ createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "svg"): SVGSVGElement;
+ createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "script"): SVGScriptElement;
+ createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "stop"): SVGStopElement;
+ createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "style"): SVGStyleElement;
+ createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "switch"): SVGSwitchElement;
+ createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "symbol"): SVGSymbolElement;
+ createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "tspan"): SVGTSpanElement;
+ createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "textContent"): SVGTextContentElement;
+ createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "text"): SVGTextElement;
+ createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "textPath"): SVGTextPathElement;
+ createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "textPositioning"): SVGTextPositioningElement;
+ createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "title"): SVGTitleElement;
+ createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "use"): SVGUseElement;
+ createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "view"): SVGViewElement;
+ createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: string): SVGElement;
createElementNS(namespaceURI: string | null, qualifiedName: string): Element;
createExpression(expression: string, resolver: XPathNSResolver): XPathExpression;
- createNSResolver(nodeResolver: Node): XPathNSResolver;
/**
- * Creates a NodeIterator object that you can use to traverse filtered lists of nodes or elements in a document.
- * @param root The root element or node to start traversing on.
- * @param whatToShow The type of nodes or elements to appear in the node list
- * @param filter A custom NodeFilter function to use. For more information, see filter. Use null for no filter.
- * @param entityReferenceExpansion A flag that specifies whether entity reference nodes are expanded.
- */
+ * Creates a NodeIterator object that you can use to traverse filtered lists of nodes or elements in a document.
+ * @param root The root element or node to start traversing on.
+ * @param whatToShow The type of nodes or elements to appear in the node list
+ * @param filter A custom NodeFilter function to use. For more information, see filter. Use null for no filter.
+ * @param entityReferenceExpansion A flag that specifies whether entity reference nodes are expanded.
+ */
createNodeIterator(root: Node, whatToShow?: number, filter?: NodeFilter, entityReferenceExpansion?: boolean): NodeIterator;
+ createNSResolver(nodeResolver: Node): XPathNSResolver;
createProcessingInstruction(target: string, data: string): ProcessingInstruction;
/**
- * Returns an empty range object that has both of its boundary points positioned at the beginning of the document.
- */
+ * Returns an empty range object that has both of its boundary points positioned at the beginning of the document.
+ */
createRange(): Range;
/**
- * Creates a text string from the specified value.
- * @param data String that specifies the nodeValue property of the text node.
- */
+ * Creates a text string from the specified value.
+ * @param data String that specifies the nodeValue property of the text node.
+ */
createTextNode(data: string): Text;
createTouch(view: Window, target: EventTarget, identifier: number, pageX: number, pageY: number, screenX: number, screenY: number): Touch;
createTouchList(...touches: Touch[]): TouchList;
/**
- * Creates a TreeWalker object that you can use to traverse filtered lists of nodes or elements in a document.
- * @param root The root element or node to start traversing on.
- * @param whatToShow The type of nodes or elements to appear in the node list. For more information, see whatToShow.
- * @param filter A custom NodeFilter function to use.
- * @param entityReferenceExpansion A flag that specifies whether entity reference nodes are expanded.
- */
+ * Creates a TreeWalker object that you can use to traverse filtered lists of nodes or elements in a document.
+ * @param root The root element or node to start traversing on.
+ * @param whatToShow The type of nodes or elements to appear in the node list. For more information, see whatToShow.
+ * @param filter A custom NodeFilter function to use.
+ * @param entityReferenceExpansion A flag that specifies whether entity reference nodes are expanded.
+ */
createTreeWalker(root: Node, whatToShow?: number, filter?: NodeFilter, entityReferenceExpansion?: boolean): TreeWalker;
/**
- * Returns the element for the specified x coordinate and the specified y coordinate.
- * @param x The x-offset
- * @param y The y-offset
- */
+ * Returns the element for the specified x coordinate and the specified y coordinate.
+ * @param x The x-offset
+ * @param y The y-offset
+ */
elementFromPoint(x: number, y: number): Element;
evaluate(expression: string, contextNode: Node, resolver: XPathNSResolver | null, type: number, result: XPathResult | null): XPathResult;
/**
- * Executes a command on the current document, current selection, or the given range.
- * @param commandId String that specifies the command to execute. This command can be any of the command identifiers that can be executed in script.
- * @param showUI Display the user interface, defaults to false.
- * @param value Value to assign.
- */
+ * Executes a command on the current document, current selection, or the given range.
+ * @param commandId String that specifies the command to execute. This command can be any of the command identifiers that can be executed in script.
+ * @param showUI Display the user interface, defaults to false.
+ * @param value Value to assign.
+ */
execCommand(commandId: string, showUI?: boolean, value?: any): boolean;
/**
- * Displays help information for the given command identifier.
- * @param commandId Displays help information for the given command identifier.
- */
+ * Displays help information for the given command identifier.
+ * @param commandId Displays help information for the given command identifier.
+ */
execCommandShowHelp(commandId: string): boolean;
exitFullscreen(): void;
exitPointerLock(): void;
/**
- * Causes the element to receive the focus and executes the code specified by the onfocus event.
- */
+ * Causes the element to receive the focus and executes the code specified by the onfocus event.
+ */
focus(): void;
/**
- * Returns a reference to the first object with the specified value of the ID or NAME attribute.
- * @param elementId String that specifies the ID value. Case-insensitive.
- */
+ * Returns a reference to the first object with the specified value of the ID or NAME attribute.
+ * @param elementId String that specifies the ID value. Case-insensitive.
+ */
getElementById(elementId: string): HTMLElement | null;
getElementsByClassName(classNames: string): HTMLCollectionOf;
/**
- * Gets a collection of objects based on the value of the NAME or ID attribute.
- * @param elementName Gets a collection of objects based on the value of the NAME or ID attribute.
- */
+ * Gets a collection of objects based on the value of the NAME or ID attribute.
+ * @param elementName Gets a collection of objects based on the value of the NAME or ID attribute.
+ */
getElementsByName(elementName: string): NodeListOf;
/**
- * Retrieves a collection of objects based on the specified element name.
- * @param name Specifies the name of an element.
- */
+ * Retrieves a collection of objects based on the specified element name.
+ * @param name Specifies the name of an element.
+ */
getElementsByTagName(tagname: K): ElementListTagNameMap[K];
getElementsByTagName(tagname: string): NodeListOf;
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1999/xhtml", localName: string): HTMLCollectionOf;
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf;
getElementsByTagNameNS(namespaceURI: string, localName: string): HTMLCollectionOf;
/**
- * Returns an object representing the current selection of the document that is loaded into the object displaying a webpage.
- */
+ * Returns an object representing the current selection of the document that is loaded into the object displaying a webpage.
+ */
getSelection(): Selection;
/**
- * Gets a value indicating whether the object currently has focus.
- */
+ * Gets a value indicating whether the object currently has focus.
+ */
hasFocus(): boolean;
- importNode(importedNode: Node, deep: boolean): Node;
+ importNode(importedNode: T, deep: boolean): T;
msElementsFromPoint(x: number, y: number): NodeListOf;
msElementsFromRect(left: number, top: number, width: number, height: number): NodeListOf;
/**
- * Opens a new window and loads a document specified by a given URL. Also, opens a new window that uses the url parameter and the name parameter to collect the output of the write method and the writeln method.
- * @param url Specifies a MIME type for the document.
- * @param name Specifies the name of the window. This name is used as the value for the TARGET attribute on a form or an anchor element.
- * @param features Contains a list of items separated by commas. Each item consists of an option and a value, separated by an equals sign (for example, "fullscreen=yes, toolbar=yes"). The following values are supported.
- * @param replace Specifies whether the existing entry for the document is replaced in the history list.
- */
+ * Opens a new window and loads a document specified by a given URL. Also, opens a new window that uses the url parameter and the name parameter to collect the output of the write method and the writeln method.
+ * @param url Specifies a MIME type for the document.
+ * @param name Specifies the name of the window. This name is used as the value for the TARGET attribute on a form or an anchor element.
+ * @param features Contains a list of items separated by commas. Each item consists of an option and a value, separated by an equals sign (for example, "fullscreen=yes, toolbar=yes"). The following values are supported.
+ * @param replace Specifies whether the existing entry for the document is replaced in the history list.
+ */
open(url?: string, name?: string, features?: string, replace?: boolean): Document;
- /**
- * Returns a Boolean value that indicates whether a specified command can be successfully executed using execCommand, given the current state of the document.
- * @param commandId Specifies a command identifier.
- */
+ /**
+ * Returns a Boolean value that indicates whether a specified command can be successfully executed using execCommand, given the current state of the document.
+ * @param commandId Specifies a command identifier.
+ */
queryCommandEnabled(commandId: string): boolean;
/**
- * Returns a Boolean value that indicates whether the specified command is in the indeterminate state.
- * @param commandId String that specifies a command identifier.
- */
+ * Returns a Boolean value that indicates whether the specified command is in the indeterminate state.
+ * @param commandId String that specifies a command identifier.
+ */
queryCommandIndeterm(commandId: string): boolean;
/**
- * Returns a Boolean value that indicates the current state of the command.
- * @param commandId String that specifies a command identifier.
- */
+ * Returns a Boolean value that indicates the current state of the command.
+ * @param commandId String that specifies a command identifier.
+ */
queryCommandState(commandId: string): boolean;
/**
- * Returns a Boolean value that indicates whether the current command is supported on the current range.
- * @param commandId Specifies a command identifier.
- */
+ * Returns a Boolean value that indicates whether the current command is supported on the current range.
+ * @param commandId Specifies a command identifier.
+ */
queryCommandSupported(commandId: string): boolean;
/**
- * Retrieves the string associated with a command.
- * @param commandId String that contains the identifier of a command. This can be any command identifier given in the list of Command Identifiers.
- */
+ * Retrieves the string associated with a command.
+ * @param commandId String that contains the identifier of a command. This can be any command identifier given in the list of Command Identifiers.
+ */
queryCommandText(commandId: string): string;
/**
- * Returns the current value of the document, range, or current selection for the given command.
- * @param commandId String that specifies a command identifier.
- */
+ * Returns the current value of the document, range, or current selection for the given command.
+ * @param commandId String that specifies a command identifier.
+ */
queryCommandValue(commandId: string): string;
releaseEvents(): void;
/**
- * Allows updating the print settings for the page.
- */
+ * Allows updating the print settings for the page.
+ */
updateSettings(): void;
webkitCancelFullScreen(): void;
webkitExitFullscreen(): void;
/**
- * Writes one or more HTML expressions to a document in the specified window.
- * @param content Specifies the text and HTML tags to write.
- */
+ * Writes one or more HTML expressions to a document in the specified window.
+ * @param content Specifies the text and HTML tags to write.
+ */
write(...content: string[]): void;
/**
- * Writes one or more HTML expressions, followed by a carriage return, to a document in the specified window.
- * @param content The text and HTML tags to write.
- */
+ * Writes one or more HTML expressions, followed by a carriage return, to a document in the specified window.
+ * @param content The text and HTML tags to write.
+ */
writeln(...content: string[]): void;
addEventListener(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, useCapture?: boolean): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
+ removeEventListener(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, useCapture?: boolean): void;
+ removeEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var Document: {
+ prototype: Document;
+ new(): Document;
+};
+
+interface DocumentFragment extends Node, NodeSelector, ParentNode {
+ getElementById(elementId: string): HTMLElement | null;
+}
+
+declare var DocumentFragment: {
+ prototype: DocumentFragment;
+ new(): DocumentFragment;
+};
+
+interface DocumentType extends Node, ChildNode {
+ readonly entities: NamedNodeMap;
+ readonly internalSubset: string | null;
+ readonly name: string;
+ readonly notations: NamedNodeMap;
+ readonly publicId: string;
+ readonly systemId: string;
+}
+
+declare var DocumentType: {
+ prototype: DocumentType;
+ new(): DocumentType;
+};
+
+interface DOMError {
+ readonly name: string;
+ toString(): string;
+}
+
+declare var DOMError: {
+ prototype: DOMError;
+ new(): DOMError;
+};
+
+interface DOMException {
+ readonly code: number;
+ readonly message: string;
+ readonly name: string;
+ toString(): string;
+ readonly ABORT_ERR: number;
+ readonly DATA_CLONE_ERR: number;
+ readonly DOMSTRING_SIZE_ERR: number;
+ readonly HIERARCHY_REQUEST_ERR: number;
+ readonly INDEX_SIZE_ERR: number;
+ readonly INUSE_ATTRIBUTE_ERR: number;
+ readonly INVALID_ACCESS_ERR: number;
+ readonly INVALID_CHARACTER_ERR: number;
+ readonly INVALID_MODIFICATION_ERR: number;
+ readonly INVALID_NODE_TYPE_ERR: number;
+ readonly INVALID_STATE_ERR: number;
+ readonly NAMESPACE_ERR: number;
+ readonly NETWORK_ERR: number;
+ readonly NO_DATA_ALLOWED_ERR: number;
+ readonly NO_MODIFICATION_ALLOWED_ERR: number;
+ readonly NOT_FOUND_ERR: number;
+ readonly NOT_SUPPORTED_ERR: number;
+ readonly PARSE_ERR: number;
+ readonly QUOTA_EXCEEDED_ERR: number;
+ readonly SECURITY_ERR: number;
+ readonly SERIALIZE_ERR: number;
+ readonly SYNTAX_ERR: number;
+ readonly TIMEOUT_ERR: number;
+ readonly TYPE_MISMATCH_ERR: number;
+ readonly URL_MISMATCH_ERR: number;
+ readonly VALIDATION_ERR: number;
+ readonly WRONG_DOCUMENT_ERR: number;
}
-declare var Document: {
- prototype: Document;
- new(): Document;
+declare var DOMException: {
+ prototype: DOMException;
+ new(message?: string, name?: string): DOMException;
+ readonly ABORT_ERR: number;
+ readonly DATA_CLONE_ERR: number;
+ readonly DOMSTRING_SIZE_ERR: number;
+ readonly HIERARCHY_REQUEST_ERR: number;
+ readonly INDEX_SIZE_ERR: number;
+ readonly INUSE_ATTRIBUTE_ERR: number;
+ readonly INVALID_ACCESS_ERR: number;
+ readonly INVALID_CHARACTER_ERR: number;
+ readonly INVALID_MODIFICATION_ERR: number;
+ readonly INVALID_NODE_TYPE_ERR: number;
+ readonly INVALID_STATE_ERR: number;
+ readonly NAMESPACE_ERR: number;
+ readonly NETWORK_ERR: number;
+ readonly NO_DATA_ALLOWED_ERR: number;
+ readonly NO_MODIFICATION_ALLOWED_ERR: number;
+ readonly NOT_FOUND_ERR: number;
+ readonly NOT_SUPPORTED_ERR: number;
+ readonly PARSE_ERR: number;
+ readonly QUOTA_EXCEEDED_ERR: number;
+ readonly SECURITY_ERR: number;
+ readonly SERIALIZE_ERR: number;
+ readonly SYNTAX_ERR: number;
+ readonly TIMEOUT_ERR: number;
+ readonly TYPE_MISMATCH_ERR: number;
+ readonly URL_MISMATCH_ERR: number;
+ readonly VALIDATION_ERR: number;
+ readonly WRONG_DOCUMENT_ERR: number;
+};
+
+interface DOMImplementation {
+ createDocument(namespaceURI: string | null, qualifiedName: string | null, doctype: DocumentType | null): Document;
+ createDocumentType(qualifiedName: string, publicId: string, systemId: string): DocumentType;
+ createHTMLDocument(title: string): Document;
+ hasFeature(feature: string | null, version: string | null): boolean;
}
-interface DocumentFragment extends Node, NodeSelector, ParentNode {
+declare var DOMImplementation: {
+ prototype: DOMImplementation;
+ new(): DOMImplementation;
+};
+
+interface DOMParser {
+ parseFromString(source: string, mimeType: string): Document;
}
-declare var DocumentFragment: {
- prototype: DocumentFragment;
- new(): DocumentFragment;
+declare var DOMParser: {
+ prototype: DOMParser;
+ new(): DOMParser;
+};
+
+interface DOMSettableTokenList extends DOMTokenList {
+ value: string;
}
-interface DocumentType extends Node, ChildNode {
- readonly entities: NamedNodeMap;
- readonly internalSubset: string | null;
- readonly name: string;
- readonly notations: NamedNodeMap;
- readonly publicId: string | null;
- readonly systemId: string | null;
+declare var DOMSettableTokenList: {
+ prototype: DOMSettableTokenList;
+ new(): DOMSettableTokenList;
+};
+
+interface DOMStringList {
+ readonly length: number;
+ contains(str: string): boolean;
+ item(index: number): string | null;
+ [index: number]: string;
}
-declare var DocumentType: {
- prototype: DocumentType;
- new(): DocumentType;
+declare var DOMStringList: {
+ prototype: DOMStringList;
+ new(): DOMStringList;
+};
+
+interface DOMStringMap {
+ [name: string]: string | undefined;
}
+declare var DOMStringMap: {
+ prototype: DOMStringMap;
+ new(): DOMStringMap;
+};
+
+interface DOMTokenList {
+ readonly length: number;
+ add(...token: string[]): void;
+ contains(token: string): boolean;
+ item(index: number): string;
+ remove(...token: string[]): void;
+ toggle(token: string, force?: boolean): boolean;
+ toString(): string;
+ [index: number]: string;
+}
+
+declare var DOMTokenList: {
+ prototype: DOMTokenList;
+ new(): DOMTokenList;
+};
+
interface DragEvent extends MouseEvent {
readonly dataTransfer: DataTransfer;
initDragEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, viewArg: Window, detailArg: number, screenXArg: number, screenYArg: number, clientXArg: number, clientYArg: number, ctrlKeyArg: boolean, altKeyArg: boolean, shiftKeyArg: boolean, metaKeyArg: boolean, buttonArg: number, relatedTargetArg: EventTarget, dataTransferArg: DataTransfer): void;
@@ -7336,14 +7602,14 @@ interface DragEvent extends MouseEvent {
declare var DragEvent: {
prototype: DragEvent;
- new(): DragEvent;
-}
+ new(type: "drag" | "dragend" | "dragenter" | "dragexit" | "dragleave" | "dragover" | "dragstart" | "drop", dragEventInit?: { dataTransfer?: DataTransfer }): DragEvent;
+};
interface DynamicsCompressorNode extends AudioNode {
readonly attack: AudioParam;
readonly knee: AudioParam;
readonly ratio: AudioParam;
- readonly reduction: AudioParam;
+ readonly reduction: number;
readonly release: AudioParam;
readonly threshold: AudioParam;
}
@@ -7351,31 +7617,11 @@ interface DynamicsCompressorNode extends AudioNode {
declare var DynamicsCompressorNode: {
prototype: DynamicsCompressorNode;
new(): DynamicsCompressorNode;
-}
-
-interface EXT_frag_depth {
-}
-
-declare var EXT_frag_depth: {
- prototype: EXT_frag_depth;
- new(): EXT_frag_depth;
-}
-
-interface EXT_texture_filter_anisotropic {
- readonly MAX_TEXTURE_MAX_ANISOTROPY_EXT: number;
- readonly TEXTURE_MAX_ANISOTROPY_EXT: number;
-}
-
-declare var EXT_texture_filter_anisotropic: {
- prototype: EXT_texture_filter_anisotropic;
- new(): EXT_texture_filter_anisotropic;
- readonly MAX_TEXTURE_MAX_ANISOTROPY_EXT: number;
- readonly TEXTURE_MAX_ANISOTROPY_EXT: number;
-}
+};
interface ElementEventMap extends GlobalEventHandlersEventMap {
- "ariarequest": AriaRequestEvent;
- "command": CommandEvent;
+ "ariarequest": Event;
+ "command": Event;
"gotpointercapture": PointerEvent;
"lostpointercapture": PointerEvent;
"MSGestureChange": MSGestureEvent;
@@ -7411,10 +7657,11 @@ interface Element extends Node, GlobalEventHandlers, ElementTraversal, NodeSelec
readonly clientTop: number;
readonly clientWidth: number;
id: string;
+ innerHTML: string;
msContentZoomFactor: number;
readonly msRegionOverflow: string;
- onariarequest: (this: Element, ev: AriaRequestEvent) => any;
- oncommand: (this: Element, ev: CommandEvent) => any;
+ onariarequest: (this: Element, ev: Event) => any;
+ oncommand: (this: Element, ev: Event) => any;
ongotpointercapture: (this: Element, ev: PointerEvent) => any;
onlostpointercapture: (this: Element, ev: PointerEvent) => any;
onmsgesturechange: (this: Element, ev: MSGestureEvent) => any;
@@ -7440,20 +7687,20 @@ interface Element extends Node, GlobalEventHandlers, ElementTraversal, NodeSelec
ontouchstart: (ev: TouchEvent) => any;
onwebkitfullscreenchange: (this: Element, ev: Event) => any;
onwebkitfullscreenerror: (this: Element, ev: Event) => any;
+ outerHTML: string;
readonly prefix: string | null;
readonly scrollHeight: number;
scrollLeft: number;
scrollTop: number;
readonly scrollWidth: number;
readonly tagName: string;
- innerHTML: string;
readonly assignedSlot: HTMLSlotElement | null;
slot: string;
readonly shadowRoot: ShadowRoot | null;
getAttribute(name: string): string | null;
- getAttributeNS(namespaceURI: string, localName: string): string;
getAttributeNode(name: string): Attr;
getAttributeNodeNS(namespaceURI: string, localName: string): Attr;
+ getAttributeNS(namespaceURI: string, localName: string): string;
getBoundingClientRect(): ClientRect;
getClientRects(): ClientRectList;
getElementsByTagName(name: K): ElementListTagNameMap[K];
@@ -7470,19 +7717,19 @@ interface Element extends Node, GlobalEventHandlers, ElementTraversal, NodeSelec
msSetPointerCapture(pointerId: number): void;
msZoomTo(args: MsZoomToOptions): void;
releasePointerCapture(pointerId: number): void;
- removeAttribute(name?: string): void;
- removeAttributeNS(namespaceURI: string, localName: string): void;
+ removeAttribute(qualifiedName: string): void;
removeAttributeNode(oldAttr: Attr): Attr;
+ removeAttributeNS(namespaceURI: string, localName: string): void;
requestFullscreen(): void;
requestPointerLock(): void;
setAttribute(name: string, value: string): void;
- setAttributeNS(namespaceURI: string, qualifiedName: string, value: string): void;
setAttributeNode(newAttr: Attr): Attr;
setAttributeNodeNS(newAttr: Attr): Attr;
+ setAttributeNS(namespaceURI: string, qualifiedName: string, value: string): void;
setPointerCapture(pointerId: number): void;
webkitMatchesSelector(selectors: string): boolean;
- webkitRequestFullScreen(): void;
webkitRequestFullscreen(): void;
+ webkitRequestFullScreen(): void;
getElementsByClassName(classNames: string): NodeListOf;
matches(selector: string): boolean;
closest(selector: string): Element | null;
@@ -7493,18 +7740,20 @@ interface Element extends Node, GlobalEventHandlers, ElementTraversal, NodeSelec
scrollTo(x: number, y: number): void;
scrollBy(options?: ScrollToOptions): void;
scrollBy(x: number, y: number): void;
- insertAdjacentElement(position: string, insertedElement: Element): Element | null;
- insertAdjacentHTML(where: string, html: string): void;
- insertAdjacentText(where: string, text: string): void;
+ insertAdjacentElement(position: InsertPosition, insertedElement: Element): Element | null;
+ insertAdjacentHTML(where: InsertPosition, html: string): void;
+ insertAdjacentText(where: InsertPosition, text: string): void;
attachShadow(shadowRootInitDict: ShadowRootInit): ShadowRoot;
addEventListener(type: K, listener: (this: Element, ev: ElementEventMap[K]) => any, useCapture?: boolean): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
+ removeEventListener(type: K, listener: (this: Element, ev: ElementEventMap[K]) => any, useCapture?: boolean): void;
+ removeEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
}
declare var Element: {
prototype: Element;
new(): Element;
-}
+};
interface ErrorEvent extends Event {
readonly colno: number;
@@ -7517,13 +7766,13 @@ interface ErrorEvent extends Event {
declare var ErrorEvent: {
prototype: ErrorEvent;
- new(): ErrorEvent;
-}
+ new(type: string, errorEventInitDict?: ErrorEventInit): ErrorEvent;
+};
interface Event {
readonly bubbles: boolean;
- cancelBubble: boolean;
readonly cancelable: boolean;
+ cancelBubble: boolean;
readonly currentTarget: EventTarget;
readonly defaultPrevented: boolean;
readonly eventPhase: number;
@@ -7546,30 +7795,65 @@ interface Event {
declare var Event: {
prototype: Event;
- new(type: string, eventInitDict?: EventInit): Event;
+ new(typeArg: string, eventInitDict?: EventInit): Event;
readonly AT_TARGET: number;
readonly BUBBLING_PHASE: number;
readonly CAPTURING_PHASE: number;
-}
+};
interface EventTarget {
- addEventListener(type: string, listener?: EventListenerOrEventListenerObject, useCapture?: boolean): void;
+ addEventListener(type: string, listener?: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
dispatchEvent(evt: Event): boolean;
- removeEventListener(type: string, listener?: EventListenerOrEventListenerObject, useCapture?: boolean): void;
+ removeEventListener(type: string, listener?: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var EventTarget: {
prototype: EventTarget;
new(): EventTarget;
+};
+
+interface EXT_frag_depth {
+}
+
+declare var EXT_frag_depth: {
+ prototype: EXT_frag_depth;
+ new(): EXT_frag_depth;
+};
+
+interface EXT_texture_filter_anisotropic {
+ readonly MAX_TEXTURE_MAX_ANISOTROPY_EXT: number;
+ readonly TEXTURE_MAX_ANISOTROPY_EXT: number;
+}
+
+declare var EXT_texture_filter_anisotropic: {
+ prototype: EXT_texture_filter_anisotropic;
+ new(): EXT_texture_filter_anisotropic;
+ readonly MAX_TEXTURE_MAX_ANISOTROPY_EXT: number;
+ readonly TEXTURE_MAX_ANISOTROPY_EXT: number;
+};
+
+interface ExtensionScriptApis {
+ extensionIdToShortId(extensionId: string): number;
+ fireExtensionApiTelemetry(functionName: string, isSucceeded: boolean, isSupported: boolean): void;
+ genericFunction(routerAddress: any, parameters?: string, callbackId?: number): void;
+ genericSynchronousFunction(functionId: number, parameters?: string): string;
+ getExtensionId(): string;
+ registerGenericFunctionCallbackHandler(callbackHandler: any): void;
+ registerGenericPersistentCallbackHandler(callbackHandler: any): void;
}
+declare var ExtensionScriptApis: {
+ prototype: ExtensionScriptApis;
+ new(): ExtensionScriptApis;
+};
+
interface External {
}
declare var External: {
prototype: External;
new(): External;
-}
+};
interface File extends Blob {
readonly lastModifiedDate: any;
@@ -7580,7 +7864,7 @@ interface File extends Blob {
declare var File: {
prototype: File;
new (parts: (ArrayBuffer | ArrayBufferView | Blob | string)[], filename: string, properties?: FilePropertyBag): File;
-}
+};
interface FileList {
readonly length: number;
@@ -7591,7 +7875,7 @@ interface FileList {
declare var FileList: {
prototype: FileList;
new(): FileList;
-}
+};
interface FileReader extends EventTarget, MSBaseReader {
readonly error: DOMError;
@@ -7599,14 +7883,16 @@ interface FileReader extends EventTarget, MSBaseReader {
readAsBinaryString(blob: Blob): void;
readAsDataURL(blob: Blob): void;
readAsText(blob: Blob, encoding?: string): void;
- addEventListener(type: K, listener: (this: MSBaseReader, ev: MSBaseReaderEventMap[K]) => any, useCapture?: boolean): void;
+ addEventListener(type: K, listener: (this: FileReader, ev: MSBaseReaderEventMap[K]) => any, useCapture?: boolean): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
+ removeEventListener(type: K, listener: (this: FileReader, ev: MSBaseReaderEventMap[K]) => any, useCapture?: boolean): void;
+ removeEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
}
declare var FileReader: {
prototype: FileReader;
new(): FileReader;
-}
+};
interface FocusEvent extends UIEvent {
readonly relatedTarget: EventTarget;
@@ -7616,16 +7902,35 @@ interface FocusEvent extends UIEvent {
declare var FocusEvent: {
prototype: FocusEvent;
new(typeArg: string, eventInitDict?: FocusEventInit): FocusEvent;
+};
+
+interface FocusNavigationEvent extends Event {
+ readonly navigationReason: NavigationReason;
+ readonly originHeight: number;
+ readonly originLeft: number;
+ readonly originTop: number;
+ readonly originWidth: number;
+ requestFocus(): void;
}
+declare var FocusNavigationEvent: {
+ prototype: FocusNavigationEvent;
+ new(type: string, eventInitDict?: FocusNavigationEventInit): FocusNavigationEvent;
+};
+
interface FormData {
- append(name: any, value: any, blobName?: string): void;
+ append(name: string, value: string | Blob, fileName?: string): void;
+ delete(name: string): void;
+ get(name: string): FormDataEntryValue | null;
+ getAll(name: string): FormDataEntryValue[];
+ has(name: string): boolean;
+ set(name: string, value: string | Blob, fileName?: string): void;
}
declare var FormData: {
prototype: FormData;
new (form?: HTMLFormElement): FormData;
-}
+};
interface GainNode extends AudioNode {
readonly gain: AudioParam;
@@ -7634,7 +7939,7 @@ interface GainNode extends AudioNode {
declare var GainNode: {
prototype: GainNode;
new(): GainNode;
-}
+};
interface Gamepad {
readonly axes: number[];
@@ -7649,7 +7954,7 @@ interface Gamepad {
declare var Gamepad: {
prototype: Gamepad;
new(): Gamepad;
-}
+};
interface GamepadButton {
readonly pressed: boolean;
@@ -7659,7 +7964,7 @@ interface GamepadButton {
declare var GamepadButton: {
prototype: GamepadButton;
new(): GamepadButton;
-}
+};
interface GamepadEvent extends Event {
readonly gamepad: Gamepad;
@@ -7667,8 +7972,8 @@ interface GamepadEvent extends Event {
declare var GamepadEvent: {
prototype: GamepadEvent;
- new(): GamepadEvent;
-}
+ new(typeArg: string, eventInitDict?: GamepadEventInit): GamepadEvent;
+};
interface Geolocation {
clearWatch(watchId: number): void;
@@ -7679,3330 +7984,3960 @@ interface Geolocation {
declare var Geolocation: {
prototype: Geolocation;
new(): Geolocation;
+};
+
+interface HashChangeEvent extends Event {
+ readonly newURL: string | null;
+ readonly oldURL: string | null;
+}
+
+declare var HashChangeEvent: {
+ prototype: HashChangeEvent;
+ new(typeArg: string, eventInitDict?: HashChangeEventInit): HashChangeEvent;
+};
+
+interface Headers {
+ append(name: string, value: string): void;
+ delete(name: string): void;
+ forEach(callback: ForEachCallback): void;
+ get(name: string): string | null;
+ has(name: string): boolean;
+ set(name: string, value: string): void;
+}
+
+declare var Headers: {
+ prototype: Headers;
+ new(init?: Headers | string[][] | object): Headers;
+};
+
+interface History {
+ readonly length: number;
+ readonly state: any;
+ scrollRestoration: ScrollRestoration;
+ back(): void;
+ forward(): void;
+ go(delta?: number): void;
+ pushState(data: any, title: string, url?: string | null): void;
+ replaceState(data: any, title: string, url?: string | null): void;
}
-interface HTMLAllCollection extends HTMLCollection {
- namedItem(name: string): Element;
+declare var History: {
+ prototype: History;
+ new(): History;
+};
+
+interface HTMLAllCollection {
+ readonly length: number;
+ item(nameOrIndex?: string): HTMLCollection | Element | null;
+ namedItem(name: string): HTMLCollection | Element | null;
+ [index: number]: Element;
}
declare var HTMLAllCollection: {
prototype: HTMLAllCollection;
new(): HTMLAllCollection;
-}
+};
interface HTMLAnchorElement extends HTMLElement {
- Methods: string;
/**
- * Sets or retrieves the character set used to encode the object.
- */
+ * Sets or retrieves the character set used to encode the object.
+ */
charset: string;
/**
- * Sets or retrieves the coordinates of the object.
- */
+ * Sets or retrieves the coordinates of the object.
+ */
coords: string;
download: string;
/**
- * Contains the anchor portion of the URL including the hash sign (#).
- */
+ * Contains the anchor portion of the URL including the hash sign (#).
+ */
hash: string;
/**
- * Contains the hostname and port values of the URL.
- */
+ * Contains the hostname and port values of the URL.
+ */
host: string;
/**
- * Contains the hostname of a URL.
- */
+ * Contains the hostname of a URL.
+ */
hostname: string;
/**
- * Sets or retrieves a destination URL or an anchor point.
- */
+ * Sets or retrieves a destination URL or an anchor point.
+ */
href: string;
/**
- * Sets or retrieves the language code of the object.
- */
+ * Sets or retrieves the language code of the object.
+ */
hreflang: string;
+ Methods: string;
readonly mimeType: string;
/**
- * Sets or retrieves the shape of the object.
- */
+ * Sets or retrieves the shape of the object.
+ */
name: string;
readonly nameProp: string;
/**
- * Contains the pathname of the URL.
- */
+ * Contains the pathname of the URL.
+ */
pathname: string;
/**
- * Sets or retrieves the port number associated with a URL.
- */
+ * Sets or retrieves the port number associated with a URL.
+ */
port: string;
/**
- * Contains the protocol of the URL.
- */
+ * Contains the protocol of the URL.
+ */
protocol: string;
readonly protocolLong: string;
/**
- * Sets or retrieves the relationship between the object and the destination of the link.
- */
+ * Sets or retrieves the relationship between the object and the destination of the link.
+ */
rel: string;
/**
- * Sets or retrieves the relationship between the object and the destination of the link.
- */
+ * Sets or retrieves the relationship between the object and the destination of the link.
+ */
rev: string;
/**
- * Sets or retrieves the substring of the href property that follows the question mark.
- */
+ * Sets or retrieves the substring of the href property that follows the question mark.
+ */
search: string;
/**
- * Sets or retrieves the shape of the object.
- */
+ * Sets or retrieves the shape of the object.
+ */
shape: string;
/**
- * Sets or retrieves the window or frame at which to target content.
- */
+ * Sets or retrieves the window or frame at which to target content.
+ */
target: string;
/**
- * Retrieves or sets the text of the object as a string.
- */
+ * Retrieves or sets the text of the object as a string.
+ */
text: string;
type: string;
urn: string;
- /**
- * Returns a string representation of an object.
- */
+ /**
+ * Returns a string representation of an object.
+ */
toString(): string;
- addEventListener(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): void;
+ addEventListener(type: K, listener: (this: HTMLAnchorElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
+ removeEventListener(type: K, listener: (this: HTMLAnchorElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): void;
+ removeEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
}
declare var HTMLAnchorElement: {
prototype: HTMLAnchorElement;
new(): HTMLAnchorElement;
-}
+};
interface HTMLAppletElement extends HTMLElement {
- /**
- * Retrieves a string of the URL where the object tag can be found. This is often the href of the document that the object is in, or the value set by a base element.
- */
- readonly BaseHref: string;
align: string;
/**
- * Sets or retrieves a text alternative to the graphic.
- */
+ * Sets or retrieves a text alternative to the graphic.
+ */
alt: string;
/**
- * Gets or sets the optional alternative HTML script to execute if the object fails to load.
- */
+ * Gets or sets the optional alternative HTML script to execute if the object fails to load.
+ */
altHtml: string;
/**
- * Sets or retrieves a character string that can be used to implement your own archive functionality for the object.
- */
+ * Sets or retrieves a character string that can be used to implement your own archive functionality for the object.
+ */
archive: string;
+ /**
+ * Retrieves a string of the URL where the object tag can be found. This is often the href of the document that the object is in, or the value set by a base element.
+ */
+ readonly BaseHref: string;
border: string;
code: string;
/**
- * Sets or retrieves the URL of the component.
- */
+ * Sets or retrieves the URL of the component.
+ */
codeBase: string;
/**
- * Sets or retrieves the Internet media type for the code associated with the object.
- */
+ * Sets or retrieves the Internet media type for the code associated with the object.
+ */
codeType: string;
/**
- * Address of a pointer to the document this page or frame contains. If there is no document, then null will be returned.
- */
+ * Address of a pointer to the document this page or frame contains. If there is no document, then null will be returned.
+ */
readonly contentDocument: Document;
/**
- * Sets or retrieves the URL that references the data of the object.
- */
+ * Sets or retrieves the URL that references the data of the object.
+ */
data: string;
/**
- * Sets or retrieves a character string that can be used to implement your own declare functionality for the object.
- */
+ * Sets or retrieves a character string that can be used to implement your own declare functionality for the object.
+ */
declare: boolean;
- readonly form: HTMLFormElement;
+ readonly form: HTMLFormElement | null;
/**
- * Sets or retrieves the height of the object.
- */
+ * Sets or retrieves the height of the object.
+ */
height: string;
hspace: number;
/**
- * Sets or retrieves the shape of the object.
- */
+ * Sets or retrieves the shape of the object.
+ */
name: string;
object: string | null;
/**
- * Sets or retrieves a message to be displayed while an object is loading.
- */
+ * Sets or retrieves a message to be displayed while an object is loading.
+ */
standby: string;
/**
- * Returns the content type of the object.
- */
+ * Returns the content type of the object.
+ */
type: string;
/**
- * Sets or retrieves the URL, often with a bookmark extension (#name), to use as a client-side image map.
- */
+ * Sets or retrieves the URL, often with a bookmark extension (#name), to use as a client-side image map.
+ */
useMap: string;
vspace: number;
width: number;
- addEventListener(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): void;
+ addEventListener(type: K, listener: (this: HTMLAppletElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
+ removeEventListener(type: K, listener: (this: HTMLAppletElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): void;
+ removeEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
}
declare var HTMLAppletElement: {
prototype: HTMLAppletElement;
new(): HTMLAppletElement;
-}
+};
interface HTMLAreaElement extends HTMLElement {
/**
- * Sets or retrieves a text alternative to the graphic.
- */
+ * Sets or retrieves a text alternative to the graphic.
+ */
alt: string;
/**
- * Sets or retrieves the coordinates of the object.
- */
+ * Sets or retrieves the coordinates of the object.
+ */
coords: string;
download: string;
/**
- * Sets or retrieves the subsection of the href property that follows the number sign (#).
- */
+ * Sets or retrieves the subsection of the href property that follows the number sign (#).
+ */
hash: string;
/**
- * Sets or retrieves the hostname and port number of the location or URL.
- */
+ * Sets or retrieves the hostname and port number of the location or URL.
+ */
host: string;
/**
- * Sets or retrieves the host name part of the location or URL.
- */
- hostname: string;
+ * Sets or retrieves the host name part of the location or URL.
+ */
+ hostname: string;
+ /**
+ * Sets or retrieves a destination URL or an anchor point.
+ */
+ href: string;
+ /**
+ * Sets or gets whether clicks in this region cause action.
+ */
+ noHref: boolean;
+ /**
+ * Sets or retrieves the file name or path specified by the object.
+ */
+ pathname: string;
+ /**
+ * Sets or retrieves the port number associated with a URL.
+ */
+ port: string;
+ /**
+ * Sets or retrieves the protocol portion of a URL.
+ */
+ protocol: string;
+ rel: string;
+ /**
+ * Sets or retrieves the substring of the href property that follows the question mark.
+ */
+ search: string;
+ /**
+ * Sets or retrieves the shape of the object.
+ */
+ shape: string;
+ /**
+ * Sets or retrieves the window or frame at which to target content.
+ */
+ target: string;
+ /**
+ * Returns a string representation of an object.
+ */
+ toString(): string;
+ addEventListener(type: K, listener: (this: HTMLAreaElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): void;
+ addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
+ removeEventListener(type: K, listener: (this: HTMLAreaElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): void;
+ removeEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var HTMLAreaElement: {
+ prototype: HTMLAreaElement;
+ new(): HTMLAreaElement;
+};
+
+interface HTMLAreasCollection extends HTMLCollectionBase {
+}
+
+declare var HTMLAreasCollection: {
+ prototype: HTMLAreasCollection;
+ new(): HTMLAreasCollection;
+};
+
+interface HTMLAudioElement extends HTMLMediaElement {
+ addEventListener(type: K, listener: (this: HTMLAudioElement, ev: HTMLMediaElementEventMap[K]) => any, useCapture?: boolean): void;
+ addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
+ removeEventListener(type: K, listener: (this: HTMLAudioElement, ev: HTMLMediaElementEventMap[K]) => any, useCapture?: boolean): void;
+ removeEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var HTMLAudioElement: {
+ prototype: HTMLAudioElement;
+ new(): HTMLAudioElement;
+};
+
+interface HTMLBaseElement extends HTMLElement {
+ /**
+ * Gets or sets the baseline URL on which relative links are based.
+ */
+ href: string;
+ /**
+ * Sets or retrieves the window or frame at which to target content.
+ */
+ target: string;
+ addEventListener(type: K, listener: (this: HTMLBaseElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): void;
+ addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
+ removeEventListener(type: K, listener: (this: HTMLBaseElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): void;
+ removeEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var HTMLBaseElement: {
+ prototype: HTMLBaseElement;
+ new(): HTMLBaseElement;
+};
+
+interface HTMLBaseFontElement extends HTMLElement, DOML2DeprecatedColorProperty {
+ /**
+ * Sets or retrieves the current typeface family.
+ */
+ face: string;
+ /**
+ * Sets or retrieves the font size of the object.
+ */
+ size: number;
+ addEventListener(type: K, listener: (this: HTMLBaseFontElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): void;
+ addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
+ removeEventListener(type: K, listener: (this: HTMLBaseFontElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): void;
+ removeEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var HTMLBaseFontElement: {
+ prototype: HTMLBaseFontElement;
+ new(): HTMLBaseFontElement;
+};
+
+interface HTMLBodyElementEventMap extends HTMLElementEventMap {
+ "afterprint": Event;
+ "beforeprint": Event;
+ "beforeunload": BeforeUnloadEvent;
+ "blur": FocusEvent;
+ "error": ErrorEvent;
+ "focus": FocusEvent;
+ "hashchange": HashChangeEvent;
+ "load": Event;
+ "message": MessageEvent;
+ "offline": Event;
+ "online": Event;
+ "orientationchange": Event;
+ "pagehide": PageTransitionEvent;
+ "pageshow": PageTransitionEvent;
+ "popstate": PopStateEvent;
+ "resize": UIEvent;
+ "scroll": UIEvent;
+ "storage": StorageEvent;
+ "unload": Event;
+}
+
+interface HTMLBodyElement extends HTMLElement {
+ aLink: any;
+ background: string;
+ bgColor: any;
+ bgProperties: string;
+ link: any;
+ noWrap: boolean;
+ onafterprint: (this: HTMLBodyElement, ev: Event) => any;
+ onbeforeprint: (this: HTMLBodyElement, ev: Event) => any;
+ onbeforeunload: (this: HTMLBodyElement, ev: BeforeUnloadEvent) => any;
+ onhashchange: (this: HTMLBodyElement, ev: HashChangeEvent) => any;
+ onmessage: (this: HTMLBodyElement, ev: MessageEvent) => any;
+ onoffline: (this: HTMLBodyElement, ev: Event) => any;
+ ononline: (this: HTMLBodyElement, ev: Event) => any;
+ onorientationchange: (this: HTMLBodyElement, ev: Event) => any;
+ onpagehide: (this: HTMLBodyElement, ev: PageTransitionEvent) => any;
+ onpageshow: (this: HTMLBodyElement, ev: PageTransitionEvent) => any;
+ onpopstate: (this: HTMLBodyElement, ev: PopStateEvent) => any;
+ onresize: (this: HTMLBodyElement, ev: UIEvent) => any;
+ onstorage: (this: HTMLBodyElement, ev: StorageEvent) => any;
+ onunload: (this: HTMLBodyElement, ev: Event) => any;
+ text: any;
+ vLink: any;
+ addEventListener(type: K, listener: (this: HTMLBodyElement, ev: HTMLBodyElementEventMap[K]) => any, useCapture?: boolean): void;
+ addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
+ removeEventListener(type: K, listener: (this: HTMLBodyElement, ev: HTMLBodyElementEventMap[K]) => any, useCapture?: boolean): void;
+ removeEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var HTMLBodyElement: {
+ prototype: HTMLBodyElement;
+ new(): HTMLBodyElement;
+};
+
+interface HTMLBRElement extends HTMLElement {
+ /**
+ * Sets or retrieves the side on which floating objects are not to be positioned when any IHTMLBlockElement is inserted into the document.
+ */
+ clear: string;
+ addEventListener(type: K, listener: (this: HTMLBRElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): void;
+ addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
+ removeEventListener(type: K, listener: (this: HTMLBRElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): void;
+ removeEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var HTMLBRElement: {
+ prototype: HTMLBRElement;
+ new(): HTMLBRElement;
+};
+
+interface HTMLButtonElement extends HTMLElement {
+ /**
+ * Provides a way to direct a user to a specific field when a document loads. This can provide both direction and convenience for a user, reducing the need to click or tab to a field when a page opens. This attribute is true when present on an element, and false when missing.
+ */
+ autofocus: boolean;
+ disabled: boolean;
+ /**
+ * Retrieves a reference to the form that the object is embedded in.
+ */
+ readonly form: HTMLFormElement | null;
+ /**
+ * Overrides the action attribute (where the data on a form is sent) on the parent form element.
+ */
+ formAction: string;
+ /**
+ * Used to override the encoding (formEnctype attribute) specified on the form element.
+ */
+ formEnctype: string;
+ /**
+ * Overrides the submit method attribute previously specified on a form element.
+ */
+ formMethod: string;
+ /**
+ * Overrides any validation or required attributes on a form or form elements to allow it to be submitted without validation. This can be used to create a "save draft"-type submit option.
+ */
+ formNoValidate: string;
+ /**
+ * Overrides the target attribute on a form element.
+ */
+ formTarget: string;
+ /**
+ * Sets or retrieves the name of the object.
+ */
+ name: string;
+ status: any;
+ /**
+ * Gets the classification and default behavior of the button.
+ */
+ type: string;
+ /**
+ * Returns the error message that would be displayed if the user submits the form, or an empty string if no error message. It also triggers the standard error message, such as "this is a required field". The result is that the user sees validation messages without actually submitting.
+ */
+ readonly validationMessage: string;
+ /**
+ * Returns a ValidityState object that represents the validity states of an element.
+ */
+ readonly validity: ValidityState;
+ /**
+ * Sets or retrieves the default or selected value of the control.
+ */
+ value: string;
/**
- * Sets or retrieves a destination URL or an anchor point.
- */
- href: string;
+ * Returns whether an element will successfully validate based on forms validation rules and constraints.
+ */
+ readonly willValidate: boolean;
/**
- * Sets or gets whether clicks in this region cause action.
- */
- noHref: boolean;
+ * Returns whether a form will validate when it is submitted, without having to submit it.
+ */
+ checkValidity(): boolean;
/**
- * Sets or retrieves the file name or path specified by the object.
- */
- pathname: string;
+ * Sets a custom error message that is displayed when a form is submitted.
+ * @param error Sets a custom error message that is displayed when a form is submitted.
+ */
+ setCustomValidity(error: string): void;
+ addEventListener(type: K, listener: (this: HTMLButtonElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): void;
+ addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
+ removeEventListener(type: K, listener: (this: HTMLButtonElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): void;
+ removeEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var HTMLButtonElement: {
+ prototype: HTMLButtonElement;
+ new(): HTMLButtonElement;
+};
+
+interface HTMLCanvasElement extends HTMLElement {
/**
- * Sets or retrieves the port number associated with a URL.
- */
- port: string;
+ * Gets or sets the height of a canvas element on a document.
+ */
+ height: number;
/**
- * Sets or retrieves the protocol portion of a URL.
- */
- protocol: string;
- rel: string;
+ * Gets or sets the width of a canvas element on a document.
+ */
+ width: number;
/**
- * Sets or retrieves the substring of the href property that follows the question mark.
- */
- search: string;
+ * Returns an object that provides methods and properties for drawing and manipulating images and graphics on a canvas element in a document. A context object includes information about colors, line widths, fonts, and other graphic parameters that can be drawn on a canvas.
+ * @param contextId The identifier (ID) of the type of canvas to create. Internet Explorer 9 and Internet Explorer 10 support only a 2-D context using canvas.getContext("2d"); IE11 Preview also supports 3-D or WebGL context using canvas.getContext("experimental-webgl");
+ */
+ getContext(contextId: "2d", contextAttributes?: Canvas2DContextAttributes): CanvasRenderingContext2D | null;
+ getContext(contextId: "webgl" | "experimental-webgl", contextAttributes?: WebGLContextAttributes): WebGLRenderingContext | null;
+ getContext(contextId: string, contextAttributes?: {}): CanvasRenderingContext2D | WebGLRenderingContext | null;
/**
- * Sets or retrieves the shape of the object.
- */
- shape: string;
+ * Returns a blob object encoded as a Portable Network Graphics (PNG) format from a canvas image or drawing.
+ */
+ msToBlob(): Blob;
/**
- * Sets or retrieves the window or frame at which to target content.
- */
- target: string;
- /**
- * Returns a string representation of an object.
- */
- toString(): string;
- addEventListener(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): void;
+ * Returns the content of the current canvas as an image that you can use as a source for another canvas or an HTML element.
+ * @param type The standard MIME type for the image format to return. If you do not specify this parameter, the default value is a PNG format image.
+ */
+ toDataURL(type?: string, ...args: any[]): string;
+ toBlob(callback: (result: Blob | null) => void, type?: string, ...arguments: any[]): void;
+ addEventListener(type: K, listener: (this: HTMLCanvasElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
+ removeEventListener(type: K, listener: (this: HTMLCanvasElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): void;
+ removeEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
}
-declare var HTMLAreaElement: {
- prototype: HTMLAreaElement;
- new(): HTMLAreaElement;
-}
+declare var HTMLCanvasElement: {
+ prototype: HTMLCanvasElement;
+ new(): HTMLCanvasElement;
+};
-interface HTMLAreasCollection extends HTMLCollection {
+interface HTMLCollectionBase {
/**
- * Adds an element to the areas, controlRange, or options collection.
- */
- add(element: HTMLElement, before?: HTMLElement | number): void;
+ * Sets or retrieves the number of objects in a collection.
+ */
+ readonly length: number;
/**
- * Removes an element from the collection.
- */
- remove(index?: number): void;
+ * Retrieves an object from various collections.
+ */
+ item(index: number): Element;
+ [index: number]: Element;
}
-declare var HTMLAreasCollection: {
- prototype: HTMLAreasCollection;
- new(): HTMLAreasCollection;
+interface HTMLCollection extends HTMLCollectionBase {
+ /**
+ * Retrieves a select object or an object from an options collection.
+ */
+ namedItem(name: string): Element | null;
}
-interface HTMLAudioElement extends HTMLMediaElement {
- addEventListener(type: K, listener: (this: HTMLMediaElement, ev: HTMLMediaElementEventMap[K]) => any, useCapture?: boolean): void;
+declare var HTMLCollection: {
+ prototype: HTMLCollection;
+ new(): HTMLCollection;
+};
+
+interface HTMLDataElement extends HTMLElement {
+ value: string;
+ addEventListener(type: K, listener: (this: HTMLDataElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
+ removeEventListener(type: K, listener: (this: HTMLDataElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): void;
+ removeEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
}
-declare var HTMLAudioElement: {
- prototype: HTMLAudioElement;
- new(): HTMLAudioElement;
-}
+declare var HTMLDataElement: {
+ prototype: HTMLDataElement;
+ new(): HTMLDataElement;
+};
-interface HTMLBRElement extends HTMLElement {
- /**
- * Sets or retrieves the side on which floating objects are not to be positioned when any IHTMLBlockElement is inserted into the document.
- */
- clear: string;
- addEventListener(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): void;
+interface HTMLDataListElement extends HTMLElement {
+ options: HTMLCollectionOf;
+ addEventListener(type: K, listener: (this: HTMLDataListElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
+ removeEventListener(type: K, listener: (this: HTMLDataListElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): void;
+ removeEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
}
-declare var HTMLBRElement: {
- prototype: HTMLBRElement;
- new(): HTMLBRElement;
+declare var HTMLDataListElement: {
+ prototype: HTMLDataListElement;
+ new(): HTMLDataListElement;
+};
+
+interface HTMLDirectoryElement extends HTMLElement {
+ compact: boolean;
+ addEventListener(type: K, listener: (this: HTMLDirectoryElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): void;
+ addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
+ removeEventListener(type: K, listener: (this: HTMLDirectoryElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): void;
+ removeEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
}
-interface HTMLBaseElement extends HTMLElement {
+declare var HTMLDirectoryElement: {
+ prototype: HTMLDirectoryElement;
+ new(): HTMLDirectoryElement;
+};
+
+interface HTMLDivElement extends HTMLElement {
/**
- * Gets or sets the baseline URL on which relative links are based.
- */
- href: string;
+ * Sets or retrieves how the object is aligned with adjacent text.
+ */
+ align: string;
/**
- * Sets or retrieves the window or frame at which to target content.
- */
- target: string;
- addEventListener(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): void;
+ * Sets or retrieves whether the browser automatically performs wordwrap.
+ */
+ noWrap: boolean;
+ addEventListener(type: K, listener: (this: HTMLDivElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
+ removeEventListener(type: K, listener: (this: HTMLDivElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): void;
+ removeEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
}
-declare var HTMLBaseElement: {
- prototype: HTMLBaseElement;
- new(): HTMLBaseElement;
+declare var HTMLDivElement: {
+ prototype: HTMLDivElement;
+ new(): HTMLDivElement;
+};
+
+interface HTMLDListElement extends HTMLElement {
+ compact: boolean;
+ addEventListener(type: K, listener: (this: HTMLDListElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): void;
+ addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
+ removeEventListener(type: K, listener: (this: HTMLDListElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): void;
+ removeEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
}
-interface HTMLBaseFontElement extends HTMLElement, DOML2DeprecatedColorProperty {
- /**
- * Sets or retrieves the current typeface family.
- */
- face: string;
- /**
- * Sets or retrieves the font size of the object.
- */
- size: number;
+declare var HTMLDListElement: {
+ prototype: HTMLDListElement;
+ new(): HTMLDListElement;
+};
+
+interface HTMLDocument extends Document {
+ addEventListener(type: K, listener: (this: HTMLDocument, ev: DocumentEventMap[K]) => any, useCapture?: boolean): void;
+ addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
+ removeEventListener(type: K, listener: (this: HTMLDocument, ev: DocumentEventMap[K]) => any, useCapture?: boolean): void;
+ removeEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var HTMLDocument: {
+ prototype: HTMLDocument;
+ new(): HTMLDocument;
+};
+
+interface HTMLElementEventMap extends ElementEventMap {
+ "abort": UIEvent;
+ "activate": UIEvent;
+ "beforeactivate": UIEvent;
+ "beforecopy": ClipboardEvent;
+ "beforecut": ClipboardEvent;
+ "beforedeactivate": UIEvent;
+ "beforepaste": ClipboardEvent;
+ "blur": FocusEvent;
+ "canplay": Event;
+ "canplaythrough": Event;
+ "change": Event;
+ "click": MouseEvent;
+ "contextmenu": PointerEvent;
+ "copy": ClipboardEvent;
+ "cuechange": Event;
+ "cut": ClipboardEvent;
+ "dblclick": MouseEvent;
+ "deactivate": UIEvent;
+ "drag": DragEvent;
+ "dragend": DragEvent;
+ "dragenter": DragEvent;
+ "dragleave": DragEvent;
+ "dragover": DragEvent;
+ "dragstart": DragEvent;
+ "drop": DragEvent;
+ "durationchange": Event;
+ "emptied": Event;
+ "ended": MediaStreamErrorEvent;
+ "error": ErrorEvent;
+ "focus": FocusEvent;
+ "input": Event;
+ "invalid": Event;
+ "keydown": KeyboardEvent;
+ "keypress": KeyboardEvent;
+ "keyup": KeyboardEvent;
+ "load": Event;
+ "loadeddata": Event;
+ "loadedmetadata": Event;
+ "loadstart": Event;
+ "mousedown": MouseEvent;
+ "mouseenter": MouseEvent;
+ "mouseleave": MouseEvent;
+ "mousemove": MouseEvent;
+ "mouseout": MouseEvent;
+ "mouseover": MouseEvent;
+ "mouseup": MouseEvent;
+ "mousewheel": WheelEvent;
+ "MSContentZoom": UIEvent;
+ "MSManipulationStateChanged": MSManipulationEvent;
+ "paste": ClipboardEvent;
+ "pause": Event;
+ "play": Event;
+ "playing": Event;
+ "progress": ProgressEvent;
+ "ratechange": Event;
+ "reset": Event;
+ "scroll": UIEvent;
+ "seeked": Event;
+ "seeking": Event;
+ "select": UIEvent;
+ "selectstart": Event;
+ "stalled": Event;
+ "submit": Event;
+ "suspend": Event;
+ "timeupdate": Event;
+ "volumechange": Event;
+ "waiting": Event;
+}
+
+interface HTMLElement extends Element {
+ accessKey: string;
+ readonly children: HTMLCollection;
+ contentEditable: string;
+ readonly dataset: DOMStringMap;
+ dir: string;
+ draggable: boolean;
+ hidden: boolean;
+ hideFocus: boolean;
+ innerText: string;
+ readonly isContentEditable: boolean;
+ lang: string;
+ readonly offsetHeight: number;
+ readonly offsetLeft: number;
+ readonly offsetParent: Element;
+ readonly offsetTop: number;
+ readonly offsetWidth: number;
+ onabort: (this: HTMLElement, ev: UIEvent) => any;
+ onactivate: (this: HTMLElement, ev: UIEvent) => any;
+ onbeforeactivate: (this: HTMLElement, ev: UIEvent) => any;
+ onbeforecopy: (this: HTMLElement, ev: ClipboardEvent) => any;
+ onbeforecut: (this: HTMLElement, ev: ClipboardEvent) => any;
+ onbeforedeactivate: (this: HTMLElement, ev: UIEvent) => any;
+ onbeforepaste: (this: HTMLElement, ev: ClipboardEvent) => any;
+ onblur: (this: HTMLElement, ev: FocusEvent) => any;
+ oncanplay: (this: HTMLElement, ev: Event) => any;
+ oncanplaythrough: (this: HTMLElement, ev: Event) => any;
+ onchange: (this: HTMLElement, ev: Event) => any;
+ onclick: (this: HTMLElement, ev: MouseEvent) => any;
+ oncontextmenu: (this: HTMLElement, ev: PointerEvent) => any;
+ oncopy: (this: HTMLElement, ev: ClipboardEvent) => any;
+ oncuechange: (this: HTMLElement, ev: Event) => any;
+ oncut: (this: HTMLElement, ev: ClipboardEvent) => any;
+ ondblclick: (this: HTMLElement, ev: MouseEvent) => any;
+ ondeactivate: (this: HTMLElement, ev: UIEvent) => any;
+ ondrag: (this: HTMLElement, ev: DragEvent) => any;
+ ondragend: (this: HTMLElement, ev: DragEvent) => any;
+ ondragenter: (this: HTMLElement, ev: DragEvent) => any;
+ ondragleave: (this: HTMLElement, ev: DragEvent) => any;
+ ondragover: (this: HTMLElement, ev: DragEvent) => any;
+ ondragstart: (this: HTMLElement, ev: DragEvent) => any;
+ ondrop: (this: HTMLElement, ev: DragEvent) => any;
+ ondurationchange: (this: HTMLElement, ev: Event) => any;
+ onemptied: (this: HTMLElement, ev: Event) => any;
+ onended: (this: HTMLElement, ev: MediaStreamErrorEvent) => any;
+ onerror: (this: HTMLElement, ev: ErrorEvent) => any;
+ onfocus: (this: HTMLElement, ev: FocusEvent) => any;
+ oninput: (this: HTMLElement, ev: Event) => any;
+ oninvalid: (this: HTMLElement, ev: Event) => any;
+ onkeydown: (this: HTMLElement, ev: KeyboardEvent) => any;
+ onkeypress: (this: HTMLElement, ev: KeyboardEvent) => any;
+ onkeyup: (this: HTMLElement, ev: KeyboardEvent) => any;
+ onload: (this: HTMLElement, ev: Event) => any;
+ onloadeddata: (this: HTMLElement, ev: Event) => any;
+ onloadedmetadata: (this: HTMLElement, ev: Event) => any;
+ onloadstart: (this: HTMLElement, ev: Event) => any;
+ onmousedown: (this: HTMLElement, ev: MouseEvent) => any;
+ onmouseenter: (this: HTMLElement, ev: MouseEvent) => any;
+ onmouseleave: (this: HTMLElement, ev: MouseEvent) => any;
+ onmousemove: (this: HTMLElement, ev: MouseEvent) => any;
+ onmouseout: (this: HTMLElement, ev: MouseEvent) => any;
+ onmouseover: (this: HTMLElement, ev: MouseEvent) => any;
+ onmouseup: (this: HTMLElement, ev: MouseEvent) => any;
+ onmousewheel: (this: HTMLElement, ev: WheelEvent) => any;
+ onmscontentzoom: (this: HTMLElement, ev: UIEvent) => any;
+ onmsmanipulationstatechanged: (this: HTMLElement, ev: MSManipulationEvent) => any;
+ onpaste: (this: HTMLElement, ev: ClipboardEvent) => any;
+ onpause: (this: HTMLElement, ev: Event) => any;
+ onplay: (this: HTMLElement, ev: Event) => any;
+ onplaying: (this: HTMLElement, ev: Event) => any;
+ onprogress: (this: HTMLElement, ev: ProgressEvent) => any;
+ onratechange: (this: HTMLElement, ev: Event) => any;
+ onreset: (this: HTMLElement, ev: Event) => any;
+ onscroll: (this: HTMLElement, ev: UIEvent) => any;
+ onseeked: (this: HTMLElement, ev: Event) => any;
+ onseeking: (this: HTMLElement, ev: Event) => any;
+ onselect: (this: HTMLElement, ev: UIEvent) => any;
+ onselectstart: (this: HTMLElement, ev: Event) => any;
+ onstalled: (this: HTMLElement, ev: Event) => any;
+ onsubmit: (this: HTMLElement, ev: Event) => any;
+ onsuspend: (this: HTMLElement, ev: Event) => any;
+ ontimeupdate: (this: HTMLElement, ev: Event) => any;
+ onvolumechange: (this: HTMLElement, ev: Event) => any;
+ onwaiting: (this: HTMLElement, ev: Event) => any;
+ outerText: string;
+ spellcheck: boolean;
+ readonly style: CSSStyleDeclaration;
+ tabIndex: number;
+ title: string;
+ blur(): void;
+ click(): void;
+ dragDrop(): boolean;
+ focus(): void;
+ msGetInputContext(): MSInputMethodContext;
addEventListener(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
+ removeEventListener(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): void;
+ removeEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
}
-declare var HTMLBaseFontElement: {
- prototype: HTMLBaseFontElement;
- new(): HTMLBaseFontElement;
-}
-
-interface HTMLBodyElementEventMap extends HTMLElementEventMap {
- "afterprint": Event;
- "beforeprint": Event;
- "beforeunload": BeforeUnloadEvent;
- "blur": FocusEvent;
- "error": ErrorEvent;
- "focus": FocusEvent;
- "hashchange": HashChangeEvent;
- "load": Event;
- "message": MessageEvent;
- "offline": Event;
- "online": Event;
- "orientationchange": Event;
- "pagehide": PageTransitionEvent;
- "pageshow": PageTransitionEvent;
- "popstate": PopStateEvent;
- "resize": UIEvent;
- "storage": StorageEvent;
- "unload": Event;
-}
-
-interface HTMLBodyElement extends HTMLElement {
- aLink: any;
- background: string;
- bgColor: any;
- bgProperties: string;
- link: any;
- noWrap: boolean;
- onafterprint: (this: HTMLBodyElement, ev: Event) => any;
- onbeforeprint: (this: HTMLBodyElement, ev: Event) => any;
- onbeforeunload: (this: HTMLBodyElement, ev: BeforeUnloadEvent) => any;
- onblur: (this: HTMLBodyElement, ev: FocusEvent) => any;
- onerror: (this: HTMLBodyElement, ev: ErrorEvent) => any;
- onfocus: (this: HTMLBodyElement, ev: FocusEvent) => any;
- onhashchange: (this: HTMLBodyElement, ev: HashChangeEvent) => any;
- onload: (this: HTMLBodyElement, ev: Event) => any;
- onmessage: (this: HTMLBodyElement, ev: MessageEvent) => any;
- onoffline: (this: HTMLBodyElement, ev: Event) => any;
- ononline: (this: HTMLBodyElement, ev: Event) => any;
- onorientationchange: (this: HTMLBodyElement, ev: Event) => any;
- onpagehide: (this: HTMLBodyElement, ev: PageTransitionEvent) => any;
- onpageshow: (this: HTMLBodyElement, ev: PageTransitionEvent) => any;
- onpopstate: (this: HTMLBodyElement, ev: PopStateEvent) => any;
- onresize: (this: HTMLBodyElement, ev: UIEvent) => any;
- onstorage: (this: HTMLBodyElement, ev: StorageEvent) => any;
- onunload: (this: HTMLBodyElement, ev: Event) => any;
- text: any;
- vLink: any;
- addEventListener(type: K, listener: (this: HTMLBodyElement, ev: HTMLBodyElementEventMap[K]) => any, useCapture?: boolean): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var HTMLBodyElement: {
- prototype: HTMLBodyElement;
- new(): HTMLBodyElement;
-}
+declare var HTMLElement: {
+ prototype: HTMLElement;
+ new(): HTMLElement;
+};
-interface HTMLButtonElement extends HTMLElement {
- /**
- * Provides a way to direct a user to a specific field when a document loads. This can provide both direction and convenience for a user, reducing the need to click or tab to a field when a page opens. This attribute is true when present on an element, and false when missing.
- */
- autofocus: boolean;
- disabled: boolean;
+interface HTMLEmbedElement extends HTMLElement, GetSVGDocument {
/**
- * Retrieves a reference to the form that the object is embedded in.
- */
- readonly form: HTMLFormElement;
+ * Sets or retrieves the height of the object.
+ */
+ height: string;
+ hidden: any;
/**
- * Overrides the action attribute (where the data on a form is sent) on the parent form element.
- */
- formAction: string;
+ * Gets or sets whether the DLNA PlayTo device is available.
+ */
+ msPlayToDisabled: boolean;
/**
- * Used to override the encoding (formEnctype attribute) specified on the form element.
- */
- formEnctype: string;
+ * Gets or sets the path to the preferred media source. This enables the Play To target device to stream the media content, which can be DRM protected, from a different location, such as a cloud media server.
+ */
+ msPlayToPreferredSourceUri: string;
/**
- * Overrides the submit method attribute previously specified on a form element.
- */
- formMethod: string;
+ * Gets or sets the primary DLNA PlayTo device.
+ */
+ msPlayToPrimary: boolean;
/**
- * Overrides any validation or required attributes on a form or form elements to allow it to be submitted without validation. This can be used to create a "save draft"-type submit option.
- */
- formNoValidate: string;
+ * Gets the source associated with the media element for use by the PlayToManager.
+ */
+ readonly msPlayToSource: any;
/**
- * Overrides the target attribute on a form element.
- */
- formTarget: string;
- /**
- * Sets or retrieves the name of the object.
- */
+ * Sets or retrieves the name of the object.
+ */
name: string;
- status: any;
- /**
- * Gets the classification and default behavior of the button.
- */
- type: string;
/**
- * Returns the error message that would be displayed if the user submits the form, or an empty string if no error message. It also triggers the standard error message, such as "this is a required field". The result is that the user sees validation messages without actually submitting.
- */
- readonly validationMessage: string;
+ * Retrieves the palette used for the embedded document.
+ */
+ readonly palette: string;
/**
- * Returns a ValidityState object that represents the validity states of an element.
- */
- readonly validity: ValidityState;
- /**
- * Sets or retrieves the default or selected value of the control.
- */
- value: string;
+ * Retrieves the URL of the plug-in used to view an embedded document.
+ */
+ readonly pluginspage: string;
+ readonly readyState: string;
/**
- * Returns whether an element will successfully validate based on forms validation rules and constraints.
- */
- readonly willValidate: boolean;
+ * Sets or retrieves a URL to be loaded by the object.
+ */
+ src: string;
/**
- * Returns whether a form will validate when it is submitted, without having to submit it.
- */
- checkValidity(): boolean;
+ * Sets or retrieves the height and width units of the embed object.
+ */
+ units: string;
/**
- * Sets a custom error message that is displayed when a form is submitted.
- * @param error Sets a custom error message that is displayed when a form is submitted.
- */
- setCustomValidity(error: string): void;
- addEventListener(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): void;
+ * Sets or retrieves the width of the object.
+ */
+ width: string;
+ addEventListener(type: K, listener: (this: HTMLEmbedElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
+ removeEventListener(type: K, listener: (this: HTMLEmbedElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): void;
+ removeEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
}
-declare var HTMLButtonElement: {
- prototype: HTMLButtonElement;
- new(): HTMLButtonElement;
-}
+declare var HTMLEmbedElement: {
+ prototype: HTMLEmbedElement;
+ new(): HTMLEmbedElement;
+};
-interface HTMLCanvasElement extends HTMLElement {
- /**
- * Gets or sets the height of a canvas element on a document.
- */
- height: number;
- /**
- * Gets or sets the width of a canvas element on a document.
- */
- width: number;
+interface HTMLFieldSetElement extends HTMLElement {
/**
- * Returns an object that provides methods and properties for drawing and manipulating images and graphics on a canvas element in a document. A context object includes information about colors, line widths, fonts, and other graphic parameters that can be drawn on a canvas.
- * @param contextId The identifier (ID) of the type of canvas to create. Internet Explorer 9 and Internet Explorer 10 support only a 2-D context using canvas.getContext("2d"); IE11 Preview also supports 3-D or WebGL context using canvas.getContext("experimental-webgl");
- */
- getContext(contextId: "2d", contextAttributes?: Canvas2DContextAttributes): CanvasRenderingContext2D | null;
- getContext(contextId: "webgl" | "experimental-webgl", contextAttributes?: WebGLContextAttributes): WebGLRenderingContext | null;
- getContext(contextId: string, contextAttributes?: {}): CanvasRenderingContext2D | WebGLRenderingContext | null;
+ * Sets or retrieves how the object is aligned with adjacent text.
+ */
+ align: string;
+ disabled: boolean;
/**
- * Returns a blob object encoded as a Portable Network Graphics (PNG) format from a canvas image or drawing.
- */
- msToBlob(): Blob;
+ * Retrieves a reference to the form that the object is embedded in.
+ */
+ readonly form: HTMLFormElement | null;
+ name: string;
/**
- * Returns the content of the current canvas as an image that you can use as a source for another canvas or an HTML element.
- * @param type The standard MIME type for the image format to return. If you do not specify this parameter, the default value is a PNG format image.
- */
- toDataURL(type?: string, ...args: any[]): string;
- toBlob(callback: (result: Blob | null) => void, type?: string, ...arguments: any[]): void;
- addEventListener(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var HTMLCanvasElement: {
- prototype: HTMLCanvasElement;
- new(): HTMLCanvasElement;
-}
-
-interface HTMLCollection {
+ * Returns the error message that would be displayed if the user submits the form, or an empty string if no error message. It also triggers the standard error message, such as "this is a required field". The result is that the user sees validation messages without actually submitting.
+ */
+ readonly validationMessage: string;
/**
- * Sets or retrieves the number of objects in a collection.
- */
- readonly length: number;
+ * Returns a ValidityState object that represents the validity states of an element.
+ */
+ readonly validity: ValidityState;
/**
- * Retrieves an object from various collections.
- */
- item(index: number): Element;
+ * Returns whether an element will successfully validate based on forms validation rules and constraints.
+ */
+ readonly willValidate: boolean;
/**
- * Retrieves a select object or an object from an options collection.
- */
- namedItem(name: string): Element;
- [index: number]: Element;
-}
-
-declare var HTMLCollection: {
- prototype: HTMLCollection;
- new(): HTMLCollection;
-}
-
-interface HTMLDListElement extends HTMLElement {
- compact: boolean;
- addEventListener(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var HTMLDListElement: {
- prototype: HTMLDListElement;
- new(): HTMLDListElement;
-}
-
-interface HTMLDataListElement extends HTMLElement {
- options: HTMLCollectionOf;
- addEventListener(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): void;
+ * Returns whether a form will validate when it is submitted, without having to submit it.
+ */
+ checkValidity(): boolean;
+ /**
+ * Sets a custom error message that is displayed when a form is submitted.
+ * @param error Sets a custom error message that is displayed when a form is submitted.
+ */
+ setCustomValidity(error: string): void;
+ addEventListener(type: K, listener: (this: HTMLFieldSetElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
+ removeEventListener(type: K, listener: (this: HTMLFieldSetElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): void;
+ removeEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
}
-declare var HTMLDataListElement: {
- prototype: HTMLDataListElement;
- new(): HTMLDataListElement;
-}
+declare var HTMLFieldSetElement: {
+ prototype: HTMLFieldSetElement;
+ new(): HTMLFieldSetElement;
+};
-interface HTMLDirectoryElement extends HTMLElement {
- compact: boolean;
- addEventListener(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): void;
+interface HTMLFontElement extends HTMLElement, DOML2DeprecatedColorProperty, DOML2DeprecatedSizeProperty {
+ /**
+ * Sets or retrieves the current typeface family.
+ */
+ face: string;
+ addEventListener(type: K, listener: (this: HTMLFontElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
+ removeEventListener(type: K, listener: (this: HTMLFontElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): void;
+ removeEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
}
-declare var HTMLDirectoryElement: {
- prototype: HTMLDirectoryElement;
- new(): HTMLDirectoryElement;
+declare var HTMLFontElement: {
+ prototype: HTMLFontElement;
+ new(): HTMLFontElement;
+};
+
+interface HTMLFormControlsCollection extends HTMLCollectionBase {
+ namedItem(name: string): HTMLCollection | Element | null;
}
-interface HTMLDivElement extends HTMLElement {
+declare var HTMLFormControlsCollection: {
+ prototype: HTMLFormControlsCollection;
+ new(): HTMLFormControlsCollection;
+};
+
+interface HTMLFormElement extends HTMLElement {
/**
- * Sets or retrieves how the object is aligned with adjacent text.
- */
- align: string;
+ * Sets or retrieves a list of character encodings for input data that must be accepted by the server processing the form.
+ */
+ acceptCharset: string;
/**
- * Sets or retrieves whether the browser automatically performs wordwrap.
- */
- noWrap: boolean;
- addEventListener(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): void;
+ * Sets or retrieves the URL to which the form content is sent for processing.
+ */
+ action: string;
+ /**
+ * Specifies whether autocomplete is applied to an editable text field.
+ */
+ autocomplete: string;
+ /**
+ * Retrieves a collection, in source order, of all controls in a given form.
+ */
+ readonly elements: HTMLFormControlsCollection;
+ /**
+ * Sets or retrieves the MIME encoding for the form.
+ */
+ encoding: string;
+ /**
+ * Sets or retrieves the encoding type for the form.
+ */
+ enctype: string;
+ /**
+ * Sets or retrieves the number of objects in a collection.
+ */
+ readonly length: number;
+ /**
+ * Sets or retrieves how to send the form data to the server.
+ */
+ method: string;
+ /**
+ * Sets or retrieves the name of the object.
+ */
+ name: string;
+ /**
+ * Designates a form that is not validated when submitted.
+ */
+ noValidate: boolean;
+ /**
+ * Sets or retrieves the window or frame at which to target content.
+ */
+ target: string;
+ /**
+ * Returns whether a form will validate when it is submitted, without having to submit it.
+ */
+ checkValidity(): boolean;
+ /**
+ * Retrieves a form object or an object from an elements collection.
+ * @param name Variant of type Number or String that specifies the object or collection to retrieve. If this parameter is a Number, it is the zero-based index of the object. If this parameter is a string, all objects with matching name or id properties are retrieved, and a collection is returned if more than one match is made.
+ * @param index Variant of type Number that specifies the zero-based index of the object to retrieve when a collection is returned.
+ */
+ item(name?: any, index?: any): any;
+ /**
+ * Retrieves a form object or an object from an elements collection.
+ */
+ namedItem(name: string): any;
+ /**
+ * Fires when the user resets a form.
+ */
+ reset(): void;
+ /**
+ * Fires when a FORM is about to be submitted.
+ */
+ submit(): void;
+ reportValidity(): boolean;
+ addEventListener(type: K, listener: (this: HTMLFormElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
+ removeEventListener(type: K, listener: (this: HTMLFormElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): void;
+ removeEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
+ [name: string]: any;
}
-declare var HTMLDivElement: {
- prototype: HTMLDivElement;
- new(): HTMLDivElement;
+declare var HTMLFormElement: {
+ prototype: HTMLFormElement;
+ new(): HTMLFormElement;
+};
+
+interface HTMLFrameElementEventMap extends HTMLElementEventMap {
+ "load": Event;
}
-interface HTMLDocument extends Document {
- addEventListener(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, useCapture?: boolean): void;
+interface HTMLFrameElement extends HTMLElement, GetSVGDocument {
+ /**
+ * Specifies the properties of a border drawn around an object.
+ */
+ border: string;
+ /**
+ * Sets or retrieves the border color of the object.
+ */
+ borderColor: any;
+ /**
+ * Retrieves the document object of the page or frame.
+ */
+ readonly contentDocument: Document;
+ /**
+ * Retrieves the object of the specified.
+ */
+ readonly contentWindow: Window;
+ /**
+ * Sets or retrieves whether to display a border for the frame.
+ */
+ frameBorder: string;
+ /**
+ * Sets or retrieves the amount of additional space between the frames.
+ */
+ frameSpacing: any;
+ /**
+ * Sets or retrieves the height of the object.
+ */
+ height: string | number;
+ /**
+ * Sets or retrieves a URI to a long description of the object.
+ */
+ longDesc: string;
+ /**
+ * Sets or retrieves the top and bottom margin heights before displaying the text in a frame.
+ */
+ marginHeight: string;
+ /**
+ * Sets or retrieves the left and right margin widths before displaying the text in a frame.
+ */
+ marginWidth: string;
+ /**
+ * Sets or retrieves the frame name.
+ */
+ name: string;
+ /**
+ * Sets or retrieves whether the user can resize the frame.
+ */
+ noResize: boolean;
+ /**
+ * Sets or retrieves whether the frame can be scrolled.
+ */
+ scrolling: string;
+ /**
+ * Sets or retrieves a URL to be loaded by the object.
+ */
+ src: string;
+ /**
+ * Sets or retrieves the width of the object.
+ */
+ width: string | number;
+ addEventListener(type: K, listener: (this: HTMLFrameElement, ev: HTMLFrameElementEventMap[K]) => any, useCapture?: boolean): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
+ removeEventListener(type: K, listener: (this: HTMLFrameElement, ev: HTMLFrameElementEventMap[K]) => any, useCapture?: boolean): void;
+ removeEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
}
-declare var HTMLDocument: {
- prototype: HTMLDocument;
- new(): HTMLDocument;
-}
+declare var HTMLFrameElement: {
+ prototype: HTMLFrameElement;
+ new(): HTMLFrameElement;
+};
-interface HTMLElementEventMap extends ElementEventMap {
- "abort": UIEvent;
- "activate": UIEvent;
- "beforeactivate": UIEvent;
- "beforecopy": ClipboardEvent;
- "beforecut": ClipboardEvent;
- "beforedeactivate": UIEvent;
- "beforepaste": ClipboardEvent;
+interface HTMLFrameSetElementEventMap extends HTMLElementEventMap {
+ "afterprint": Event;
+ "beforeprint": Event;
+ "beforeunload": BeforeUnloadEvent;
"blur": FocusEvent;
- "canplay": Event;
- "canplaythrough": Event;
- "change": Event;
- "click": MouseEvent;
- "contextmenu": PointerEvent;
- "copy": ClipboardEvent;
- "cuechange": Event;
- "cut": ClipboardEvent;
- "dblclick": MouseEvent;
- "deactivate": UIEvent;
- "drag": DragEvent;
- "dragend": DragEvent;
- "dragenter": DragEvent;
- "dragleave": DragEvent;
- "dragover": DragEvent;
- "dragstart": DragEvent;
- "drop": DragEvent;
- "durationchange": Event;
- "emptied": Event;
- "ended": MediaStreamErrorEvent;
"error": ErrorEvent;
"focus": FocusEvent;
- "input": Event;
- "invalid": Event;
- "keydown": KeyboardEvent;
- "keypress": KeyboardEvent;
- "keyup": KeyboardEvent;
+ "hashchange": HashChangeEvent;
"load": Event;
- "loadeddata": Event;
- "loadedmetadata": Event;
- "loadstart": Event;
- "mousedown": MouseEvent;
- "mouseenter": MouseEvent;
- "mouseleave": MouseEvent;
- "mousemove": MouseEvent;
- "mouseout": MouseEvent;
- "mouseover": MouseEvent;
- "mouseup": MouseEvent;
- "mousewheel": WheelEvent;
- "MSContentZoom": UIEvent;
- "MSManipulationStateChanged": MSManipulationEvent;
- "paste": ClipboardEvent;
- "pause": Event;
- "play": Event;
- "playing": Event;
- "progress": ProgressEvent;
- "ratechange": Event;
- "reset": Event;
+ "message": MessageEvent;
+ "offline": Event;
+ "online": Event;
+ "orientationchange": Event;
+ "pagehide": PageTransitionEvent;
+ "pageshow": PageTransitionEvent;
+ "popstate": PopStateEvent;
+ "resize": UIEvent;
"scroll": UIEvent;
- "seeked": Event;
- "seeking": Event;
- "select": UIEvent;
- "selectstart": Event;
- "stalled": Event;
- "submit": Event;
- "suspend": Event;
- "timeupdate": Event;
- "volumechange": Event;
- "waiting": Event;
+ "storage": StorageEvent;
+ "unload": Event;
+}
+
+interface HTMLFrameSetElement extends HTMLElement {
+ border: string;
+ /**
+ * Sets or retrieves the border color of the object.
+ */
+ borderColor: any;
+ /**
+ * Sets or retrieves the frame widths of the object.
+ */
+ cols: string;
+ /**
+ * Sets or retrieves whether to display a border for the frame.
+ */
+ frameBorder: string;
+ /**
+ * Sets or retrieves the amount of additional space between the frames.
+ */
+ frameSpacing: any;
+ name: string;
+ onafterprint: (this: HTMLFrameSetElement, ev: Event) => any;
+ onbeforeprint: (this: HTMLFrameSetElement, ev: Event) => any;
+ onbeforeunload: (this: HTMLFrameSetElement, ev: BeforeUnloadEvent) => any;
+ onhashchange: (this: HTMLFrameSetElement, ev: HashChangeEvent) => any;
+ onmessage: (this: HTMLFrameSetElement, ev: MessageEvent) => any;
+ onoffline: (this: HTMLFrameSetElement, ev: Event) => any;
+ ononline: (this: HTMLFrameSetElement, ev: Event) => any;
+ onorientationchange: (this: HTMLFrameSetElement, ev: Event) => any;
+ onpagehide: (this: HTMLFrameSetElement, ev: PageTransitionEvent) => any;
+ onpageshow: (this: HTMLFrameSetElement, ev: PageTransitionEvent) => any;
+ onpopstate: (this: HTMLFrameSetElement, ev: PopStateEvent) => any;
+ onresize: (this: HTMLFrameSetElement, ev: UIEvent) => any;
+ onstorage: (this: HTMLFrameSetElement, ev: StorageEvent) => any;
+ onunload: (this: HTMLFrameSetElement, ev: Event) => any;
+ /**
+ * Sets or retrieves the frame heights of the object.
+ */
+ rows: string;
+ addEventListener(type: K, listener: (this: HTMLFrameSetElement, ev: HTMLFrameSetElementEventMap[K]) => any, useCapture?: boolean): void;
+ addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
+ removeEventListener(type: K, listener: (this: HTMLFrameSetElement, ev: HTMLFrameSetElementEventMap[K]) => any, useCapture?: boolean): void;
+ removeEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
}
-interface HTMLElement extends Element {
- accessKey: string;
- readonly children: HTMLCollection;
- contentEditable: string;
- readonly dataset: DOMStringMap;
- dir: string;
- draggable: boolean;
- hidden: boolean;
- hideFocus: boolean;
- innerHTML: string;
- innerText: string;
- readonly isContentEditable: boolean;
- lang: string;
- readonly offsetHeight: number;
- readonly offsetLeft: number;
- readonly offsetParent: Element;
- readonly offsetTop: number;
- readonly offsetWidth: number;
- onabort: (this: HTMLElement, ev: UIEvent) => any;
- onactivate: (this: HTMLElement, ev: UIEvent) => any;
- onbeforeactivate: (this: HTMLElement, ev: UIEvent) => any;
- onbeforecopy: (this: HTMLElement, ev: ClipboardEvent) => any;
- onbeforecut: (this: HTMLElement, ev: ClipboardEvent) => any;
- onbeforedeactivate: (this: HTMLElement, ev: UIEvent) => any;
- onbeforepaste: (this: HTMLElement, ev: ClipboardEvent) => any;
- onblur: (this: HTMLElement, ev: FocusEvent) => any;
- oncanplay: (this: HTMLElement, ev: Event) => any;
- oncanplaythrough: (this: HTMLElement, ev: Event) => any;
- onchange: (this: HTMLElement, ev: Event) => any;
- onclick: (this: HTMLElement, ev: MouseEvent) => any;
- oncontextmenu: (this: HTMLElement, ev: PointerEvent) => any;
- oncopy: (this: HTMLElement, ev: ClipboardEvent) => any;
- oncuechange: (this: HTMLElement, ev: Event) => any;
- oncut: (this: HTMLElement, ev: ClipboardEvent) => any;
- ondblclick: (this: HTMLElement, ev: MouseEvent) => any;
- ondeactivate: (this: HTMLElement, ev: UIEvent) => any;
- ondrag: (this: HTMLElement, ev: DragEvent) => any;
- ondragend: (this: HTMLElement, ev: DragEvent) => any;
- ondragenter: (this: HTMLElement, ev: DragEvent) => any;
- ondragleave: (this: HTMLElement, ev: DragEvent) => any;
- ondragover: (this: HTMLElement, ev: DragEvent) => any;
- ondragstart: (this: HTMLElement, ev: DragEvent) => any;
- ondrop: (this: HTMLElement, ev: DragEvent) => any;
- ondurationchange: (this: HTMLElement, ev: Event) => any;
- onemptied: (this: HTMLElement, ev: Event) => any;
- onended: (this: HTMLElement, ev: MediaStreamErrorEvent) => any;
- onerror: (this: HTMLElement, ev: ErrorEvent) => any;
- onfocus: (this: HTMLElement, ev: FocusEvent) => any;
- oninput: (this: HTMLElement, ev: Event) => any;
- oninvalid: (this: HTMLElement, ev: Event) => any;
- onkeydown: (this: HTMLElement, ev: KeyboardEvent) => any;
- onkeypress: (this: HTMLElement, ev: KeyboardEvent) => any;
- onkeyup: (this: HTMLElement, ev: KeyboardEvent) => any;
- onload: (this: HTMLElement, ev: Event) => any;
- onloadeddata: (this: HTMLElement, ev: Event) => any;
- onloadedmetadata: (this: HTMLElement, ev: Event) => any;
- onloadstart: (this: HTMLElement, ev: Event) => any;
- onmousedown: (this: HTMLElement, ev: MouseEvent) => any;
- onmouseenter: (this: HTMLElement, ev: MouseEvent) => any;
- onmouseleave: (this: HTMLElement, ev: MouseEvent) => any;
- onmousemove: (this: HTMLElement, ev: MouseEvent) => any;
- onmouseout: (this: HTMLElement, ev: MouseEvent) => any;
- onmouseover: (this: HTMLElement, ev: MouseEvent) => any;
- onmouseup: (this: HTMLElement, ev: MouseEvent) => any;
- onmousewheel: (this: HTMLElement, ev: WheelEvent) => any;
- onmscontentzoom: (this: HTMLElement, ev: UIEvent) => any;
- onmsmanipulationstatechanged: (this: HTMLElement, ev: MSManipulationEvent) => any;
- onpaste: (this: HTMLElement, ev: ClipboardEvent) => any;
- onpause: (this: HTMLElement, ev: Event) => any;
- onplay: (this: HTMLElement, ev: Event) => any;
- onplaying: (this: HTMLElement, ev: Event) => any;
- onprogress: (this: HTMLElement, ev: ProgressEvent) => any;
- onratechange: (this: HTMLElement, ev: Event) => any;
- onreset: (this: HTMLElement, ev: Event) => any;
- onscroll: (this: HTMLElement, ev: UIEvent) => any;
- onseeked: (this: HTMLElement, ev: Event) => any;
- onseeking: (this: HTMLElement, ev: Event) => any;
- onselect: (this: HTMLElement, ev: UIEvent) => any;
- onselectstart: (this: HTMLElement, ev: Event) => any;
- onstalled: (this: HTMLElement, ev: Event) => any;
- onsubmit: (this: HTMLElement, ev: Event) => any;
- onsuspend: (this: HTMLElement, ev: Event) => any;
- ontimeupdate: (this: HTMLElement, ev: Event) => any;
- onvolumechange: (this: HTMLElement, ev: Event) => any;
- onwaiting: (this: HTMLElement, ev: Event) => any;
- outerHTML: string;
- outerText: string;
- spellcheck: boolean;
- readonly style: CSSStyleDeclaration;
- tabIndex: number;
- title: string;
- blur(): void;
- click(): void;
- dragDrop(): boolean;
- focus(): void;
- msGetInputContext(): MSInputMethodContext;
- setActive(): void;
- addEventListener(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): void;
+declare var HTMLFrameSetElement: {
+ prototype: HTMLFrameSetElement;
+ new(): HTMLFrameSetElement;
+};
+
+interface HTMLHeadElement extends HTMLElement {
+ profile: string;
+ addEventListener(type: K, listener: (this: HTMLHeadElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
+ removeEventListener(type: K, listener: (this: HTMLHeadElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): void;
+ removeEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
}
-declare var HTMLElement: {
- prototype: HTMLElement;
- new(): HTMLElement;
+declare var HTMLHeadElement: {
+ prototype: HTMLHeadElement;
+ new(): HTMLHeadElement;
+};
+
+interface HTMLHeadingElement extends HTMLElement {
+ /**
+ * Sets or retrieves a value that indicates the table alignment.
+ */
+ align: string;
+ addEventListener(type: K, listener: (this: HTMLHeadingElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): void;
+ addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
+ removeEventListener(type: K, listener: (this: HTMLHeadingElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): void;
+ removeEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
}
-interface HTMLEmbedElement extends HTMLElement, GetSVGDocument {
+declare var HTMLHeadingElement: {
+ prototype: HTMLHeadingElement;
+ new(): HTMLHeadingElement;
+};
+
+interface HTMLHRElement extends HTMLElement, DOML2DeprecatedColorProperty, DOML2DeprecatedSizeProperty {
/**
- * Sets or retrieves the height of the object.
- */
+ * Sets or retrieves how the object is aligned with adjacent text.
+ */
+ align: string;
+ /**
+ * Sets or retrieves whether the horizontal rule is drawn with 3-D shading.
+ */
+ noShade: boolean;
+ /**
+ * Sets or retrieves the width of the object.
+ */
+ width: number;
+ addEventListener(type: K, listener: (this: HTMLHRElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): void;
+ addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
+ removeEventListener(type: K, listener: (this: HTMLHRElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): void;
+ removeEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var HTMLHRElement: {
+ prototype: HTMLHRElement;
+ new(): HTMLHRElement;
+};
+
+interface HTMLHtmlElement extends HTMLElement {
+ /**
+ * Sets or retrieves the DTD version that governs the current document.
+ */
+ version: string;
+ addEventListener(type: K, listener: (this: HTMLHtmlElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): void;
+ addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
+ removeEventListener(type: K, listener: (this: HTMLHtmlElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): void;
+ removeEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var HTMLHtmlElement: {
+ prototype: HTMLHtmlElement;
+ new(): HTMLHtmlElement;
+};
+
+interface HTMLIFrameElementEventMap extends HTMLElementEventMap {
+ "load": Event;
+}
+
+interface HTMLIFrameElement extends HTMLElement, GetSVGDocument {
+ /**
+ * Sets or retrieves how the object is aligned with adjacent text.
+ */
+ align: string;
+ allowFullscreen: boolean;
+ allowPaymentRequest: boolean;
+ /**
+ * Specifies the properties of a border drawn around an object.
+ */
+ border: string;
+ /**
+ * Retrieves the document object of the page or frame.
+ */
+ readonly contentDocument: Document;
+ /**
+ * Retrieves the object of the specified.
+ */
+ readonly contentWindow: Window;
+ /**
+ * Sets or retrieves whether to display a border for the frame.
+ */
+ frameBorder: string;
+ /**
+ * Sets or retrieves the amount of additional space between the frames.
+ */
+ frameSpacing: any;
+ /**
+ * Sets or retrieves the height of the object.
+ */
height: string;
- hidden: any;
/**
- * Gets or sets whether the DLNA PlayTo device is available.
- */
- msPlayToDisabled: boolean;
+ * Sets or retrieves the horizontal margin for the object.
+ */
+ hspace: number;
/**
- * Gets or sets the path to the preferred media source. This enables the Play To target device to stream the media content, which can be DRM protected, from a different location, such as a cloud media server.
- */
- msPlayToPreferredSourceUri: string;
+ * Sets or retrieves a URI to a long description of the object.
+ */
+ longDesc: string;
/**
- * Gets or sets the primary DLNA PlayTo device.
- */
- msPlayToPrimary: boolean;
+ * Sets or retrieves the top and bottom margin heights before displaying the text in a frame.
+ */
+ marginHeight: string;
/**
- * Gets the source associated with the media element for use by the PlayToManager.
- */
- readonly msPlayToSource: any;
+ * Sets or retrieves the left and right margin widths before displaying the text in a frame.
+ */
+ marginWidth: string;
/**
- * Sets or retrieves the name of the object.
- */
+ * Sets or retrieves the frame name.
+ */
name: string;
/**
- * Retrieves the palette used for the embedded document.
- */
- readonly palette: string;
+ * Sets or retrieves whether the user can resize the frame.
+ */
+ noResize: boolean;
+ readonly sandbox: DOMSettableTokenList;
/**
- * Retrieves the URL of the plug-in used to view an embedded document.
- */
- readonly pluginspage: string;
- readonly readyState: string;
+ * Sets or retrieves whether the frame can be scrolled.
+ */
+ scrolling: string;
+ /**
+ * Sets or retrieves a URL to be loaded by the object.
+ */
+ src: string;
+ /**
+ * Sets or retrieves the vertical margin for the object.
+ */
+ vspace: number;
+ /**
+ * Sets or retrieves the width of the object.
+ */
+ width: string;
+ addEventListener(type: K, listener: (this: HTMLIFrameElement, ev: HTMLIFrameElementEventMap[K]) => any, useCapture?: boolean): void;
+ addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
+ removeEventListener(type: K, listener: (this: HTMLIFrameElement, ev: HTMLIFrameElementEventMap[K]) => any, useCapture?: boolean): void;
+ removeEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
+}
+
+declare var HTMLIFrameElement: {
+ prototype: HTMLIFrameElement;
+ new(): HTMLIFrameElement;
+};
+
+interface HTMLImageElement extends HTMLElement {
+ /**
+ * Sets or retrieves how the object is aligned with adjacent text.
+ */
+ align: string;
+ /**
+ * Sets or retrieves a text alternative to the graphic.
+ */
+ alt: string;
+ /**
+ * Specifies the properties of a border drawn around an object.
+ */
+ border: string;
+ /**
+ * Retrieves whether the object is fully loaded.
+ */
+ readonly complete: boolean;
+ crossOrigin: string | null;
+ readonly currentSrc: string;
+ /**
+ * Sets or retrieves the height of the object.
+ */
+ height: number;
+ /**
+ * Sets or retrieves the width of the border to draw around the object.
+ */
+ hspace: number;
+ /**
+ * Sets or retrieves whether the image is a server-side image map.
+ */
+ isMap: boolean;
+ /**
+ * Sets or retrieves a Uniform Resource Identifier (URI) to a long description of the object.
+ */
+ longDesc: string;
+ lowsrc: string;
/**
- * Sets or retrieves a URL to be loaded by the object.
- */
- src: string;
+ * Gets or sets whether the DLNA PlayTo device is available.
+ */
+ msPlayToDisabled: boolean;
+ msPlayToPreferredSourceUri: string;
/**
- * Sets or retrieves the height and width units of the embed object.
- */
- units: string;
+ * Gets or sets the primary DLNA PlayTo device.
+ */
+ msPlayToPrimary: boolean;
/**
- * Sets or retrieves the width of the object.
- */
- width: string;
- addEventListener(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var HTMLEmbedElement: {
- prototype: HTMLEmbedElement;
- new(): HTMLEmbedElement;
-}
-
-interface HTMLFieldSetElement extends HTMLElement {
+ * Gets the source associated with the media element for use by the PlayToManager.
+ */
+ readonly msPlayToSource: any;
/**
- * Sets or retrieves how the object is aligned with adjacent text.
- */
- align: string;
- disabled: boolean;
+ * Sets or retrieves the name of the object.
+ */
+ name: string;
/**
- * Retrieves a reference to the form that the object is embedded in.
- */
- readonly form: HTMLFormElement;
+ * The original height of the image resource before sizing.
+ */
+ readonly naturalHeight: number;
/**
- * Returns the error message that would be displayed if the user submits the form, or an empty string if no error message. It also triggers the standard error message, such as "this is a required field". The result is that the user sees validation messages without actually submitting.
- */
- readonly validationMessage: string;
+ * The original width of the image resource before sizing.
+ */
+ readonly naturalWidth: number;
+ sizes: string;
/**
- * Returns a ValidityState object that represents the validity states of an element.
- */
- readonly validity: ValidityState;
+ * The address or URL of the a media resource that is to be considered.
+ */
+ src: string;
+ srcset: string;
/**
- * Returns whether an element will successfully validate based on forms validation rules and constraints.
- */
- readonly willValidate: boolean;
+ * Sets or retrieves the URL, often with a bookmark extension (#name), to use as a client-side image map.
+ */
+ useMap: string;
/**
- * Returns whether a form will validate when it is submitted, without having to submit it.
- */
- checkValidity(): boolean;
+ * Sets or retrieves the vertical margin for the object.
+ */
+ vspace: number;
/**
- * Sets a custom error message that is displayed when a form is submitted.
- * @param error Sets a custom error message that is displayed when a form is submitted.
- */
- setCustomValidity(error: string): void;
- addEventListener(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): void;
+ * Sets or retrieves the width of the object.
+ */
+ width: number;
+ readonly x: number;
+ readonly y: number;
+ msGetAsCastingSource(): any;
+ addEventListener(type: K, listener: (this: HTMLImageElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
+ removeEventListener(type: K, listener: (this: HTMLImageElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): void;
+ removeEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
}
-declare var HTMLFieldSetElement: {
- prototype: HTMLFieldSetElement;
- new(): HTMLFieldSetElement;
-}
+declare var HTMLImageElement: {
+ prototype: HTMLImageElement;
+ new(): HTMLImageElement;
+};
-interface HTMLFontElement extends HTMLElement, DOML2DeprecatedColorProperty, DOML2DeprecatedSizeProperty {
+interface HTMLInputElement extends HTMLElement {
/**
- * Sets or retrieves the current typeface family.
- */
- face: string;
- addEventListener(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var HTMLFontElement: {
- prototype: HTMLFontElement;
- new(): HTMLFontElement;
-}
-
-interface HTMLFormElement extends HTMLElement {
+ * Sets or retrieves a comma-separated list of content types.
+ */
+ accept: string;
/**
- * Sets or retrieves a list of character encodings for input data that must be accepted by the server processing the form.
- */
- acceptCharset: string;
+ * Sets or retrieves how the object is aligned with adjacent text.
+ */
+ align: string;
/**
- * Sets or retrieves the URL to which the form content is sent for processing.
- */
- action: string;
+ * Sets or retrieves a text alternative to the graphic.
+ */
+ alt: string;
/**
- * Specifies whether autocomplete is applied to an editable text field.
- */
+ * Specifies whether autocomplete is applied to an editable text field.
+ */
autocomplete: string;
/**
- * Retrieves a collection, in source order, of all controls in a given form.
- */
- readonly elements: HTMLCollection;
- /**
- * Sets or retrieves the MIME encoding for the form.
- */
- encoding: string;
+ * Provides a way to direct a user to a specific field when a document loads. This can provide both direction and convenience for a user, reducing the need to click or tab to a field when a page opens. This attribute is true when present on an element, and false when missing.
+ */
+ autofocus: boolean;
/**
- * Sets or retrieves the encoding type for the form.
- */
- enctype: string;
+ * Sets or retrieves the width of the border to draw around the object.
+ */
+ border: string;
/**
- * Sets or retrieves the number of objects in a collection.
- */
- readonly length: number;
+ * Sets or retrieves the state of the check box or radio button.
+ */
+ checked: boolean;
/**
- * Sets or retrieves how to send the form data to the server.
- */
- method: string;
+ * Retrieves whether the object is fully loaded.
+ */
+ readonly complete: boolean;
/**
- * Sets or retrieves the name of the object.
- */
- name: string;
+ * Sets or retrieves the state of the check box or radio button.
+ */
+ defaultChecked: boolean;
/**
- * Designates a form that is not validated when submitted.
- */
- noValidate: boolean;
+ * Sets or retrieves the initial contents of the object.
+ */
+ defaultValue: string;
+ disabled: boolean;
/**
- * Sets or retrieves the window or frame at which to target content.
- */
- target: string;
+ * Returns a FileList object on a file type input object.
+ */
+ readonly files: FileList | null;
/**
- * Returns whether a form will validate when it is submitted, without having to submit it.
- */
- checkValidity(): boolean;
+ * Retrieves a reference to the form that the object is embedded in.
+ */
+ readonly form: HTMLFormElement | null;
/**
- * Retrieves a form object or an object from an elements collection.
- * @param name Variant of type Number or String that specifies the object or collection to retrieve. If this parameter is a Number, it is the zero-based index of the object. If this parameter is a string, all objects with matching name or id properties are retrieved, and a collection is returned if more than one match is made.
- * @param index Variant of type Number that specifies the zero-based index of the object to retrieve when a collection is returned.
- */
- item(name?: any, index?: any): any;
+ * Overrides the action attribute (where the data on a form is sent) on the parent form element.
+ */
+ formAction: string;
/**
- * Retrieves a form object or an object from an elements collection.
- */
- namedItem(name: string): any;
+ * Used to override the encoding (formEnctype attribute) specified on the form element.
+ */
+ formEnctype: string;
/**
- * Fires when the user resets a form.
- */
- reset(): void;
+ * Overrides the submit method attribute previously specified on a form element.
+ */
+ formMethod: string;
/**
- * Fires when a FORM is about to be submitted.
- */
- submit(): void;
- addEventListener(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
- [name: string]: any;
-}
-
-declare var HTMLFormElement: {
- prototype: HTMLFormElement;
- new(): HTMLFormElement;
-}
-
-interface HTMLFrameElementEventMap extends HTMLElementEventMap {
- "load": Event;
-}
-
-interface HTMLFrameElement extends HTMLElement, GetSVGDocument {
+ * Overrides any validation or required attributes on a form or form elements to allow it to be submitted without validation. This can be used to create a "save draft"-type submit option.
+ */
+ formNoValidate: string;
/**
- * Specifies the properties of a border drawn around an object.
- */
- border: string;
+ * Overrides the target attribute on a form element.
+ */
+ formTarget: string;
/**
- * Sets or retrieves the border color of the object.
- */
- borderColor: any;
+ * Sets or retrieves the height of the object.
+ */
+ height: string;
/**
- * Retrieves the document object of the page or frame.
- */
- readonly contentDocument: Document;
+ * Sets or retrieves the width of the border to draw around the object.
+ */
+ hspace: number;
+ indeterminate: boolean;
/**
- * Retrieves the object of the specified.
- */
- readonly contentWindow: Window;
+ * Specifies the ID of a pre-defined datalist of options for an input element.
+ */
+ readonly list: HTMLElement;
/**
- * Sets or retrieves whether to display a border for the frame.
- */
- frameBorder: string;
+ * Defines the maximum acceptable value for an input element with type="number".When used with the min and step attributes, lets you control the range and increment (such as only even numbers) that the user can enter into an input field.
+ */
+ max: string;
/**
- * Sets or retrieves the amount of additional space between the frames.
- */
- frameSpacing: any;
+ * Sets or retrieves the maximum number of characters that the user can enter in a text control.
+ */
+ maxLength: number;
/**
- * Sets or retrieves the height of the object.
- */
- height: string | number;
+ * Defines the minimum acceptable value for an input element with type="number". When used with the max and step attributes, lets you control the range and increment (such as even numbers only) that the user can enter into an input field.
+ */
+ min: string;
/**
- * Sets or retrieves a URI to a long description of the object.
- */
- longDesc: string;
+ * Sets or retrieves the Boolean value indicating whether multiple items can be selected from a list.
+ */
+ multiple: boolean;
/**
- * Sets or retrieves the top and bottom margin heights before displaying the text in a frame.
- */
- marginHeight: string;
+ * Sets or retrieves the name of the object.
+ */
+ name: string;
/**
- * Sets or retrieves the left and right margin widths before displaying the text in a frame.
- */
- marginWidth: string;
+ * Gets or sets a string containing a regular expression that the user's input must match.
+ */
+ pattern: string;
/**
- * Sets or retrieves the frame name.
- */
- name: string;
+ * Gets or sets a text string that is displayed in an input field as a hint or prompt to users as the format or type of information they need to enter.The text appears in an input field until the user puts focus on the field.
+ */
+ placeholder: string;
+ readOnly: boolean;
/**
- * Sets or retrieves whether the user can resize the frame.
- */
- noResize: boolean;
+ * When present, marks an element that can't be submitted without a value.
+ */
+ required: boolean;
+ selectionDirection: string;
/**
- * Raised when the object has been completely received from the server.
- */
- onload: (this: HTMLFrameElement, ev: Event) => any;
+ * Gets or sets the end position or offset of a text selection.
+ */
+ selectionEnd: number;
/**
- * Sets or retrieves whether the frame can be scrolled.
- */
- scrolling: string;
+ * Gets or sets the starting position or offset of a text selection.
+ */
+ selectionStart: number;
+ size: number;
/**
- * Sets or retrieves a URL to be loaded by the object.
- */
+ * The address or URL of the a media resource that is to be considered.
+ */
src: string;
+ status: boolean;
/**
- * Sets or retrieves the width of the object.
- */
- width: string | number;
- addEventListener(type: K, listener: (this: HTMLFrameElement, ev: HTMLFrameElementEventMap[K]) => any, useCapture?: boolean): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var HTMLFrameElement: {
- prototype: HTMLFrameElement;
- new(): HTMLFrameElement;
-}
-
-interface HTMLFrameSetElementEventMap extends HTMLElementEventMap {
- "beforeprint": Event;
- "beforeunload": BeforeUnloadEvent;
- "blur": FocusEvent;
- "error": ErrorEvent;
- "focus": FocusEvent;
- "hashchange": HashChangeEvent;
- "load": Event;
- "message": MessageEvent;
- "offline": Event;
- "online": Event;
- "orientationchange": Event;
- "pagehide": PageTransitionEvent;
- "pageshow": PageTransitionEvent;
- "resize": UIEvent;
- "storage": StorageEvent;
- "unload": Event;
-}
-
-interface HTMLFrameSetElement extends HTMLElement {
- border: string;
+ * Defines an increment or jump between values that you want to allow the user to enter. When used with the max and min attributes, lets you control the range and increment (for example, allow only even numbers) that the user can enter into an input field.
+ */
+ step: string;
+ /**
+ * Returns the content type of the object.
+ */
+ type: string;
/**
- * Sets or retrieves the border color of the object.
- */
- borderColor: any;
+ * Sets or retrieves the URL, often with a bookmark extension (#name), to use as a client-side image map.
+ */
+ useMap: string;
/**
- * Sets or retrieves the frame widths of the object.
- */
- cols: string;
+ * Returns the error message that would be displayed if the user submits the form, or an empty string if no error message. It also triggers the standard error message, such as "this is a required field". The result is that the user sees validation messages without actually submitting.
+ */
+ readonly validationMessage: string;
/**
- * Sets or retrieves whether to display a border for the frame.
- */
- frameBorder: string;
+ * Returns a ValidityState object that represents the validity states of an element.
+ */
+ readonly validity: ValidityState;
/**
- * Sets or retrieves the amount of additional space between the frames.
- */
- frameSpacing: any;
- name: string;
- onafterprint: (this: HTMLFrameSetElement, ev: Event) => any;
- onbeforeprint: (this: HTMLFrameSetElement, ev: Event) => any;
- onbeforeunload: (this: HTMLFrameSetElement, ev: BeforeUnloadEvent) => any;
+ * Returns the value of the data at the cursor's current position.
+ */
+ value: string;
+ valueAsDate: Date;
/**
- * Fires when the object loses the input focus.
- */
- onblur: (this: HTMLFrameSetElement, ev: FocusEvent) => any;
- onerror: (this: HTMLFrameSetElement, ev: ErrorEvent) => any;
+ * Returns the input field value as a number.
+ */
+ valueAsNumber: number;
/**
- * Fires when the object receives focus.
- */
- onfocus: (this: HTMLFrameSetElement, ev: FocusEvent) => any;
- onhashchange: (this: HTMLFrameSetElement, ev: HashChangeEvent) => any;
- onload: (this: HTMLFrameSetElement, ev: Event) => any;
- onmessage: (this: HTMLFrameSetElement, ev: MessageEvent) => any;
- onoffline: (this: HTMLFrameSetElement, ev: Event) => any;
- ononline: (this: HTMLFrameSetElement, ev: Event) => any;
- onorientationchange: (this: HTMLFrameSetElement, ev: Event) => any;
- onpagehide: (this: HTMLFrameSetElement, ev: PageTransitionEvent) => any;
- onpageshow: (this: HTMLFrameSetElement, ev: PageTransitionEvent) => any;
- onresize: (this: HTMLFrameSetElement, ev: UIEvent) => any;
- onstorage: (this: HTMLFrameSetElement, ev: StorageEvent) => any;
- onunload: (this: HTMLFrameSetElement, ev: Event) => any;
+ * Sets or retrieves the vertical margin for the object.
+ */
+ vspace: number;
+ webkitdirectory: boolean;
/**
- * Sets or retrieves the frame heights of the object.
- */
- rows: string;
- addEventListener(type: K, listener: (this: HTMLFrameSetElement, ev: HTMLFrameSetElementEventMap[K]) => any, useCapture?: boolean): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var HTMLFrameSetElement: {
- prototype: HTMLFrameSetElement;
- new(): HTMLFrameSetElement;
-}
-
-interface HTMLHRElement extends HTMLElement, DOML2DeprecatedColorProperty, DOML2DeprecatedSizeProperty {
+ * Sets or retrieves the width of the object.
+ */
+ width: string;
/**
- * Sets or retrieves how the object is aligned with adjacent text.
- */
- align: string;
+ * Returns whether an element will successfully validate based on forms validation rules and constraints.
+ */
+ readonly willValidate: boolean;
+ minLength: number;
/**
- * Sets or retrieves whether the horizontal rule is drawn with 3-D shading.
- */
- noShade: boolean;
+ * Returns whether a form will validate when it is submitted, without having to submit it.
+ */
+ checkValidity(): boolean;
/**
- * Sets or retrieves the width of the object.
- */
- width: number;
- addEventListener(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): void;
+ * Makes the selection equal to the current object.
+ */
+ select(): void;
+ /**
+ * Sets a custom error message that is displayed when a form is submitted.
+ * @param error Sets a custom error message that is displayed when a form is submitted.
+ */
+ setCustomValidity(error: string): void;
+ /**
+ * Sets the start and end positions of a selection in a text field.
+ * @param start The offset into the text field for the start of the selection.
+ * @param end The offset into the text field for the end of the selection.
+ */
+ setSelectionRange(start?: number, end?: number, direction?: string): void;
+ /**
+ * Decrements a range input control's value by the value given by the Step attribute. If the optional parameter is used, it will decrement the input control's step value multiplied by the parameter's value.
+ * @param n Value to decrement the value by.
+ */
+ stepDown(n?: number): void;
+ /**
+ * Increments a range input control's value by the value given by the Step attribute. If the optional parameter is used, will increment the input control's value by that value.
+ * @param n Value to increment the value by.
+ */
+ stepUp(n?: number): void;
+ addEventListener(type: K, listener: (this: HTMLInputElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
+ removeEventListener