Skip to content

Commit 0482046

Browse files
committed
Update typescript interface
1 parent 6457709 commit 0482046

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ npm install && npm test
8080

8181
### 2.4.0
8282
- Included a PRNG based on ALEA to directly allow seeding
83+
- Included typescript definitions
8384

8485
### 2.3.0
8586

index.d.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ declare module 'simplex-noise'
99
/**
1010
* Creates a new `SimplexNoise` instance. You want to use this sparingly, as it is a relatively
1111
* expensive.
12-
* @param {SimplexNoise.RandomNumberGenerator} [random=Math.random] - The random number
12+
* @param {SimplexNoise.RandomNumberGenerator | string} [random=Math.random] - The random number
1313
* generator to use. This argument could e.g. be used to inject a seeded generator.
1414
*/
15-
constructor(random?: SimplexNoise.RandomNumberGenerator);
15+
constructor(random?: SimplexNoise.RandomNumberGenerator | string);
1616

1717
/**
1818
* Calculates the noise value in the range [-1;1] for the given point in a 2D space.

0 commit comments

Comments
 (0)