Skip to content

Commit 29ccf8d

Browse files
committed
[types] add a helpful hover description
1 parent f42bec3 commit 29ccf8d

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

index.d.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
/**
2+
* Determines the type of the given collection, or returns false.
3+
*
4+
* @param {unknown} value The potential collection
5+
* @returns {TypedArrayName | false | null} 'Int8Array' | 'Uint8Array' | 'Uint8ClampedArray' | 'Int16Array' | 'Uint16Array' | 'Int32Array' | 'Uint32Array' | 'Float32Array' | 'Float64Array' | 'BigInt64Array' | 'BigUint64Array' | false | null
6+
*/
17
declare function whichTypedArray(value: Int8Array): 'Int8Array';
28
declare function whichTypedArray(value: Uint8Array): 'Uint8Array';
39
declare function whichTypedArray(value: Uint8ClampedArray): 'Uint8ClampedArray';
@@ -52,4 +58,4 @@ declare namespace whichTypedArray {
5258
| BigUint64ArrayConstructor;
5359
}
5460

55-
export = whichTypedArray;
61+
export = whichTypedArray;

0 commit comments

Comments
 (0)