Skip to content

Commit 8b1778d

Browse files
authored
Fix TypeScript typing of bigints (#12)
1 parent 91c50f0 commit 8b1778d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

index.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ declare const fnv1a: {
4040
//=> 13487074350300261116944693128525960095n
4141
```
4242
*/
43-
bigInt(string: string, options?: fnv1a.Options): BigInt;
43+
bigInt(string: string, options?: fnv1a.Options): bigint;
4444
};
4545

4646
export = fnv1a;

index.test-d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ import {expectType} from 'tsd';
22
import fnv1a = require('.');
33

44
expectType<number>(fnv1a('🦄🌈'));
5-
expectType<BigInt>(fnv1a.bigInt('🦄🌈', {size: 128}));
5+
expectType<bigint>(fnv1a.bigInt('🦄🌈', {size: 128}));

0 commit comments

Comments
 (0)