I want to use the javascript library
seedrandom.js
in a TypeScript project yet can't figure out how to write a type definition for this lib which extends the standard javascript Math library with an additional method:
Math.seedrandom();
Just add to the Math
interface
interface Math {
seedrandom(seed?: string);
}
Math.seedrandom();
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With