Skip to content

Commit 034c886

Browse files
authored
Add optional strict parameter to isPrime typing.
I was checking out the source to see the difference between isPrime and isProbablePrime when I stumbled upon this undocumented 'strict' parameter.
1 parent c012f0a commit 034c886

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

BigInteger.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ declare namespace bigInt {
200200
/**
201201
* Returns true if the number is prime, false otherwise.
202202
*/
203-
isPrime(): boolean;
203+
isPrime(strict?: boolean): boolean;
204204

205205
/**
206206
* Returns true if the number is very likely to be prime, false otherwise.

0 commit comments

Comments
 (0)