Huge News!Announcing our $40M Series B led by Abstract Ventures.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 3.0.3 to 3.0.4

12

seedrandom/index.d.ts

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc