Package Exports
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@types/seedrandom) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Installation
npm install --save @types/seedrandom
Summary
This package contains type definitions for seedrandom (https://github.com/davidbau/seedrandom).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/seedrandom/v2.
index.d.ts
declare namespace seedrandom {
export type State = {};
interface prng {
new(seed?: string, options?: seedRandomOptions, callback?: any): prng;
(): number;
quick(): number;
int32(): number;
double(): number;
state(): State;
}
interface seedrandom_prng {
(seed?: string, options?: seedRandomOptions, callback?: seedrandomCallback): prng;
alea: (seed?: string, options?: seedRandomOptions) => prng;
xor128: (seed?: string, options?: seedRandomOptions) => prng;
tychei: (seed?: string, options?: seedRandomOptions) => prng;
xorwow: (seed?: string, options?: seedRandomOptions) => prng;
xor4096: (seed?: string, options?: seedRandomOptions) => prng;
xorshift7: (seed?: string, options?: seedRandomOptions) => prng;
quick: (seed?: string, options?: seedRandomOptions) => prng;
}
interface seedrandomCallback {
(prng?: prng, shortseed?: string, global?: boolean, state?: State): prng;
}
interface seedRandomOptions {
entropy?: boolean | undefined;
"global"?: boolean | undefined;
state?: boolean | State | undefined;
pass?: seedrandomCallback | undefined;
}
}
declare var seedrandom: seedrandom.seedrandom_prng;
declare global {
interface Math {
seedrandom: seedrandom.prng;
}
}
export = seedrandom;
export as namespace seedrandom;
Additional Details
- Last updated: Thu, 09 Nov 2023 21:36:02 GMT
- Dependencies: none
Credits
These definitions were written by Kern Handa, and Eugene Zaretskiy.