@types/seedrandom
Advanced tools
Comparing version
// Type definitions for seedrandom 2.4.2 | ||
// Project: https://github.com/davidbau/seedrandom | ||
// Definitions by: Kern Handa <https://github.com/kernhanda> | ||
// Definitions by: Kern Handa <https://github.com/kernhanda>, Eugene Zaretskiy <https://github.com/EugeneZ> | ||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
@@ -8,3 +8,3 @@ | ||
export type seedrandomStateType = boolean | (() => prng); | ||
export type State = {}; | ||
@@ -17,18 +17,18 @@ interface prng { | ||
double(): number; | ||
state(): () => prng; | ||
state(): State; | ||
} | ||
interface seedrandom_prng { | ||
(seed?: string, options?: seedRandomOptions, callback?: any): prng; | ||
alea: (seed?: string, options?: seedRandomOptions, callback?: seedrandomCallback) => prng; | ||
xor128: (seed?: string, options?: seedRandomOptions, callback?: seedrandomCallback) => prng; | ||
tychei: (seed?: string, options?: seedRandomOptions, callback?: seedrandomCallback) => prng; | ||
xorwow: (seed?: string, options?: seedRandomOptions, callback?: seedrandomCallback) => prng; | ||
xor4096: (seed?: string, options?: seedRandomOptions, callback?: seedrandomCallback) => prng; | ||
xorshift7: (seed?: string, options?: seedRandomOptions, callback?: seedrandomCallback) => prng; | ||
quick: (seed?: string, options?: seedRandomOptions, callback?: seedrandomCallback) => 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?: seedrandomStateType): prng; | ||
(prng?: prng, shortseed?: string, global?: boolean, state?: State): prng; | ||
} | ||
@@ -39,3 +39,3 @@ | ||
'global'?: boolean; | ||
state?: seedrandomStateType; | ||
state?: boolean | State; | ||
pass?: seedrandomCallback; | ||
@@ -42,0 +42,0 @@ } |
{ | ||
"name": "@types/seedrandom", | ||
"version": "2.4.27", | ||
"description": "TypeScript definitions for seedrandom 2.4.2", | ||
"version": "2.4.28", | ||
"description": "TypeScript definitions for seedrandom", | ||
"license": "MIT", | ||
"author": "Kern Handa <https://github.com/kernhanda>", | ||
"contributors": [ | ||
{ | ||
"name": "Kern Handa", | ||
"url": "https://github.com/kernhanda", | ||
"githubUsername": "kernhanda" | ||
}, | ||
{ | ||
"name": "Eugene Zaretskiy", | ||
"url": "https://github.com/EugeneZ", | ||
"githubUsername": "EugeneZ" | ||
} | ||
], | ||
"main": "", | ||
"types": "index", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://www.github.com/DefinitelyTyped/DefinitelyTyped.git" | ||
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git", | ||
"directory": "types/seedrandom" | ||
}, | ||
"scripts": {}, | ||
"dependencies": {}, | ||
"typings": "index.d.ts", | ||
"typesPublisherContentHash": "6ad69483683964e97254f65e374a17f845154a74df41e5bf3ea0d53ec1b70e19" | ||
"typesPublisherContentHash": "76edcc34ee1985ae8433c184a5a11b62e762035632b8b064f5e1c31b9e9c25ef", | ||
"typeScriptVersion": "2.0" | ||
} |
@@ -5,15 +5,13 @@ # Installation | ||
# Summary | ||
This package contains type definitions for seedrandom 2.4.2 (https://github.com/davidbau/seedrandom). | ||
This package contains type definitions for seedrandom ( https://github.com/davidbau/seedrandom ). | ||
# Details | ||
Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/types-2.0/seedrandom | ||
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/seedrandom | ||
Additional Details | ||
* Last updated: Mon, 19 Sep 2016 17:28:59 GMT | ||
* File structure: UMD | ||
* Library Dependencies: none | ||
* Module Dependencies: none | ||
* Last updated: Wed, 27 Mar 2019 23:58:37 GMT | ||
* Dependencies: none | ||
* Global values: seedrandom | ||
# Credits | ||
These definitions were written by Kern Handa <https://github.com/kernhanda>. | ||
These definitions were written by Kern Handa <https://github.com/kernhanda>, Eugene Zaretskiy <https://github.com/EugeneZ>. |
4058
15.51%37
-37.29%17
-10.53%