New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@types/seedrandom

Package Overview
Dependencies
Maintainers
1
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/seedrandom - npm Package Compare versions

Comparing version

to
3.0.0

68

seedrandom/index.d.ts

@@ -1,45 +0,49 @@

// Type definitions for seedrandom 2.4.2
// Type definitions for seedrandom 3.0
// Project: https://github.com/davidbau/seedrandom
// Definitions by: Kern Handa <https://github.com/kernhanda>, Eugene Zaretskiy <https://github.com/EugeneZ>
// Definitions by: Kern Handa <https://github.com/kernhanda>
// Eugene Zaretskiy <https://github.com/EugeneZ>
// Martin Badin <https://github.com/martin-badin>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
declare namespace seedrandom {
type State = object;
export type State = {};
interface Callback {
(prng?: prng, shortseed?: string, global?: boolean, state?: State): prng;
}
interface prng {
new (seed?: string, options?: seedRandomOptions, callback?: any): prng;
interface Options {
entropy?: boolean;
global?: boolean;
pass?: Callback;
state?: boolean | State;
}
}
interface prng {
(): number;
double(): number;
int32(): number;
quick(): number;
int32(): number;
double(): number;
state(): State;
}
state(): seedrandom.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;
'global'?: boolean;
state?: boolean | State;
pass?: seedrandomCallback;
}
interface seedrandom {
(seed?: string, options?: seedrandom.Options, callback?: seedrandom.Callback): prng;
alea(seed?: string, options?: seedrandom.Options): prng;
Alea: new (seed?: string) => prng;
tychei(seed?: string, options?: seedrandom.Options): prng;
Tychei: new (seed?: string) => prng;
xor128(seed?: string, options?: seedrandom.Options): prng;
Xor128: new (seed?: string) => prng;
xor4096(seed?: string, options?: seedrandom.Options): prng;
Xor4096: new (seed?: string) => prng;
xorshift7(seed?: string, options?: seedrandom.Options): prng;
XorShift7: new (seed?: string) => prng;
xorwow(seed?: string, options?: seedrandom.Options): prng;
XorWow: new (seed?: string) => prng;
}
declare var seedrandom: seedrandom.seedrandom_prng;
declare const seedrandom: seedrandom;
export = seedrandom;
export as namespace seedrandom;
{
"name": "@types/seedrandom",
"version": "2.4.28",
"version": "3.0.0",
"description": "TypeScript definitions for seedrandom",

@@ -16,6 +16,11 @@ "license": "MIT",

"githubUsername": "EugeneZ"
},
{
"name": "Martin Badin",
"url": "https://github.com/martin-badin",
"githubUsername": "martin-badin"
}
],
"main": "",
"types": "index",
"types": "index.d.ts",
"repository": {

@@ -28,4 +33,4 @@ "type": "git",

"dependencies": {},
"typesPublisherContentHash": "76edcc34ee1985ae8433c184a5a11b62e762035632b8b064f5e1c31b9e9c25ef",
"typeScriptVersion": "2.0"
"typesPublisherContentHash": "c4be78ca231d676a1bcbad362a4ab0038ac827587a17a92501c96debbde2f948",
"typeScriptVersion": "3.5"
}

@@ -5,13 +5,13 @@ # Installation

# Summary
This package contains type definitions for seedrandom ( https://github.com/davidbau/seedrandom ).
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
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/seedrandom.
Additional Details
* Last updated: Wed, 27 Mar 2019 23:58:37 GMT
### Additional Details
* Last updated: Tue, 09 Mar 2021 05:46:51 GMT
* Dependencies: none
* Global values: seedrandom
* Global values: none
# Credits
These definitions were written by Kern Handa <https://github.com/kernhanda>, Eugene Zaretskiy <https://github.com/EugeneZ>.
These definitions were written by [Kern Handa](https://github.com/kernhanda), [Eugene Zaretskiy](https://github.com/EugeneZ), and [Martin Badin](https://github.com/martin-badin).

Sorry, the diff of this file is not supported yet