Skip to content

Commit

Permalink
Update typescript interface
Browse files Browse the repository at this point in the history
  • Loading branch information
jwagner committed Feb 10, 2018
1 parent 6457709 commit 0482046
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ npm install && npm test

### 2.4.0
- Included a PRNG based on ALEA to directly allow seeding
- Included typescript definitions

### 2.3.0

Expand Down
4 changes: 2 additions & 2 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ declare module 'simplex-noise'
/**
* Creates a new `SimplexNoise` instance. You want to use this sparingly, as it is a relatively
* expensive.
* @param {SimplexNoise.RandomNumberGenerator} [random=Math.random] - The random number
* @param {SimplexNoise.RandomNumberGenerator | string} [random=Math.random] - The random number
* generator to use. This argument could e.g. be used to inject a seeded generator.
*/
constructor(random?: SimplexNoise.RandomNumberGenerator);
constructor(random?: SimplexNoise.RandomNumberGenerator | string);

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

0 comments on commit 0482046

Please sign in to comment.