Skip to content

Commit 8eac018

Browse files
Planeshifterkgryte
andauthored
fix: narrow type guard in @stdlib/assert/is-primitive-array
PR-URL: #12453 Co-authored-by: Athan Reines <kgryte@gmail.com> Reviewed-by: Athan Reines <kgryte@gmail.com> Signed-off-by: Athan Reines <kgryte@gmail.com>
1 parent 4642874 commit 8eac018

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • lib/node_modules/@stdlib/assert/is-primitive-array/docs/types

lib/node_modules/@stdlib/assert/is-primitive-array/docs/types/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
* bool = isPrimitiveArray( [ new String('abc'), '3.0' ] );
3535
* // returns false
3636
*/
37-
declare function isPrimitiveArray( value: any ): value is Array<any>;
37+
declare function isPrimitiveArray( value: any ): value is Array<null | undefined | string | boolean | number | symbol | bigint>;
3838

3939

4040
// EXPORTS //

0 commit comments

Comments
 (0)