2014-07-13 01:04:16 +02:00
|
|
|
/*! *****************************************************************************
|
|
|
|
Copyright (c) Microsoft Corporation. All rights reserved.
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
|
|
|
this file except in compliance with the License. You may obtain a copy of the
|
|
|
|
License at http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
|
|
|
|
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
|
|
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
|
|
|
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
|
|
|
MERCHANTABLITY OR NON-INFRINGEMENT.
|
|
|
|
|
|
|
|
See the Apache Version 2.0 License for specific language governing permissions
|
|
|
|
and limitations under the License.
|
|
|
|
***************************************************************************** */
|
|
|
|
|
|
|
|
/// <reference path="lib.core.d.ts" />
|
2015-08-22 00:20:08 +02:00
|
|
|
/////////////////////////////
|
2015-04-18 02:21:02 +02:00
|
|
|
/// ECMAScript Internationalization API
|
|
|
|
/////////////////////////////
|
|
|
|
|
|
|
|
declare module Intl {
|
|
|
|
interface CollatorOptions {
|
|
|
|
usage?: string;
|
|
|
|
localeMatcher?: string;
|
|
|
|
numeric?: boolean;
|
|
|
|
caseFirst?: string;
|
|
|
|
sensitivity?: string;
|
|
|
|
ignorePunctuation?: boolean;
|
|
|
|
}
|
|
|
|
|
|
|
|
interface ResolvedCollatorOptions {
|
|
|
|
locale: string;
|
|
|
|
usage: string;
|
|
|
|
sensitivity: string;
|
|
|
|
ignorePunctuation: boolean;
|
|
|
|
collation: string;
|
|
|
|
caseFirst: string;
|
|
|
|
numeric: boolean;
|
|
|
|
}
|
|
|
|
|
|
|
|
interface Collator {
|
|
|
|
compare(x: string, y: string): number;
|
|
|
|
resolvedOptions(): ResolvedCollatorOptions;
|
|
|
|
}
|
|
|
|
var Collator: {
|
|
|
|
new (locales?: string[], options?: CollatorOptions): Collator;
|
|
|
|
new (locale?: string, options?: CollatorOptions): Collator;
|
|
|
|
(locales?: string[], options?: CollatorOptions): Collator;
|
|
|
|
(locale?: string, options?: CollatorOptions): Collator;
|
|
|
|
supportedLocalesOf(locales: string[], options?: CollatorOptions): string[];
|
|
|
|
supportedLocalesOf(locale: string, options?: CollatorOptions): string[];
|
|
|
|
}
|
|
|
|
|
|
|
|
interface NumberFormatOptions {
|
|
|
|
localeMatcher?: string;
|
|
|
|
style?: string;
|
|
|
|
currency?: string;
|
|
|
|
currencyDisplay?: string;
|
|
|
|
useGrouping?: boolean;
|
2015-09-18 14:42:42 +02:00
|
|
|
minimumIntegerDigits?: number;
|
2015-06-22 16:42:40 +02:00
|
|
|
minimumFractionDigits?: number;
|
|
|
|
maximumFractionDigits?: number;
|
|
|
|
minimumSignificantDigits?: number;
|
|
|
|
maximumSignificantDigits?: number;
|
2015-04-18 02:21:02 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
interface ResolvedNumberFormatOptions {
|
|
|
|
locale: string;
|
|
|
|
numberingSystem: string;
|
|
|
|
style: string;
|
|
|
|
currency?: string;
|
|
|
|
currencyDisplay?: string;
|
2015-09-18 14:42:42 +02:00
|
|
|
minimumIntegerDigits: number;
|
2015-04-18 02:21:02 +02:00
|
|
|
minimumFractionDigits: number;
|
|
|
|
maximumFractionDigits: number;
|
|
|
|
minimumSignificantDigits?: number;
|
|
|
|
maximumSignificantDigits?: number;
|
|
|
|
useGrouping: boolean;
|
|
|
|
}
|
|
|
|
|
|
|
|
interface NumberFormat {
|
|
|
|
format(value: number): string;
|
|
|
|
resolvedOptions(): ResolvedNumberFormatOptions;
|
|
|
|
}
|
|
|
|
var NumberFormat: {
|
2015-06-02 02:40:44 +02:00
|
|
|
new (locales?: string[], options?: NumberFormatOptions): NumberFormat;
|
|
|
|
new (locale?: string, options?: NumberFormatOptions): NumberFormat;
|
|
|
|
(locales?: string[], options?: NumberFormatOptions): NumberFormat;
|
|
|
|
(locale?: string, options?: NumberFormatOptions): NumberFormat;
|
2015-04-18 02:21:02 +02:00
|
|
|
supportedLocalesOf(locales: string[], options?: NumberFormatOptions): string[];
|
|
|
|
supportedLocalesOf(locale: string, options?: NumberFormatOptions): string[];
|
|
|
|
}
|
|
|
|
|
|
|
|
interface DateTimeFormatOptions {
|
|
|
|
localeMatcher?: string;
|
|
|
|
weekday?: string;
|
|
|
|
era?: string;
|
|
|
|
year?: string;
|
|
|
|
month?: string;
|
|
|
|
day?: string;
|
|
|
|
hour?: string;
|
|
|
|
minute?: string;
|
|
|
|
second?: string;
|
|
|
|
timeZoneName?: string;
|
|
|
|
formatMatcher?: string;
|
|
|
|
hour12?: boolean;
|
2015-09-11 00:19:59 +02:00
|
|
|
timeZone?: string;
|
2015-04-18 02:21:02 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
interface ResolvedDateTimeFormatOptions {
|
|
|
|
locale: string;
|
|
|
|
calendar: string;
|
|
|
|
numberingSystem: string;
|
|
|
|
timeZone: string;
|
|
|
|
hour12?: boolean;
|
|
|
|
weekday?: string;
|
|
|
|
era?: string;
|
|
|
|
year?: string;
|
|
|
|
month?: string;
|
|
|
|
day?: string;
|
|
|
|
hour?: string;
|
|
|
|
minute?: string;
|
|
|
|
second?: string;
|
|
|
|
timeZoneName?: string;
|
|
|
|
}
|
|
|
|
|
|
|
|
interface DateTimeFormat {
|
2015-06-22 16:42:40 +02:00
|
|
|
format(date?: Date | number): string;
|
2015-04-18 02:21:02 +02:00
|
|
|
resolvedOptions(): ResolvedDateTimeFormatOptions;
|
|
|
|
}
|
|
|
|
var DateTimeFormat: {
|
2015-06-02 02:40:44 +02:00
|
|
|
new (locales?: string[], options?: DateTimeFormatOptions): DateTimeFormat;
|
|
|
|
new (locale?: string, options?: DateTimeFormatOptions): DateTimeFormat;
|
|
|
|
(locales?: string[], options?: DateTimeFormatOptions): DateTimeFormat;
|
|
|
|
(locale?: string, options?: DateTimeFormatOptions): DateTimeFormat;
|
2015-04-18 02:21:02 +02:00
|
|
|
supportedLocalesOf(locales: string[], options?: DateTimeFormatOptions): string[];
|
|
|
|
supportedLocalesOf(locale: string, options?: DateTimeFormatOptions): string[];
|
|
|
|
}
|
2014-07-13 01:04:16 +02:00
|
|
|
}
|
|
|
|
|
2015-04-18 02:21:02 +02:00
|
|
|
interface String {
|
|
|
|
/**
|
|
|
|
* Determines whether two strings are equivalent in the current locale.
|
|
|
|
* @param that String to compare to target string
|
|
|
|
* @param locales An array of locale strings that contain one or more language or locale tags. If you include more than one locale string, list them in descending order of priority so that the first entry is the preferred locale. If you omit this parameter, the default locale of the JavaScript runtime is used. This parameter must conform to BCP 47 standards; see the Intl.Collator object for details.
|
|
|
|
* @param options An object that contains one or more properties that specify comparison options. see the Intl.Collator object for details.
|
|
|
|
*/
|
|
|
|
localeCompare(that: string, locales: string[], options?: Intl.CollatorOptions): number;
|
2014-07-13 01:04:16 +02:00
|
|
|
|
2015-04-18 02:21:02 +02:00
|
|
|
/**
|
|
|
|
* Determines whether two strings are equivalent in the current locale.
|
|
|
|
* @param that String to compare to target string
|
|
|
|
* @param locale Locale tag. If you omit this parameter, the default locale of the JavaScript runtime is used. This parameter must conform to BCP 47 standards; see the Intl.Collator object for details.
|
|
|
|
* @param options An object that contains one or more properties that specify comparison options. see the Intl.Collator object for details.
|
|
|
|
*/
|
|
|
|
localeCompare(that: string, locale: string, options?: Intl.CollatorOptions): number;
|
2014-07-13 01:04:16 +02:00
|
|
|
}
|
|
|
|
|
2015-04-18 02:21:02 +02:00
|
|
|
interface Number {
|
|
|
|
/**
|
|
|
|
* Converts a number to a string by using the current or specified locale.
|
|
|
|
* @param locales An array of locale strings that contain one or more language or locale tags. If you include more than one locale string, list them in descending order of priority so that the first entry is the preferred locale. If you omit this parameter, the default locale of the JavaScript runtime is used.
|
|
|
|
* @param options An object that contains one or more properties that specify comparison options.
|
|
|
|
*/
|
|
|
|
toLocaleString(locales?: string[], options?: Intl.NumberFormatOptions): string;
|
2014-07-13 01:04:16 +02:00
|
|
|
|
2015-04-18 02:21:02 +02:00
|
|
|
/**
|
|
|
|
* Converts a number to a string by using the current or specified locale.
|
|
|
|
* @param locale Locale tag. If you omit this parameter, the default locale of the JavaScript runtime is used.
|
|
|
|
* @param options An object that contains one or more properties that specify comparison options.
|
|
|
|
*/
|
|
|
|
toLocaleString(locale?: string, options?: Intl.NumberFormatOptions): string;
|
2014-07-13 01:04:16 +02:00
|
|
|
}
|
2015-04-18 02:21:02 +02:00
|
|
|
|
|
|
|
interface Date {
|
|
|
|
/**
|
2015-09-11 00:19:59 +02:00
|
|
|
* Converts a date and time to a string by using the current or specified locale.
|
2015-04-18 02:21:02 +02:00
|
|
|
* @param locales An array of locale strings that contain one or more language or locale tags. If you include more than one locale string, list them in descending order of priority so that the first entry is the preferred locale. If you omit this parameter, the default locale of the JavaScript runtime is used.
|
|
|
|
* @param options An object that contains one or more properties that specify comparison options.
|
|
|
|
*/
|
|
|
|
toLocaleString(locales?: string[], options?: Intl.DateTimeFormatOptions): string;
|
|
|
|
/**
|
|
|
|
* Converts a date to a string by using the current or specified locale.
|
2015-09-11 00:19:59 +02:00
|
|
|
* @param locales An array of locale strings that contain one or more language or locale tags. If you include more than one locale string, list them in descending order of priority so that the first entry is the preferred locale. If you omit this parameter, the default locale of the JavaScript runtime is used.
|
|
|
|
* @param options An object that contains one or more properties that specify comparison options.
|
|
|
|
*/
|
|
|
|
toLocaleDateString(locales?: string[], options?: Intl.DateTimeFormatOptions): string;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Converts a time to a string by using the current or specified locale.
|
|
|
|
* @param locale Locale tag. If you omit this parameter, the default locale of the JavaScript runtime is used.
|
|
|
|
* @param options An object that contains one or more properties that specify comparison options.
|
|
|
|
*/
|
|
|
|
toLocaleTimeString(locale?: string[], options?: Intl.DateTimeFormatOptions): string;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Converts a date and time to a string by using the current or specified locale.
|
2015-04-18 02:21:02 +02:00
|
|
|
* @param locale Locale tag. If you omit this parameter, the default locale of the JavaScript runtime is used.
|
|
|
|
* @param options An object that contains one or more properties that specify comparison options.
|
|
|
|
*/
|
|
|
|
toLocaleString(locale?: string, options?: Intl.DateTimeFormatOptions): string;
|
2015-09-11 00:19:59 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Converts a date to a string by using the current or specified locale.
|
|
|
|
* @param locale Locale tag. If you omit this parameter, the default locale of the JavaScript runtime is used.
|
|
|
|
* @param options An object that contains one or more properties that specify comparison options.
|
|
|
|
*/
|
|
|
|
toLocaleDateString(locale?: string, options?: Intl.DateTimeFormatOptions): string;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Converts a time to a string by using the current or specified locale.
|
|
|
|
* @param locale Locale tag. If you omit this parameter, the default locale of the JavaScript runtime is used.
|
|
|
|
* @param options An object that contains one or more properties that specify comparison options.
|
|
|
|
*/
|
|
|
|
toLocaleTimeString(locale?: string, options?: Intl.DateTimeFormatOptions): string;
|
2014-07-13 01:04:16 +02:00
|
|
|
}
|
|
|
|
|
2015-04-18 02:21:02 +02:00
|
|
|
|
|
|
|
/////////////////////////////
|
|
|
|
/// IE Worker APIs
|
|
|
|
/////////////////////////////
|
|
|
|
|
2015-08-22 00:20:08 +02:00
|
|
|
interface EventInit {
|
|
|
|
bubbles?: boolean;
|
|
|
|
cancelable?: boolean;
|
|
|
|
}
|
|
|
|
|
2014-07-13 01:04:16 +02:00
|
|
|
interface EventListener {
|
|
|
|
(evt: Event): void;
|
|
|
|
}
|
|
|
|
|
2015-08-22 00:20:08 +02:00
|
|
|
interface AudioBuffer {
|
|
|
|
duration: number;
|
|
|
|
length: number;
|
|
|
|
numberOfChannels: number;
|
|
|
|
sampleRate: number;
|
2015-10-16 21:31:29 +02:00
|
|
|
getChannelData(channel: number): Float32Array;
|
2015-08-22 00:20:08 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
declare var AudioBuffer: {
|
|
|
|
prototype: AudioBuffer;
|
|
|
|
new(): AudioBuffer;
|
|
|
|
}
|
|
|
|
|
2015-04-18 02:21:02 +02:00
|
|
|
interface Blob {
|
|
|
|
size: number;
|
|
|
|
type: string;
|
|
|
|
msClose(): void;
|
|
|
|
msDetachStream(): any;
|
|
|
|
slice(start?: number, end?: number, contentType?: string): Blob;
|
2014-07-13 01:04:16 +02:00
|
|
|
}
|
2015-04-18 02:21:02 +02:00
|
|
|
|
|
|
|
declare var Blob: {
|
|
|
|
prototype: Blob;
|
|
|
|
new (blobParts?: any[], options?: BlobPropertyBag): Blob;
|
2014-07-13 01:04:16 +02:00
|
|
|
}
|
|
|
|
|
2015-04-18 02:21:02 +02:00
|
|
|
interface CloseEvent extends Event {
|
|
|
|
code: number;
|
|
|
|
reason: string;
|
|
|
|
wasClean: boolean;
|
|
|
|
initCloseEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, wasCleanArg: boolean, codeArg: number, reasonArg: string): void;
|
2014-07-13 01:04:16 +02:00
|
|
|
}
|
|
|
|
|
2015-04-18 02:21:02 +02:00
|
|
|
declare var CloseEvent: {
|
|
|
|
prototype: CloseEvent;
|
|
|
|
new(): CloseEvent;
|
2014-07-13 01:04:16 +02:00
|
|
|
}
|
2015-04-18 02:21:02 +02:00
|
|
|
|
|
|
|
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;
|
|
|
|
group(groupTitle?: string): void;
|
|
|
|
groupCollapsed(groupTitle?: string): void;
|
|
|
|
groupEnd(): void;
|
|
|
|
info(message?: any, ...optionalParams: any[]): void;
|
|
|
|
log(message?: any, ...optionalParams: any[]): void;
|
|
|
|
msIsIndependentlyComposed(element: any): boolean;
|
|
|
|
profile(reportName?: string): void;
|
|
|
|
profileEnd(): void;
|
|
|
|
select(element: any): void;
|
|
|
|
time(timerName?: string): void;
|
|
|
|
timeEnd(timerName?: string): void;
|
2016-01-21 23:14:31 +01:00
|
|
|
trace(message?: any, ...optionalParams: any[]): void;
|
2015-04-18 02:21:02 +02:00
|
|
|
warn(message?: any, ...optionalParams: any[]): void;
|
2014-07-13 01:04:16 +02:00
|
|
|
}
|
|
|
|
|
2015-04-18 02:21:02 +02:00
|
|
|
declare var Console: {
|
|
|
|
prototype: Console;
|
|
|
|
new(): Console;
|
2014-07-13 01:04:16 +02:00
|
|
|
}
|
2015-04-18 02:21:02 +02:00
|
|
|
|
2015-08-22 00:20:08 +02:00
|
|
|
interface Coordinates {
|
|
|
|
accuracy: number;
|
|
|
|
altitude: number;
|
|
|
|
altitudeAccuracy: number;
|
|
|
|
heading: number;
|
|
|
|
latitude: number;
|
|
|
|
longitude: number;
|
|
|
|
speed: number;
|
|
|
|
}
|
|
|
|
|
|
|
|
declare var Coordinates: {
|
|
|
|
prototype: Coordinates;
|
|
|
|
new(): Coordinates;
|
|
|
|
}
|
|
|
|
|
2015-04-18 02:21:02 +02:00
|
|
|
interface DOMError {
|
|
|
|
name: string;
|
|
|
|
toString(): string;
|
|
|
|
}
|
|
|
|
|
|
|
|
declare var DOMError: {
|
|
|
|
prototype: DOMError;
|
|
|
|
new(): DOMError;
|
2014-07-13 01:04:16 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
interface DOMException {
|
|
|
|
code: number;
|
|
|
|
message: string;
|
|
|
|
name: string;
|
|
|
|
toString(): string;
|
2015-04-18 02:21:02 +02:00
|
|
|
ABORT_ERR: number;
|
|
|
|
DATA_CLONE_ERR: number;
|
|
|
|
DOMSTRING_SIZE_ERR: number;
|
2014-07-13 01:04:16 +02:00
|
|
|
HIERARCHY_REQUEST_ERR: number;
|
2015-04-18 02:21:02 +02:00
|
|
|
INDEX_SIZE_ERR: number;
|
|
|
|
INUSE_ATTRIBUTE_ERR: number;
|
|
|
|
INVALID_ACCESS_ERR: number;
|
2014-07-13 01:04:16 +02:00
|
|
|
INVALID_CHARACTER_ERR: number;
|
2015-04-18 02:21:02 +02:00
|
|
|
INVALID_MODIFICATION_ERR: number;
|
|
|
|
INVALID_NODE_TYPE_ERR: number;
|
2014-07-13 01:04:16 +02:00
|
|
|
INVALID_STATE_ERR: number;
|
2015-04-18 02:21:02 +02:00
|
|
|
NAMESPACE_ERR: number;
|
2014-07-13 01:04:16 +02:00
|
|
|
NETWORK_ERR: number;
|
|
|
|
NOT_FOUND_ERR: number;
|
|
|
|
NOT_SUPPORTED_ERR: number;
|
2015-04-18 02:21:02 +02:00
|
|
|
NO_DATA_ALLOWED_ERR: number;
|
|
|
|
NO_MODIFICATION_ALLOWED_ERR: number;
|
|
|
|
PARSE_ERR: number;
|
|
|
|
QUOTA_EXCEEDED_ERR: number;
|
|
|
|
SECURITY_ERR: number;
|
|
|
|
SERIALIZE_ERR: number;
|
|
|
|
SYNTAX_ERR: number;
|
2014-07-13 01:04:16 +02:00
|
|
|
TIMEOUT_ERR: number;
|
2015-04-18 02:21:02 +02:00
|
|
|
TYPE_MISMATCH_ERR: number;
|
|
|
|
URL_MISMATCH_ERR: number;
|
|
|
|
VALIDATION_ERR: number;
|
|
|
|
WRONG_DOCUMENT_ERR: number;
|
2014-07-13 01:04:16 +02:00
|
|
|
}
|
2015-04-18 02:21:02 +02:00
|
|
|
|
2014-07-13 01:04:16 +02:00
|
|
|
declare var DOMException: {
|
|
|
|
prototype: DOMException;
|
|
|
|
new(): DOMException;
|
2015-04-18 02:21:02 +02:00
|
|
|
ABORT_ERR: number;
|
|
|
|
DATA_CLONE_ERR: number;
|
|
|
|
DOMSTRING_SIZE_ERR: number;
|
2014-07-13 01:04:16 +02:00
|
|
|
HIERARCHY_REQUEST_ERR: number;
|
2015-04-18 02:21:02 +02:00
|
|
|
INDEX_SIZE_ERR: number;
|
|
|
|
INUSE_ATTRIBUTE_ERR: number;
|
|
|
|
INVALID_ACCESS_ERR: number;
|
2014-07-13 01:04:16 +02:00
|
|
|
INVALID_CHARACTER_ERR: number;
|
2015-04-18 02:21:02 +02:00
|
|
|
INVALID_MODIFICATION_ERR: number;
|
|
|
|
INVALID_NODE_TYPE_ERR: number;
|
2014-07-13 01:04:16 +02:00
|
|
|
INVALID_STATE_ERR: number;
|
2015-04-18 02:21:02 +02:00
|
|
|
NAMESPACE_ERR: number;
|
2014-07-13 01:04:16 +02:00
|
|
|
NETWORK_ERR: number;
|
|
|
|
NOT_FOUND_ERR: number;
|
|
|
|
NOT_SUPPORTED_ERR: number;
|
2015-04-18 02:21:02 +02:00
|
|
|
NO_DATA_ALLOWED_ERR: number;
|
|
|
|
NO_MODIFICATION_ALLOWED_ERR: number;
|
|
|
|
PARSE_ERR: number;
|
|
|
|
QUOTA_EXCEEDED_ERR: number;
|
|
|
|
SECURITY_ERR: number;
|
|
|
|
SERIALIZE_ERR: number;
|
|
|
|
SYNTAX_ERR: number;
|
2014-07-13 01:04:16 +02:00
|
|
|
TIMEOUT_ERR: number;
|
2015-04-18 02:21:02 +02:00
|
|
|
TYPE_MISMATCH_ERR: number;
|
|
|
|
URL_MISMATCH_ERR: number;
|
|
|
|
VALIDATION_ERR: number;
|
|
|
|
WRONG_DOCUMENT_ERR: number;
|
|
|
|
}
|
|
|
|
|
|
|
|
interface DOMStringList {
|
|
|
|
length: number;
|
|
|
|
contains(str: string): boolean;
|
|
|
|
item(index: number): string;
|
|
|
|
[index: number]: string;
|
|
|
|
}
|
|
|
|
|
|
|
|
declare var DOMStringList: {
|
|
|
|
prototype: DOMStringList;
|
|
|
|
new(): DOMStringList;
|
2014-07-13 01:04:16 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
interface ErrorEvent extends Event {
|
|
|
|
colno: number;
|
|
|
|
error: any;
|
2015-04-18 02:21:02 +02:00
|
|
|
filename: string;
|
2014-07-13 01:04:16 +02:00
|
|
|
lineno: number;
|
|
|
|
message: string;
|
|
|
|
initErrorEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, messageArg: string, filenameArg: string, linenoArg: number): void;
|
|
|
|
}
|
2015-04-18 02:21:02 +02:00
|
|
|
|
2014-07-13 01:04:16 +02:00
|
|
|
declare var ErrorEvent: {
|
|
|
|
prototype: ErrorEvent;
|
|
|
|
new(): ErrorEvent;
|
|
|
|
}
|
|
|
|
|
2015-04-18 02:21:02 +02:00
|
|
|
interface Event {
|
|
|
|
bubbles: boolean;
|
|
|
|
cancelBubble: boolean;
|
|
|
|
cancelable: boolean;
|
|
|
|
currentTarget: EventTarget;
|
|
|
|
defaultPrevented: boolean;
|
|
|
|
eventPhase: number;
|
|
|
|
isTrusted: boolean;
|
|
|
|
returnValue: boolean;
|
|
|
|
srcElement: any;
|
|
|
|
target: EventTarget;
|
|
|
|
timeStamp: number;
|
|
|
|
type: string;
|
|
|
|
initEvent(eventTypeArg: string, canBubbleArg: boolean, cancelableArg: boolean): void;
|
|
|
|
preventDefault(): void;
|
|
|
|
stopImmediatePropagation(): void;
|
|
|
|
stopPropagation(): void;
|
|
|
|
AT_TARGET: number;
|
|
|
|
BUBBLING_PHASE: number;
|
|
|
|
CAPTURING_PHASE: number;
|
2014-07-13 01:04:16 +02:00
|
|
|
}
|
|
|
|
|
2015-04-18 02:21:02 +02:00
|
|
|
declare var Event: {
|
|
|
|
prototype: Event;
|
|
|
|
new(type: string, eventInitDict?: EventInit): Event;
|
|
|
|
AT_TARGET: number;
|
|
|
|
BUBBLING_PHASE: number;
|
|
|
|
CAPTURING_PHASE: number;
|
2014-07-13 01:04:16 +02:00
|
|
|
}
|
|
|
|
|
2015-04-18 02:21:02 +02:00
|
|
|
interface EventTarget {
|
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
|
|
|
|
dispatchEvent(evt: Event): boolean;
|
|
|
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
|
2014-07-13 01:04:16 +02:00
|
|
|
}
|
|
|
|
|
2015-04-18 02:21:02 +02:00
|
|
|
declare var EventTarget: {
|
|
|
|
prototype: EventTarget;
|
|
|
|
new(): EventTarget;
|
2014-07-13 01:04:16 +02:00
|
|
|
}
|
|
|
|
|
2015-04-18 02:21:02 +02:00
|
|
|
interface File extends Blob {
|
|
|
|
lastModifiedDate: any;
|
2014-07-13 01:04:16 +02:00
|
|
|
name: string;
|
|
|
|
}
|
|
|
|
|
2015-04-18 02:21:02 +02:00
|
|
|
declare var File: {
|
|
|
|
prototype: File;
|
2015-08-22 00:20:08 +02:00
|
|
|
new (parts: (ArrayBuffer | ArrayBufferView | Blob | string)[], filename: string, properties?: FilePropertyBag): File;
|
2014-07-13 01:04:16 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
interface FileList {
|
|
|
|
length: number;
|
|
|
|
item(index: number): File;
|
|
|
|
[index: number]: File;
|
|
|
|
}
|
2015-04-18 02:21:02 +02:00
|
|
|
|
2014-07-13 01:04:16 +02:00
|
|
|
declare var FileList: {
|
|
|
|
prototype: FileList;
|
|
|
|
new(): FileList;
|
|
|
|
}
|
|
|
|
|
2015-04-18 02:21:02 +02:00
|
|
|
interface FileReader extends EventTarget, MSBaseReader {
|
|
|
|
error: DOMError;
|
|
|
|
readAsArrayBuffer(blob: Blob): void;
|
|
|
|
readAsBinaryString(blob: Blob): void;
|
|
|
|
readAsDataURL(blob: Blob): void;
|
|
|
|
readAsText(blob: Blob, encoding?: string): void;
|
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
|
|
|
|
}
|
|
|
|
|
|
|
|
declare var FileReader: {
|
|
|
|
prototype: FileReader;
|
|
|
|
new(): FileReader;
|
|
|
|
}
|
|
|
|
|
2014-07-13 01:04:16 +02:00
|
|
|
interface IDBCursor {
|
|
|
|
direction: string;
|
|
|
|
key: any;
|
|
|
|
primaryKey: any;
|
2016-02-23 21:53:52 +01:00
|
|
|
source: IDBObjectStore | IDBIndex;
|
2014-07-13 01:04:16 +02:00
|
|
|
advance(count: number): void;
|
|
|
|
continue(key?: any): void;
|
2015-04-18 02:21:02 +02:00
|
|
|
delete(): IDBRequest;
|
2014-07-13 01:04:16 +02:00
|
|
|
update(value: any): IDBRequest;
|
|
|
|
NEXT: string;
|
|
|
|
NEXT_NO_DUPLICATE: string;
|
2015-04-18 02:21:02 +02:00
|
|
|
PREV: string;
|
|
|
|
PREV_NO_DUPLICATE: string;
|
2014-07-13 01:04:16 +02:00
|
|
|
}
|
2015-04-18 02:21:02 +02:00
|
|
|
|
2014-07-13 01:04:16 +02:00
|
|
|
declare var IDBCursor: {
|
|
|
|
prototype: IDBCursor;
|
|
|
|
new(): IDBCursor;
|
|
|
|
NEXT: string;
|
|
|
|
NEXT_NO_DUPLICATE: string;
|
2015-04-18 02:21:02 +02:00
|
|
|
PREV: string;
|
|
|
|
PREV_NO_DUPLICATE: string;
|
2014-07-13 01:04:16 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
interface IDBCursorWithValue extends IDBCursor {
|
|
|
|
value: any;
|
|
|
|
}
|
2015-04-18 02:21:02 +02:00
|
|
|
|
2014-07-13 01:04:16 +02:00
|
|
|
declare var IDBCursorWithValue: {
|
|
|
|
prototype: IDBCursorWithValue;
|
|
|
|
new(): IDBCursorWithValue;
|
|
|
|
}
|
|
|
|
|
2015-04-18 02:21:02 +02:00
|
|
|
interface IDBDatabase extends EventTarget {
|
|
|
|
name: string;
|
|
|
|
objectStoreNames: DOMStringList;
|
|
|
|
onabort: (ev: Event) => any;
|
|
|
|
onerror: (ev: Event) => any;
|
2016-01-21 23:14:31 +01:00
|
|
|
version: number;
|
2015-04-18 02:21:02 +02:00
|
|
|
close(): void;
|
2016-01-08 18:19:27 +01:00
|
|
|
createObjectStore(name: string, optionalParameters?: IDBObjectStoreParameters): IDBObjectStore;
|
2015-04-18 02:21:02 +02:00
|
|
|
deleteObjectStore(name: string): void;
|
2016-02-23 21:53:52 +01:00
|
|
|
transaction(storeNames: string | string[], mode?: string): IDBTransaction;
|
2015-08-22 00:20:08 +02:00
|
|
|
addEventListener(type: "abort", listener: (ev: Event) => any, useCapture?: boolean): void;
|
2014-07-13 01:04:16 +02:00
|
|
|
addEventListener(type: "error", listener: (ev: ErrorEvent) => any, useCapture?: boolean): void;
|
2015-04-18 02:21:02 +02:00
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
|
|
|
|
}
|
|
|
|
|
|
|
|
declare var IDBDatabase: {
|
|
|
|
prototype: IDBDatabase;
|
|
|
|
new(): IDBDatabase;
|
|
|
|
}
|
|
|
|
|
|
|
|
interface IDBFactory {
|
|
|
|
cmp(first: any, second: any): number;
|
|
|
|
deleteDatabase(name: string): IDBOpenDBRequest;
|
|
|
|
open(name: string, version?: number): IDBOpenDBRequest;
|
|
|
|
}
|
|
|
|
|
|
|
|
declare var IDBFactory: {
|
|
|
|
prototype: IDBFactory;
|
|
|
|
new(): IDBFactory;
|
2014-07-13 01:04:16 +02:00
|
|
|
}
|
2015-04-18 02:21:02 +02:00
|
|
|
|
|
|
|
interface IDBIndex {
|
2016-01-08 18:19:27 +01:00
|
|
|
keyPath: string | string[];
|
2015-04-18 02:21:02 +02:00
|
|
|
name: string;
|
|
|
|
objectStore: IDBObjectStore;
|
|
|
|
unique: boolean;
|
2016-01-08 18:19:27 +01:00
|
|
|
multiEntry: boolean;
|
2015-04-18 02:21:02 +02:00
|
|
|
count(key?: any): IDBRequest;
|
|
|
|
get(key: any): IDBRequest;
|
|
|
|
getKey(key: any): IDBRequest;
|
|
|
|
openCursor(range?: IDBKeyRange, direction?: string): IDBRequest;
|
|
|
|
openKeyCursor(range?: IDBKeyRange, direction?: string): IDBRequest;
|
2014-07-13 01:04:16 +02:00
|
|
|
}
|
|
|
|
|
2015-04-18 02:21:02 +02:00
|
|
|
declare var IDBIndex: {
|
|
|
|
prototype: IDBIndex;
|
|
|
|
new(): IDBIndex;
|
2014-07-13 01:04:16 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
interface IDBKeyRange {
|
|
|
|
lower: any;
|
|
|
|
lowerOpen: boolean;
|
2015-04-18 02:21:02 +02:00
|
|
|
upper: any;
|
|
|
|
upperOpen: boolean;
|
2014-07-13 01:04:16 +02:00
|
|
|
}
|
2015-04-18 02:21:02 +02:00
|
|
|
|
2014-07-13 01:04:16 +02:00
|
|
|
declare var IDBKeyRange: {
|
|
|
|
prototype: IDBKeyRange;
|
|
|
|
new(): IDBKeyRange;
|
|
|
|
bound(lower: any, upper: any, lowerOpen?: boolean, upperOpen?: boolean): IDBKeyRange;
|
|
|
|
lowerBound(bound: any, open?: boolean): IDBKeyRange;
|
2015-04-18 02:21:02 +02:00
|
|
|
only(value: any): IDBKeyRange;
|
2014-07-13 01:04:16 +02:00
|
|
|
upperBound(bound: any, open?: boolean): IDBKeyRange;
|
|
|
|
}
|
|
|
|
|
2015-04-18 02:21:02 +02:00
|
|
|
interface IDBObjectStore {
|
|
|
|
indexNames: DOMStringList;
|
2016-02-23 21:53:52 +01:00
|
|
|
keyPath: string | string[];
|
2015-04-18 02:21:02 +02:00
|
|
|
name: string;
|
|
|
|
transaction: IDBTransaction;
|
2016-02-23 21:53:52 +01:00
|
|
|
autoIncrement: boolean;
|
2015-04-18 02:21:02 +02:00
|
|
|
add(value: any, key?: any): IDBRequest;
|
|
|
|
clear(): IDBRequest;
|
|
|
|
count(key?: any): IDBRequest;
|
2016-01-08 18:19:27 +01:00
|
|
|
createIndex(name: string, keyPath: string | string[], optionalParameters?: IDBIndexParameters): IDBIndex;
|
2015-04-18 02:21:02 +02:00
|
|
|
delete(key: any): IDBRequest;
|
|
|
|
deleteIndex(indexName: string): void;
|
|
|
|
get(key: any): IDBRequest;
|
|
|
|
index(name: string): IDBIndex;
|
|
|
|
openCursor(range?: any, direction?: string): IDBRequest;
|
|
|
|
put(value: any, key?: any): IDBRequest;
|
|
|
|
}
|
|
|
|
|
|
|
|
declare var IDBObjectStore: {
|
|
|
|
prototype: IDBObjectStore;
|
|
|
|
new(): IDBObjectStore;
|
|
|
|
}
|
|
|
|
|
|
|
|
interface IDBOpenDBRequest extends IDBRequest {
|
|
|
|
onblocked: (ev: Event) => any;
|
|
|
|
onupgradeneeded: (ev: IDBVersionChangeEvent) => any;
|
|
|
|
addEventListener(type: "blocked", listener: (ev: Event) => any, useCapture?: boolean): void;
|
|
|
|
addEventListener(type: "error", listener: (ev: ErrorEvent) => any, useCapture?: boolean): void;
|
|
|
|
addEventListener(type: "success", listener: (ev: Event) => any, useCapture?: boolean): void;
|
|
|
|
addEventListener(type: "upgradeneeded", listener: (ev: IDBVersionChangeEvent) => any, useCapture?: boolean): void;
|
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
|
|
|
|
}
|
|
|
|
|
|
|
|
declare var IDBOpenDBRequest: {
|
|
|
|
prototype: IDBOpenDBRequest;
|
|
|
|
new(): IDBOpenDBRequest;
|
|
|
|
}
|
|
|
|
|
|
|
|
interface IDBRequest extends EventTarget {
|
|
|
|
error: DOMError;
|
|
|
|
onerror: (ev: Event) => any;
|
|
|
|
onsuccess: (ev: Event) => any;
|
|
|
|
readyState: string;
|
|
|
|
result: any;
|
2016-02-23 21:53:52 +01:00
|
|
|
source: IDBObjectStore | IDBIndex | IDBCursor;
|
2015-04-18 02:21:02 +02:00
|
|
|
transaction: IDBTransaction;
|
|
|
|
addEventListener(type: "error", listener: (ev: ErrorEvent) => any, useCapture?: boolean): void;
|
|
|
|
addEventListener(type: "success", listener: (ev: Event) => any, useCapture?: boolean): void;
|
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
|
|
|
|
}
|
|
|
|
|
|
|
|
declare var IDBRequest: {
|
|
|
|
prototype: IDBRequest;
|
|
|
|
new(): IDBRequest;
|
2014-07-13 01:04:16 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
interface IDBTransaction extends EventTarget {
|
|
|
|
db: IDBDatabase;
|
|
|
|
error: DOMError;
|
2015-04-18 02:21:02 +02:00
|
|
|
mode: string;
|
|
|
|
onabort: (ev: Event) => any;
|
|
|
|
oncomplete: (ev: Event) => any;
|
|
|
|
onerror: (ev: Event) => any;
|
2014-07-13 01:04:16 +02:00
|
|
|
abort(): void;
|
|
|
|
objectStore(name: string): IDBObjectStore;
|
|
|
|
READ_ONLY: string;
|
|
|
|
READ_WRITE: string;
|
2015-04-18 02:21:02 +02:00
|
|
|
VERSION_CHANGE: string;
|
2015-08-22 00:20:08 +02:00
|
|
|
addEventListener(type: "abort", listener: (ev: Event) => any, useCapture?: boolean): void;
|
2014-07-13 01:04:16 +02:00
|
|
|
addEventListener(type: "complete", listener: (ev: Event) => any, useCapture?: boolean): void;
|
|
|
|
addEventListener(type: "error", listener: (ev: ErrorEvent) => any, useCapture?: boolean): void;
|
2015-04-18 02:21:02 +02:00
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
|
2014-07-13 01:04:16 +02:00
|
|
|
}
|
2015-04-18 02:21:02 +02:00
|
|
|
|
2014-07-13 01:04:16 +02:00
|
|
|
declare var IDBTransaction: {
|
|
|
|
prototype: IDBTransaction;
|
|
|
|
new(): IDBTransaction;
|
|
|
|
READ_ONLY: string;
|
|
|
|
READ_WRITE: string;
|
2015-04-18 02:21:02 +02:00
|
|
|
VERSION_CHANGE: string;
|
2014-07-13 01:04:16 +02:00
|
|
|
}
|
|
|
|
|
2015-04-18 02:21:02 +02:00
|
|
|
interface IDBVersionChangeEvent extends Event {
|
|
|
|
newVersion: number;
|
|
|
|
oldVersion: number;
|
2014-07-13 01:04:16 +02:00
|
|
|
}
|
|
|
|
|
2015-04-18 02:21:02 +02:00
|
|
|
declare var IDBVersionChangeEvent: {
|
|
|
|
prototype: IDBVersionChangeEvent;
|
|
|
|
new(): IDBVersionChangeEvent;
|
2014-07-13 01:04:16 +02:00
|
|
|
}
|
|
|
|
|
2015-04-18 02:21:02 +02:00
|
|
|
interface ImageData {
|
2016-01-08 18:19:27 +01:00
|
|
|
data: Uint8ClampedArray;
|
2015-04-18 02:21:02 +02:00
|
|
|
height: number;
|
|
|
|
width: number;
|
2014-07-13 01:04:16 +02:00
|
|
|
}
|
|
|
|
|
2015-10-28 19:41:27 +01:00
|
|
|
declare var ImageData: {
|
2015-04-18 02:21:02 +02:00
|
|
|
prototype: ImageData;
|
2015-08-22 00:20:08 +02:00
|
|
|
new(width: number, height: number): ImageData;
|
|
|
|
new(array: Uint8ClampedArray, width: number, height: number): ImageData;
|
2014-07-13 01:04:16 +02:00
|
|
|
}
|
|
|
|
|
2015-04-18 02:21:02 +02:00
|
|
|
interface MSApp {
|
|
|
|
clearTemporaryWebDataAsync(): MSAppAsyncOperation;
|
|
|
|
createBlobFromRandomAccessStream(type: string, seeker: any): Blob;
|
|
|
|
createDataPackage(object: any): any;
|
|
|
|
createDataPackageFromSelection(): any;
|
|
|
|
createFileFromStorageFile(storageFile: any): File;
|
|
|
|
createStreamFromInputStream(type: string, inputStream: any): MSStream;
|
|
|
|
execAsyncAtPriority(asynchronousCallback: MSExecAtPriorityFunctionCallback, priority: string, ...args: any[]): void;
|
|
|
|
execAtPriority(synchronousCallback: MSExecAtPriorityFunctionCallback, priority: string, ...args: any[]): any;
|
|
|
|
getCurrentPriority(): string;
|
|
|
|
getHtmlPrintDocumentSourceAsync(htmlDoc: any): any;
|
|
|
|
getViewId(view: any): any;
|
|
|
|
isTaskScheduledAtPriorityOrHigher(priority: string): boolean;
|
|
|
|
pageHandlesAllApplicationActivations(enabled: boolean): void;
|
|
|
|
suppressSubdownloadCredentialPrompts(suppress: boolean): void;
|
|
|
|
terminateApp(exceptionObject: any): void;
|
|
|
|
CURRENT: string;
|
|
|
|
HIGH: string;
|
|
|
|
IDLE: string;
|
|
|
|
NORMAL: string;
|
2014-07-13 01:04:16 +02:00
|
|
|
}
|
2015-04-18 02:21:02 +02:00
|
|
|
declare var MSApp: MSApp;
|
2014-07-13 01:04:16 +02:00
|
|
|
|
2015-08-22 00:20:08 +02:00
|
|
|
interface MSAppAsyncOperation extends EventTarget {
|
|
|
|
error: DOMError;
|
|
|
|
oncomplete: (ev: Event) => any;
|
|
|
|
onerror: (ev: Event) => any;
|
|
|
|
readyState: number;
|
|
|
|
result: any;
|
|
|
|
start(): void;
|
|
|
|
COMPLETED: number;
|
|
|
|
ERROR: number;
|
|
|
|
STARTED: number;
|
|
|
|
addEventListener(type: "complete", listener: (ev: Event) => any, useCapture?: boolean): void;
|
|
|
|
addEventListener(type: "error", listener: (ev: ErrorEvent) => any, useCapture?: boolean): void;
|
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
|
|
|
|
}
|
|
|
|
|
|
|
|
declare var MSAppAsyncOperation: {
|
|
|
|
prototype: MSAppAsyncOperation;
|
|
|
|
new(): MSAppAsyncOperation;
|
|
|
|
COMPLETED: number;
|
|
|
|
ERROR: number;
|
|
|
|
STARTED: number;
|
|
|
|
}
|
|
|
|
|
2015-04-18 02:21:02 +02:00
|
|
|
interface MSBlobBuilder {
|
|
|
|
append(data: any, endings?: string): void;
|
|
|
|
getBlob(contentType?: string): Blob;
|
2014-07-13 01:04:16 +02:00
|
|
|
}
|
2015-04-18 02:21:02 +02:00
|
|
|
|
|
|
|
declare var MSBlobBuilder: {
|
|
|
|
prototype: MSBlobBuilder;
|
|
|
|
new(): MSBlobBuilder;
|
2014-07-13 01:04:16 +02:00
|
|
|
}
|
|
|
|
|
2015-04-18 02:21:02 +02:00
|
|
|
interface MSStream {
|
|
|
|
type: string;
|
|
|
|
msClose(): void;
|
|
|
|
msDetachStream(): any;
|
2014-07-13 01:04:16 +02:00
|
|
|
}
|
2015-04-18 02:21:02 +02:00
|
|
|
|
|
|
|
declare var MSStream: {
|
|
|
|
prototype: MSStream;
|
|
|
|
new(): MSStream;
|
2014-07-13 01:04:16 +02:00
|
|
|
}
|
|
|
|
|
2015-04-18 02:21:02 +02:00
|
|
|
interface MSStreamReader extends EventTarget, MSBaseReader {
|
2014-07-13 01:04:16 +02:00
|
|
|
error: DOMError;
|
2015-04-18 02:21:02 +02:00
|
|
|
readAsArrayBuffer(stream: MSStream, size?: number): void;
|
|
|
|
readAsBinaryString(stream: MSStream, size?: number): void;
|
|
|
|
readAsBlob(stream: MSStream, size?: number): void;
|
|
|
|
readAsDataURL(stream: MSStream, size?: number): void;
|
|
|
|
readAsText(stream: MSStream, encoding?: string, size?: number): void;
|
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
|
2014-07-13 01:04:16 +02:00
|
|
|
}
|
2015-04-18 02:21:02 +02:00
|
|
|
|
|
|
|
declare var MSStreamReader: {
|
|
|
|
prototype: MSStreamReader;
|
|
|
|
new(): MSStreamReader;
|
2014-07-13 01:04:16 +02:00
|
|
|
}
|
|
|
|
|
2015-08-22 00:20:08 +02:00
|
|
|
interface MediaQueryList {
|
|
|
|
matches: boolean;
|
|
|
|
media: string;
|
|
|
|
addListener(listener: MediaQueryListListener): void;
|
|
|
|
removeListener(listener: MediaQueryListListener): void;
|
|
|
|
}
|
|
|
|
|
|
|
|
declare var MediaQueryList: {
|
|
|
|
prototype: MediaQueryList;
|
|
|
|
new(): MediaQueryList;
|
|
|
|
}
|
|
|
|
|
2015-04-18 02:21:02 +02:00
|
|
|
interface MessageChannel {
|
|
|
|
port1: MessagePort;
|
|
|
|
port2: MessagePort;
|
2014-09-09 21:26:49 +02:00
|
|
|
}
|
|
|
|
|
2015-04-18 02:21:02 +02:00
|
|
|
declare var MessageChannel: {
|
|
|
|
prototype: MessageChannel;
|
|
|
|
new(): MessageChannel;
|
2014-07-13 01:04:16 +02:00
|
|
|
}
|
2015-04-18 02:21:02 +02:00
|
|
|
|
|
|
|
interface MessageEvent extends Event {
|
|
|
|
data: any;
|
|
|
|
origin: string;
|
|
|
|
ports: any;
|
|
|
|
source: any;
|
|
|
|
initMessageEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, dataArg: any, originArg: string, lastEventIdArg: string, sourceArg: any): void;
|
2014-07-13 01:04:16 +02:00
|
|
|
}
|
|
|
|
|
2015-04-18 02:21:02 +02:00
|
|
|
declare var MessageEvent: {
|
|
|
|
prototype: MessageEvent;
|
2015-08-27 23:03:19 +02:00
|
|
|
new(type: string, eventInitDict?: MessageEventInit): MessageEvent;
|
2014-07-13 01:04:16 +02:00
|
|
|
}
|
2015-04-18 02:21:02 +02:00
|
|
|
|
|
|
|
interface MessagePort extends EventTarget {
|
|
|
|
onmessage: (ev: MessageEvent) => any;
|
|
|
|
close(): void;
|
|
|
|
postMessage(message?: any, ports?: any): void;
|
|
|
|
start(): void;
|
|
|
|
addEventListener(type: "message", listener: (ev: MessageEvent) => any, useCapture?: boolean): void;
|
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
|
2014-07-13 01:04:16 +02:00
|
|
|
}
|
|
|
|
|
2015-04-18 02:21:02 +02:00
|
|
|
declare var MessagePort: {
|
|
|
|
prototype: MessagePort;
|
|
|
|
new(): MessagePort;
|
2014-07-13 01:04:16 +02:00
|
|
|
}
|
|
|
|
|
2015-08-22 00:20:08 +02:00
|
|
|
interface Position {
|
|
|
|
coords: Coordinates;
|
|
|
|
timestamp: number;
|
|
|
|
}
|
|
|
|
|
|
|
|
declare var Position: {
|
|
|
|
prototype: Position;
|
|
|
|
new(): Position;
|
|
|
|
}
|
|
|
|
|
|
|
|
interface PositionError {
|
|
|
|
code: number;
|
|
|
|
message: string;
|
|
|
|
toString(): string;
|
|
|
|
PERMISSION_DENIED: number;
|
|
|
|
POSITION_UNAVAILABLE: number;
|
|
|
|
TIMEOUT: number;
|
|
|
|
}
|
|
|
|
|
|
|
|
declare var PositionError: {
|
|
|
|
prototype: PositionError;
|
|
|
|
new(): PositionError;
|
|
|
|
PERMISSION_DENIED: number;
|
|
|
|
POSITION_UNAVAILABLE: number;
|
|
|
|
TIMEOUT: number;
|
|
|
|
}
|
|
|
|
|
2015-04-18 02:21:02 +02:00
|
|
|
interface ProgressEvent extends Event {
|
|
|
|
lengthComputable: boolean;
|
|
|
|
loaded: number;
|
|
|
|
total: number;
|
|
|
|
initProgressEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, lengthComputableArg: boolean, loadedArg: number, totalArg: number): void;
|
2014-07-13 01:04:16 +02:00
|
|
|
}
|
2015-04-18 02:21:02 +02:00
|
|
|
|
|
|
|
declare var ProgressEvent: {
|
|
|
|
prototype: ProgressEvent;
|
2015-08-27 23:03:19 +02:00
|
|
|
new(type: string, eventInitDict?: ProgressEventInit): ProgressEvent;
|
2014-07-13 01:04:16 +02:00
|
|
|
}
|
|
|
|
|
2015-04-18 02:21:02 +02:00
|
|
|
interface WebSocket extends EventTarget {
|
|
|
|
binaryType: string;
|
|
|
|
bufferedAmount: number;
|
|
|
|
extensions: string;
|
|
|
|
onclose: (ev: CloseEvent) => any;
|
|
|
|
onerror: (ev: Event) => any;
|
|
|
|
onmessage: (ev: MessageEvent) => any;
|
|
|
|
onopen: (ev: Event) => any;
|
|
|
|
protocol: string;
|
|
|
|
readyState: number;
|
|
|
|
url: string;
|
|
|
|
close(code?: number, reason?: string): void;
|
|
|
|
send(data: any): void;
|
|
|
|
CLOSED: number;
|
|
|
|
CLOSING: number;
|
|
|
|
CONNECTING: number;
|
|
|
|
OPEN: number;
|
|
|
|
addEventListener(type: "close", listener: (ev: CloseEvent) => any, useCapture?: boolean): void;
|
2014-07-13 01:04:16 +02:00
|
|
|
addEventListener(type: "error", listener: (ev: ErrorEvent) => any, useCapture?: boolean): void;
|
2015-04-18 02:21:02 +02:00
|
|
|
addEventListener(type: "message", listener: (ev: MessageEvent) => any, useCapture?: boolean): void;
|
|
|
|
addEventListener(type: "open", listener: (ev: Event) => any, useCapture?: boolean): void;
|
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
|
2014-07-13 01:04:16 +02:00
|
|
|
}
|
|
|
|
|
2015-04-18 02:21:02 +02:00
|
|
|
declare var WebSocket: {
|
|
|
|
prototype: WebSocket;
|
2015-07-13 20:13:12 +02:00
|
|
|
new(url: string, protocols?: string | string[]): WebSocket;
|
2015-04-18 02:21:02 +02:00
|
|
|
CLOSED: number;
|
|
|
|
CLOSING: number;
|
|
|
|
CONNECTING: number;
|
|
|
|
OPEN: number;
|
2014-07-13 01:04:16 +02:00
|
|
|
}
|
|
|
|
|
2015-04-18 02:21:02 +02:00
|
|
|
interface Worker extends EventTarget, AbstractWorker {
|
2014-07-13 01:04:16 +02:00
|
|
|
onmessage: (ev: MessageEvent) => any;
|
|
|
|
postMessage(message: any, ports?: any): void;
|
|
|
|
terminate(): void;
|
|
|
|
addEventListener(type: "error", listener: (ev: ErrorEvent) => any, useCapture?: boolean): void;
|
|
|
|
addEventListener(type: "message", listener: (ev: MessageEvent) => any, useCapture?: boolean): void;
|
2015-04-18 02:21:02 +02:00
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
|
2014-07-13 01:04:16 +02:00
|
|
|
}
|
2015-04-18 02:21:02 +02:00
|
|
|
|
2014-07-13 01:04:16 +02:00
|
|
|
declare var Worker: {
|
|
|
|
prototype: Worker;
|
|
|
|
new(stringUrl: string): Worker;
|
|
|
|
}
|
|
|
|
|
2015-04-18 02:21:02 +02:00
|
|
|
interface XMLHttpRequest extends EventTarget, XMLHttpRequestEventTarget {
|
|
|
|
msCaching: string;
|
|
|
|
onreadystatechange: (ev: ProgressEvent) => any;
|
|
|
|
readyState: number;
|
|
|
|
response: any;
|
|
|
|
responseBody: any;
|
|
|
|
responseText: string;
|
|
|
|
responseType: string;
|
|
|
|
responseXML: any;
|
|
|
|
status: number;
|
|
|
|
statusText: string;
|
|
|
|
timeout: number;
|
|
|
|
upload: XMLHttpRequestUpload;
|
|
|
|
withCredentials: boolean;
|
|
|
|
abort(): void;
|
|
|
|
getAllResponseHeaders(): string;
|
|
|
|
getResponseHeader(header: string): string;
|
|
|
|
msCachingEnabled(): boolean;
|
|
|
|
open(method: string, url: string, async?: boolean, user?: string, password?: string): void;
|
|
|
|
overrideMimeType(mime: string): void;
|
|
|
|
send(data?: string): void;
|
|
|
|
send(data?: any): void;
|
|
|
|
setRequestHeader(header: string, value: string): void;
|
|
|
|
DONE: number;
|
|
|
|
HEADERS_RECEIVED: number;
|
|
|
|
LOADING: number;
|
|
|
|
OPENED: number;
|
|
|
|
UNSENT: number;
|
2015-08-22 00:20:08 +02:00
|
|
|
addEventListener(type: "abort", listener: (ev: Event) => any, useCapture?: boolean): void;
|
2015-04-18 02:21:02 +02:00
|
|
|
addEventListener(type: "error", listener: (ev: ErrorEvent) => any, useCapture?: boolean): void;
|
|
|
|
addEventListener(type: "load", listener: (ev: Event) => any, useCapture?: boolean): void;
|
|
|
|
addEventListener(type: "loadend", listener: (ev: ProgressEvent) => any, useCapture?: boolean): void;
|
|
|
|
addEventListener(type: "loadstart", listener: (ev: Event) => any, useCapture?: boolean): void;
|
|
|
|
addEventListener(type: "progress", listener: (ev: ProgressEvent) => any, useCapture?: boolean): void;
|
|
|
|
addEventListener(type: "readystatechange", listener: (ev: ProgressEvent) => any, useCapture?: boolean): void;
|
|
|
|
addEventListener(type: "timeout", listener: (ev: ProgressEvent) => any, useCapture?: boolean): void;
|
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
|
2014-07-13 01:04:16 +02:00
|
|
|
}
|
|
|
|
|
2015-04-18 02:21:02 +02:00
|
|
|
declare var XMLHttpRequest: {
|
|
|
|
prototype: XMLHttpRequest;
|
|
|
|
new(): XMLHttpRequest;
|
|
|
|
DONE: number;
|
|
|
|
HEADERS_RECEIVED: number;
|
|
|
|
LOADING: number;
|
|
|
|
OPENED: number;
|
|
|
|
UNSENT: number;
|
|
|
|
create(): XMLHttpRequest;
|
2014-07-13 01:04:16 +02:00
|
|
|
}
|
2015-04-18 02:21:02 +02:00
|
|
|
|
2015-08-22 00:20:08 +02:00
|
|
|
interface XMLHttpRequestUpload extends EventTarget, XMLHttpRequestEventTarget {
|
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
|
|
|
|
}
|
|
|
|
|
|
|
|
declare var XMLHttpRequestUpload: {
|
|
|
|
prototype: XMLHttpRequestUpload;
|
|
|
|
new(): XMLHttpRequestUpload;
|
|
|
|
}
|
|
|
|
|
2015-04-18 02:21:02 +02:00
|
|
|
interface AbstractWorker {
|
|
|
|
onerror: (ev: Event) => any;
|
|
|
|
addEventListener(type: "error", listener: (ev: ErrorEvent) => any, useCapture?: boolean): void;
|
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
|
2014-07-13 01:04:16 +02:00
|
|
|
}
|
|
|
|
|
2015-04-18 02:21:02 +02:00
|
|
|
interface MSBaseReader {
|
|
|
|
onabort: (ev: Event) => any;
|
|
|
|
onerror: (ev: Event) => any;
|
|
|
|
onload: (ev: Event) => any;
|
|
|
|
onloadend: (ev: ProgressEvent) => any;
|
|
|
|
onloadstart: (ev: Event) => any;
|
|
|
|
onprogress: (ev: ProgressEvent) => any;
|
|
|
|
readyState: number;
|
|
|
|
result: any;
|
|
|
|
abort(): void;
|
|
|
|
DONE: number;
|
|
|
|
EMPTY: number;
|
|
|
|
LOADING: number;
|
2015-08-22 00:20:08 +02:00
|
|
|
addEventListener(type: "abort", listener: (ev: Event) => any, useCapture?: boolean): void;
|
2015-04-18 02:21:02 +02:00
|
|
|
addEventListener(type: "error", listener: (ev: ErrorEvent) => any, useCapture?: boolean): void;
|
|
|
|
addEventListener(type: "load", listener: (ev: Event) => any, useCapture?: boolean): void;
|
|
|
|
addEventListener(type: "loadend", listener: (ev: ProgressEvent) => any, useCapture?: boolean): void;
|
|
|
|
addEventListener(type: "loadstart", listener: (ev: Event) => any, useCapture?: boolean): void;
|
|
|
|
addEventListener(type: "progress", listener: (ev: ProgressEvent) => any, useCapture?: boolean): void;
|
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
|
2014-07-13 01:04:16 +02:00
|
|
|
}
|
2015-04-18 02:21:02 +02:00
|
|
|
|
|
|
|
interface NavigatorID {
|
|
|
|
appName: string;
|
|
|
|
appVersion: string;
|
|
|
|
platform: string;
|
|
|
|
product: string;
|
|
|
|
productSub: string;
|
|
|
|
userAgent: string;
|
|
|
|
vendor: string;
|
|
|
|
vendorSub: string;
|
|
|
|
}
|
|
|
|
|
|
|
|
interface NavigatorOnLine {
|
|
|
|
onLine: boolean;
|
|
|
|
}
|
|
|
|
|
|
|
|
interface WindowBase64 {
|
|
|
|
atob(encodedString: string): string;
|
|
|
|
btoa(rawString: string): string;
|
|
|
|
}
|
|
|
|
|
|
|
|
interface WindowConsole {
|
|
|
|
console: Console;
|
|
|
|
}
|
|
|
|
|
|
|
|
interface XMLHttpRequestEventTarget {
|
|
|
|
onabort: (ev: Event) => any;
|
|
|
|
onerror: (ev: Event) => any;
|
|
|
|
onload: (ev: Event) => any;
|
|
|
|
onloadend: (ev: ProgressEvent) => any;
|
|
|
|
onloadstart: (ev: Event) => any;
|
|
|
|
onprogress: (ev: ProgressEvent) => any;
|
|
|
|
ontimeout: (ev: ProgressEvent) => any;
|
2015-08-22 00:20:08 +02:00
|
|
|
addEventListener(type: "abort", listener: (ev: Event) => any, useCapture?: boolean): void;
|
2015-04-18 02:21:02 +02:00
|
|
|
addEventListener(type: "error", listener: (ev: ErrorEvent) => any, useCapture?: boolean): void;
|
|
|
|
addEventListener(type: "load", listener: (ev: Event) => any, useCapture?: boolean): void;
|
|
|
|
addEventListener(type: "loadend", listener: (ev: ProgressEvent) => any, useCapture?: boolean): void;
|
|
|
|
addEventListener(type: "loadstart", listener: (ev: Event) => any, useCapture?: boolean): void;
|
|
|
|
addEventListener(type: "progress", listener: (ev: ProgressEvent) => any, useCapture?: boolean): void;
|
|
|
|
addEventListener(type: "timeout", listener: (ev: ProgressEvent) => any, useCapture?: boolean): void;
|
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
|
2014-07-13 01:04:16 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
interface FileReaderSync {
|
|
|
|
readAsArrayBuffer(blob: Blob): any;
|
2015-04-18 02:21:02 +02:00
|
|
|
readAsBinaryString(blob: Blob): void;
|
2014-07-13 01:04:16 +02:00
|
|
|
readAsDataURL(blob: Blob): string;
|
|
|
|
readAsText(blob: Blob, encoding?: string): string;
|
|
|
|
}
|
2015-04-18 02:21:02 +02:00
|
|
|
|
2014-07-13 01:04:16 +02:00
|
|
|
declare var FileReaderSync: {
|
|
|
|
prototype: FileReaderSync;
|
|
|
|
new(): FileReaderSync;
|
|
|
|
}
|
|
|
|
|
2015-04-18 02:21:02 +02:00
|
|
|
interface WorkerGlobalScope extends EventTarget, WorkerUtils, DedicatedWorkerGlobalScope, WindowConsole {
|
2014-07-13 01:04:16 +02:00
|
|
|
location: WorkerLocation;
|
2015-04-18 02:21:02 +02:00
|
|
|
onerror: (ev: Event) => any;
|
2014-07-13 01:04:16 +02:00
|
|
|
self: WorkerGlobalScope;
|
|
|
|
close(): void;
|
2015-04-18 02:21:02 +02:00
|
|
|
msWriteProfilerMark(profilerMarkName: string): void;
|
2014-07-13 01:04:16 +02:00
|
|
|
toString(): string;
|
2015-04-18 02:21:02 +02:00
|
|
|
addEventListener(type: "error", listener: (ev: ErrorEvent) => any, useCapture?: boolean): void;
|
|
|
|
addEventListener(type: "message", listener: (ev: MessageEvent) => any, useCapture?: boolean): void;
|
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
|
2014-07-13 01:04:16 +02:00
|
|
|
}
|
2015-04-18 02:21:02 +02:00
|
|
|
|
2014-07-13 01:04:16 +02:00
|
|
|
declare var WorkerGlobalScope: {
|
|
|
|
prototype: WorkerGlobalScope;
|
|
|
|
new(): WorkerGlobalScope;
|
|
|
|
}
|
|
|
|
|
2015-04-18 02:21:02 +02:00
|
|
|
interface WorkerLocation {
|
|
|
|
hash: string;
|
|
|
|
host: string;
|
|
|
|
hostname: string;
|
|
|
|
href: string;
|
|
|
|
pathname: string;
|
|
|
|
port: string;
|
|
|
|
protocol: string;
|
|
|
|
search: string;
|
|
|
|
toString(): string;
|
|
|
|
}
|
|
|
|
|
|
|
|
declare var WorkerLocation: {
|
|
|
|
prototype: WorkerLocation;
|
|
|
|
new(): WorkerLocation;
|
2014-07-13 01:04:16 +02:00
|
|
|
}
|
|
|
|
|
2015-04-18 02:21:02 +02:00
|
|
|
interface WorkerNavigator extends Object, NavigatorID, NavigatorOnLine {
|
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
|
2014-07-13 01:04:16 +02:00
|
|
|
}
|
2015-04-18 02:21:02 +02:00
|
|
|
|
2014-07-13 01:04:16 +02:00
|
|
|
declare var WorkerNavigator: {
|
|
|
|
prototype: WorkerNavigator;
|
|
|
|
new(): WorkerNavigator;
|
|
|
|
}
|
|
|
|
|
2015-04-18 02:21:02 +02:00
|
|
|
interface DedicatedWorkerGlobalScope {
|
|
|
|
onmessage: (ev: MessageEvent) => any;
|
|
|
|
postMessage(data: any): void;
|
|
|
|
addEventListener(type: "message", listener: (ev: MessageEvent) => any, useCapture?: boolean): void;
|
|
|
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
|
|
|
|
}
|
|
|
|
|
|
|
|
interface WorkerUtils extends Object, WindowBase64 {
|
2014-07-13 01:04:16 +02:00
|
|
|
indexedDB: IDBFactory;
|
2015-04-18 02:21:02 +02:00
|
|
|
msIndexedDB: IDBFactory;
|
|
|
|
navigator: WorkerNavigator;
|
2014-07-13 01:04:16 +02:00
|
|
|
clearImmediate(handle: number): void;
|
2015-04-18 02:21:02 +02:00
|
|
|
clearInterval(handle: number): void;
|
2014-07-13 01:04:16 +02:00
|
|
|
clearTimeout(handle: number): void;
|
2015-04-18 02:21:02 +02:00
|
|
|
importScripts(...urls: string[]): void;
|
2014-07-13 01:04:16 +02:00
|
|
|
setImmediate(handler: any, ...args: any[]): number;
|
|
|
|
setInterval(handler: any, timeout?: any, ...args: any[]): number;
|
2015-04-18 02:21:02 +02:00
|
|
|
setTimeout(handler: any, timeout?: any, ...args: any[]): number;
|
|
|
|
}
|
|
|
|
|
2016-01-08 18:19:27 +01:00
|
|
|
interface IDBObjectStoreParameters {
|
|
|
|
keyPath?: string | string[];
|
|
|
|
autoIncrement?: boolean;
|
|
|
|
}
|
|
|
|
|
|
|
|
interface IDBIndexParameters {
|
|
|
|
unique?: boolean;
|
|
|
|
multiEntry?: boolean;
|
|
|
|
}
|
|
|
|
|
2015-04-18 02:21:02 +02:00
|
|
|
interface BlobPropertyBag {
|
|
|
|
type?: string;
|
|
|
|
endings?: string;
|
2014-07-13 01:04:16 +02:00
|
|
|
}
|
|
|
|
|
2015-08-22 00:20:08 +02:00
|
|
|
interface FilePropertyBag {
|
|
|
|
type?: string;
|
|
|
|
lastModified?: number;
|
|
|
|
}
|
|
|
|
|
2015-04-18 02:21:02 +02:00
|
|
|
interface EventListenerObject {
|
|
|
|
handleEvent(evt: Event): void;
|
|
|
|
}
|
|
|
|
|
2015-08-27 23:03:19 +02:00
|
|
|
interface MessageEventInit extends EventInit {
|
|
|
|
data?: any;
|
|
|
|
origin?: string;
|
|
|
|
lastEventId?: string;
|
|
|
|
channel?: string;
|
|
|
|
source?: any;
|
|
|
|
ports?: MessagePort[];
|
|
|
|
}
|
|
|
|
|
|
|
|
interface ProgressEventInit extends EventInit {
|
|
|
|
lengthComputable?: boolean;
|
|
|
|
loaded?: number;
|
|
|
|
total?: number;
|
|
|
|
}
|
|
|
|
|
2015-10-16 21:31:29 +02:00
|
|
|
declare type EventListenerOrEventListenerObject = EventListener | EventListenerObject;
|
|
|
|
|
2015-04-18 02:21:02 +02:00
|
|
|
interface ErrorEventHandler {
|
2015-08-22 00:20:08 +02:00
|
|
|
(message: string, filename?: string, lineno?: number, colno?: number, error?:Error): void;
|
2015-04-18 02:21:02 +02:00
|
|
|
}
|
|
|
|
interface PositionCallback {
|
|
|
|
(position: Position): void;
|
|
|
|
}
|
|
|
|
interface PositionErrorCallback {
|
|
|
|
(error: PositionError): void;
|
|
|
|
}
|
|
|
|
interface MediaQueryListListener {
|
|
|
|
(mql: MediaQueryList): void;
|
|
|
|
}
|
|
|
|
interface MSLaunchUriCallback {
|
|
|
|
(): void;
|
|
|
|
}
|
2015-08-22 00:20:08 +02:00
|
|
|
interface MSUnsafeFunctionCallback {
|
|
|
|
(): any;
|
2015-04-18 02:21:02 +02:00
|
|
|
}
|
2015-08-22 00:20:08 +02:00
|
|
|
interface MSExecAtPriorityFunctionCallback {
|
|
|
|
(...args: any[]): any;
|
2015-04-18 02:21:02 +02:00
|
|
|
}
|
|
|
|
interface DecodeSuccessCallback {
|
|
|
|
(decodedData: AudioBuffer): void;
|
|
|
|
}
|
|
|
|
interface DecodeErrorCallback {
|
2016-02-23 21:53:52 +01:00
|
|
|
(error: DOMException): void;
|
2015-04-18 02:21:02 +02:00
|
|
|
}
|
|
|
|
interface FunctionStringCallback {
|
|
|
|
(data: string): void;
|
|
|
|
}
|
2014-07-13 01:04:16 +02:00
|
|
|
declare var location: WorkerLocation;
|
2015-04-18 02:21:02 +02:00
|
|
|
declare var onerror: (ev: Event) => any;
|
2014-07-13 01:04:16 +02:00
|
|
|
declare var self: WorkerGlobalScope;
|
|
|
|
declare function close(): void;
|
2015-04-18 02:21:02 +02:00
|
|
|
declare function msWriteProfilerMark(profilerMarkName: string): void;
|
2014-07-13 01:04:16 +02:00
|
|
|
declare function toString(): string;
|
2015-04-18 02:21:02 +02:00
|
|
|
declare function addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
|
2014-07-13 01:04:16 +02:00
|
|
|
declare function dispatchEvent(evt: Event): boolean;
|
2015-04-18 02:21:02 +02:00
|
|
|
declare function removeEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
|
2014-07-13 01:04:16 +02:00
|
|
|
declare var indexedDB: IDBFactory;
|
2015-04-18 02:21:02 +02:00
|
|
|
declare var msIndexedDB: IDBFactory;
|
|
|
|
declare var navigator: WorkerNavigator;
|
2014-07-13 01:04:16 +02:00
|
|
|
declare function clearImmediate(handle: number): void;
|
2015-04-18 02:21:02 +02:00
|
|
|
declare function clearInterval(handle: number): void;
|
2014-07-13 01:04:16 +02:00
|
|
|
declare function clearTimeout(handle: number): void;
|
2015-04-18 02:21:02 +02:00
|
|
|
declare function importScripts(...urls: string[]): void;
|
2014-07-13 01:04:16 +02:00
|
|
|
declare function setImmediate(handler: any, ...args: any[]): number;
|
|
|
|
declare function setInterval(handler: any, timeout?: any, ...args: any[]): number;
|
2015-04-18 02:21:02 +02:00
|
|
|
declare function setTimeout(handler: any, timeout?: any, ...args: any[]): number;
|
2014-07-13 01:04:16 +02:00
|
|
|
declare function atob(encodedString: string): string;
|
2015-04-18 02:21:02 +02:00
|
|
|
declare function btoa(rawString: string): string;
|
|
|
|
declare var onmessage: (ev: MessageEvent) => any;
|
|
|
|
declare function postMessage(data: any): void;
|
|
|
|
declare var console: Console;
|
|
|
|
declare function addEventListener(type: "error", listener: (ev: ErrorEvent) => any, useCapture?: boolean): void;
|
|
|
|
declare function addEventListener(type: "message", listener: (ev: MessageEvent) => any, useCapture?: boolean): void;
|
2015-09-21 11:06:36 +02:00
|
|
|
declare function addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
|