@types/seedrandom
Advanced tools
Comparing version 3.0.3 to 3.0.4
@@ -27,2 +27,5 @@ // Type definitions for seedrandom 3.0 | ||
quick(): number; | ||
} | ||
interface StatefulPRNG extends PRNG { | ||
state(): State; | ||
@@ -32,4 +35,8 @@ } | ||
type ReturnedPRNG<O extends seedrandom.Options = {}> = O extends { state: true | seedrandom.State } | ||
? seedrandom.StatefulPRNG | ||
: seedrandom.PRNG; | ||
interface BaseInterface { | ||
(seed?: string, options?: seedrandom.Options): seedrandom.PRNG; | ||
<O extends seedrandom.Options>(seed?: string, options?: O): ReturnedPRNG<O>; | ||
new (seed?: string): seedrandom.PRNG; | ||
@@ -39,5 +46,4 @@ } | ||
interface seedrandom { | ||
(seed?: string, options?: seedrandom.Options, callback?: seedrandom.Callback): seedrandom.PRNG; | ||
<O extends seedrandom.Options>(seed?: string, options?: O, callback?: seedrandom.Callback): ReturnedPRNG<O>; | ||
alea: BaseInterface; | ||
quick: BaseInterface; | ||
tychei: BaseInterface; | ||
@@ -44,0 +50,0 @@ xor128: BaseInterface; |
{ | ||
"name": "@types/seedrandom", | ||
"version": "3.0.3", | ||
"version": "3.0.4", | ||
"description": "TypeScript definitions for seedrandom", | ||
@@ -33,4 +33,4 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/seedrandom", | ||
"dependencies": {}, | ||
"typesPublisherContentHash": "bd496a533c365d6f1aa59b96d8678589731caa950cf871783ac335c342a0a0c7", | ||
"typesPublisherContentHash": "72a2cb0e27c26e18960ad6c6b15c627a5eed4bac0862b549cf9ffca1b4917276", | ||
"typeScriptVersion": "4.2" | ||
} |
@@ -37,2 +37,5 @@ # Installation | ||
quick(): number; | ||
} | ||
interface StatefulPRNG extends PRNG { | ||
state(): State; | ||
@@ -42,4 +45,8 @@ } | ||
type ReturnedPRNG<O extends seedrandom.Options = {}> = O extends { state: true | seedrandom.State } | ||
? seedrandom.StatefulPRNG | ||
: seedrandom.PRNG; | ||
interface BaseInterface { | ||
(seed?: string, options?: seedrandom.Options): seedrandom.PRNG; | ||
<O extends seedrandom.Options>(seed?: string, options?: O): ReturnedPRNG<O>; | ||
new (seed?: string): seedrandom.PRNG; | ||
@@ -49,5 +56,4 @@ } | ||
interface seedrandom { | ||
(seed?: string, options?: seedrandom.Options, callback?: seedrandom.Callback): seedrandom.PRNG; | ||
<O extends seedrandom.Options>(seed?: string, options?: O, callback?: seedrandom.Callback): ReturnedPRNG<O>; | ||
alea: BaseInterface; | ||
quick: BaseInterface; | ||
tychei: BaseInterface; | ||
@@ -67,3 +73,3 @@ xor128: BaseInterface; | ||
### Additional Details | ||
* Last updated: Thu, 22 Dec 2022 07:32:32 GMT | ||
* Last updated: Fri, 30 Dec 2022 20:32:52 GMT | ||
* Dependencies: none | ||
@@ -70,0 +76,0 @@ * Global values: none |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
6130
45
76