Skip to content

Commit 53b61d8

Browse files
committed
Types linting: TSDocs
1 parent c2fdbfd commit 53b61d8

File tree

71 files changed

+553
-551
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

71 files changed

+553
-551
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
interface Object {
22
/**
33
* Accessor to [[Prototype]].
4-
* This is non-standard and deprecated; prefer { Object, Reflect }.{ getPrototypeOf, setPrototypeOf }
4+
* This is non-standard and deprecated; prefer `{ Object, Reflect }.{ getPrototypeOf, setPrototypeOf }`
55
*/
66
__proto__: object | null;
77
}

packages/core-js-types/src/base/proposals/accessible-object-hasownproperty.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
interface ObjectConstructor {
88
/**
99
* Determines whether an object has a property with the specified name.
10-
* @param o An object.
11-
* @param v A property name.
10+
* @param o - An object.
11+
* @param v - A property name.
1212
*/
1313
hasOwn(o: object, v: PropertyKey): boolean;
1414
}

packages/core-js-types/src/base/proposals/array-buffer-base64.d.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ interface processMetadata {
2626
interface Uint8ArrayConstructor {
2727
/**
2828
* Creates a new `Uint8Array` from a base64-encoded string.
29-
* @param string The base64-encoded string.
30-
* @param options If provided, specifies the alphabet and handling of the last chunk.
29+
* @param string - The base64-encoded string.
30+
* @param options - If provided, specifies the alphabet and handling of the last chunk.
3131
* @returns A new `Uint8Array` instance.
32-
* @throws {SyntaxError} If the input string contains characters outside the specified alphabet, or if the last
32+
* @throws SyntaxError If the input string contains characters outside the specified alphabet, or if the last
3333
* chunk is inconsistent with the `lastChunkHandling` option.
3434
*/
3535
fromBase64(string: string, options?: fromBase64Options): Uint8Array;
@@ -44,24 +44,24 @@ interface Uint8ArrayConstructor {
4444
interface Uint8Array {
4545
/**
4646
* Sets the `Uint8Array` from a base64-encoded string.
47-
* @param string The base64-encoded string.
48-
* @param options If provided, specifies the alphabet and handling of the last chunk.
47+
* @param string - The base64-encoded string.
48+
* @param options - If provided, specifies the alphabet and handling of the last chunk.
4949
* @returns An object containing the number of bytes read and written.
50-
* @throws {SyntaxError} If the input string contains characters outside the specified alphabet, or if the last
50+
* @throws SyntaxError If the input string contains characters outside the specified alphabet, or if the last
5151
* chunk is inconsistent with the `lastChunkHandling` option.
5252
*/
5353
setFromBase64(string: string, options?: fromBase64Options): processMetadata;
5454

5555
/**
5656
* Sets the `Uint8Array` from a base16-encoded string.
57-
* @param string The base16-encoded string.
57+
* @param string - The base16-encoded string.
5858
* @returns An object containing the number of bytes read and written.
5959
*/
6060
setFromHex(string: string): processMetadata;
6161

6262
/**
6363
* Converts the `Uint8Array` to a base64-encoded string.
64-
* @param options If provided, sets the alphabet and padding behavior used.
64+
* @param options - If provided, sets the alphabet and padding behavior used.
6565
* @returns A base64-encoded string.
6666
*/
6767
toBase64(options?: toBase64Options): string;

packages/core-js-types/src/base/proposals/array-buffer-transfer.d.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,17 @@ interface ArrayBuffer {
1010

1111
/**
1212
* Creates a new `ArrayBuffer` with the same byte content as this buffer, then detaches this buffer.
13-
* @param newByteLength If provided, specifies the `byteLength` of the new `ArrayBuffer`
14-
* @throws {RangeError} If this `ArrayBuffer` is resizable and newByteLength is greater than the `maxByteLength` of this `ArrayBuffer`
15-
* @throws {TypeError} If this `ArrayBuffer` is already detached, or if it can only be detached by designated operations
13+
* @param newByteLength - If provided, specifies the `byteLength` of the new `ArrayBuffer`
14+
* @throws RangeError If this `ArrayBuffer` is resizable and newByteLength is greater than the `maxByteLength` of this `ArrayBuffer`
15+
* @throws TypeError If this `ArrayBuffer` is already detached, or if it can only be detached by designated operations
1616
* @returns A new `ArrayBuffer` object
1717
*/
1818
transfer(newByteLength?: number): ArrayBuffer;
1919

2020
/**
2121
* Creates a new non-resizable `ArrayBuffer` with the same byte content as this buffer, then detaches this buffer.
22-
* @param newByteLength If provided, specifies the `byteLength` of the new `ArrayBuffer`
23-
* @throws {TypeError} If this `ArrayBuffer` is already detached, or if it can only be detached by designated operations
22+
* @param newByteLength - If provided, specifies the `byteLength` of the new `ArrayBuffer`
23+
* @throws TypeError If this `ArrayBuffer` is already detached, or if it can only be detached by designated operations
2424
* @returns A new `ArrayBuffer` object
2525
*/
2626
transferToFixedLength(newByteLength?: number): ArrayBuffer;

packages/core-js-types/src/base/proposals/array-filtering.d.ts

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
interface Array<T> { // @type-options no-redefine
44
/**
55
* Removes the items that return true
6-
* @param callbackFn A function that accepts up to three arguments. The filterReject method calls the
6+
* @param callbackFn - A function that accepts up to three arguments. The filterReject method calls the
77
* callbackFn function one time for each element in the array.
8-
* @param thisArg If provided, it will be used as this value for each invocation of
8+
* @param thisArg - If provided, it will be used as this value for each invocation of
99
* predicate. If it is not provided, undefined is used instead.
1010
*/
1111
filterReject(callbackFn: (value: T, index: number, target: T[]) => boolean, thisArg?: any): T[];
@@ -14,9 +14,9 @@ interface Array<T> { // @type-options no-redefine
1414
interface ReadonlyArray<T> { // @type-options no-export
1515
/**
1616
* Removes the items that return true
17-
* @param callbackFn A function that accepts up to three arguments. The filterReject method calls the
17+
* @param callbackFn - A function that accepts up to three arguments. The filterReject method calls the
1818
* callbackFn function one time for each element in the array.
19-
* @param thisArg If provided, it will be used as this value for each invocation of
19+
* @param thisArg - If provided, it will be used as this value for each invocation of
2020
* predicate. If it is not provided, undefined is used instead.
2121
*/
2222
filterReject(callbackFn: (value: T, index: number, target: T[]) => boolean, thisArg?: any): T[];
@@ -25,9 +25,9 @@ interface ReadonlyArray<T> { // @type-options no-export
2525
interface Int8Array { // @type-options no-export
2626
/**
2727
* Removes the items that return true
28-
* @param callbackFn A function that accepts up to three arguments. The filterReject method calls the
28+
* @param callbackFn - A function that accepts up to three arguments. The filterReject method calls the
2929
* callbackFn function one time for each element in the array.
30-
* @param thisArg If provided, it will be used as this value for each invocation of
30+
* @param thisArg - If provided, it will be used as this value for each invocation of
3131
* predicate. If it is not provided, undefined is used instead.
3232
*/
3333
filterReject(callbackFn: (value: number, index: number, target: Int8Array) => boolean, thisArg?: any): Int8Array;
@@ -36,9 +36,9 @@ interface Int8Array { // @type-options no-export
3636
interface Uint8Array { // @type-options no-export
3737
/**
3838
* Removes the items that return true
39-
* @param callbackFn A function that accepts up to three arguments. The filterReject method calls the
39+
* @param callbackFn - A function that accepts up to three arguments. The filterReject method calls the
4040
* callbackFn function one time for each element in the array.
41-
* @param thisArg If provided, it will be used as this value for each invocation of
41+
* @param thisArg - If provided, it will be used as this value for each invocation of
4242
* predicate. If it is not provided, undefined is used instead.
4343
*/
4444
filterReject(callbackFn: (value: number, index: number, target: Uint8Array) => boolean, thisArg?: any): Uint8Array;
@@ -47,9 +47,9 @@ interface Uint8Array { // @type-options no-export
4747
interface Uint8ClampedArray { // @type-options no-export
4848
/**
4949
* Removes the items that return true
50-
* @param callbackFn A function that accepts up to three arguments. The filterReject method calls the
50+
* @param callbackFn - A function that accepts up to three arguments. The filterReject method calls the
5151
* callbackFn function one time for each element in the array.
52-
* @param thisArg If provided, it will be used as this value for each invocation of
52+
* @param thisArg - If provided, it will be used as this value for each invocation of
5353
* predicate. If it is not provided, undefined is used instead.
5454
*/
5555
filterReject(callbackFn: (value: number, index: number, target: Uint8ClampedArray) => boolean, thisArg?: any): Uint8ClampedArray;
@@ -58,9 +58,9 @@ interface Uint8ClampedArray { // @type-options no-export
5858
interface Int16Array { // @type-options no-export
5959
/**
6060
* Removes the items that return true
61-
* @param callbackFn A function that accepts up to three arguments. The filterReject method calls the
61+
* @param callbackFn - A function that accepts up to three arguments. The filterReject method calls the
6262
* callbackFn function one time for each element in the array.
63-
* @param thisArg If provided, it will be used as this value for each invocation of
63+
* @param thisArg - If provided, it will be used as this value for each invocation of
6464
* predicate. If it is not provided, undefined is used instead.
6565
*/
6666
filterReject(callbackFn: (value: number, index: number, target: Int16Array) => boolean, thisArg?: any): Int16Array;
@@ -69,9 +69,9 @@ interface Int16Array { // @type-options no-export
6969
interface Uint16Array { // @type-options no-export
7070
/**
7171
* Removes the items that return true
72-
* @param callbackFn A function that accepts up to three arguments. The filterReject method calls the
72+
* @param callbackFn - A function that accepts up to three arguments. The filterReject method calls the
7373
* callbackFn function one time for each element in the array.
74-
* @param thisArg If provided, it will be used as this value for each invocation of
74+
* @param thisArg - If provided, it will be used as this value for each invocation of
7575
* predicate. If it is not provided, undefined is used instead.
7676
*/
7777
filterReject(callbackFn: (value: number, index: number, target: Uint16Array) => boolean, thisArg?: any): Uint16Array;
@@ -80,9 +80,9 @@ interface Uint16Array { // @type-options no-export
8080
interface Int32Array { // @type-options no-export
8181
/**
8282
* Removes the items that return true
83-
* @param callbackFn A function that accepts up to three arguments. The filterReject method calls the
83+
* @param callbackFn - A function that accepts up to three arguments. The filterReject method calls the
8484
* callbackFn function one time for each element in the array.
85-
* @param thisArg If provided, it will be used as this value for each invocation of
85+
* @param thisArg - If provided, it will be used as this value for each invocation of
8686
* predicate. If it is not provided, undefined is used instead.
8787
*/
8888
filterReject(callbackFn: (value: number, index: number, target: Int32Array) => boolean, thisArg?: any): Int32Array;
@@ -91,9 +91,9 @@ interface Int32Array { // @type-options no-export
9191
interface Uint32Array { // @type-options no-export
9292
/**
9393
* Removes the items that return true
94-
* @param callbackFn A function that accepts up to three arguments. The filterReject method calls the
94+
* @param callbackFn - A function that accepts up to three arguments. The filterReject method calls the
9595
* callbackFn function one time for each element in the array.
96-
* @param thisArg If provided, it will be used as this value for each invocation of
96+
* @param thisArg - If provided, it will be used as this value for each invocation of
9797
* predicate. If it is not provided, undefined is used instead.
9898
*/
9999
filterReject(callbackFn: (value: number, index: number, target: Uint32Array) => boolean, thisArg?: any): Uint32Array;
@@ -102,9 +102,9 @@ interface Uint32Array { // @type-options no-export
102102
interface Float32Array { // @type-options no-export
103103
/**
104104
* Removes the items that return true
105-
* @param callbackFn A function that accepts up to three arguments. The filterReject method calls the
105+
* @param callbackFn - A function that accepts up to three arguments. The filterReject method calls the
106106
* callbackFn function one time for each element in the array.
107-
* @param thisArg If provided, it will be used as this value for each invocation of
107+
* @param thisArg - If provided, it will be used as this value for each invocation of
108108
* predicate. If it is not provided, undefined is used instead.
109109
*/
110110
filterReject(callbackFn: (value: number, index: number, target: Float32Array) => boolean, thisArg?: any): Float32Array;
@@ -113,9 +113,9 @@ interface Float32Array { // @type-options no-export
113113
interface Float64Array { // @type-options no-export
114114
/**
115115
* Removes the items that return true
116-
* @param callbackFn A function that accepts up to three arguments. The filterReject method calls the
116+
* @param callbackFn - A function that accepts up to three arguments. The filterReject method calls the
117117
* callbackFn function one time for each element in the array.
118-
* @param thisArg If provided, it will be used as this value for each invocation of
118+
* @param thisArg - If provided, it will be used as this value for each invocation of
119119
* predicate. If it is not provided, undefined is used instead.
120120
*/
121121
filterReject(callbackFn: (value: number, index: number, target: Float64Array) => boolean, thisArg?: any): Float64Array;
@@ -124,9 +124,9 @@ interface Float64Array { // @type-options no-export
124124
interface BigInt64Array { // @type-options no-export
125125
/**
126126
* Removes the items that return true
127-
* @param callbackFn A function that accepts up to three arguments. The filterReject method calls the
127+
* @param callbackFn - A function that accepts up to three arguments. The filterReject method calls the
128128
* callbackFn function one time for each element in the array.
129-
* @param thisArg If provided, it will be used as this value for each invocation of
129+
* @param thisArg - If provided, it will be used as this value for each invocation of
130130
* predicate. If it is not provided, undefined is used instead.
131131
*/
132132
filterReject(callbackFn: (value: bigint, index: number, target: BigInt64Array) => boolean, thisArg?: any): BigInt64Array;
@@ -135,9 +135,9 @@ interface BigInt64Array { // @type-options no-export
135135
interface BigUint64Array { // @type-options no-export
136136
/**
137137
* Removes the items that return true
138-
* @param callbackFn A function that accepts up to three arguments. The filterReject method calls the
138+
* @param callbackFn - A function that accepts up to three arguments. The filterReject method calls the
139139
* callbackFn function one time for each element in the array.
140-
* @param thisArg If provided, it will be used as this value for each invocation of
140+
* @param thisArg - If provided, it will be used as this value for each invocation of
141141
* predicate. If it is not provided, undefined is used instead.
142142
*/
143143
filterReject(callbackFn: (value: bigint, index: number, target: BigUint64Array) => boolean, thisArg?: any): BigUint64Array;

0 commit comments

Comments
 (0)