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.1

8

seedrandom/index.d.ts

@@ -16,6 +16,6 @@ // Type definitions for seedrandom 3.0

interface Options {
entropy?: boolean;
global?: boolean;
pass?: Callback;
state?: boolean | State;
entropy?: boolean | undefined;
global?: boolean | undefined;
pass?: Callback | undefined;
state?: boolean | State | undefined;
}

@@ -22,0 +22,0 @@ }

{
"name": "@types/seedrandom",
"version": "3.0.0",
"version": "3.0.1",
"description": "TypeScript definitions for seedrandom",
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/seedrandom",
"license": "MIT",

@@ -32,4 +33,4 @@ "contributors": [

"dependencies": {},
"typesPublisherContentHash": "c4be78ca231d676a1bcbad362a4ab0038ac827587a17a92501c96debbde2f948",
"typeScriptVersion": "3.5"
"typesPublisherContentHash": "e02e51988dea4fcdc95384d18a5f4ea26e28c953baf0cbbb1255f2808f3027df",
"typeScriptVersion": "3.6"
}

@@ -9,5 +9,58 @@ # Installation

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/seedrandom.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/seedrandom/index.d.ts)
````ts
// 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>
// Martin Badin <https://github.com/martin-badin>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
declare namespace seedrandom {
type State = object;
interface Callback {
(prng?: prng, shortseed?: string, global?: boolean, state?: State): prng;
}
interface Options {
entropy?: boolean | undefined;
global?: boolean | undefined;
pass?: Callback | undefined;
state?: boolean | State | undefined;
}
}
interface prng {
(): number;
double(): number;
int32(): number;
quick(): number;
state(): seedrandom.State;
}
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 const seedrandom: seedrandom;
export = seedrandom;
````
### Additional Details
* Last updated: Tue, 09 Mar 2021 05:46:51 GMT
* Last updated: Tue, 06 Jul 2021 16:34:27 GMT
* Dependencies: none

@@ -14,0 +67,0 @@ * Global values: none