Skip to content

Commit 49a73a9

Browse files
NaridaLmhegazy
authored andcommitted
Removed duplicated JSDoc for TypedArrays and ArrayBuffer. (#18555)
I left the docs in es5.d.ts, as that seems to be the main file. Fixes #15883
1 parent 8c2d79c commit 49a73a9

File tree

2 files changed

+0
-78
lines changed

2 files changed

+0
-78
lines changed

src/lib/es2015.iterable.d.ts

Lines changed: 0 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -209,10 +209,6 @@ interface String {
209209
[Symbol.iterator](): IterableIterator<string>;
210210
}
211211

212-
/**
213-
* A typed array of 8-bit integer values. The contents are initialized to 0. If the requested
214-
* number of bytes could not be allocated an exception is raised.
215-
*/
216212
interface Int8Array {
217213
[Symbol.iterator](): IterableIterator<number>;
218214
/**
@@ -241,10 +237,6 @@ interface Int8ArrayConstructor {
241237
from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Int8Array;
242238
}
243239

244-
/**
245-
* A typed array of 8-bit unsigned integer values. The contents are initialized to 0. If the
246-
* requested number of bytes could not be allocated an exception is raised.
247-
*/
248240
interface Uint8Array {
249241
[Symbol.iterator](): IterableIterator<number>;
250242
/**
@@ -273,10 +265,6 @@ interface Uint8ArrayConstructor {
273265
from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Uint8Array;
274266
}
275267

276-
/**
277-
* A typed array of 8-bit unsigned integer (clamped) values. The contents are initialized to 0.
278-
* If the requested number of bytes could not be allocated an exception is raised.
279-
*/
280268
interface Uint8ClampedArray {
281269
[Symbol.iterator](): IterableIterator<number>;
282270
/**
@@ -308,10 +296,6 @@ interface Uint8ClampedArrayConstructor {
308296
from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Uint8ClampedArray;
309297
}
310298

311-
/**
312-
* A typed array of 16-bit signed integer values. The contents are initialized to 0. If the
313-
* requested number of bytes could not be allocated an exception is raised.
314-
*/
315299
interface Int16Array {
316300
[Symbol.iterator](): IterableIterator<number>;
317301
/**
@@ -342,10 +326,6 @@ interface Int16ArrayConstructor {
342326
from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Int16Array;
343327
}
344328

345-
/**
346-
* A typed array of 16-bit unsigned integer values. The contents are initialized to 0. If the
347-
* requested number of bytes could not be allocated an exception is raised.
348-
*/
349329
interface Uint16Array {
350330
[Symbol.iterator](): IterableIterator<number>;
351331
/**
@@ -374,10 +354,6 @@ interface Uint16ArrayConstructor {
374354
from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Uint16Array;
375355
}
376356

377-
/**
378-
* A typed array of 32-bit signed integer values. The contents are initialized to 0. If the
379-
* requested number of bytes could not be allocated an exception is raised.
380-
*/
381357
interface Int32Array {
382358
[Symbol.iterator](): IterableIterator<number>;
383359
/**
@@ -406,10 +382,6 @@ interface Int32ArrayConstructor {
406382
from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Int32Array;
407383
}
408384

409-
/**
410-
* A typed array of 32-bit unsigned integer values. The contents are initialized to 0. If the
411-
* requested number of bytes could not be allocated an exception is raised.
412-
*/
413385
interface Uint32Array {
414386
[Symbol.iterator](): IterableIterator<number>;
415387
/**
@@ -438,10 +410,6 @@ interface Uint32ArrayConstructor {
438410
from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Uint32Array;
439411
}
440412

441-
/**
442-
* A typed array of 32-bit float values. The contents are initialized to 0. If the requested number
443-
* of bytes could not be allocated an exception is raised.
444-
*/
445413
interface Float32Array {
446414
[Symbol.iterator](): IterableIterator<number>;
447415
/**
@@ -470,10 +438,6 @@ interface Float32ArrayConstructor {
470438
from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Float32Array;
471439
}
472440

473-
/**
474-
* A typed array of 64-bit float values. The contents are initialized to 0. If the requested
475-
* number of bytes could not be allocated an exception is raised.
476-
*/
477441
interface Float64Array {
478442
[Symbol.iterator](): IterableIterator<number>;
479443
/**

src/lib/es2015.symbol.wellknown.d.ts

Lines changed: 0 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -240,12 +240,6 @@ interface String {
240240
split(splitter: { [Symbol.split](string: string, limit?: number): string[]; }, limit?: number): string[];
241241
}
242242

243-
/**
244-
* Represents a raw buffer of binary data, which is used to store data for the
245-
* different typed arrays. ArrayBuffers cannot be read from or written to directly,
246-
* but can be passed to a typed array or DataView Object to interpret the raw
247-
* buffer as needed.
248-
*/
249243
interface ArrayBuffer {
250244
readonly [Symbol.toStringTag]: "ArrayBuffer";
251245
}
@@ -254,74 +248,38 @@ interface DataView {
254248
readonly [Symbol.toStringTag]: "DataView";
255249
}
256250

257-
/**
258-
* A typed array of 8-bit integer values. The contents are initialized to 0. If the requested
259-
* number of bytes could not be allocated an exception is raised.
260-
*/
261251
interface Int8Array {
262252
readonly [Symbol.toStringTag]: "Int8Array";
263253
}
264254

265-
/**
266-
* A typed array of 8-bit unsigned integer values. The contents are initialized to 0. If the
267-
* requested number of bytes could not be allocated an exception is raised.
268-
*/
269255
interface Uint8Array {
270256
readonly [Symbol.toStringTag]: "UInt8Array";
271257
}
272258

273-
/**
274-
* A typed array of 8-bit unsigned integer (clamped) values. The contents are initialized to 0.
275-
* If the requested number of bytes could not be allocated an exception is raised.
276-
*/
277259
interface Uint8ClampedArray {
278260
readonly [Symbol.toStringTag]: "Uint8ClampedArray";
279261
}
280262

281-
/**
282-
* A typed array of 16-bit signed integer values. The contents are initialized to 0. If the
283-
* requested number of bytes could not be allocated an exception is raised.
284-
*/
285263
interface Int16Array {
286264
readonly [Symbol.toStringTag]: "Int16Array";
287265
}
288266

289-
/**
290-
* A typed array of 16-bit unsigned integer values. The contents are initialized to 0. If the
291-
* requested number of bytes could not be allocated an exception is raised.
292-
*/
293267
interface Uint16Array {
294268
readonly [Symbol.toStringTag]: "Uint16Array";
295269
}
296270

297-
/**
298-
* A typed array of 32-bit signed integer values. The contents are initialized to 0. If the
299-
* requested number of bytes could not be allocated an exception is raised.
300-
*/
301271
interface Int32Array {
302272
readonly [Symbol.toStringTag]: "Int32Array";
303273
}
304274

305-
/**
306-
* A typed array of 32-bit unsigned integer values. The contents are initialized to 0. If the
307-
* requested number of bytes could not be allocated an exception is raised.
308-
*/
309275
interface Uint32Array {
310276
readonly [Symbol.toStringTag]: "Uint32Array";
311277
}
312278

313-
/**
314-
* A typed array of 32-bit float values. The contents are initialized to 0. If the requested number
315-
* of bytes could not be allocated an exception is raised.
316-
*/
317279
interface Float32Array {
318280
readonly [Symbol.toStringTag]: "Float32Array";
319281
}
320282

321-
/**
322-
* A typed array of 64-bit float values. The contents are initialized to 0. If the requested
323-
* number of bytes could not be allocated an exception is raised.
324-
*/
325283
interface Float64Array {
326284
readonly [Symbol.toStringTag]: "Float64Array";
327285
}

0 commit comments

Comments
 (0)