@stencil/core 4.38.3-dev.1762750959.bede52f → 4.38.3-dev.1762795767.192e568
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cli/index.cjs +1 -1
- package/cli/index.js +1 -1
- package/cli/package.json +1 -1
- package/compiler/lib.decorators.d.ts +15 -13
- package/compiler/lib.dom.asynciterable.d.ts +6 -14
- package/compiler/lib.dom.d.ts +5094 -15927
- package/compiler/lib.dom.iterable.d.ts +111 -207
- package/compiler/lib.es2015.core.d.ts +9 -9
- package/compiler/lib.es2015.generator.d.ts +2 -2
- package/compiler/lib.es2015.iterable.d.ts +104 -214
- package/compiler/lib.es2015.symbol.wellknown.d.ts +11 -11
- package/compiler/lib.es2016.array.include.d.ts +9 -9
- package/compiler/lib.es2016.intl.d.ts +1 -1
- package/compiler/lib.es2017.d.ts +2 -3
- package/compiler/lib.es2017.object.d.ts +4 -4
- package/compiler/lib.es2017.sharedmemory.d.ts +15 -15
- package/compiler/lib.es2017.typedarrays.d.ts +9 -9
- package/compiler/lib.es2018.asyncgenerator.d.ts +2 -2
- package/compiler/lib.es2018.asynciterable.d.ts +6 -16
- package/compiler/lib.es2020.bigint.d.ts +62 -100
- package/compiler/lib.es2020.intl.d.ts +36 -36
- package/compiler/lib.es2020.sharedmemory.d.ts +11 -13
- package/compiler/lib.es2020.string.d.ts +1 -3
- package/compiler/lib.es2020.symbol.wellknown.d.ts +1 -5
- package/compiler/lib.es2021.intl.d.ts +17 -17
- package/compiler/lib.es2021.weakref.d.ts +0 -2
- package/compiler/lib.es2022.array.d.ts +11 -11
- package/compiler/lib.es2022.d.ts +2 -1
- package/compiler/lib.es2022.error.d.ts +0 -2
- package/compiler/lib.es2022.intl.d.ts +11 -39
- package/compiler/{lib.es2024.sharedmemory.d.ts → lib.es2022.sharedmemory.d.ts} +0 -29
- package/compiler/lib.es2023.array.d.ts +79 -79
- package/compiler/lib.es5.d.ts +305 -321
- package/compiler/lib.esnext.array.d.ts +1 -1
- package/compiler/lib.esnext.collection.d.ts +11 -1
- package/compiler/lib.esnext.d.ts +5 -6
- package/compiler/lib.esnext.disposable.d.ts +0 -8
- package/compiler/lib.esnext.promise.d.ts +12 -11
- package/compiler/lib.webworker.asynciterable.d.ts +6 -14
- package/compiler/lib.webworker.d.ts +1393 -5112
- package/compiler/lib.webworker.iterable.d.ts +61 -125
- package/compiler/package.json +1 -1
- package/compiler/stencil.js +15142 -20586
- package/dev-server/client/index.js +1 -1
- package/dev-server/client/package.json +1 -1
- package/dev-server/connector.html +2 -2
- package/dev-server/index.js +1 -1
- package/dev-server/package.json +1 -1
- package/dev-server/server-process.js +2 -2
- package/internal/app-data/package.json +1 -1
- package/internal/app-globals/package.json +1 -1
- package/internal/client/index.js +1 -1
- package/internal/client/package.json +1 -1
- package/internal/client/patch-browser.js +1 -1
- package/internal/hydrate/index.js +1 -1
- package/internal/hydrate/package.json +1 -1
- package/internal/hydrate/runner.js +1 -1
- package/internal/package.json +1 -1
- package/internal/testing/package.json +1 -1
- package/mock-doc/index.cjs +1 -1
- package/mock-doc/index.js +1 -1
- package/mock-doc/package.json +1 -1
- package/package.json +2 -2
- package/screenshot/index.js +1 -1
- package/screenshot/package.json +1 -1
- package/screenshot/pixel-match.js +1 -1
- package/screenshot/screenshot-fs.d.ts +1 -1
- package/sys/node/index.js +1 -1
- package/sys/node/package.json +1 -1
- package/sys/node/worker.js +1 -1
- package/testing/index.js +1 -1
- package/testing/package.json +1 -1
- package/compiler/lib.es2017.arraybuffer.d.ts +0 -21
- package/compiler/lib.es2024.arraybuffer.d.ts +0 -65
- package/compiler/lib.es2024.collection.d.ts +0 -29
- package/compiler/lib.es2024.d.ts +0 -26
- package/compiler/lib.es2024.full.d.ts +0 -24
- package/compiler/lib.es2024.promise.d.ts +0 -35
- package/compiler/lib.esnext.error.d.ts +0 -24
- package/compiler/lib.esnext.float16.d.ts +0 -445
- package/compiler/lib.esnext.iterator.d.ts +0 -148
- package/compiler/lib.esnext.sharedmemory.d.ts +0 -25
- /package/compiler/{lib.es2024.object.d.ts → lib.esnext.object.d.ts} +0 -0
- /package/compiler/{lib.es2024.regexp.d.ts → lib.esnext.regexp.d.ts} +0 -0
- /package/compiler/{lib.es2024.string.d.ts → lib.esnext.string.d.ts} +0 -0
package/compiler/lib.es5.d.ts
CHANGED
|
@@ -696,7 +696,7 @@ interface Math {
|
|
|
696
696
|
*/
|
|
697
697
|
atan(x: number): number;
|
|
698
698
|
/**
|
|
699
|
-
* Returns the angle (in radians)
|
|
699
|
+
* Returns the angle (in radians) from the X axis to a point.
|
|
700
700
|
* @param y A numeric expression representing the cartesian y-coordinate.
|
|
701
701
|
* @param x A numeric expression representing the cartesian x-coordinate.
|
|
702
702
|
*/
|
|
@@ -1158,7 +1158,6 @@ interface JSON {
|
|
|
1158
1158
|
* @param text A valid JSON string.
|
|
1159
1159
|
* @param reviver A function that transforms the results. This function is called for each member of the object.
|
|
1160
1160
|
* If a member contains nested objects, the nested objects are transformed before the parent object is.
|
|
1161
|
-
* @throws {SyntaxError} If `text` is not valid JSON.
|
|
1162
1161
|
*/
|
|
1163
1162
|
parse(text: string, reviver?: (this: any, key: string, value: any) => any): any;
|
|
1164
1163
|
/**
|
|
@@ -1166,7 +1165,6 @@ interface JSON {
|
|
|
1166
1165
|
* @param value A JavaScript value, usually an object or array, to be converted.
|
|
1167
1166
|
* @param replacer A function that transforms the results.
|
|
1168
1167
|
* @param space Adds indentation, white space, and line break characters to the return-value JSON text to make it easier to read.
|
|
1169
|
-
* @throws {TypeError} If a circular reference or a BigInt value is found.
|
|
1170
1168
|
*/
|
|
1171
1169
|
stringify(value: any, replacer?: (this: any, key: string, value: any) => any, space?: string | number): string;
|
|
1172
1170
|
/**
|
|
@@ -1174,7 +1172,6 @@ interface JSON {
|
|
|
1174
1172
|
* @param value A JavaScript value, usually an object or array, to be converted.
|
|
1175
1173
|
* @param replacer An array of strings and numbers that acts as an approved list for selecting the object properties that will be stringified.
|
|
1176
1174
|
* @param space Adds indentation, white space, and line break characters to the return-value JSON text to make it easier to read.
|
|
1177
|
-
* @throws {TypeError} If a circular reference or a BigInt value is found.
|
|
1178
1175
|
*/
|
|
1179
1176
|
stringify(value: any, replacer?: (number | string)[] | null, space?: string | number): string;
|
|
1180
1177
|
}
|
|
@@ -1263,8 +1260,8 @@ interface ReadonlyArray<T> {
|
|
|
1263
1260
|
some(predicate: (value: T, index: number, array: readonly T[]) => unknown, thisArg?: any): boolean;
|
|
1264
1261
|
/**
|
|
1265
1262
|
* Performs the specified action for each element in an array.
|
|
1266
|
-
* @param callbackfn
|
|
1267
|
-
* @param thisArg
|
|
1263
|
+
* @param callbackfn A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the array.
|
|
1264
|
+
* @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.
|
|
1268
1265
|
*/
|
|
1269
1266
|
forEach(callbackfn: (value: T, index: number, array: readonly T[]) => void, thisArg?: any): void;
|
|
1270
1267
|
/**
|
|
@@ -1387,7 +1384,7 @@ interface Array<T> {
|
|
|
1387
1384
|
* This method mutates the array and returns a reference to the same array.
|
|
1388
1385
|
* @param compareFn Function used to determine the order of the elements. It is expected to return
|
|
1389
1386
|
* a negative value if the first argument is less than the second argument, zero if they're equal, and a positive
|
|
1390
|
-
* value otherwise. If omitted, the elements are sorted in ascending,
|
|
1387
|
+
* value otherwise. If omitted, the elements are sorted in ascending, ASCII character order.
|
|
1391
1388
|
* ```ts
|
|
1392
1389
|
* [11,2,22,1].sort((a, b) => a - b)
|
|
1393
1390
|
* ```
|
|
@@ -1396,18 +1393,14 @@ interface Array<T> {
|
|
|
1396
1393
|
/**
|
|
1397
1394
|
* Removes elements from an array and, if necessary, inserts new elements in their place, returning the deleted elements.
|
|
1398
1395
|
* @param start The zero-based location in the array from which to start removing elements.
|
|
1399
|
-
* @param deleteCount The number of elements to remove.
|
|
1400
|
-
* paramater location to end of the array. If value of this argument is either a negative number, zero, undefined, or a type
|
|
1401
|
-
* that cannot be converted to an integer, the function will evaluate the argument as zero and not remove any elements.
|
|
1396
|
+
* @param deleteCount The number of elements to remove.
|
|
1402
1397
|
* @returns An array containing the elements that were deleted.
|
|
1403
1398
|
*/
|
|
1404
1399
|
splice(start: number, deleteCount?: number): T[];
|
|
1405
1400
|
/**
|
|
1406
1401
|
* Removes elements from an array and, if necessary, inserts new elements in their place, returning the deleted elements.
|
|
1407
1402
|
* @param start The zero-based location in the array from which to start removing elements.
|
|
1408
|
-
* @param deleteCount The number of elements to remove.
|
|
1409
|
-
* undefined, or a type that cannot be converted to an integer, the function will evaluate the argument as zero and
|
|
1410
|
-
* not remove any elements.
|
|
1403
|
+
* @param deleteCount The number of elements to remove.
|
|
1411
1404
|
* @param items Elements to insert into the array in place of the deleted elements.
|
|
1412
1405
|
* @returns An array containing the elements that were deleted.
|
|
1413
1406
|
*/
|
|
@@ -1458,8 +1451,8 @@ interface Array<T> {
|
|
|
1458
1451
|
some(predicate: (value: T, index: number, array: T[]) => unknown, thisArg?: any): boolean;
|
|
1459
1452
|
/**
|
|
1460
1453
|
* Performs the specified action for each element in an array.
|
|
1461
|
-
* @param callbackfn
|
|
1462
|
-
* @param thisArg
|
|
1454
|
+
* @param callbackfn A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the array.
|
|
1455
|
+
* @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.
|
|
1463
1456
|
*/
|
|
1464
1457
|
forEach(callbackfn: (value: T, index: number, array: T[]) => void, thisArg?: any): void;
|
|
1465
1458
|
/**
|
|
@@ -1708,7 +1701,7 @@ interface ArrayBuffer {
|
|
|
1708
1701
|
/**
|
|
1709
1702
|
* Returns a section of an ArrayBuffer.
|
|
1710
1703
|
*/
|
|
1711
|
-
slice(begin
|
|
1704
|
+
slice(begin: number, end?: number): ArrayBuffer;
|
|
1712
1705
|
}
|
|
1713
1706
|
|
|
1714
1707
|
/**
|
|
@@ -1726,25 +1719,25 @@ interface ArrayBufferConstructor {
|
|
|
1726
1719
|
}
|
|
1727
1720
|
declare var ArrayBuffer: ArrayBufferConstructor;
|
|
1728
1721
|
|
|
1729
|
-
interface ArrayBufferView
|
|
1722
|
+
interface ArrayBufferView {
|
|
1730
1723
|
/**
|
|
1731
1724
|
* The ArrayBuffer instance referenced by the array.
|
|
1732
1725
|
*/
|
|
1733
|
-
|
|
1726
|
+
buffer: ArrayBufferLike;
|
|
1734
1727
|
|
|
1735
1728
|
/**
|
|
1736
1729
|
* The length in bytes of the array.
|
|
1737
1730
|
*/
|
|
1738
|
-
|
|
1731
|
+
byteLength: number;
|
|
1739
1732
|
|
|
1740
1733
|
/**
|
|
1741
1734
|
* The offset in bytes of the array.
|
|
1742
1735
|
*/
|
|
1743
|
-
|
|
1736
|
+
byteOffset: number;
|
|
1744
1737
|
}
|
|
1745
1738
|
|
|
1746
|
-
interface DataView
|
|
1747
|
-
readonly buffer:
|
|
1739
|
+
interface DataView {
|
|
1740
|
+
readonly buffer: ArrayBuffer;
|
|
1748
1741
|
readonly byteLength: number;
|
|
1749
1742
|
readonly byteOffset: number;
|
|
1750
1743
|
/**
|
|
@@ -1870,9 +1863,10 @@ interface DataView<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> {
|
|
|
1870
1863
|
*/
|
|
1871
1864
|
setUint32(byteOffset: number, value: number, littleEndian?: boolean): void;
|
|
1872
1865
|
}
|
|
1866
|
+
|
|
1873
1867
|
interface DataViewConstructor {
|
|
1874
|
-
readonly prototype: DataView
|
|
1875
|
-
new
|
|
1868
|
+
readonly prototype: DataView;
|
|
1869
|
+
new (buffer: ArrayBufferLike & { BYTES_PER_ELEMENT?: never; }, byteOffset?: number, byteLength?: number): DataView;
|
|
1876
1870
|
}
|
|
1877
1871
|
declare var DataView: DataViewConstructor;
|
|
1878
1872
|
|
|
@@ -1880,7 +1874,7 @@ declare var DataView: DataViewConstructor;
|
|
|
1880
1874
|
* A typed array of 8-bit integer values. The contents are initialized to 0. If the requested
|
|
1881
1875
|
* number of bytes could not be allocated an exception is raised.
|
|
1882
1876
|
*/
|
|
1883
|
-
interface Int8Array
|
|
1877
|
+
interface Int8Array {
|
|
1884
1878
|
/**
|
|
1885
1879
|
* The size in bytes of each element in the array.
|
|
1886
1880
|
*/
|
|
@@ -1889,7 +1883,7 @@ interface Int8Array<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> {
|
|
|
1889
1883
|
/**
|
|
1890
1884
|
* The ArrayBuffer instance referenced by the array.
|
|
1891
1885
|
*/
|
|
1892
|
-
readonly buffer:
|
|
1886
|
+
readonly buffer: ArrayBufferLike;
|
|
1893
1887
|
|
|
1894
1888
|
/**
|
|
1895
1889
|
* The length in bytes of the array.
|
|
@@ -1920,7 +1914,7 @@ interface Int8Array<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> {
|
|
|
1920
1914
|
* @param thisArg An object to which the this keyword can refer in the predicate function.
|
|
1921
1915
|
* If thisArg is omitted, undefined is used as the this value.
|
|
1922
1916
|
*/
|
|
1923
|
-
every(predicate: (value: number, index: number, array:
|
|
1917
|
+
every(predicate: (value: number, index: number, array: Int8Array) => unknown, thisArg?: any): boolean;
|
|
1924
1918
|
|
|
1925
1919
|
/**
|
|
1926
1920
|
* Changes all array elements from `start` to `end` index to a static `value` and returns the modified array
|
|
@@ -1939,7 +1933,7 @@ interface Int8Array<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> {
|
|
|
1939
1933
|
* @param thisArg An object to which the this keyword can refer in the predicate function.
|
|
1940
1934
|
* If thisArg is omitted, undefined is used as the this value.
|
|
1941
1935
|
*/
|
|
1942
|
-
filter(predicate: (value: number, index: number, array:
|
|
1936
|
+
filter(predicate: (value: number, index: number, array: Int8Array) => any, thisArg?: any): Int8Array;
|
|
1943
1937
|
|
|
1944
1938
|
/**
|
|
1945
1939
|
* Returns the value of the first element in the array where predicate is true, and undefined
|
|
@@ -1950,7 +1944,7 @@ interface Int8Array<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> {
|
|
|
1950
1944
|
* @param thisArg If provided, it will be used as the this value for each invocation of
|
|
1951
1945
|
* predicate. If it is not provided, undefined is used instead.
|
|
1952
1946
|
*/
|
|
1953
|
-
find(predicate: (value: number, index: number, obj:
|
|
1947
|
+
find(predicate: (value: number, index: number, obj: Int8Array) => boolean, thisArg?: any): number | undefined;
|
|
1954
1948
|
|
|
1955
1949
|
/**
|
|
1956
1950
|
* Returns the index of the first element in the array where predicate is true, and -1
|
|
@@ -1961,22 +1955,22 @@ interface Int8Array<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> {
|
|
|
1961
1955
|
* @param thisArg If provided, it will be used as the this value for each invocation of
|
|
1962
1956
|
* predicate. If it is not provided, undefined is used instead.
|
|
1963
1957
|
*/
|
|
1964
|
-
findIndex(predicate: (value: number, index: number, obj:
|
|
1958
|
+
findIndex(predicate: (value: number, index: number, obj: Int8Array) => boolean, thisArg?: any): number;
|
|
1965
1959
|
|
|
1966
1960
|
/**
|
|
1967
1961
|
* Performs the specified action for each element in an array.
|
|
1968
|
-
* @param callbackfn
|
|
1962
|
+
* @param callbackfn A function that accepts up to three arguments. forEach calls the
|
|
1969
1963
|
* callbackfn function one time for each element in the array.
|
|
1970
|
-
* @param thisArg
|
|
1964
|
+
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
|
|
1971
1965
|
* If thisArg is omitted, undefined is used as the this value.
|
|
1972
1966
|
*/
|
|
1973
|
-
forEach(callbackfn: (value: number, index: number, array:
|
|
1967
|
+
forEach(callbackfn: (value: number, index: number, array: Int8Array) => void, thisArg?: any): void;
|
|
1974
1968
|
|
|
1975
1969
|
/**
|
|
1976
1970
|
* Returns the index of the first occurrence of a value in an array.
|
|
1977
1971
|
* @param searchElement The value to locate in the array.
|
|
1978
1972
|
* @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
|
|
1979
|
-
*
|
|
1973
|
+
* search starts at index 0.
|
|
1980
1974
|
*/
|
|
1981
1975
|
indexOf(searchElement: number, fromIndex?: number): number;
|
|
1982
1976
|
|
|
@@ -2008,7 +2002,7 @@ interface Int8Array<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> {
|
|
|
2008
2002
|
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
|
|
2009
2003
|
* If thisArg is omitted, undefined is used as the this value.
|
|
2010
2004
|
*/
|
|
2011
|
-
map(callbackfn: (value: number, index: number, array:
|
|
2005
|
+
map(callbackfn: (value: number, index: number, array: Int8Array) => number, thisArg?: any): Int8Array;
|
|
2012
2006
|
|
|
2013
2007
|
/**
|
|
2014
2008
|
* Calls the specified callback function for all the elements in an array. The return value of
|
|
@@ -2020,8 +2014,8 @@ interface Int8Array<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> {
|
|
|
2020
2014
|
* the accumulation. The first call to the callbackfn function provides this value as an argument
|
|
2021
2015
|
* instead of an array value.
|
|
2022
2016
|
*/
|
|
2023
|
-
reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array:
|
|
2024
|
-
reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array:
|
|
2017
|
+
reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int8Array) => number): number;
|
|
2018
|
+
reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int8Array) => number, initialValue: number): number;
|
|
2025
2019
|
|
|
2026
2020
|
/**
|
|
2027
2021
|
* Calls the specified callback function for all the elements in an array. The return value of
|
|
@@ -2033,7 +2027,7 @@ interface Int8Array<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> {
|
|
|
2033
2027
|
* the accumulation. The first call to the callbackfn function provides this value as an argument
|
|
2034
2028
|
* instead of an array value.
|
|
2035
2029
|
*/
|
|
2036
|
-
reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array:
|
|
2030
|
+
reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Int8Array) => U, initialValue: U): U;
|
|
2037
2031
|
|
|
2038
2032
|
/**
|
|
2039
2033
|
* Calls the specified callback function for all the elements in an array, in descending order.
|
|
@@ -2045,8 +2039,8 @@ interface Int8Array<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> {
|
|
|
2045
2039
|
* the accumulation. The first call to the callbackfn function provides this value as an
|
|
2046
2040
|
* argument instead of an array value.
|
|
2047
2041
|
*/
|
|
2048
|
-
reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array:
|
|
2049
|
-
reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array:
|
|
2042
|
+
reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int8Array) => number): number;
|
|
2043
|
+
reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int8Array) => number, initialValue: number): number;
|
|
2050
2044
|
|
|
2051
2045
|
/**
|
|
2052
2046
|
* Calls the specified callback function for all the elements in an array, in descending order.
|
|
@@ -2058,12 +2052,12 @@ interface Int8Array<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> {
|
|
|
2058
2052
|
* the accumulation. The first call to the callbackfn function provides this value as an argument
|
|
2059
2053
|
* instead of an array value.
|
|
2060
2054
|
*/
|
|
2061
|
-
reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array:
|
|
2055
|
+
reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Int8Array) => U, initialValue: U): U;
|
|
2062
2056
|
|
|
2063
2057
|
/**
|
|
2064
2058
|
* Reverses the elements in an Array.
|
|
2065
2059
|
*/
|
|
2066
|
-
reverse():
|
|
2060
|
+
reverse(): Int8Array;
|
|
2067
2061
|
|
|
2068
2062
|
/**
|
|
2069
2063
|
* Sets a value or an array of values.
|
|
@@ -2077,7 +2071,7 @@ interface Int8Array<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> {
|
|
|
2077
2071
|
* @param start The beginning of the specified portion of the array.
|
|
2078
2072
|
* @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'.
|
|
2079
2073
|
*/
|
|
2080
|
-
slice(start?: number, end?: number): Int8Array
|
|
2074
|
+
slice(start?: number, end?: number): Int8Array;
|
|
2081
2075
|
|
|
2082
2076
|
/**
|
|
2083
2077
|
* Determines whether the specified callback function returns true for any element of an array.
|
|
@@ -2087,7 +2081,7 @@ interface Int8Array<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> {
|
|
|
2087
2081
|
* @param thisArg An object to which the this keyword can refer in the predicate function.
|
|
2088
2082
|
* If thisArg is omitted, undefined is used as the this value.
|
|
2089
2083
|
*/
|
|
2090
|
-
some(predicate: (value: number, index: number, array:
|
|
2084
|
+
some(predicate: (value: number, index: number, array: Int8Array) => unknown, thisArg?: any): boolean;
|
|
2091
2085
|
|
|
2092
2086
|
/**
|
|
2093
2087
|
* Sorts an array.
|
|
@@ -2106,7 +2100,7 @@ interface Int8Array<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> {
|
|
|
2106
2100
|
* @param begin The index of the beginning of the array.
|
|
2107
2101
|
* @param end The index of the end of the array.
|
|
2108
2102
|
*/
|
|
2109
|
-
subarray(begin?: number, end?: number): Int8Array
|
|
2103
|
+
subarray(begin?: number, end?: number): Int8Array;
|
|
2110
2104
|
|
|
2111
2105
|
/**
|
|
2112
2106
|
* Converts a number to a string by using the current locale.
|
|
@@ -2119,17 +2113,15 @@ interface Int8Array<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> {
|
|
|
2119
2113
|
toString(): string;
|
|
2120
2114
|
|
|
2121
2115
|
/** Returns the primitive value of the specified object. */
|
|
2122
|
-
valueOf():
|
|
2116
|
+
valueOf(): Int8Array;
|
|
2123
2117
|
|
|
2124
2118
|
[index: number]: number;
|
|
2125
2119
|
}
|
|
2126
2120
|
interface Int8ArrayConstructor {
|
|
2127
|
-
readonly prototype: Int8Array
|
|
2128
|
-
new (length: number): Int8Array
|
|
2129
|
-
new (array: ArrayLike<number>): Int8Array
|
|
2130
|
-
new
|
|
2131
|
-
new (buffer: ArrayBuffer, byteOffset?: number, length?: number): Int8Array<ArrayBuffer>;
|
|
2132
|
-
new (array: ArrayLike<number> | ArrayBuffer): Int8Array<ArrayBuffer>;
|
|
2121
|
+
readonly prototype: Int8Array;
|
|
2122
|
+
new (length: number): Int8Array;
|
|
2123
|
+
new (array: ArrayLike<number> | ArrayBufferLike): Int8Array;
|
|
2124
|
+
new (buffer: ArrayBufferLike, byteOffset?: number, length?: number): Int8Array;
|
|
2133
2125
|
|
|
2134
2126
|
/**
|
|
2135
2127
|
* The size in bytes of each element in the array.
|
|
@@ -2140,21 +2132,21 @@ interface Int8ArrayConstructor {
|
|
|
2140
2132
|
* Returns a new array from a set of elements.
|
|
2141
2133
|
* @param items A set of elements to include in the new array object.
|
|
2142
2134
|
*/
|
|
2143
|
-
of(...items: number[]): Int8Array
|
|
2135
|
+
of(...items: number[]): Int8Array;
|
|
2144
2136
|
|
|
2145
2137
|
/**
|
|
2146
2138
|
* Creates an array from an array-like or iterable object.
|
|
2147
|
-
* @param arrayLike An array-like object to convert to an array.
|
|
2139
|
+
* @param arrayLike An array-like or iterable object to convert to an array.
|
|
2148
2140
|
*/
|
|
2149
|
-
from(arrayLike: ArrayLike<number>): Int8Array
|
|
2141
|
+
from(arrayLike: ArrayLike<number>): Int8Array;
|
|
2150
2142
|
|
|
2151
2143
|
/**
|
|
2152
2144
|
* Creates an array from an array-like or iterable object.
|
|
2153
|
-
* @param arrayLike An array-like object to convert to an array.
|
|
2145
|
+
* @param arrayLike An array-like or iterable object to convert to an array.
|
|
2154
2146
|
* @param mapfn A mapping function to call on every element of the array.
|
|
2155
2147
|
* @param thisArg Value of 'this' used to invoke the mapfn.
|
|
2156
2148
|
*/
|
|
2157
|
-
from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Int8Array
|
|
2149
|
+
from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Int8Array;
|
|
2158
2150
|
}
|
|
2159
2151
|
declare var Int8Array: Int8ArrayConstructor;
|
|
2160
2152
|
|
|
@@ -2162,7 +2154,7 @@ declare var Int8Array: Int8ArrayConstructor;
|
|
|
2162
2154
|
* A typed array of 8-bit unsigned integer values. The contents are initialized to 0. If the
|
|
2163
2155
|
* requested number of bytes could not be allocated an exception is raised.
|
|
2164
2156
|
*/
|
|
2165
|
-
interface Uint8Array
|
|
2157
|
+
interface Uint8Array {
|
|
2166
2158
|
/**
|
|
2167
2159
|
* The size in bytes of each element in the array.
|
|
2168
2160
|
*/
|
|
@@ -2171,7 +2163,7 @@ interface Uint8Array<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> {
|
|
|
2171
2163
|
/**
|
|
2172
2164
|
* The ArrayBuffer instance referenced by the array.
|
|
2173
2165
|
*/
|
|
2174
|
-
readonly buffer:
|
|
2166
|
+
readonly buffer: ArrayBufferLike;
|
|
2175
2167
|
|
|
2176
2168
|
/**
|
|
2177
2169
|
* The length in bytes of the array.
|
|
@@ -2202,7 +2194,7 @@ interface Uint8Array<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> {
|
|
|
2202
2194
|
* @param thisArg An object to which the this keyword can refer in the predicate function.
|
|
2203
2195
|
* If thisArg is omitted, undefined is used as the this value.
|
|
2204
2196
|
*/
|
|
2205
|
-
every(predicate: (value: number, index: number, array:
|
|
2197
|
+
every(predicate: (value: number, index: number, array: Uint8Array) => unknown, thisArg?: any): boolean;
|
|
2206
2198
|
|
|
2207
2199
|
/**
|
|
2208
2200
|
* Changes all array elements from `start` to `end` index to a static `value` and returns the modified array
|
|
@@ -2221,7 +2213,7 @@ interface Uint8Array<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> {
|
|
|
2221
2213
|
* @param thisArg An object to which the this keyword can refer in the predicate function.
|
|
2222
2214
|
* If thisArg is omitted, undefined is used as the this value.
|
|
2223
2215
|
*/
|
|
2224
|
-
filter(predicate: (value: number, index: number, array:
|
|
2216
|
+
filter(predicate: (value: number, index: number, array: Uint8Array) => any, thisArg?: any): Uint8Array;
|
|
2225
2217
|
|
|
2226
2218
|
/**
|
|
2227
2219
|
* Returns the value of the first element in the array where predicate is true, and undefined
|
|
@@ -2232,7 +2224,7 @@ interface Uint8Array<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> {
|
|
|
2232
2224
|
* @param thisArg If provided, it will be used as the this value for each invocation of
|
|
2233
2225
|
* predicate. If it is not provided, undefined is used instead.
|
|
2234
2226
|
*/
|
|
2235
|
-
find(predicate: (value: number, index: number, obj:
|
|
2227
|
+
find(predicate: (value: number, index: number, obj: Uint8Array) => boolean, thisArg?: any): number | undefined;
|
|
2236
2228
|
|
|
2237
2229
|
/**
|
|
2238
2230
|
* Returns the index of the first element in the array where predicate is true, and -1
|
|
@@ -2243,22 +2235,22 @@ interface Uint8Array<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> {
|
|
|
2243
2235
|
* @param thisArg If provided, it will be used as the this value for each invocation of
|
|
2244
2236
|
* predicate. If it is not provided, undefined is used instead.
|
|
2245
2237
|
*/
|
|
2246
|
-
findIndex(predicate: (value: number, index: number, obj:
|
|
2238
|
+
findIndex(predicate: (value: number, index: number, obj: Uint8Array) => boolean, thisArg?: any): number;
|
|
2247
2239
|
|
|
2248
2240
|
/**
|
|
2249
2241
|
* Performs the specified action for each element in an array.
|
|
2250
|
-
* @param callbackfn
|
|
2242
|
+
* @param callbackfn A function that accepts up to three arguments. forEach calls the
|
|
2251
2243
|
* callbackfn function one time for each element in the array.
|
|
2252
|
-
* @param thisArg
|
|
2244
|
+
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
|
|
2253
2245
|
* If thisArg is omitted, undefined is used as the this value.
|
|
2254
2246
|
*/
|
|
2255
|
-
forEach(callbackfn: (value: number, index: number, array:
|
|
2247
|
+
forEach(callbackfn: (value: number, index: number, array: Uint8Array) => void, thisArg?: any): void;
|
|
2256
2248
|
|
|
2257
2249
|
/**
|
|
2258
2250
|
* Returns the index of the first occurrence of a value in an array.
|
|
2259
2251
|
* @param searchElement The value to locate in the array.
|
|
2260
2252
|
* @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
|
|
2261
|
-
*
|
|
2253
|
+
* search starts at index 0.
|
|
2262
2254
|
*/
|
|
2263
2255
|
indexOf(searchElement: number, fromIndex?: number): number;
|
|
2264
2256
|
|
|
@@ -2290,7 +2282,7 @@ interface Uint8Array<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> {
|
|
|
2290
2282
|
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
|
|
2291
2283
|
* If thisArg is omitted, undefined is used as the this value.
|
|
2292
2284
|
*/
|
|
2293
|
-
map(callbackfn: (value: number, index: number, array:
|
|
2285
|
+
map(callbackfn: (value: number, index: number, array: Uint8Array) => number, thisArg?: any): Uint8Array;
|
|
2294
2286
|
|
|
2295
2287
|
/**
|
|
2296
2288
|
* Calls the specified callback function for all the elements in an array. The return value of
|
|
@@ -2302,8 +2294,8 @@ interface Uint8Array<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> {
|
|
|
2302
2294
|
* the accumulation. The first call to the callbackfn function provides this value as an argument
|
|
2303
2295
|
* instead of an array value.
|
|
2304
2296
|
*/
|
|
2305
|
-
reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array:
|
|
2306
|
-
reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array:
|
|
2297
|
+
reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8Array) => number): number;
|
|
2298
|
+
reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8Array) => number, initialValue: number): number;
|
|
2307
2299
|
|
|
2308
2300
|
/**
|
|
2309
2301
|
* Calls the specified callback function for all the elements in an array. The return value of
|
|
@@ -2315,7 +2307,7 @@ interface Uint8Array<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> {
|
|
|
2315
2307
|
* the accumulation. The first call to the callbackfn function provides this value as an argument
|
|
2316
2308
|
* instead of an array value.
|
|
2317
2309
|
*/
|
|
2318
|
-
reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array:
|
|
2310
|
+
reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint8Array) => U, initialValue: U): U;
|
|
2319
2311
|
|
|
2320
2312
|
/**
|
|
2321
2313
|
* Calls the specified callback function for all the elements in an array, in descending order.
|
|
@@ -2327,8 +2319,8 @@ interface Uint8Array<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> {
|
|
|
2327
2319
|
* the accumulation. The first call to the callbackfn function provides this value as an
|
|
2328
2320
|
* argument instead of an array value.
|
|
2329
2321
|
*/
|
|
2330
|
-
reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array:
|
|
2331
|
-
reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array:
|
|
2322
|
+
reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8Array) => number): number;
|
|
2323
|
+
reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8Array) => number, initialValue: number): number;
|
|
2332
2324
|
|
|
2333
2325
|
/**
|
|
2334
2326
|
* Calls the specified callback function for all the elements in an array, in descending order.
|
|
@@ -2340,12 +2332,12 @@ interface Uint8Array<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> {
|
|
|
2340
2332
|
* the accumulation. The first call to the callbackfn function provides this value as an argument
|
|
2341
2333
|
* instead of an array value.
|
|
2342
2334
|
*/
|
|
2343
|
-
reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array:
|
|
2335
|
+
reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint8Array) => U, initialValue: U): U;
|
|
2344
2336
|
|
|
2345
2337
|
/**
|
|
2346
2338
|
* Reverses the elements in an Array.
|
|
2347
2339
|
*/
|
|
2348
|
-
reverse():
|
|
2340
|
+
reverse(): Uint8Array;
|
|
2349
2341
|
|
|
2350
2342
|
/**
|
|
2351
2343
|
* Sets a value or an array of values.
|
|
@@ -2359,7 +2351,7 @@ interface Uint8Array<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> {
|
|
|
2359
2351
|
* @param start The beginning of the specified portion of the array.
|
|
2360
2352
|
* @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'.
|
|
2361
2353
|
*/
|
|
2362
|
-
slice(start?: number, end?: number): Uint8Array
|
|
2354
|
+
slice(start?: number, end?: number): Uint8Array;
|
|
2363
2355
|
|
|
2364
2356
|
/**
|
|
2365
2357
|
* Determines whether the specified callback function returns true for any element of an array.
|
|
@@ -2369,7 +2361,7 @@ interface Uint8Array<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> {
|
|
|
2369
2361
|
* @param thisArg An object to which the this keyword can refer in the predicate function.
|
|
2370
2362
|
* If thisArg is omitted, undefined is used as the this value.
|
|
2371
2363
|
*/
|
|
2372
|
-
some(predicate: (value: number, index: number, array:
|
|
2364
|
+
some(predicate: (value: number, index: number, array: Uint8Array) => unknown, thisArg?: any): boolean;
|
|
2373
2365
|
|
|
2374
2366
|
/**
|
|
2375
2367
|
* Sorts an array.
|
|
@@ -2388,7 +2380,7 @@ interface Uint8Array<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> {
|
|
|
2388
2380
|
* @param begin The index of the beginning of the array.
|
|
2389
2381
|
* @param end The index of the end of the array.
|
|
2390
2382
|
*/
|
|
2391
|
-
subarray(begin?: number, end?: number): Uint8Array
|
|
2383
|
+
subarray(begin?: number, end?: number): Uint8Array;
|
|
2392
2384
|
|
|
2393
2385
|
/**
|
|
2394
2386
|
* Converts a number to a string by using the current locale.
|
|
@@ -2401,17 +2393,16 @@ interface Uint8Array<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> {
|
|
|
2401
2393
|
toString(): string;
|
|
2402
2394
|
|
|
2403
2395
|
/** Returns the primitive value of the specified object. */
|
|
2404
|
-
valueOf():
|
|
2396
|
+
valueOf(): Uint8Array;
|
|
2405
2397
|
|
|
2406
2398
|
[index: number]: number;
|
|
2407
2399
|
}
|
|
2400
|
+
|
|
2408
2401
|
interface Uint8ArrayConstructor {
|
|
2409
|
-
readonly prototype: Uint8Array
|
|
2410
|
-
new (length: number): Uint8Array
|
|
2411
|
-
new (array: ArrayLike<number>): Uint8Array
|
|
2412
|
-
new
|
|
2413
|
-
new (buffer: ArrayBuffer, byteOffset?: number, length?: number): Uint8Array<ArrayBuffer>;
|
|
2414
|
-
new (array: ArrayLike<number> | ArrayBuffer): Uint8Array<ArrayBuffer>;
|
|
2402
|
+
readonly prototype: Uint8Array;
|
|
2403
|
+
new (length: number): Uint8Array;
|
|
2404
|
+
new (array: ArrayLike<number> | ArrayBufferLike): Uint8Array;
|
|
2405
|
+
new (buffer: ArrayBufferLike, byteOffset?: number, length?: number): Uint8Array;
|
|
2415
2406
|
|
|
2416
2407
|
/**
|
|
2417
2408
|
* The size in bytes of each element in the array.
|
|
@@ -2422,21 +2413,21 @@ interface Uint8ArrayConstructor {
|
|
|
2422
2413
|
* Returns a new array from a set of elements.
|
|
2423
2414
|
* @param items A set of elements to include in the new array object.
|
|
2424
2415
|
*/
|
|
2425
|
-
of(...items: number[]): Uint8Array
|
|
2416
|
+
of(...items: number[]): Uint8Array;
|
|
2426
2417
|
|
|
2427
2418
|
/**
|
|
2428
2419
|
* Creates an array from an array-like or iterable object.
|
|
2429
|
-
* @param arrayLike An array-like object to convert to an array.
|
|
2420
|
+
* @param arrayLike An array-like or iterable object to convert to an array.
|
|
2430
2421
|
*/
|
|
2431
|
-
from(arrayLike: ArrayLike<number>): Uint8Array
|
|
2422
|
+
from(arrayLike: ArrayLike<number>): Uint8Array;
|
|
2432
2423
|
|
|
2433
2424
|
/**
|
|
2434
2425
|
* Creates an array from an array-like or iterable object.
|
|
2435
|
-
* @param arrayLike An array-like object to convert to an array.
|
|
2426
|
+
* @param arrayLike An array-like or iterable object to convert to an array.
|
|
2436
2427
|
* @param mapfn A mapping function to call on every element of the array.
|
|
2437
2428
|
* @param thisArg Value of 'this' used to invoke the mapfn.
|
|
2438
2429
|
*/
|
|
2439
|
-
from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Uint8Array
|
|
2430
|
+
from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Uint8Array;
|
|
2440
2431
|
}
|
|
2441
2432
|
declare var Uint8Array: Uint8ArrayConstructor;
|
|
2442
2433
|
|
|
@@ -2444,7 +2435,7 @@ declare var Uint8Array: Uint8ArrayConstructor;
|
|
|
2444
2435
|
* A typed array of 8-bit unsigned integer (clamped) values. The contents are initialized to 0.
|
|
2445
2436
|
* If the requested number of bytes could not be allocated an exception is raised.
|
|
2446
2437
|
*/
|
|
2447
|
-
interface Uint8ClampedArray
|
|
2438
|
+
interface Uint8ClampedArray {
|
|
2448
2439
|
/**
|
|
2449
2440
|
* The size in bytes of each element in the array.
|
|
2450
2441
|
*/
|
|
@@ -2453,7 +2444,7 @@ interface Uint8ClampedArray<TArrayBuffer extends ArrayBufferLike = ArrayBufferLi
|
|
|
2453
2444
|
/**
|
|
2454
2445
|
* The ArrayBuffer instance referenced by the array.
|
|
2455
2446
|
*/
|
|
2456
|
-
readonly buffer:
|
|
2447
|
+
readonly buffer: ArrayBufferLike;
|
|
2457
2448
|
|
|
2458
2449
|
/**
|
|
2459
2450
|
* The length in bytes of the array.
|
|
@@ -2484,7 +2475,7 @@ interface Uint8ClampedArray<TArrayBuffer extends ArrayBufferLike = ArrayBufferLi
|
|
|
2484
2475
|
* @param thisArg An object to which the this keyword can refer in the predicate function.
|
|
2485
2476
|
* If thisArg is omitted, undefined is used as the this value.
|
|
2486
2477
|
*/
|
|
2487
|
-
every(predicate: (value: number, index: number, array:
|
|
2478
|
+
every(predicate: (value: number, index: number, array: Uint8ClampedArray) => unknown, thisArg?: any): boolean;
|
|
2488
2479
|
|
|
2489
2480
|
/**
|
|
2490
2481
|
* Changes all array elements from `start` to `end` index to a static `value` and returns the modified array
|
|
@@ -2503,7 +2494,7 @@ interface Uint8ClampedArray<TArrayBuffer extends ArrayBufferLike = ArrayBufferLi
|
|
|
2503
2494
|
* @param thisArg An object to which the this keyword can refer in the predicate function.
|
|
2504
2495
|
* If thisArg is omitted, undefined is used as the this value.
|
|
2505
2496
|
*/
|
|
2506
|
-
filter(predicate: (value: number, index: number, array:
|
|
2497
|
+
filter(predicate: (value: number, index: number, array: Uint8ClampedArray) => any, thisArg?: any): Uint8ClampedArray;
|
|
2507
2498
|
|
|
2508
2499
|
/**
|
|
2509
2500
|
* Returns the value of the first element in the array where predicate is true, and undefined
|
|
@@ -2514,7 +2505,7 @@ interface Uint8ClampedArray<TArrayBuffer extends ArrayBufferLike = ArrayBufferLi
|
|
|
2514
2505
|
* @param thisArg If provided, it will be used as the this value for each invocation of
|
|
2515
2506
|
* predicate. If it is not provided, undefined is used instead.
|
|
2516
2507
|
*/
|
|
2517
|
-
find(predicate: (value: number, index: number, obj:
|
|
2508
|
+
find(predicate: (value: number, index: number, obj: Uint8ClampedArray) => boolean, thisArg?: any): number | undefined;
|
|
2518
2509
|
|
|
2519
2510
|
/**
|
|
2520
2511
|
* Returns the index of the first element in the array where predicate is true, and -1
|
|
@@ -2525,22 +2516,22 @@ interface Uint8ClampedArray<TArrayBuffer extends ArrayBufferLike = ArrayBufferLi
|
|
|
2525
2516
|
* @param thisArg If provided, it will be used as the this value for each invocation of
|
|
2526
2517
|
* predicate. If it is not provided, undefined is used instead.
|
|
2527
2518
|
*/
|
|
2528
|
-
findIndex(predicate: (value: number, index: number, obj:
|
|
2519
|
+
findIndex(predicate: (value: number, index: number, obj: Uint8ClampedArray) => boolean, thisArg?: any): number;
|
|
2529
2520
|
|
|
2530
2521
|
/**
|
|
2531
2522
|
* Performs the specified action for each element in an array.
|
|
2532
|
-
* @param callbackfn
|
|
2523
|
+
* @param callbackfn A function that accepts up to three arguments. forEach calls the
|
|
2533
2524
|
* callbackfn function one time for each element in the array.
|
|
2534
|
-
* @param thisArg
|
|
2525
|
+
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
|
|
2535
2526
|
* If thisArg is omitted, undefined is used as the this value.
|
|
2536
2527
|
*/
|
|
2537
|
-
forEach(callbackfn: (value: number, index: number, array:
|
|
2528
|
+
forEach(callbackfn: (value: number, index: number, array: Uint8ClampedArray) => void, thisArg?: any): void;
|
|
2538
2529
|
|
|
2539
2530
|
/**
|
|
2540
2531
|
* Returns the index of the first occurrence of a value in an array.
|
|
2541
2532
|
* @param searchElement The value to locate in the array.
|
|
2542
2533
|
* @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
|
|
2543
|
-
*
|
|
2534
|
+
* search starts at index 0.
|
|
2544
2535
|
*/
|
|
2545
2536
|
indexOf(searchElement: number, fromIndex?: number): number;
|
|
2546
2537
|
|
|
@@ -2572,7 +2563,7 @@ interface Uint8ClampedArray<TArrayBuffer extends ArrayBufferLike = ArrayBufferLi
|
|
|
2572
2563
|
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
|
|
2573
2564
|
* If thisArg is omitted, undefined is used as the this value.
|
|
2574
2565
|
*/
|
|
2575
|
-
map(callbackfn: (value: number, index: number, array:
|
|
2566
|
+
map(callbackfn: (value: number, index: number, array: Uint8ClampedArray) => number, thisArg?: any): Uint8ClampedArray;
|
|
2576
2567
|
|
|
2577
2568
|
/**
|
|
2578
2569
|
* Calls the specified callback function for all the elements in an array. The return value of
|
|
@@ -2584,8 +2575,8 @@ interface Uint8ClampedArray<TArrayBuffer extends ArrayBufferLike = ArrayBufferLi
|
|
|
2584
2575
|
* the accumulation. The first call to the callbackfn function provides this value as an argument
|
|
2585
2576
|
* instead of an array value.
|
|
2586
2577
|
*/
|
|
2587
|
-
reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array:
|
|
2588
|
-
reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array:
|
|
2578
|
+
reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8ClampedArray) => number): number;
|
|
2579
|
+
reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8ClampedArray) => number, initialValue: number): number;
|
|
2589
2580
|
|
|
2590
2581
|
/**
|
|
2591
2582
|
* Calls the specified callback function for all the elements in an array. The return value of
|
|
@@ -2597,7 +2588,7 @@ interface Uint8ClampedArray<TArrayBuffer extends ArrayBufferLike = ArrayBufferLi
|
|
|
2597
2588
|
* the accumulation. The first call to the callbackfn function provides this value as an argument
|
|
2598
2589
|
* instead of an array value.
|
|
2599
2590
|
*/
|
|
2600
|
-
reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array:
|
|
2591
|
+
reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint8ClampedArray) => U, initialValue: U): U;
|
|
2601
2592
|
|
|
2602
2593
|
/**
|
|
2603
2594
|
* Calls the specified callback function for all the elements in an array, in descending order.
|
|
@@ -2609,8 +2600,8 @@ interface Uint8ClampedArray<TArrayBuffer extends ArrayBufferLike = ArrayBufferLi
|
|
|
2609
2600
|
* the accumulation. The first call to the callbackfn function provides this value as an
|
|
2610
2601
|
* argument instead of an array value.
|
|
2611
2602
|
*/
|
|
2612
|
-
reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array:
|
|
2613
|
-
reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array:
|
|
2603
|
+
reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8ClampedArray) => number): number;
|
|
2604
|
+
reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8ClampedArray) => number, initialValue: number): number;
|
|
2614
2605
|
|
|
2615
2606
|
/**
|
|
2616
2607
|
* Calls the specified callback function for all the elements in an array, in descending order.
|
|
@@ -2622,12 +2613,12 @@ interface Uint8ClampedArray<TArrayBuffer extends ArrayBufferLike = ArrayBufferLi
|
|
|
2622
2613
|
* the accumulation. The first call to the callbackfn function provides this value as an argument
|
|
2623
2614
|
* instead of an array value.
|
|
2624
2615
|
*/
|
|
2625
|
-
reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array:
|
|
2616
|
+
reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint8ClampedArray) => U, initialValue: U): U;
|
|
2626
2617
|
|
|
2627
2618
|
/**
|
|
2628
2619
|
* Reverses the elements in an Array.
|
|
2629
2620
|
*/
|
|
2630
|
-
reverse():
|
|
2621
|
+
reverse(): Uint8ClampedArray;
|
|
2631
2622
|
|
|
2632
2623
|
/**
|
|
2633
2624
|
* Sets a value or an array of values.
|
|
@@ -2641,7 +2632,7 @@ interface Uint8ClampedArray<TArrayBuffer extends ArrayBufferLike = ArrayBufferLi
|
|
|
2641
2632
|
* @param start The beginning of the specified portion of the array.
|
|
2642
2633
|
* @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'.
|
|
2643
2634
|
*/
|
|
2644
|
-
slice(start?: number, end?: number): Uint8ClampedArray
|
|
2635
|
+
slice(start?: number, end?: number): Uint8ClampedArray;
|
|
2645
2636
|
|
|
2646
2637
|
/**
|
|
2647
2638
|
* Determines whether the specified callback function returns true for any element of an array.
|
|
@@ -2651,7 +2642,7 @@ interface Uint8ClampedArray<TArrayBuffer extends ArrayBufferLike = ArrayBufferLi
|
|
|
2651
2642
|
* @param thisArg An object to which the this keyword can refer in the predicate function.
|
|
2652
2643
|
* If thisArg is omitted, undefined is used as the this value.
|
|
2653
2644
|
*/
|
|
2654
|
-
some(predicate: (value: number, index: number, array:
|
|
2645
|
+
some(predicate: (value: number, index: number, array: Uint8ClampedArray) => unknown, thisArg?: any): boolean;
|
|
2655
2646
|
|
|
2656
2647
|
/**
|
|
2657
2648
|
* Sorts an array.
|
|
@@ -2670,7 +2661,7 @@ interface Uint8ClampedArray<TArrayBuffer extends ArrayBufferLike = ArrayBufferLi
|
|
|
2670
2661
|
* @param begin The index of the beginning of the array.
|
|
2671
2662
|
* @param end The index of the end of the array.
|
|
2672
2663
|
*/
|
|
2673
|
-
subarray(begin?: number, end?: number): Uint8ClampedArray
|
|
2664
|
+
subarray(begin?: number, end?: number): Uint8ClampedArray;
|
|
2674
2665
|
|
|
2675
2666
|
/**
|
|
2676
2667
|
* Converts a number to a string by using the current locale.
|
|
@@ -2683,17 +2674,16 @@ interface Uint8ClampedArray<TArrayBuffer extends ArrayBufferLike = ArrayBufferLi
|
|
|
2683
2674
|
toString(): string;
|
|
2684
2675
|
|
|
2685
2676
|
/** Returns the primitive value of the specified object. */
|
|
2686
|
-
valueOf():
|
|
2677
|
+
valueOf(): Uint8ClampedArray;
|
|
2687
2678
|
|
|
2688
2679
|
[index: number]: number;
|
|
2689
2680
|
}
|
|
2681
|
+
|
|
2690
2682
|
interface Uint8ClampedArrayConstructor {
|
|
2691
|
-
readonly prototype: Uint8ClampedArray
|
|
2692
|
-
new (length: number): Uint8ClampedArray
|
|
2693
|
-
new (array: ArrayLike<number>): Uint8ClampedArray
|
|
2694
|
-
new
|
|
2695
|
-
new (buffer: ArrayBuffer, byteOffset?: number, length?: number): Uint8ClampedArray<ArrayBuffer>;
|
|
2696
|
-
new (array: ArrayLike<number> | ArrayBuffer): Uint8ClampedArray<ArrayBuffer>;
|
|
2683
|
+
readonly prototype: Uint8ClampedArray;
|
|
2684
|
+
new (length: number): Uint8ClampedArray;
|
|
2685
|
+
new (array: ArrayLike<number> | ArrayBufferLike): Uint8ClampedArray;
|
|
2686
|
+
new (buffer: ArrayBufferLike, byteOffset?: number, length?: number): Uint8ClampedArray;
|
|
2697
2687
|
|
|
2698
2688
|
/**
|
|
2699
2689
|
* The size in bytes of each element in the array.
|
|
@@ -2704,21 +2694,21 @@ interface Uint8ClampedArrayConstructor {
|
|
|
2704
2694
|
* Returns a new array from a set of elements.
|
|
2705
2695
|
* @param items A set of elements to include in the new array object.
|
|
2706
2696
|
*/
|
|
2707
|
-
of(...items: number[]): Uint8ClampedArray
|
|
2697
|
+
of(...items: number[]): Uint8ClampedArray;
|
|
2708
2698
|
|
|
2709
2699
|
/**
|
|
2710
2700
|
* Creates an array from an array-like or iterable object.
|
|
2711
|
-
* @param arrayLike An array-like object to convert to an array.
|
|
2701
|
+
* @param arrayLike An array-like or iterable object to convert to an array.
|
|
2712
2702
|
*/
|
|
2713
|
-
from(arrayLike: ArrayLike<number>): Uint8ClampedArray
|
|
2703
|
+
from(arrayLike: ArrayLike<number>): Uint8ClampedArray;
|
|
2714
2704
|
|
|
2715
2705
|
/**
|
|
2716
2706
|
* Creates an array from an array-like or iterable object.
|
|
2717
|
-
* @param arrayLike An array-like object to convert to an array.
|
|
2707
|
+
* @param arrayLike An array-like or iterable object to convert to an array.
|
|
2718
2708
|
* @param mapfn A mapping function to call on every element of the array.
|
|
2719
2709
|
* @param thisArg Value of 'this' used to invoke the mapfn.
|
|
2720
2710
|
*/
|
|
2721
|
-
from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Uint8ClampedArray
|
|
2711
|
+
from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Uint8ClampedArray;
|
|
2722
2712
|
}
|
|
2723
2713
|
declare var Uint8ClampedArray: Uint8ClampedArrayConstructor;
|
|
2724
2714
|
|
|
@@ -2726,7 +2716,7 @@ declare var Uint8ClampedArray: Uint8ClampedArrayConstructor;
|
|
|
2726
2716
|
* A typed array of 16-bit signed integer values. The contents are initialized to 0. If the
|
|
2727
2717
|
* requested number of bytes could not be allocated an exception is raised.
|
|
2728
2718
|
*/
|
|
2729
|
-
interface Int16Array
|
|
2719
|
+
interface Int16Array {
|
|
2730
2720
|
/**
|
|
2731
2721
|
* The size in bytes of each element in the array.
|
|
2732
2722
|
*/
|
|
@@ -2735,7 +2725,7 @@ interface Int16Array<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> {
|
|
|
2735
2725
|
/**
|
|
2736
2726
|
* The ArrayBuffer instance referenced by the array.
|
|
2737
2727
|
*/
|
|
2738
|
-
readonly buffer:
|
|
2728
|
+
readonly buffer: ArrayBufferLike;
|
|
2739
2729
|
|
|
2740
2730
|
/**
|
|
2741
2731
|
* The length in bytes of the array.
|
|
@@ -2766,7 +2756,7 @@ interface Int16Array<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> {
|
|
|
2766
2756
|
* @param thisArg An object to which the this keyword can refer in the predicate function.
|
|
2767
2757
|
* If thisArg is omitted, undefined is used as the this value.
|
|
2768
2758
|
*/
|
|
2769
|
-
every(predicate: (value: number, index: number, array:
|
|
2759
|
+
every(predicate: (value: number, index: number, array: Int16Array) => unknown, thisArg?: any): boolean;
|
|
2770
2760
|
|
|
2771
2761
|
/**
|
|
2772
2762
|
* Changes all array elements from `start` to `end` index to a static `value` and returns the modified array
|
|
@@ -2785,7 +2775,7 @@ interface Int16Array<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> {
|
|
|
2785
2775
|
* @param thisArg An object to which the this keyword can refer in the predicate function.
|
|
2786
2776
|
* If thisArg is omitted, undefined is used as the this value.
|
|
2787
2777
|
*/
|
|
2788
|
-
filter(predicate: (value: number, index: number, array:
|
|
2778
|
+
filter(predicate: (value: number, index: number, array: Int16Array) => any, thisArg?: any): Int16Array;
|
|
2789
2779
|
|
|
2790
2780
|
/**
|
|
2791
2781
|
* Returns the value of the first element in the array where predicate is true, and undefined
|
|
@@ -2796,7 +2786,7 @@ interface Int16Array<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> {
|
|
|
2796
2786
|
* @param thisArg If provided, it will be used as the this value for each invocation of
|
|
2797
2787
|
* predicate. If it is not provided, undefined is used instead.
|
|
2798
2788
|
*/
|
|
2799
|
-
find(predicate: (value: number, index: number, obj:
|
|
2789
|
+
find(predicate: (value: number, index: number, obj: Int16Array) => boolean, thisArg?: any): number | undefined;
|
|
2800
2790
|
|
|
2801
2791
|
/**
|
|
2802
2792
|
* Returns the index of the first element in the array where predicate is true, and -1
|
|
@@ -2807,21 +2797,21 @@ interface Int16Array<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> {
|
|
|
2807
2797
|
* @param thisArg If provided, it will be used as the this value for each invocation of
|
|
2808
2798
|
* predicate. If it is not provided, undefined is used instead.
|
|
2809
2799
|
*/
|
|
2810
|
-
findIndex(predicate: (value: number, index: number, obj:
|
|
2800
|
+
findIndex(predicate: (value: number, index: number, obj: Int16Array) => boolean, thisArg?: any): number;
|
|
2811
2801
|
|
|
2812
2802
|
/**
|
|
2813
2803
|
* Performs the specified action for each element in an array.
|
|
2814
|
-
* @param callbackfn
|
|
2804
|
+
* @param callbackfn A function that accepts up to three arguments. forEach calls the
|
|
2815
2805
|
* callbackfn function one time for each element in the array.
|
|
2816
|
-
* @param thisArg
|
|
2806
|
+
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
|
|
2817
2807
|
* If thisArg is omitted, undefined is used as the this value.
|
|
2818
2808
|
*/
|
|
2819
|
-
forEach(callbackfn: (value: number, index: number, array:
|
|
2809
|
+
forEach(callbackfn: (value: number, index: number, array: Int16Array) => void, thisArg?: any): void;
|
|
2820
2810
|
/**
|
|
2821
2811
|
* Returns the index of the first occurrence of a value in an array.
|
|
2822
2812
|
* @param searchElement The value to locate in the array.
|
|
2823
2813
|
* @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
|
|
2824
|
-
*
|
|
2814
|
+
* search starts at index 0.
|
|
2825
2815
|
*/
|
|
2826
2816
|
indexOf(searchElement: number, fromIndex?: number): number;
|
|
2827
2817
|
|
|
@@ -2853,7 +2843,7 @@ interface Int16Array<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> {
|
|
|
2853
2843
|
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
|
|
2854
2844
|
* If thisArg is omitted, undefined is used as the this value.
|
|
2855
2845
|
*/
|
|
2856
|
-
map(callbackfn: (value: number, index: number, array:
|
|
2846
|
+
map(callbackfn: (value: number, index: number, array: Int16Array) => number, thisArg?: any): Int16Array;
|
|
2857
2847
|
|
|
2858
2848
|
/**
|
|
2859
2849
|
* Calls the specified callback function for all the elements in an array. The return value of
|
|
@@ -2865,8 +2855,8 @@ interface Int16Array<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> {
|
|
|
2865
2855
|
* the accumulation. The first call to the callbackfn function provides this value as an argument
|
|
2866
2856
|
* instead of an array value.
|
|
2867
2857
|
*/
|
|
2868
|
-
reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array:
|
|
2869
|
-
reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array:
|
|
2858
|
+
reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int16Array) => number): number;
|
|
2859
|
+
reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int16Array) => number, initialValue: number): number;
|
|
2870
2860
|
|
|
2871
2861
|
/**
|
|
2872
2862
|
* Calls the specified callback function for all the elements in an array. The return value of
|
|
@@ -2878,7 +2868,7 @@ interface Int16Array<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> {
|
|
|
2878
2868
|
* the accumulation. The first call to the callbackfn function provides this value as an argument
|
|
2879
2869
|
* instead of an array value.
|
|
2880
2870
|
*/
|
|
2881
|
-
reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array:
|
|
2871
|
+
reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Int16Array) => U, initialValue: U): U;
|
|
2882
2872
|
|
|
2883
2873
|
/**
|
|
2884
2874
|
* Calls the specified callback function for all the elements in an array, in descending order.
|
|
@@ -2890,8 +2880,8 @@ interface Int16Array<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> {
|
|
|
2890
2880
|
* the accumulation. The first call to the callbackfn function provides this value as an
|
|
2891
2881
|
* argument instead of an array value.
|
|
2892
2882
|
*/
|
|
2893
|
-
reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array:
|
|
2894
|
-
reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array:
|
|
2883
|
+
reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int16Array) => number): number;
|
|
2884
|
+
reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int16Array) => number, initialValue: number): number;
|
|
2895
2885
|
|
|
2896
2886
|
/**
|
|
2897
2887
|
* Calls the specified callback function for all the elements in an array, in descending order.
|
|
@@ -2903,12 +2893,12 @@ interface Int16Array<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> {
|
|
|
2903
2893
|
* the accumulation. The first call to the callbackfn function provides this value as an argument
|
|
2904
2894
|
* instead of an array value.
|
|
2905
2895
|
*/
|
|
2906
|
-
reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array:
|
|
2896
|
+
reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Int16Array) => U, initialValue: U): U;
|
|
2907
2897
|
|
|
2908
2898
|
/**
|
|
2909
2899
|
* Reverses the elements in an Array.
|
|
2910
2900
|
*/
|
|
2911
|
-
reverse():
|
|
2901
|
+
reverse(): Int16Array;
|
|
2912
2902
|
|
|
2913
2903
|
/**
|
|
2914
2904
|
* Sets a value or an array of values.
|
|
@@ -2922,7 +2912,7 @@ interface Int16Array<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> {
|
|
|
2922
2912
|
* @param start The beginning of the specified portion of the array.
|
|
2923
2913
|
* @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'.
|
|
2924
2914
|
*/
|
|
2925
|
-
slice(start?: number, end?: number): Int16Array
|
|
2915
|
+
slice(start?: number, end?: number): Int16Array;
|
|
2926
2916
|
|
|
2927
2917
|
/**
|
|
2928
2918
|
* Determines whether the specified callback function returns true for any element of an array.
|
|
@@ -2932,7 +2922,7 @@ interface Int16Array<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> {
|
|
|
2932
2922
|
* @param thisArg An object to which the this keyword can refer in the predicate function.
|
|
2933
2923
|
* If thisArg is omitted, undefined is used as the this value.
|
|
2934
2924
|
*/
|
|
2935
|
-
some(predicate: (value: number, index: number, array:
|
|
2925
|
+
some(predicate: (value: number, index: number, array: Int16Array) => unknown, thisArg?: any): boolean;
|
|
2936
2926
|
|
|
2937
2927
|
/**
|
|
2938
2928
|
* Sorts an array.
|
|
@@ -2951,7 +2941,7 @@ interface Int16Array<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> {
|
|
|
2951
2941
|
* @param begin The index of the beginning of the array.
|
|
2952
2942
|
* @param end The index of the end of the array.
|
|
2953
2943
|
*/
|
|
2954
|
-
subarray(begin?: number, end?: number): Int16Array
|
|
2944
|
+
subarray(begin?: number, end?: number): Int16Array;
|
|
2955
2945
|
|
|
2956
2946
|
/**
|
|
2957
2947
|
* Converts a number to a string by using the current locale.
|
|
@@ -2964,17 +2954,16 @@ interface Int16Array<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> {
|
|
|
2964
2954
|
toString(): string;
|
|
2965
2955
|
|
|
2966
2956
|
/** Returns the primitive value of the specified object. */
|
|
2967
|
-
valueOf():
|
|
2957
|
+
valueOf(): Int16Array;
|
|
2968
2958
|
|
|
2969
2959
|
[index: number]: number;
|
|
2970
2960
|
}
|
|
2961
|
+
|
|
2971
2962
|
interface Int16ArrayConstructor {
|
|
2972
|
-
readonly prototype: Int16Array
|
|
2973
|
-
new (length: number): Int16Array
|
|
2974
|
-
new (array: ArrayLike<number>): Int16Array
|
|
2975
|
-
new
|
|
2976
|
-
new (buffer: ArrayBuffer, byteOffset?: number, length?: number): Int16Array<ArrayBuffer>;
|
|
2977
|
-
new (array: ArrayLike<number> | ArrayBuffer): Int16Array<ArrayBuffer>;
|
|
2963
|
+
readonly prototype: Int16Array;
|
|
2964
|
+
new (length: number): Int16Array;
|
|
2965
|
+
new (array: ArrayLike<number> | ArrayBufferLike): Int16Array;
|
|
2966
|
+
new (buffer: ArrayBufferLike, byteOffset?: number, length?: number): Int16Array;
|
|
2978
2967
|
|
|
2979
2968
|
/**
|
|
2980
2969
|
* The size in bytes of each element in the array.
|
|
@@ -2985,21 +2974,21 @@ interface Int16ArrayConstructor {
|
|
|
2985
2974
|
* Returns a new array from a set of elements.
|
|
2986
2975
|
* @param items A set of elements to include in the new array object.
|
|
2987
2976
|
*/
|
|
2988
|
-
of(...items: number[]): Int16Array
|
|
2977
|
+
of(...items: number[]): Int16Array;
|
|
2989
2978
|
|
|
2990
2979
|
/**
|
|
2991
2980
|
* Creates an array from an array-like or iterable object.
|
|
2992
|
-
* @param arrayLike An array-like object to convert to an array.
|
|
2981
|
+
* @param arrayLike An array-like or iterable object to convert to an array.
|
|
2993
2982
|
*/
|
|
2994
|
-
from(arrayLike: ArrayLike<number>): Int16Array
|
|
2983
|
+
from(arrayLike: ArrayLike<number>): Int16Array;
|
|
2995
2984
|
|
|
2996
2985
|
/**
|
|
2997
2986
|
* Creates an array from an array-like or iterable object.
|
|
2998
|
-
* @param arrayLike An array-like object to convert to an array.
|
|
2987
|
+
* @param arrayLike An array-like or iterable object to convert to an array.
|
|
2999
2988
|
* @param mapfn A mapping function to call on every element of the array.
|
|
3000
2989
|
* @param thisArg Value of 'this' used to invoke the mapfn.
|
|
3001
2990
|
*/
|
|
3002
|
-
from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Int16Array
|
|
2991
|
+
from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Int16Array;
|
|
3003
2992
|
}
|
|
3004
2993
|
declare var Int16Array: Int16ArrayConstructor;
|
|
3005
2994
|
|
|
@@ -3007,7 +2996,7 @@ declare var Int16Array: Int16ArrayConstructor;
|
|
|
3007
2996
|
* A typed array of 16-bit unsigned integer values. The contents are initialized to 0. If the
|
|
3008
2997
|
* requested number of bytes could not be allocated an exception is raised.
|
|
3009
2998
|
*/
|
|
3010
|
-
interface Uint16Array
|
|
2999
|
+
interface Uint16Array {
|
|
3011
3000
|
/**
|
|
3012
3001
|
* The size in bytes of each element in the array.
|
|
3013
3002
|
*/
|
|
@@ -3016,7 +3005,7 @@ interface Uint16Array<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> {
|
|
|
3016
3005
|
/**
|
|
3017
3006
|
* The ArrayBuffer instance referenced by the array.
|
|
3018
3007
|
*/
|
|
3019
|
-
readonly buffer:
|
|
3008
|
+
readonly buffer: ArrayBufferLike;
|
|
3020
3009
|
|
|
3021
3010
|
/**
|
|
3022
3011
|
* The length in bytes of the array.
|
|
@@ -3047,7 +3036,7 @@ interface Uint16Array<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> {
|
|
|
3047
3036
|
* @param thisArg An object to which the this keyword can refer in the predicate function.
|
|
3048
3037
|
* If thisArg is omitted, undefined is used as the this value.
|
|
3049
3038
|
*/
|
|
3050
|
-
every(predicate: (value: number, index: number, array:
|
|
3039
|
+
every(predicate: (value: number, index: number, array: Uint16Array) => unknown, thisArg?: any): boolean;
|
|
3051
3040
|
|
|
3052
3041
|
/**
|
|
3053
3042
|
* Changes all array elements from `start` to `end` index to a static `value` and returns the modified array
|
|
@@ -3066,7 +3055,7 @@ interface Uint16Array<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> {
|
|
|
3066
3055
|
* @param thisArg An object to which the this keyword can refer in the predicate function.
|
|
3067
3056
|
* If thisArg is omitted, undefined is used as the this value.
|
|
3068
3057
|
*/
|
|
3069
|
-
filter(predicate: (value: number, index: number, array:
|
|
3058
|
+
filter(predicate: (value: number, index: number, array: Uint16Array) => any, thisArg?: any): Uint16Array;
|
|
3070
3059
|
|
|
3071
3060
|
/**
|
|
3072
3061
|
* Returns the value of the first element in the array where predicate is true, and undefined
|
|
@@ -3077,7 +3066,7 @@ interface Uint16Array<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> {
|
|
|
3077
3066
|
* @param thisArg If provided, it will be used as the this value for each invocation of
|
|
3078
3067
|
* predicate. If it is not provided, undefined is used instead.
|
|
3079
3068
|
*/
|
|
3080
|
-
find(predicate: (value: number, index: number, obj:
|
|
3069
|
+
find(predicate: (value: number, index: number, obj: Uint16Array) => boolean, thisArg?: any): number | undefined;
|
|
3081
3070
|
|
|
3082
3071
|
/**
|
|
3083
3072
|
* Returns the index of the first element in the array where predicate is true, and -1
|
|
@@ -3088,22 +3077,22 @@ interface Uint16Array<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> {
|
|
|
3088
3077
|
* @param thisArg If provided, it will be used as the this value for each invocation of
|
|
3089
3078
|
* predicate. If it is not provided, undefined is used instead.
|
|
3090
3079
|
*/
|
|
3091
|
-
findIndex(predicate: (value: number, index: number, obj:
|
|
3080
|
+
findIndex(predicate: (value: number, index: number, obj: Uint16Array) => boolean, thisArg?: any): number;
|
|
3092
3081
|
|
|
3093
3082
|
/**
|
|
3094
3083
|
* Performs the specified action for each element in an array.
|
|
3095
|
-
* @param callbackfn
|
|
3084
|
+
* @param callbackfn A function that accepts up to three arguments. forEach calls the
|
|
3096
3085
|
* callbackfn function one time for each element in the array.
|
|
3097
|
-
* @param thisArg
|
|
3086
|
+
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
|
|
3098
3087
|
* If thisArg is omitted, undefined is used as the this value.
|
|
3099
3088
|
*/
|
|
3100
|
-
forEach(callbackfn: (value: number, index: number, array:
|
|
3089
|
+
forEach(callbackfn: (value: number, index: number, array: Uint16Array) => void, thisArg?: any): void;
|
|
3101
3090
|
|
|
3102
3091
|
/**
|
|
3103
3092
|
* Returns the index of the first occurrence of a value in an array.
|
|
3104
3093
|
* @param searchElement The value to locate in the array.
|
|
3105
3094
|
* @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
|
|
3106
|
-
*
|
|
3095
|
+
* search starts at index 0.
|
|
3107
3096
|
*/
|
|
3108
3097
|
indexOf(searchElement: number, fromIndex?: number): number;
|
|
3109
3098
|
|
|
@@ -3135,7 +3124,7 @@ interface Uint16Array<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> {
|
|
|
3135
3124
|
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
|
|
3136
3125
|
* If thisArg is omitted, undefined is used as the this value.
|
|
3137
3126
|
*/
|
|
3138
|
-
map(callbackfn: (value: number, index: number, array:
|
|
3127
|
+
map(callbackfn: (value: number, index: number, array: Uint16Array) => number, thisArg?: any): Uint16Array;
|
|
3139
3128
|
|
|
3140
3129
|
/**
|
|
3141
3130
|
* Calls the specified callback function for all the elements in an array. The return value of
|
|
@@ -3147,8 +3136,8 @@ interface Uint16Array<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> {
|
|
|
3147
3136
|
* the accumulation. The first call to the callbackfn function provides this value as an argument
|
|
3148
3137
|
* instead of an array value.
|
|
3149
3138
|
*/
|
|
3150
|
-
reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array:
|
|
3151
|
-
reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array:
|
|
3139
|
+
reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint16Array) => number): number;
|
|
3140
|
+
reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint16Array) => number, initialValue: number): number;
|
|
3152
3141
|
|
|
3153
3142
|
/**
|
|
3154
3143
|
* Calls the specified callback function for all the elements in an array. The return value of
|
|
@@ -3160,7 +3149,7 @@ interface Uint16Array<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> {
|
|
|
3160
3149
|
* the accumulation. The first call to the callbackfn function provides this value as an argument
|
|
3161
3150
|
* instead of an array value.
|
|
3162
3151
|
*/
|
|
3163
|
-
reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array:
|
|
3152
|
+
reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint16Array) => U, initialValue: U): U;
|
|
3164
3153
|
|
|
3165
3154
|
/**
|
|
3166
3155
|
* Calls the specified callback function for all the elements in an array, in descending order.
|
|
@@ -3172,8 +3161,8 @@ interface Uint16Array<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> {
|
|
|
3172
3161
|
* the accumulation. The first call to the callbackfn function provides this value as an
|
|
3173
3162
|
* argument instead of an array value.
|
|
3174
3163
|
*/
|
|
3175
|
-
reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array:
|
|
3176
|
-
reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array:
|
|
3164
|
+
reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint16Array) => number): number;
|
|
3165
|
+
reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint16Array) => number, initialValue: number): number;
|
|
3177
3166
|
|
|
3178
3167
|
/**
|
|
3179
3168
|
* Calls the specified callback function for all the elements in an array, in descending order.
|
|
@@ -3185,12 +3174,12 @@ interface Uint16Array<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> {
|
|
|
3185
3174
|
* the accumulation. The first call to the callbackfn function provides this value as an argument
|
|
3186
3175
|
* instead of an array value.
|
|
3187
3176
|
*/
|
|
3188
|
-
reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array:
|
|
3177
|
+
reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint16Array) => U, initialValue: U): U;
|
|
3189
3178
|
|
|
3190
3179
|
/**
|
|
3191
3180
|
* Reverses the elements in an Array.
|
|
3192
3181
|
*/
|
|
3193
|
-
reverse():
|
|
3182
|
+
reverse(): Uint16Array;
|
|
3194
3183
|
|
|
3195
3184
|
/**
|
|
3196
3185
|
* Sets a value or an array of values.
|
|
@@ -3204,7 +3193,7 @@ interface Uint16Array<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> {
|
|
|
3204
3193
|
* @param start The beginning of the specified portion of the array.
|
|
3205
3194
|
* @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'.
|
|
3206
3195
|
*/
|
|
3207
|
-
slice(start?: number, end?: number): Uint16Array
|
|
3196
|
+
slice(start?: number, end?: number): Uint16Array;
|
|
3208
3197
|
|
|
3209
3198
|
/**
|
|
3210
3199
|
* Determines whether the specified callback function returns true for any element of an array.
|
|
@@ -3214,7 +3203,7 @@ interface Uint16Array<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> {
|
|
|
3214
3203
|
* @param thisArg An object to which the this keyword can refer in the predicate function.
|
|
3215
3204
|
* If thisArg is omitted, undefined is used as the this value.
|
|
3216
3205
|
*/
|
|
3217
|
-
some(predicate: (value: number, index: number, array:
|
|
3206
|
+
some(predicate: (value: number, index: number, array: Uint16Array) => unknown, thisArg?: any): boolean;
|
|
3218
3207
|
|
|
3219
3208
|
/**
|
|
3220
3209
|
* Sorts an array.
|
|
@@ -3233,7 +3222,7 @@ interface Uint16Array<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> {
|
|
|
3233
3222
|
* @param begin The index of the beginning of the array.
|
|
3234
3223
|
* @param end The index of the end of the array.
|
|
3235
3224
|
*/
|
|
3236
|
-
subarray(begin?: number, end?: number): Uint16Array
|
|
3225
|
+
subarray(begin?: number, end?: number): Uint16Array;
|
|
3237
3226
|
|
|
3238
3227
|
/**
|
|
3239
3228
|
* Converts a number to a string by using the current locale.
|
|
@@ -3246,17 +3235,16 @@ interface Uint16Array<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> {
|
|
|
3246
3235
|
toString(): string;
|
|
3247
3236
|
|
|
3248
3237
|
/** Returns the primitive value of the specified object. */
|
|
3249
|
-
valueOf():
|
|
3238
|
+
valueOf(): Uint16Array;
|
|
3250
3239
|
|
|
3251
3240
|
[index: number]: number;
|
|
3252
3241
|
}
|
|
3242
|
+
|
|
3253
3243
|
interface Uint16ArrayConstructor {
|
|
3254
|
-
readonly prototype: Uint16Array
|
|
3255
|
-
new (length: number): Uint16Array
|
|
3256
|
-
new (array: ArrayLike<number>): Uint16Array
|
|
3257
|
-
new
|
|
3258
|
-
new (buffer: ArrayBuffer, byteOffset?: number, length?: number): Uint16Array<ArrayBuffer>;
|
|
3259
|
-
new (array: ArrayLike<number> | ArrayBuffer): Uint16Array<ArrayBuffer>;
|
|
3244
|
+
readonly prototype: Uint16Array;
|
|
3245
|
+
new (length: number): Uint16Array;
|
|
3246
|
+
new (array: ArrayLike<number> | ArrayBufferLike): Uint16Array;
|
|
3247
|
+
new (buffer: ArrayBufferLike, byteOffset?: number, length?: number): Uint16Array;
|
|
3260
3248
|
|
|
3261
3249
|
/**
|
|
3262
3250
|
* The size in bytes of each element in the array.
|
|
@@ -3267,28 +3255,28 @@ interface Uint16ArrayConstructor {
|
|
|
3267
3255
|
* Returns a new array from a set of elements.
|
|
3268
3256
|
* @param items A set of elements to include in the new array object.
|
|
3269
3257
|
*/
|
|
3270
|
-
of(...items: number[]): Uint16Array
|
|
3258
|
+
of(...items: number[]): Uint16Array;
|
|
3271
3259
|
|
|
3272
3260
|
/**
|
|
3273
3261
|
* Creates an array from an array-like or iterable object.
|
|
3274
|
-
* @param arrayLike An array-like object to convert to an array.
|
|
3262
|
+
* @param arrayLike An array-like or iterable object to convert to an array.
|
|
3275
3263
|
*/
|
|
3276
|
-
from(arrayLike: ArrayLike<number>): Uint16Array
|
|
3264
|
+
from(arrayLike: ArrayLike<number>): Uint16Array;
|
|
3277
3265
|
|
|
3278
3266
|
/**
|
|
3279
3267
|
* Creates an array from an array-like or iterable object.
|
|
3280
|
-
* @param arrayLike An array-like object to convert to an array.
|
|
3268
|
+
* @param arrayLike An array-like or iterable object to convert to an array.
|
|
3281
3269
|
* @param mapfn A mapping function to call on every element of the array.
|
|
3282
3270
|
* @param thisArg Value of 'this' used to invoke the mapfn.
|
|
3283
3271
|
*/
|
|
3284
|
-
from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Uint16Array
|
|
3272
|
+
from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Uint16Array;
|
|
3285
3273
|
}
|
|
3286
3274
|
declare var Uint16Array: Uint16ArrayConstructor;
|
|
3287
3275
|
/**
|
|
3288
3276
|
* A typed array of 32-bit signed integer values. The contents are initialized to 0. If the
|
|
3289
3277
|
* requested number of bytes could not be allocated an exception is raised.
|
|
3290
3278
|
*/
|
|
3291
|
-
interface Int32Array
|
|
3279
|
+
interface Int32Array {
|
|
3292
3280
|
/**
|
|
3293
3281
|
* The size in bytes of each element in the array.
|
|
3294
3282
|
*/
|
|
@@ -3297,7 +3285,7 @@ interface Int32Array<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> {
|
|
|
3297
3285
|
/**
|
|
3298
3286
|
* The ArrayBuffer instance referenced by the array.
|
|
3299
3287
|
*/
|
|
3300
|
-
readonly buffer:
|
|
3288
|
+
readonly buffer: ArrayBufferLike;
|
|
3301
3289
|
|
|
3302
3290
|
/**
|
|
3303
3291
|
* The length in bytes of the array.
|
|
@@ -3328,7 +3316,7 @@ interface Int32Array<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> {
|
|
|
3328
3316
|
* @param thisArg An object to which the this keyword can refer in the predicate function.
|
|
3329
3317
|
* If thisArg is omitted, undefined is used as the this value.
|
|
3330
3318
|
*/
|
|
3331
|
-
every(predicate: (value: number, index: number, array:
|
|
3319
|
+
every(predicate: (value: number, index: number, array: Int32Array) => unknown, thisArg?: any): boolean;
|
|
3332
3320
|
|
|
3333
3321
|
/**
|
|
3334
3322
|
* Changes all array elements from `start` to `end` index to a static `value` and returns the modified array
|
|
@@ -3347,7 +3335,7 @@ interface Int32Array<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> {
|
|
|
3347
3335
|
* @param thisArg An object to which the this keyword can refer in the predicate function.
|
|
3348
3336
|
* If thisArg is omitted, undefined is used as the this value.
|
|
3349
3337
|
*/
|
|
3350
|
-
filter(predicate: (value: number, index: number, array:
|
|
3338
|
+
filter(predicate: (value: number, index: number, array: Int32Array) => any, thisArg?: any): Int32Array;
|
|
3351
3339
|
|
|
3352
3340
|
/**
|
|
3353
3341
|
* Returns the value of the first element in the array where predicate is true, and undefined
|
|
@@ -3358,7 +3346,7 @@ interface Int32Array<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> {
|
|
|
3358
3346
|
* @param thisArg If provided, it will be used as the this value for each invocation of
|
|
3359
3347
|
* predicate. If it is not provided, undefined is used instead.
|
|
3360
3348
|
*/
|
|
3361
|
-
find(predicate: (value: number, index: number, obj:
|
|
3349
|
+
find(predicate: (value: number, index: number, obj: Int32Array) => boolean, thisArg?: any): number | undefined;
|
|
3362
3350
|
|
|
3363
3351
|
/**
|
|
3364
3352
|
* Returns the index of the first element in the array where predicate is true, and -1
|
|
@@ -3369,22 +3357,22 @@ interface Int32Array<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> {
|
|
|
3369
3357
|
* @param thisArg If provided, it will be used as the this value for each invocation of
|
|
3370
3358
|
* predicate. If it is not provided, undefined is used instead.
|
|
3371
3359
|
*/
|
|
3372
|
-
findIndex(predicate: (value: number, index: number, obj:
|
|
3360
|
+
findIndex(predicate: (value: number, index: number, obj: Int32Array) => boolean, thisArg?: any): number;
|
|
3373
3361
|
|
|
3374
3362
|
/**
|
|
3375
3363
|
* Performs the specified action for each element in an array.
|
|
3376
|
-
* @param callbackfn
|
|
3364
|
+
* @param callbackfn A function that accepts up to three arguments. forEach calls the
|
|
3377
3365
|
* callbackfn function one time for each element in the array.
|
|
3378
|
-
* @param thisArg
|
|
3366
|
+
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
|
|
3379
3367
|
* If thisArg is omitted, undefined is used as the this value.
|
|
3380
3368
|
*/
|
|
3381
|
-
forEach(callbackfn: (value: number, index: number, array:
|
|
3369
|
+
forEach(callbackfn: (value: number, index: number, array: Int32Array) => void, thisArg?: any): void;
|
|
3382
3370
|
|
|
3383
3371
|
/**
|
|
3384
3372
|
* Returns the index of the first occurrence of a value in an array.
|
|
3385
3373
|
* @param searchElement The value to locate in the array.
|
|
3386
3374
|
* @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
|
|
3387
|
-
*
|
|
3375
|
+
* search starts at index 0.
|
|
3388
3376
|
*/
|
|
3389
3377
|
indexOf(searchElement: number, fromIndex?: number): number;
|
|
3390
3378
|
|
|
@@ -3416,7 +3404,7 @@ interface Int32Array<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> {
|
|
|
3416
3404
|
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
|
|
3417
3405
|
* If thisArg is omitted, undefined is used as the this value.
|
|
3418
3406
|
*/
|
|
3419
|
-
map(callbackfn: (value: number, index: number, array:
|
|
3407
|
+
map(callbackfn: (value: number, index: number, array: Int32Array) => number, thisArg?: any): Int32Array;
|
|
3420
3408
|
|
|
3421
3409
|
/**
|
|
3422
3410
|
* Calls the specified callback function for all the elements in an array. The return value of
|
|
@@ -3428,8 +3416,8 @@ interface Int32Array<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> {
|
|
|
3428
3416
|
* the accumulation. The first call to the callbackfn function provides this value as an argument
|
|
3429
3417
|
* instead of an array value.
|
|
3430
3418
|
*/
|
|
3431
|
-
reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array:
|
|
3432
|
-
reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array:
|
|
3419
|
+
reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int32Array) => number): number;
|
|
3420
|
+
reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int32Array) => number, initialValue: number): number;
|
|
3433
3421
|
|
|
3434
3422
|
/**
|
|
3435
3423
|
* Calls the specified callback function for all the elements in an array. The return value of
|
|
@@ -3441,7 +3429,7 @@ interface Int32Array<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> {
|
|
|
3441
3429
|
* the accumulation. The first call to the callbackfn function provides this value as an argument
|
|
3442
3430
|
* instead of an array value.
|
|
3443
3431
|
*/
|
|
3444
|
-
reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array:
|
|
3432
|
+
reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Int32Array) => U, initialValue: U): U;
|
|
3445
3433
|
|
|
3446
3434
|
/**
|
|
3447
3435
|
* Calls the specified callback function for all the elements in an array, in descending order.
|
|
@@ -3453,8 +3441,8 @@ interface Int32Array<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> {
|
|
|
3453
3441
|
* the accumulation. The first call to the callbackfn function provides this value as an
|
|
3454
3442
|
* argument instead of an array value.
|
|
3455
3443
|
*/
|
|
3456
|
-
reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array:
|
|
3457
|
-
reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array:
|
|
3444
|
+
reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int32Array) => number): number;
|
|
3445
|
+
reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int32Array) => number, initialValue: number): number;
|
|
3458
3446
|
|
|
3459
3447
|
/**
|
|
3460
3448
|
* Calls the specified callback function for all the elements in an array, in descending order.
|
|
@@ -3466,12 +3454,12 @@ interface Int32Array<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> {
|
|
|
3466
3454
|
* the accumulation. The first call to the callbackfn function provides this value as an argument
|
|
3467
3455
|
* instead of an array value.
|
|
3468
3456
|
*/
|
|
3469
|
-
reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array:
|
|
3457
|
+
reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Int32Array) => U, initialValue: U): U;
|
|
3470
3458
|
|
|
3471
3459
|
/**
|
|
3472
3460
|
* Reverses the elements in an Array.
|
|
3473
3461
|
*/
|
|
3474
|
-
reverse():
|
|
3462
|
+
reverse(): Int32Array;
|
|
3475
3463
|
|
|
3476
3464
|
/**
|
|
3477
3465
|
* Sets a value or an array of values.
|
|
@@ -3485,7 +3473,7 @@ interface Int32Array<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> {
|
|
|
3485
3473
|
* @param start The beginning of the specified portion of the array.
|
|
3486
3474
|
* @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'.
|
|
3487
3475
|
*/
|
|
3488
|
-
slice(start?: number, end?: number): Int32Array
|
|
3476
|
+
slice(start?: number, end?: number): Int32Array;
|
|
3489
3477
|
|
|
3490
3478
|
/**
|
|
3491
3479
|
* Determines whether the specified callback function returns true for any element of an array.
|
|
@@ -3495,7 +3483,7 @@ interface Int32Array<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> {
|
|
|
3495
3483
|
* @param thisArg An object to which the this keyword can refer in the predicate function.
|
|
3496
3484
|
* If thisArg is omitted, undefined is used as the this value.
|
|
3497
3485
|
*/
|
|
3498
|
-
some(predicate: (value: number, index: number, array:
|
|
3486
|
+
some(predicate: (value: number, index: number, array: Int32Array) => unknown, thisArg?: any): boolean;
|
|
3499
3487
|
|
|
3500
3488
|
/**
|
|
3501
3489
|
* Sorts an array.
|
|
@@ -3514,7 +3502,7 @@ interface Int32Array<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> {
|
|
|
3514
3502
|
* @param begin The index of the beginning of the array.
|
|
3515
3503
|
* @param end The index of the end of the array.
|
|
3516
3504
|
*/
|
|
3517
|
-
subarray(begin?: number, end?: number): Int32Array
|
|
3505
|
+
subarray(begin?: number, end?: number): Int32Array;
|
|
3518
3506
|
|
|
3519
3507
|
/**
|
|
3520
3508
|
* Converts a number to a string by using the current locale.
|
|
@@ -3527,17 +3515,16 @@ interface Int32Array<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> {
|
|
|
3527
3515
|
toString(): string;
|
|
3528
3516
|
|
|
3529
3517
|
/** Returns the primitive value of the specified object. */
|
|
3530
|
-
valueOf():
|
|
3518
|
+
valueOf(): Int32Array;
|
|
3531
3519
|
|
|
3532
3520
|
[index: number]: number;
|
|
3533
3521
|
}
|
|
3522
|
+
|
|
3534
3523
|
interface Int32ArrayConstructor {
|
|
3535
|
-
readonly prototype: Int32Array
|
|
3536
|
-
new (length: number): Int32Array
|
|
3537
|
-
new (array: ArrayLike<number>): Int32Array
|
|
3538
|
-
new
|
|
3539
|
-
new (buffer: ArrayBuffer, byteOffset?: number, length?: number): Int32Array<ArrayBuffer>;
|
|
3540
|
-
new (array: ArrayLike<number> | ArrayBuffer): Int32Array<ArrayBuffer>;
|
|
3524
|
+
readonly prototype: Int32Array;
|
|
3525
|
+
new (length: number): Int32Array;
|
|
3526
|
+
new (array: ArrayLike<number> | ArrayBufferLike): Int32Array;
|
|
3527
|
+
new (buffer: ArrayBufferLike, byteOffset?: number, length?: number): Int32Array;
|
|
3541
3528
|
|
|
3542
3529
|
/**
|
|
3543
3530
|
* The size in bytes of each element in the array.
|
|
@@ -3548,21 +3535,21 @@ interface Int32ArrayConstructor {
|
|
|
3548
3535
|
* Returns a new array from a set of elements.
|
|
3549
3536
|
* @param items A set of elements to include in the new array object.
|
|
3550
3537
|
*/
|
|
3551
|
-
of(...items: number[]): Int32Array
|
|
3538
|
+
of(...items: number[]): Int32Array;
|
|
3552
3539
|
|
|
3553
3540
|
/**
|
|
3554
3541
|
* Creates an array from an array-like or iterable object.
|
|
3555
|
-
* @param arrayLike An array-like object to convert to an array.
|
|
3542
|
+
* @param arrayLike An array-like or iterable object to convert to an array.
|
|
3556
3543
|
*/
|
|
3557
|
-
from(arrayLike: ArrayLike<number>): Int32Array
|
|
3544
|
+
from(arrayLike: ArrayLike<number>): Int32Array;
|
|
3558
3545
|
|
|
3559
3546
|
/**
|
|
3560
3547
|
* Creates an array from an array-like or iterable object.
|
|
3561
|
-
* @param arrayLike An array-like object to convert to an array.
|
|
3548
|
+
* @param arrayLike An array-like or iterable object to convert to an array.
|
|
3562
3549
|
* @param mapfn A mapping function to call on every element of the array.
|
|
3563
3550
|
* @param thisArg Value of 'this' used to invoke the mapfn.
|
|
3564
3551
|
*/
|
|
3565
|
-
from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Int32Array
|
|
3552
|
+
from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Int32Array;
|
|
3566
3553
|
}
|
|
3567
3554
|
declare var Int32Array: Int32ArrayConstructor;
|
|
3568
3555
|
|
|
@@ -3570,7 +3557,7 @@ declare var Int32Array: Int32ArrayConstructor;
|
|
|
3570
3557
|
* A typed array of 32-bit unsigned integer values. The contents are initialized to 0. If the
|
|
3571
3558
|
* requested number of bytes could not be allocated an exception is raised.
|
|
3572
3559
|
*/
|
|
3573
|
-
interface Uint32Array
|
|
3560
|
+
interface Uint32Array {
|
|
3574
3561
|
/**
|
|
3575
3562
|
* The size in bytes of each element in the array.
|
|
3576
3563
|
*/
|
|
@@ -3579,7 +3566,7 @@ interface Uint32Array<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> {
|
|
|
3579
3566
|
/**
|
|
3580
3567
|
* The ArrayBuffer instance referenced by the array.
|
|
3581
3568
|
*/
|
|
3582
|
-
readonly buffer:
|
|
3569
|
+
readonly buffer: ArrayBufferLike;
|
|
3583
3570
|
|
|
3584
3571
|
/**
|
|
3585
3572
|
* The length in bytes of the array.
|
|
@@ -3610,7 +3597,7 @@ interface Uint32Array<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> {
|
|
|
3610
3597
|
* @param thisArg An object to which the this keyword can refer in the predicate function.
|
|
3611
3598
|
* If thisArg is omitted, undefined is used as the this value.
|
|
3612
3599
|
*/
|
|
3613
|
-
every(predicate: (value: number, index: number, array:
|
|
3600
|
+
every(predicate: (value: number, index: number, array: Uint32Array) => unknown, thisArg?: any): boolean;
|
|
3614
3601
|
|
|
3615
3602
|
/**
|
|
3616
3603
|
* Changes all array elements from `start` to `end` index to a static `value` and returns the modified array
|
|
@@ -3629,7 +3616,7 @@ interface Uint32Array<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> {
|
|
|
3629
3616
|
* @param thisArg An object to which the this keyword can refer in the predicate function.
|
|
3630
3617
|
* If thisArg is omitted, undefined is used as the this value.
|
|
3631
3618
|
*/
|
|
3632
|
-
filter(predicate: (value: number, index: number, array:
|
|
3619
|
+
filter(predicate: (value: number, index: number, array: Uint32Array) => any, thisArg?: any): Uint32Array;
|
|
3633
3620
|
|
|
3634
3621
|
/**
|
|
3635
3622
|
* Returns the value of the first element in the array where predicate is true, and undefined
|
|
@@ -3640,7 +3627,7 @@ interface Uint32Array<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> {
|
|
|
3640
3627
|
* @param thisArg If provided, it will be used as the this value for each invocation of
|
|
3641
3628
|
* predicate. If it is not provided, undefined is used instead.
|
|
3642
3629
|
*/
|
|
3643
|
-
find(predicate: (value: number, index: number, obj:
|
|
3630
|
+
find(predicate: (value: number, index: number, obj: Uint32Array) => boolean, thisArg?: any): number | undefined;
|
|
3644
3631
|
|
|
3645
3632
|
/**
|
|
3646
3633
|
* Returns the index of the first element in the array where predicate is true, and -1
|
|
@@ -3651,21 +3638,21 @@ interface Uint32Array<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> {
|
|
|
3651
3638
|
* @param thisArg If provided, it will be used as the this value for each invocation of
|
|
3652
3639
|
* predicate. If it is not provided, undefined is used instead.
|
|
3653
3640
|
*/
|
|
3654
|
-
findIndex(predicate: (value: number, index: number, obj:
|
|
3641
|
+
findIndex(predicate: (value: number, index: number, obj: Uint32Array) => boolean, thisArg?: any): number;
|
|
3655
3642
|
|
|
3656
3643
|
/**
|
|
3657
3644
|
* Performs the specified action for each element in an array.
|
|
3658
|
-
* @param callbackfn
|
|
3645
|
+
* @param callbackfn A function that accepts up to three arguments. forEach calls the
|
|
3659
3646
|
* callbackfn function one time for each element in the array.
|
|
3660
|
-
* @param thisArg
|
|
3647
|
+
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
|
|
3661
3648
|
* If thisArg is omitted, undefined is used as the this value.
|
|
3662
3649
|
*/
|
|
3663
|
-
forEach(callbackfn: (value: number, index: number, array:
|
|
3650
|
+
forEach(callbackfn: (value: number, index: number, array: Uint32Array) => void, thisArg?: any): void;
|
|
3664
3651
|
/**
|
|
3665
3652
|
* Returns the index of the first occurrence of a value in an array.
|
|
3666
3653
|
* @param searchElement The value to locate in the array.
|
|
3667
3654
|
* @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
|
|
3668
|
-
*
|
|
3655
|
+
* search starts at index 0.
|
|
3669
3656
|
*/
|
|
3670
3657
|
indexOf(searchElement: number, fromIndex?: number): number;
|
|
3671
3658
|
|
|
@@ -3697,7 +3684,7 @@ interface Uint32Array<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> {
|
|
|
3697
3684
|
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
|
|
3698
3685
|
* If thisArg is omitted, undefined is used as the this value.
|
|
3699
3686
|
*/
|
|
3700
|
-
map(callbackfn: (value: number, index: number, array:
|
|
3687
|
+
map(callbackfn: (value: number, index: number, array: Uint32Array) => number, thisArg?: any): Uint32Array;
|
|
3701
3688
|
|
|
3702
3689
|
/**
|
|
3703
3690
|
* Calls the specified callback function for all the elements in an array. The return value of
|
|
@@ -3709,8 +3696,8 @@ interface Uint32Array<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> {
|
|
|
3709
3696
|
* the accumulation. The first call to the callbackfn function provides this value as an argument
|
|
3710
3697
|
* instead of an array value.
|
|
3711
3698
|
*/
|
|
3712
|
-
reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array:
|
|
3713
|
-
reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array:
|
|
3699
|
+
reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint32Array) => number): number;
|
|
3700
|
+
reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint32Array) => number, initialValue: number): number;
|
|
3714
3701
|
|
|
3715
3702
|
/**
|
|
3716
3703
|
* Calls the specified callback function for all the elements in an array. The return value of
|
|
@@ -3722,7 +3709,7 @@ interface Uint32Array<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> {
|
|
|
3722
3709
|
* the accumulation. The first call to the callbackfn function provides this value as an argument
|
|
3723
3710
|
* instead of an array value.
|
|
3724
3711
|
*/
|
|
3725
|
-
reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array:
|
|
3712
|
+
reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint32Array) => U, initialValue: U): U;
|
|
3726
3713
|
|
|
3727
3714
|
/**
|
|
3728
3715
|
* Calls the specified callback function for all the elements in an array, in descending order.
|
|
@@ -3734,8 +3721,8 @@ interface Uint32Array<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> {
|
|
|
3734
3721
|
* the accumulation. The first call to the callbackfn function provides this value as an
|
|
3735
3722
|
* argument instead of an array value.
|
|
3736
3723
|
*/
|
|
3737
|
-
reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array:
|
|
3738
|
-
reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array:
|
|
3724
|
+
reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint32Array) => number): number;
|
|
3725
|
+
reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint32Array) => number, initialValue: number): number;
|
|
3739
3726
|
|
|
3740
3727
|
/**
|
|
3741
3728
|
* Calls the specified callback function for all the elements in an array, in descending order.
|
|
@@ -3747,12 +3734,12 @@ interface Uint32Array<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> {
|
|
|
3747
3734
|
* the accumulation. The first call to the callbackfn function provides this value as an argument
|
|
3748
3735
|
* instead of an array value.
|
|
3749
3736
|
*/
|
|
3750
|
-
reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array:
|
|
3737
|
+
reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint32Array) => U, initialValue: U): U;
|
|
3751
3738
|
|
|
3752
3739
|
/**
|
|
3753
3740
|
* Reverses the elements in an Array.
|
|
3754
3741
|
*/
|
|
3755
|
-
reverse():
|
|
3742
|
+
reverse(): Uint32Array;
|
|
3756
3743
|
|
|
3757
3744
|
/**
|
|
3758
3745
|
* Sets a value or an array of values.
|
|
@@ -3766,7 +3753,7 @@ interface Uint32Array<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> {
|
|
|
3766
3753
|
* @param start The beginning of the specified portion of the array.
|
|
3767
3754
|
* @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'.
|
|
3768
3755
|
*/
|
|
3769
|
-
slice(start?: number, end?: number): Uint32Array
|
|
3756
|
+
slice(start?: number, end?: number): Uint32Array;
|
|
3770
3757
|
|
|
3771
3758
|
/**
|
|
3772
3759
|
* Determines whether the specified callback function returns true for any element of an array.
|
|
@@ -3776,7 +3763,7 @@ interface Uint32Array<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> {
|
|
|
3776
3763
|
* @param thisArg An object to which the this keyword can refer in the predicate function.
|
|
3777
3764
|
* If thisArg is omitted, undefined is used as the this value.
|
|
3778
3765
|
*/
|
|
3779
|
-
some(predicate: (value: number, index: number, array:
|
|
3766
|
+
some(predicate: (value: number, index: number, array: Uint32Array) => unknown, thisArg?: any): boolean;
|
|
3780
3767
|
|
|
3781
3768
|
/**
|
|
3782
3769
|
* Sorts an array.
|
|
@@ -3795,7 +3782,7 @@ interface Uint32Array<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> {
|
|
|
3795
3782
|
* @param begin The index of the beginning of the array.
|
|
3796
3783
|
* @param end The index of the end of the array.
|
|
3797
3784
|
*/
|
|
3798
|
-
subarray(begin?: number, end?: number): Uint32Array
|
|
3785
|
+
subarray(begin?: number, end?: number): Uint32Array;
|
|
3799
3786
|
|
|
3800
3787
|
/**
|
|
3801
3788
|
* Converts a number to a string by using the current locale.
|
|
@@ -3808,17 +3795,16 @@ interface Uint32Array<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> {
|
|
|
3808
3795
|
toString(): string;
|
|
3809
3796
|
|
|
3810
3797
|
/** Returns the primitive value of the specified object. */
|
|
3811
|
-
valueOf():
|
|
3798
|
+
valueOf(): Uint32Array;
|
|
3812
3799
|
|
|
3813
3800
|
[index: number]: number;
|
|
3814
3801
|
}
|
|
3802
|
+
|
|
3815
3803
|
interface Uint32ArrayConstructor {
|
|
3816
|
-
readonly prototype: Uint32Array
|
|
3817
|
-
new (length: number): Uint32Array
|
|
3818
|
-
new (array: ArrayLike<number>): Uint32Array
|
|
3819
|
-
new
|
|
3820
|
-
new (buffer: ArrayBuffer, byteOffset?: number, length?: number): Uint32Array<ArrayBuffer>;
|
|
3821
|
-
new (array: ArrayLike<number> | ArrayBuffer): Uint32Array<ArrayBuffer>;
|
|
3804
|
+
readonly prototype: Uint32Array;
|
|
3805
|
+
new (length: number): Uint32Array;
|
|
3806
|
+
new (array: ArrayLike<number> | ArrayBufferLike): Uint32Array;
|
|
3807
|
+
new (buffer: ArrayBufferLike, byteOffset?: number, length?: number): Uint32Array;
|
|
3822
3808
|
|
|
3823
3809
|
/**
|
|
3824
3810
|
* The size in bytes of each element in the array.
|
|
@@ -3829,21 +3815,21 @@ interface Uint32ArrayConstructor {
|
|
|
3829
3815
|
* Returns a new array from a set of elements.
|
|
3830
3816
|
* @param items A set of elements to include in the new array object.
|
|
3831
3817
|
*/
|
|
3832
|
-
of(...items: number[]): Uint32Array
|
|
3818
|
+
of(...items: number[]): Uint32Array;
|
|
3833
3819
|
|
|
3834
3820
|
/**
|
|
3835
3821
|
* Creates an array from an array-like or iterable object.
|
|
3836
|
-
* @param arrayLike An array-like object to convert to an array.
|
|
3822
|
+
* @param arrayLike An array-like or iterable object to convert to an array.
|
|
3837
3823
|
*/
|
|
3838
|
-
from(arrayLike: ArrayLike<number>): Uint32Array
|
|
3824
|
+
from(arrayLike: ArrayLike<number>): Uint32Array;
|
|
3839
3825
|
|
|
3840
3826
|
/**
|
|
3841
3827
|
* Creates an array from an array-like or iterable object.
|
|
3842
|
-
* @param arrayLike An array-like object to convert to an array.
|
|
3828
|
+
* @param arrayLike An array-like or iterable object to convert to an array.
|
|
3843
3829
|
* @param mapfn A mapping function to call on every element of the array.
|
|
3844
3830
|
* @param thisArg Value of 'this' used to invoke the mapfn.
|
|
3845
3831
|
*/
|
|
3846
|
-
from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Uint32Array
|
|
3832
|
+
from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Uint32Array;
|
|
3847
3833
|
}
|
|
3848
3834
|
declare var Uint32Array: Uint32ArrayConstructor;
|
|
3849
3835
|
|
|
@@ -3851,7 +3837,7 @@ declare var Uint32Array: Uint32ArrayConstructor;
|
|
|
3851
3837
|
* A typed array of 32-bit float values. The contents are initialized to 0. If the requested number
|
|
3852
3838
|
* of bytes could not be allocated an exception is raised.
|
|
3853
3839
|
*/
|
|
3854
|
-
interface Float32Array
|
|
3840
|
+
interface Float32Array {
|
|
3855
3841
|
/**
|
|
3856
3842
|
* The size in bytes of each element in the array.
|
|
3857
3843
|
*/
|
|
@@ -3860,7 +3846,7 @@ interface Float32Array<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> {
|
|
|
3860
3846
|
/**
|
|
3861
3847
|
* The ArrayBuffer instance referenced by the array.
|
|
3862
3848
|
*/
|
|
3863
|
-
readonly buffer:
|
|
3849
|
+
readonly buffer: ArrayBufferLike;
|
|
3864
3850
|
|
|
3865
3851
|
/**
|
|
3866
3852
|
* The length in bytes of the array.
|
|
@@ -3891,7 +3877,7 @@ interface Float32Array<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> {
|
|
|
3891
3877
|
* @param thisArg An object to which the this keyword can refer in the predicate function.
|
|
3892
3878
|
* If thisArg is omitted, undefined is used as the this value.
|
|
3893
3879
|
*/
|
|
3894
|
-
every(predicate: (value: number, index: number, array:
|
|
3880
|
+
every(predicate: (value: number, index: number, array: Float32Array) => unknown, thisArg?: any): boolean;
|
|
3895
3881
|
|
|
3896
3882
|
/**
|
|
3897
3883
|
* Changes all array elements from `start` to `end` index to a static `value` and returns the modified array
|
|
@@ -3910,7 +3896,7 @@ interface Float32Array<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> {
|
|
|
3910
3896
|
* @param thisArg An object to which the this keyword can refer in the predicate function.
|
|
3911
3897
|
* If thisArg is omitted, undefined is used as the this value.
|
|
3912
3898
|
*/
|
|
3913
|
-
filter(predicate: (value: number, index: number, array:
|
|
3899
|
+
filter(predicate: (value: number, index: number, array: Float32Array) => any, thisArg?: any): Float32Array;
|
|
3914
3900
|
|
|
3915
3901
|
/**
|
|
3916
3902
|
* Returns the value of the first element in the array where predicate is true, and undefined
|
|
@@ -3921,7 +3907,7 @@ interface Float32Array<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> {
|
|
|
3921
3907
|
* @param thisArg If provided, it will be used as the this value for each invocation of
|
|
3922
3908
|
* predicate. If it is not provided, undefined is used instead.
|
|
3923
3909
|
*/
|
|
3924
|
-
find(predicate: (value: number, index: number, obj:
|
|
3910
|
+
find(predicate: (value: number, index: number, obj: Float32Array) => boolean, thisArg?: any): number | undefined;
|
|
3925
3911
|
|
|
3926
3912
|
/**
|
|
3927
3913
|
* Returns the index of the first element in the array where predicate is true, and -1
|
|
@@ -3932,22 +3918,22 @@ interface Float32Array<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> {
|
|
|
3932
3918
|
* @param thisArg If provided, it will be used as the this value for each invocation of
|
|
3933
3919
|
* predicate. If it is not provided, undefined is used instead.
|
|
3934
3920
|
*/
|
|
3935
|
-
findIndex(predicate: (value: number, index: number, obj:
|
|
3921
|
+
findIndex(predicate: (value: number, index: number, obj: Float32Array) => boolean, thisArg?: any): number;
|
|
3936
3922
|
|
|
3937
3923
|
/**
|
|
3938
3924
|
* Performs the specified action for each element in an array.
|
|
3939
|
-
* @param callbackfn
|
|
3925
|
+
* @param callbackfn A function that accepts up to three arguments. forEach calls the
|
|
3940
3926
|
* callbackfn function one time for each element in the array.
|
|
3941
|
-
* @param thisArg
|
|
3927
|
+
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
|
|
3942
3928
|
* If thisArg is omitted, undefined is used as the this value.
|
|
3943
3929
|
*/
|
|
3944
|
-
forEach(callbackfn: (value: number, index: number, array:
|
|
3930
|
+
forEach(callbackfn: (value: number, index: number, array: Float32Array) => void, thisArg?: any): void;
|
|
3945
3931
|
|
|
3946
3932
|
/**
|
|
3947
3933
|
* Returns the index of the first occurrence of a value in an array.
|
|
3948
3934
|
* @param searchElement The value to locate in the array.
|
|
3949
3935
|
* @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
|
|
3950
|
-
*
|
|
3936
|
+
* search starts at index 0.
|
|
3951
3937
|
*/
|
|
3952
3938
|
indexOf(searchElement: number, fromIndex?: number): number;
|
|
3953
3939
|
|
|
@@ -3979,7 +3965,7 @@ interface Float32Array<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> {
|
|
|
3979
3965
|
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
|
|
3980
3966
|
* If thisArg is omitted, undefined is used as the this value.
|
|
3981
3967
|
*/
|
|
3982
|
-
map(callbackfn: (value: number, index: number, array:
|
|
3968
|
+
map(callbackfn: (value: number, index: number, array: Float32Array) => number, thisArg?: any): Float32Array;
|
|
3983
3969
|
|
|
3984
3970
|
/**
|
|
3985
3971
|
* Calls the specified callback function for all the elements in an array. The return value of
|
|
@@ -3991,8 +3977,8 @@ interface Float32Array<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> {
|
|
|
3991
3977
|
* the accumulation. The first call to the callbackfn function provides this value as an argument
|
|
3992
3978
|
* instead of an array value.
|
|
3993
3979
|
*/
|
|
3994
|
-
reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array:
|
|
3995
|
-
reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array:
|
|
3980
|
+
reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float32Array) => number): number;
|
|
3981
|
+
reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float32Array) => number, initialValue: number): number;
|
|
3996
3982
|
|
|
3997
3983
|
/**
|
|
3998
3984
|
* Calls the specified callback function for all the elements in an array. The return value of
|
|
@@ -4004,7 +3990,7 @@ interface Float32Array<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> {
|
|
|
4004
3990
|
* the accumulation. The first call to the callbackfn function provides this value as an argument
|
|
4005
3991
|
* instead of an array value.
|
|
4006
3992
|
*/
|
|
4007
|
-
reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array:
|
|
3993
|
+
reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Float32Array) => U, initialValue: U): U;
|
|
4008
3994
|
|
|
4009
3995
|
/**
|
|
4010
3996
|
* Calls the specified callback function for all the elements in an array, in descending order.
|
|
@@ -4016,8 +4002,8 @@ interface Float32Array<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> {
|
|
|
4016
4002
|
* the accumulation. The first call to the callbackfn function provides this value as an
|
|
4017
4003
|
* argument instead of an array value.
|
|
4018
4004
|
*/
|
|
4019
|
-
reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array:
|
|
4020
|
-
reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array:
|
|
4005
|
+
reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float32Array) => number): number;
|
|
4006
|
+
reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float32Array) => number, initialValue: number): number;
|
|
4021
4007
|
|
|
4022
4008
|
/**
|
|
4023
4009
|
* Calls the specified callback function for all the elements in an array, in descending order.
|
|
@@ -4029,12 +4015,12 @@ interface Float32Array<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> {
|
|
|
4029
4015
|
* the accumulation. The first call to the callbackfn function provides this value as an argument
|
|
4030
4016
|
* instead of an array value.
|
|
4031
4017
|
*/
|
|
4032
|
-
reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array:
|
|
4018
|
+
reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Float32Array) => U, initialValue: U): U;
|
|
4033
4019
|
|
|
4034
4020
|
/**
|
|
4035
4021
|
* Reverses the elements in an Array.
|
|
4036
4022
|
*/
|
|
4037
|
-
reverse():
|
|
4023
|
+
reverse(): Float32Array;
|
|
4038
4024
|
|
|
4039
4025
|
/**
|
|
4040
4026
|
* Sets a value or an array of values.
|
|
@@ -4048,7 +4034,7 @@ interface Float32Array<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> {
|
|
|
4048
4034
|
* @param start The beginning of the specified portion of the array.
|
|
4049
4035
|
* @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'.
|
|
4050
4036
|
*/
|
|
4051
|
-
slice(start?: number, end?: number): Float32Array
|
|
4037
|
+
slice(start?: number, end?: number): Float32Array;
|
|
4052
4038
|
|
|
4053
4039
|
/**
|
|
4054
4040
|
* Determines whether the specified callback function returns true for any element of an array.
|
|
@@ -4058,7 +4044,7 @@ interface Float32Array<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> {
|
|
|
4058
4044
|
* @param thisArg An object to which the this keyword can refer in the predicate function.
|
|
4059
4045
|
* If thisArg is omitted, undefined is used as the this value.
|
|
4060
4046
|
*/
|
|
4061
|
-
some(predicate: (value: number, index: number, array:
|
|
4047
|
+
some(predicate: (value: number, index: number, array: Float32Array) => unknown, thisArg?: any): boolean;
|
|
4062
4048
|
|
|
4063
4049
|
/**
|
|
4064
4050
|
* Sorts an array.
|
|
@@ -4077,7 +4063,7 @@ interface Float32Array<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> {
|
|
|
4077
4063
|
* @param begin The index of the beginning of the array.
|
|
4078
4064
|
* @param end The index of the end of the array.
|
|
4079
4065
|
*/
|
|
4080
|
-
subarray(begin?: number, end?: number): Float32Array
|
|
4066
|
+
subarray(begin?: number, end?: number): Float32Array;
|
|
4081
4067
|
|
|
4082
4068
|
/**
|
|
4083
4069
|
* Converts a number to a string by using the current locale.
|
|
@@ -4090,17 +4076,16 @@ interface Float32Array<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> {
|
|
|
4090
4076
|
toString(): string;
|
|
4091
4077
|
|
|
4092
4078
|
/** Returns the primitive value of the specified object. */
|
|
4093
|
-
valueOf():
|
|
4079
|
+
valueOf(): Float32Array;
|
|
4094
4080
|
|
|
4095
4081
|
[index: number]: number;
|
|
4096
4082
|
}
|
|
4083
|
+
|
|
4097
4084
|
interface Float32ArrayConstructor {
|
|
4098
|
-
readonly prototype: Float32Array
|
|
4099
|
-
new (length: number): Float32Array
|
|
4100
|
-
new (array: ArrayLike<number>): Float32Array
|
|
4101
|
-
new
|
|
4102
|
-
new (buffer: ArrayBuffer, byteOffset?: number, length?: number): Float32Array<ArrayBuffer>;
|
|
4103
|
-
new (array: ArrayLike<number> | ArrayBuffer): Float32Array<ArrayBuffer>;
|
|
4085
|
+
readonly prototype: Float32Array;
|
|
4086
|
+
new (length: number): Float32Array;
|
|
4087
|
+
new (array: ArrayLike<number> | ArrayBufferLike): Float32Array;
|
|
4088
|
+
new (buffer: ArrayBufferLike, byteOffset?: number, length?: number): Float32Array;
|
|
4104
4089
|
|
|
4105
4090
|
/**
|
|
4106
4091
|
* The size in bytes of each element in the array.
|
|
@@ -4111,21 +4096,21 @@ interface Float32ArrayConstructor {
|
|
|
4111
4096
|
* Returns a new array from a set of elements.
|
|
4112
4097
|
* @param items A set of elements to include in the new array object.
|
|
4113
4098
|
*/
|
|
4114
|
-
of(...items: number[]): Float32Array
|
|
4099
|
+
of(...items: number[]): Float32Array;
|
|
4115
4100
|
|
|
4116
4101
|
/**
|
|
4117
4102
|
* Creates an array from an array-like or iterable object.
|
|
4118
|
-
* @param arrayLike An array-like object to convert to an array.
|
|
4103
|
+
* @param arrayLike An array-like or iterable object to convert to an array.
|
|
4119
4104
|
*/
|
|
4120
|
-
from(arrayLike: ArrayLike<number>): Float32Array
|
|
4105
|
+
from(arrayLike: ArrayLike<number>): Float32Array;
|
|
4121
4106
|
|
|
4122
4107
|
/**
|
|
4123
4108
|
* Creates an array from an array-like or iterable object.
|
|
4124
|
-
* @param arrayLike An array-like object to convert to an array.
|
|
4109
|
+
* @param arrayLike An array-like or iterable object to convert to an array.
|
|
4125
4110
|
* @param mapfn A mapping function to call on every element of the array.
|
|
4126
4111
|
* @param thisArg Value of 'this' used to invoke the mapfn.
|
|
4127
4112
|
*/
|
|
4128
|
-
from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Float32Array
|
|
4113
|
+
from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Float32Array;
|
|
4129
4114
|
}
|
|
4130
4115
|
declare var Float32Array: Float32ArrayConstructor;
|
|
4131
4116
|
|
|
@@ -4133,7 +4118,7 @@ declare var Float32Array: Float32ArrayConstructor;
|
|
|
4133
4118
|
* A typed array of 64-bit float values. The contents are initialized to 0. If the requested
|
|
4134
4119
|
* number of bytes could not be allocated an exception is raised.
|
|
4135
4120
|
*/
|
|
4136
|
-
interface Float64Array
|
|
4121
|
+
interface Float64Array {
|
|
4137
4122
|
/**
|
|
4138
4123
|
* The size in bytes of each element in the array.
|
|
4139
4124
|
*/
|
|
@@ -4142,7 +4127,7 @@ interface Float64Array<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> {
|
|
|
4142
4127
|
/**
|
|
4143
4128
|
* The ArrayBuffer instance referenced by the array.
|
|
4144
4129
|
*/
|
|
4145
|
-
readonly buffer:
|
|
4130
|
+
readonly buffer: ArrayBufferLike;
|
|
4146
4131
|
|
|
4147
4132
|
/**
|
|
4148
4133
|
* The length in bytes of the array.
|
|
@@ -4173,7 +4158,7 @@ interface Float64Array<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> {
|
|
|
4173
4158
|
* @param thisArg An object to which the this keyword can refer in the predicate function.
|
|
4174
4159
|
* If thisArg is omitted, undefined is used as the this value.
|
|
4175
4160
|
*/
|
|
4176
|
-
every(predicate: (value: number, index: number, array:
|
|
4161
|
+
every(predicate: (value: number, index: number, array: Float64Array) => unknown, thisArg?: any): boolean;
|
|
4177
4162
|
|
|
4178
4163
|
/**
|
|
4179
4164
|
* Changes all array elements from `start` to `end` index to a static `value` and returns the modified array
|
|
@@ -4192,7 +4177,7 @@ interface Float64Array<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> {
|
|
|
4192
4177
|
* @param thisArg An object to which the this keyword can refer in the predicate function.
|
|
4193
4178
|
* If thisArg is omitted, undefined is used as the this value.
|
|
4194
4179
|
*/
|
|
4195
|
-
filter(predicate: (value: number, index: number, array:
|
|
4180
|
+
filter(predicate: (value: number, index: number, array: Float64Array) => any, thisArg?: any): Float64Array;
|
|
4196
4181
|
|
|
4197
4182
|
/**
|
|
4198
4183
|
* Returns the value of the first element in the array where predicate is true, and undefined
|
|
@@ -4203,7 +4188,7 @@ interface Float64Array<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> {
|
|
|
4203
4188
|
* @param thisArg If provided, it will be used as the this value for each invocation of
|
|
4204
4189
|
* predicate. If it is not provided, undefined is used instead.
|
|
4205
4190
|
*/
|
|
4206
|
-
find(predicate: (value: number, index: number, obj:
|
|
4191
|
+
find(predicate: (value: number, index: number, obj: Float64Array) => boolean, thisArg?: any): number | undefined;
|
|
4207
4192
|
|
|
4208
4193
|
/**
|
|
4209
4194
|
* Returns the index of the first element in the array where predicate is true, and -1
|
|
@@ -4214,22 +4199,22 @@ interface Float64Array<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> {
|
|
|
4214
4199
|
* @param thisArg If provided, it will be used as the this value for each invocation of
|
|
4215
4200
|
* predicate. If it is not provided, undefined is used instead.
|
|
4216
4201
|
*/
|
|
4217
|
-
findIndex(predicate: (value: number, index: number, obj:
|
|
4202
|
+
findIndex(predicate: (value: number, index: number, obj: Float64Array) => boolean, thisArg?: any): number;
|
|
4218
4203
|
|
|
4219
4204
|
/**
|
|
4220
4205
|
* Performs the specified action for each element in an array.
|
|
4221
|
-
* @param callbackfn
|
|
4206
|
+
* @param callbackfn A function that accepts up to three arguments. forEach calls the
|
|
4222
4207
|
* callbackfn function one time for each element in the array.
|
|
4223
|
-
* @param thisArg
|
|
4208
|
+
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
|
|
4224
4209
|
* If thisArg is omitted, undefined is used as the this value.
|
|
4225
4210
|
*/
|
|
4226
|
-
forEach(callbackfn: (value: number, index: number, array:
|
|
4211
|
+
forEach(callbackfn: (value: number, index: number, array: Float64Array) => void, thisArg?: any): void;
|
|
4227
4212
|
|
|
4228
4213
|
/**
|
|
4229
4214
|
* Returns the index of the first occurrence of a value in an array.
|
|
4230
4215
|
* @param searchElement The value to locate in the array.
|
|
4231
4216
|
* @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
|
|
4232
|
-
*
|
|
4217
|
+
* search starts at index 0.
|
|
4233
4218
|
*/
|
|
4234
4219
|
indexOf(searchElement: number, fromIndex?: number): number;
|
|
4235
4220
|
|
|
@@ -4261,7 +4246,7 @@ interface Float64Array<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> {
|
|
|
4261
4246
|
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
|
|
4262
4247
|
* If thisArg is omitted, undefined is used as the this value.
|
|
4263
4248
|
*/
|
|
4264
|
-
map(callbackfn: (value: number, index: number, array:
|
|
4249
|
+
map(callbackfn: (value: number, index: number, array: Float64Array) => number, thisArg?: any): Float64Array;
|
|
4265
4250
|
|
|
4266
4251
|
/**
|
|
4267
4252
|
* Calls the specified callback function for all the elements in an array. The return value of
|
|
@@ -4273,8 +4258,8 @@ interface Float64Array<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> {
|
|
|
4273
4258
|
* the accumulation. The first call to the callbackfn function provides this value as an argument
|
|
4274
4259
|
* instead of an array value.
|
|
4275
4260
|
*/
|
|
4276
|
-
reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array:
|
|
4277
|
-
reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array:
|
|
4261
|
+
reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float64Array) => number): number;
|
|
4262
|
+
reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float64Array) => number, initialValue: number): number;
|
|
4278
4263
|
|
|
4279
4264
|
/**
|
|
4280
4265
|
* Calls the specified callback function for all the elements in an array. The return value of
|
|
@@ -4286,7 +4271,7 @@ interface Float64Array<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> {
|
|
|
4286
4271
|
* the accumulation. The first call to the callbackfn function provides this value as an argument
|
|
4287
4272
|
* instead of an array value.
|
|
4288
4273
|
*/
|
|
4289
|
-
reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array:
|
|
4274
|
+
reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Float64Array) => U, initialValue: U): U;
|
|
4290
4275
|
|
|
4291
4276
|
/**
|
|
4292
4277
|
* Calls the specified callback function for all the elements in an array, in descending order.
|
|
@@ -4298,8 +4283,8 @@ interface Float64Array<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> {
|
|
|
4298
4283
|
* the accumulation. The first call to the callbackfn function provides this value as an
|
|
4299
4284
|
* argument instead of an array value.
|
|
4300
4285
|
*/
|
|
4301
|
-
reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array:
|
|
4302
|
-
reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array:
|
|
4286
|
+
reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float64Array) => number): number;
|
|
4287
|
+
reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float64Array) => number, initialValue: number): number;
|
|
4303
4288
|
|
|
4304
4289
|
/**
|
|
4305
4290
|
* Calls the specified callback function for all the elements in an array, in descending order.
|
|
@@ -4311,12 +4296,12 @@ interface Float64Array<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> {
|
|
|
4311
4296
|
* the accumulation. The first call to the callbackfn function provides this value as an argument
|
|
4312
4297
|
* instead of an array value.
|
|
4313
4298
|
*/
|
|
4314
|
-
reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array:
|
|
4299
|
+
reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Float64Array) => U, initialValue: U): U;
|
|
4315
4300
|
|
|
4316
4301
|
/**
|
|
4317
4302
|
* Reverses the elements in an Array.
|
|
4318
4303
|
*/
|
|
4319
|
-
reverse():
|
|
4304
|
+
reverse(): Float64Array;
|
|
4320
4305
|
|
|
4321
4306
|
/**
|
|
4322
4307
|
* Sets a value or an array of values.
|
|
@@ -4330,7 +4315,7 @@ interface Float64Array<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> {
|
|
|
4330
4315
|
* @param start The beginning of the specified portion of the array.
|
|
4331
4316
|
* @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'.
|
|
4332
4317
|
*/
|
|
4333
|
-
slice(start?: number, end?: number): Float64Array
|
|
4318
|
+
slice(start?: number, end?: number): Float64Array;
|
|
4334
4319
|
|
|
4335
4320
|
/**
|
|
4336
4321
|
* Determines whether the specified callback function returns true for any element of an array.
|
|
@@ -4340,7 +4325,7 @@ interface Float64Array<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> {
|
|
|
4340
4325
|
* @param thisArg An object to which the this keyword can refer in the predicate function.
|
|
4341
4326
|
* If thisArg is omitted, undefined is used as the this value.
|
|
4342
4327
|
*/
|
|
4343
|
-
some(predicate: (value: number, index: number, array:
|
|
4328
|
+
some(predicate: (value: number, index: number, array: Float64Array) => unknown, thisArg?: any): boolean;
|
|
4344
4329
|
|
|
4345
4330
|
/**
|
|
4346
4331
|
* Sorts an array.
|
|
@@ -4359,7 +4344,7 @@ interface Float64Array<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> {
|
|
|
4359
4344
|
* @param begin The index of the beginning of the array.
|
|
4360
4345
|
* @param end The index of the end of the array.
|
|
4361
4346
|
*/
|
|
4362
|
-
subarray(begin?: number, end?: number): Float64Array
|
|
4347
|
+
subarray(begin?: number, end?: number): Float64Array;
|
|
4363
4348
|
|
|
4364
4349
|
/**
|
|
4365
4350
|
* Converts a number to a string by using the current locale.
|
|
@@ -4372,17 +4357,16 @@ interface Float64Array<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> {
|
|
|
4372
4357
|
toString(): string;
|
|
4373
4358
|
|
|
4374
4359
|
/** Returns the primitive value of the specified object. */
|
|
4375
|
-
valueOf():
|
|
4360
|
+
valueOf(): Float64Array;
|
|
4376
4361
|
|
|
4377
4362
|
[index: number]: number;
|
|
4378
4363
|
}
|
|
4364
|
+
|
|
4379
4365
|
interface Float64ArrayConstructor {
|
|
4380
|
-
readonly prototype: Float64Array
|
|
4381
|
-
new (length: number): Float64Array
|
|
4382
|
-
new (array: ArrayLike<number>): Float64Array
|
|
4383
|
-
new
|
|
4384
|
-
new (buffer: ArrayBuffer, byteOffset?: number, length?: number): Float64Array<ArrayBuffer>;
|
|
4385
|
-
new (array: ArrayLike<number> | ArrayBuffer): Float64Array<ArrayBuffer>;
|
|
4366
|
+
readonly prototype: Float64Array;
|
|
4367
|
+
new (length: number): Float64Array;
|
|
4368
|
+
new (array: ArrayLike<number> | ArrayBufferLike): Float64Array;
|
|
4369
|
+
new (buffer: ArrayBufferLike, byteOffset?: number, length?: number): Float64Array;
|
|
4386
4370
|
|
|
4387
4371
|
/**
|
|
4388
4372
|
* The size in bytes of each element in the array.
|
|
@@ -4393,21 +4377,21 @@ interface Float64ArrayConstructor {
|
|
|
4393
4377
|
* Returns a new array from a set of elements.
|
|
4394
4378
|
* @param items A set of elements to include in the new array object.
|
|
4395
4379
|
*/
|
|
4396
|
-
of(...items: number[]): Float64Array
|
|
4380
|
+
of(...items: number[]): Float64Array;
|
|
4397
4381
|
|
|
4398
4382
|
/**
|
|
4399
4383
|
* Creates an array from an array-like or iterable object.
|
|
4400
|
-
* @param arrayLike An array-like object to convert to an array.
|
|
4384
|
+
* @param arrayLike An array-like or iterable object to convert to an array.
|
|
4401
4385
|
*/
|
|
4402
|
-
from(arrayLike: ArrayLike<number>): Float64Array
|
|
4386
|
+
from(arrayLike: ArrayLike<number>): Float64Array;
|
|
4403
4387
|
|
|
4404
4388
|
/**
|
|
4405
4389
|
* Creates an array from an array-like or iterable object.
|
|
4406
|
-
* @param arrayLike An array-like object to convert to an array.
|
|
4390
|
+
* @param arrayLike An array-like or iterable object to convert to an array.
|
|
4407
4391
|
* @param mapfn A mapping function to call on every element of the array.
|
|
4408
4392
|
* @param thisArg Value of 'this' used to invoke the mapfn.
|
|
4409
4393
|
*/
|
|
4410
|
-
from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Float64Array
|
|
4394
|
+
from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Float64Array;
|
|
4411
4395
|
}
|
|
4412
4396
|
declare var Float64Array: Float64ArrayConstructor;
|
|
4413
4397
|
|