Socket
Socket
Sign inDemoInstall

@types/chance

Package Overview
Dependencies
Maintainers
1
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/chance - npm Package Compare versions

Comparing version 1.0.9 to 1.0.10

27

chance/index.d.ts

@@ -8,9 +8,6 @@ // Type definitions for Chance 1.0

// Zachary Dow <https://github.com/NewDark90>
// Jacob Easley <https://github.com/jacobez>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.3
// a bit of cleverness from jcalz at https://stackoverflow.com/a/48244432
// this will ensure that empty objects are not allowed for objects with optional parameters
type AtLeastOneKey<T, U = { [K in keyof T]: Pick<T, K> }> = Partial<T> & U[keyof U];
declare namespace Chance {

@@ -36,14 +33,14 @@ type Seed = number | string;

bool(opts?: {likelihood: number}): boolean;
character(opts?: AtLeastOneKey<CharacterOptions>): string;
character(opts?: Partial<CharacterOptions>): string;
floating(opts?: Options): number;
integer(opts?: AtLeastOneKey<IntegerOptions>): number;
integer(opts?: Partial<IntegerOptions>): number;
letter(opts?: Options): string;
natural(opts?: Options): number;
string(opts?: AtLeastOneKey<StringOptions>): string;
string(opts?: Partial<StringOptions>): string;
// Text
paragraph(opts?: Options): string;
sentence(opts?: AtLeastOneKey<SentenceOptions>): string;
sentence(opts?: Partial<SentenceOptions>): string;
syllable(opts?: Options): string;
word(opts?: AtLeastOneKey<WordOptions>): string;
word(opts?: Partial<WordOptions>): string;

@@ -57,8 +54,8 @@ // Person

cpf(opts?: { formatted: boolean }): string;
first(opts?: AtLeastOneKey<FirstNameOptions>): string;
first(opts?: Partial<FirstNameOptions>): string;
last(opts?: LastNameOptions): string;
name(opts?: AtLeastOneKey<NameOptions>): string;
name_prefix(opts?: AtLeastOneKey<PrefixOptions>): string;
name(opts?: Partial<NameOptions>): string;
name_prefix(opts?: Partial<PrefixOptions>): string;
name_suffix(opts?: SuffixOptions): string;
prefix(opts?: AtLeastOneKey<PrefixOptions>): string;
prefix(opts?: Partial<PrefixOptions>): string;
ssn(opts?: Options): string;

@@ -82,3 +79,3 @@ suffix(opts?: SuffixOptions): string;

domain(opts?: Options): string;
email(opts?: AtLeastOneKey<EmailOptions>): string;
email(opts?: Partial<EmailOptions>): string;
fbid(): string;

@@ -93,3 +90,3 @@ google_analytics(): string;

twitter(): string;
url(opts?: AtLeastOneKey<UrlOptions>): string;
url(opts?: Partial<UrlOptions>): string;

@@ -96,0 +93,0 @@ // Location

{
"name": "@types/chance",
"version": "1.0.9",
"version": "1.0.10",
"description": "TypeScript definitions for Chance",

@@ -31,2 +31,7 @@ "license": "MIT",

"githubUsername": "NewDark90"
},
{
"name": "Jacob Easley",
"url": "https://github.com/jacobez",
"githubUsername": "jacobez"
}

@@ -43,4 +48,4 @@ ],

"dependencies": {},
"typesPublisherContentHash": "4f27bfeed3f27f698fee1e612da09b9e88e882a22785e1741ba03ade2427ed63",
"typesPublisherContentHash": "fb0c2d7b2bfaa8e57ab42a182f2e63b25461f59fe299694bd1051fc9a217033c",
"typeScriptVersion": "2.8"
}

@@ -11,3 +11,3 @@ # Installation

### Additional Details
* Last updated: Thu, 05 Mar 2020 18:39:17 GMT
* Last updated: Fri, 03 Apr 2020 00:19:10 GMT
* Dependencies: none

@@ -17,2 +17,2 @@ * Global values: none

# Credits
These definitions were written by [Chris Bowdon](https://github.com/cbowdon), [Brice BERNARD](https://github.com/brikou), [Carlos Sanchez](https://github.com/cafesanu), [Colby M. White](https://github.com/colbywhite), and [Zachary Dow](https://github.com/NewDark90).
These definitions were written by [Chris Bowdon](https://github.com/cbowdon), [Brice BERNARD](https://github.com/brikou), [Carlos Sanchez](https://github.com/cafesanu), [Colby M. White](https://github.com/colbywhite), [Zachary Dow](https://github.com/NewDark90), and [Jacob Easley](https://github.com/jacobez).
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