From 7770fbbba4fabe061b8668805be084937f98f178 Mon Sep 17 00:00:00 2001 From: Zhengbo Li Date: Thu, 16 Apr 2015 12:04:19 -0700 Subject: [PATCH] Removed properties of es6 only types from extensions.d.ts --- src/lib/extensions.d.ts | 194 ---------------------------------------- 1 file changed, 194 deletions(-) diff --git a/src/lib/extensions.d.ts b/src/lib/extensions.d.ts index 4b508d1b082..8ce4198551d 100644 --- a/src/lib/extensions.d.ts +++ b/src/lib/extensions.d.ts @@ -19,8 +19,6 @@ interface ArrayBuffer { * Returns a section of an ArrayBuffer. */ slice(begin:number, end?:number): ArrayBuffer; - - [Symbol.toStringTag]: string; } interface ArrayBufferConstructor { @@ -83,11 +81,6 @@ interface Int8Array { */ copyWithin(target: number, start: number, end?: number): Int8Array; - /** - * Returns an array of key, value pairs for every entry in the array - */ - entries(): IterableIterator<[number, number]>; - /** * Determines whether all the members of an array satisfy the specified test. * @param callbackfn A function that accepts up to three arguments. The every method calls @@ -163,11 +156,6 @@ interface Int8Array { */ join(separator?: string): string; - /** - * Returns an list of keys in the array - */ - keys(): IterableIterator; - /** * Returns the index of the last occurrence of a value in an array. * @param searchElement The value to locate in the array. @@ -300,13 +288,7 @@ interface Int8Array { */ toString(): string; - /** - * Returns an list of values in the array - */ - values(): IterableIterator; - [index: number]: number; - [Symbol.iterator](): IterableIterator; } interface Int8ArrayConstructor { prototype: Int8Array; @@ -325,14 +307,6 @@ interface Int8ArrayConstructor { * @param items A set of elements to include in the new array object. */ of(...items: number[]): Int8Array; - - /** - * Creates an array from an array-like or iterable object. - * @param arrayLike An array-like or iterable object to convert to an array. - * @param mapfn A mapping function to call on every element of the array. - * @param thisArg Value of 'this' used to invoke the mapfn. - */ - from(arrayLike: ArrayLike | Iterable, mapfn?: (v: number, k: number) => number, thisArg?: any): Int8Array; } declare var Int8Array: Int8ArrayConstructor; @@ -372,11 +346,6 @@ interface Uint8Array { */ copyWithin(target: number, start: number, end?: number): Uint8Array; - /** - * Returns an array of key, value pairs for every entry in the array - */ - entries(): IterableIterator<[number, number]>; - /** * Determines whether all the members of an array satisfy the specified test. * @param callbackfn A function that accepts up to three arguments. The every method calls @@ -452,11 +421,6 @@ interface Uint8Array { */ join(separator?: string): string; - /** - * Returns an list of keys in the array - */ - keys(): IterableIterator; - /** * Returns the index of the last occurrence of a value in an array. * @param searchElement The value to locate in the array. @@ -589,13 +553,7 @@ interface Uint8Array { */ toString(): string; - /** - * Returns an list of values in the array - */ - values(): IterableIterator; - [index: number]: number; - [Symbol.iterator](): IterableIterator; } interface Uint8ArrayConstructor { @@ -615,14 +573,6 @@ interface Uint8ArrayConstructor { * @param items A set of elements to include in the new array object. */ of(...items: number[]): Uint8Array; - - /** - * Creates an array from an array-like or iterable object. - * @param arrayLike An array-like or iterable object to convert to an array. - * @param mapfn A mapping function to call on every element of the array. - * @param thisArg Value of 'this' used to invoke the mapfn. - */ - from(arrayLike: ArrayLike | Iterable, mapfn?: (v: number, k: number) => number, thisArg?: any): Uint8Array; } declare var Uint8Array: Uint8ArrayConstructor; @@ -662,11 +612,6 @@ interface Int16Array { */ copyWithin(target: number, start: number, end?: number): Int16Array; - /** - * Returns an array of key, value pairs for every entry in the array - */ - entries(): IterableIterator<[number, number]>; - /** * Determines whether all the members of an array satisfy the specified test. * @param callbackfn A function that accepts up to three arguments. The every method calls @@ -742,11 +687,6 @@ interface Int16Array { */ join(separator?: string): string; - /** - * Returns an list of keys in the array - */ - keys(): IterableIterator; - /** * Returns the index of the last occurrence of a value in an array. * @param searchElement The value to locate in the array. @@ -879,13 +819,7 @@ interface Int16Array { */ toString(): string; - /** - * Returns an list of values in the array - */ - values(): IterableIterator; - [index: number]: number; - [Symbol.iterator](): IterableIterator; } interface Int16ArrayConstructor { @@ -905,14 +839,6 @@ interface Int16ArrayConstructor { * @param items A set of elements to include in the new array object. */ of(...items: number[]): Int16Array; - - /** - * Creates an array from an array-like or iterable object. - * @param arrayLike An array-like or iterable object to convert to an array. - * @param mapfn A mapping function to call on every element of the array. - * @param thisArg Value of 'this' used to invoke the mapfn. - */ - from(arrayLike: ArrayLike | Iterable, mapfn?: (v: number, k: number) => number, thisArg?: any): Int16Array; } declare var Int16Array: Int16ArrayConstructor; @@ -952,11 +878,6 @@ interface Uint16Array { */ copyWithin(target: number, start: number, end?: number): Uint16Array; - /** - * Returns an array of key, value pairs for every entry in the array - */ - entries(): IterableIterator<[number, number]>; - /** * Determines whether all the members of an array satisfy the specified test. * @param callbackfn A function that accepts up to three arguments. The every method calls @@ -1032,11 +953,6 @@ interface Uint16Array { */ join(separator?: string): string; - /** - * Returns an list of keys in the array - */ - keys(): IterableIterator; - /** * Returns the index of the last occurrence of a value in an array. * @param searchElement The value to locate in the array. @@ -1169,13 +1085,7 @@ interface Uint16Array { */ toString(): string; - /** - * Returns an list of values in the array - */ - values(): IterableIterator; - [index: number]: number; - [Symbol.iterator](): IterableIterator; } interface Uint16ArrayConstructor { @@ -1195,14 +1105,6 @@ interface Uint16ArrayConstructor { * @param items A set of elements to include in the new array object. */ of(...items: number[]): Uint16Array; - - /** - * Creates an array from an array-like or iterable object. - * @param arrayLike An array-like or iterable object to convert to an array. - * @param mapfn A mapping function to call on every element of the array. - * @param thisArg Value of 'this' used to invoke the mapfn. - */ - from(arrayLike: ArrayLike | Iterable, mapfn?: (v: number, k: number) => number, thisArg?: any): Uint16Array; } declare var Uint16Array: Uint16ArrayConstructor; /** @@ -1241,11 +1143,6 @@ interface Int32Array { */ copyWithin(target: number, start: number, end?: number): Int32Array; - /** - * Returns an array of key, value pairs for every entry in the array - */ - entries(): IterableIterator<[number, number]>; - /** * Determines whether all the members of an array satisfy the specified test. * @param callbackfn A function that accepts up to three arguments. The every method calls @@ -1321,11 +1218,6 @@ interface Int32Array { */ join(separator?: string): string; - /** - * Returns an list of keys in the array - */ - keys(): IterableIterator; - /** * Returns the index of the last occurrence of a value in an array. * @param searchElement The value to locate in the array. @@ -1458,13 +1350,7 @@ interface Int32Array { */ toString(): string; - /** - * Returns an list of values in the array - */ - values(): IterableIterator; - [index: number]: number; - [Symbol.iterator](): IterableIterator; } interface Int32ArrayConstructor { @@ -1484,14 +1370,6 @@ interface Int32ArrayConstructor { * @param items A set of elements to include in the new array object. */ of(...items: number[]): Int32Array; - - /** - * Creates an array from an array-like or iterable object. - * @param arrayLike An array-like or iterable object to convert to an array. - * @param mapfn A mapping function to call on every element of the array. - * @param thisArg Value of 'this' used to invoke the mapfn. - */ - from(arrayLike: ArrayLike | Iterable, mapfn?: (v: number, k: number) => number, thisArg?: any): Int32Array; } declare var Int32Array: Int32ArrayConstructor; @@ -1531,11 +1409,6 @@ interface Uint32Array { */ copyWithin(target: number, start: number, end?: number): Uint32Array; - /** - * Returns an array of key, value pairs for every entry in the array - */ - entries(): IterableIterator<[number, number]>; - /** * Determines whether all the members of an array satisfy the specified test. * @param callbackfn A function that accepts up to three arguments. The every method calls @@ -1611,11 +1484,6 @@ interface Uint32Array { */ join(separator?: string): string; - /** - * Returns an list of keys in the array - */ - keys(): IterableIterator; - /** * Returns the index of the last occurrence of a value in an array. * @param searchElement The value to locate in the array. @@ -1748,13 +1616,7 @@ interface Uint32Array { */ toString(): string; - /** - * Returns an list of values in the array - */ - values(): IterableIterator; - [index: number]: number; - [Symbol.iterator](): IterableIterator; } interface Uint32ArrayConstructor { @@ -1774,14 +1636,6 @@ interface Uint32ArrayConstructor { * @param items A set of elements to include in the new array object. */ of(...items: number[]): Uint32Array; - - /** - * Creates an array from an array-like or iterable object. - * @param arrayLike An array-like or iterable object to convert to an array. - * @param mapfn A mapping function to call on every element of the array. - * @param thisArg Value of 'this' used to invoke the mapfn. - */ - from(arrayLike: ArrayLike | Iterable, mapfn?: (v: number, k: number) => number, thisArg?: any): Uint32Array; } declare var Uint32Array: Uint32ArrayConstructor; @@ -1821,11 +1675,6 @@ interface Float32Array { */ copyWithin(target: number, start: number, end?: number): Float32Array; - /** - * Returns an array of key, value pairs for every entry in the array - */ - entries(): IterableIterator<[number, number]>; - /** * Determines whether all the members of an array satisfy the specified test. * @param callbackfn A function that accepts up to three arguments. The every method calls @@ -1901,11 +1750,6 @@ interface Float32Array { */ join(separator?: string): string; - /** - * Returns an list of keys in the array - */ - keys(): IterableIterator; - /** * Returns the index of the last occurrence of a value in an array. * @param searchElement The value to locate in the array. @@ -2038,13 +1882,7 @@ interface Float32Array { */ toString(): string; - /** - * Returns an list of values in the array - */ - values(): IterableIterator; - [index: number]: number; - [Symbol.iterator](): IterableIterator; } interface Float32ArrayConstructor { @@ -2064,14 +1902,6 @@ interface Float32ArrayConstructor { * @param items A set of elements to include in the new array object. */ of(...items: number[]): Float32Array; - - /** - * Creates an array from an array-like or iterable object. - * @param arrayLike An array-like or iterable object to convert to an array. - * @param mapfn A mapping function to call on every element of the array. - * @param thisArg Value of 'this' used to invoke the mapfn. - */ - from(arrayLike: ArrayLike | Iterable, mapfn?: (v: number, k: number) => number, thisArg?: any): Float32Array; } declare var Float32Array: Float32ArrayConstructor; @@ -2111,11 +1941,6 @@ interface Float64Array { */ copyWithin(target: number, start: number, end?: number): Float64Array; - /** - * Returns an array of key, value pairs for every entry in the array - */ - entries(): IterableIterator<[number, number]>; - /** * Determines whether all the members of an array satisfy the specified test. * @param callbackfn A function that accepts up to three arguments. The every method calls @@ -2191,11 +2016,6 @@ interface Float64Array { */ join(separator?: string): string; - /** - * Returns an list of keys in the array - */ - keys(): IterableIterator; - /** * Returns the index of the last occurrence of a value in an array. * @param searchElement The value to locate in the array. @@ -2328,13 +2148,7 @@ interface Float64Array { */ toString(): string; - /** - * Returns an list of values in the array - */ - values(): IterableIterator; - [index: number]: number; - [Symbol.iterator](): IterableIterator; } interface Float64ArrayConstructor { @@ -2354,13 +2168,5 @@ interface Float64ArrayConstructor { * @param items A set of elements to include in the new array object. */ of(...items: number[]): Float64Array; - - /** - * Creates an array from an array-like or iterable object. - * @param arrayLike An array-like or iterable object to convert to an array. - * @param mapfn A mapping function to call on every element of the array. - * @param thisArg Value of 'this' used to invoke the mapfn. - */ - from(arrayLike: ArrayLike | Iterable, mapfn?: (v: number, k: number) => number, thisArg?: any): Float64Array; } declare var Float64Array: Float64ArrayConstructor; \ No newline at end of file