@types/chance
Advanced tools
Comparing version 1.1.3 to 1.1.4
@@ -24,8 +24,8 @@ // Type definitions for Chance 1.1 | ||
new (): Chance; | ||
new (...seed: Seed[]): Chance; | ||
new (generator: () => any): Chance; | ||
new(): Chance; | ||
new(...seed: Seed[]): Chance; | ||
new(generator: () => any): Chance; | ||
} | ||
type FalsyType = false | null | undefined | 0 | typeof NaN | ''; | ||
type FalsyType = false | null | undefined | 0 | typeof NaN | ""; | ||
interface FalsyOptions { | ||
@@ -37,3 +37,3 @@ pool: FalsyType[]; | ||
// Basics | ||
bool(opts?: {likelihood: number}): boolean; | ||
bool(opts?: { likelihood: number }): boolean; | ||
character(opts?: Partial<CharacterOptions>): string; | ||
@@ -109,4 +109,4 @@ /** https://chancejs.com/basics/falsy.html */ | ||
latitude(opts?: Options): number; | ||
locale(opts?: {region: true}): string; | ||
locales(opts?: {region: true}): string[]; | ||
locale(opts?: { region: true }): string; | ||
locales(opts?: { region: true }): string[]; | ||
longitude(opts?: Options): number; | ||
@@ -134,3 +134,3 @@ phone(opts?: Options): string; | ||
timezone(): Timezone; | ||
weekday(opts: Options): 'Monday' | 'Tuesday' | 'Wednesday' | 'Thursday' | 'Friday' | 'Saturday' | 'Sunday'; | ||
weekday(opts: Options): "Monday" | "Tuesday" | "Wednesday" | "Thursday" | "Friday" | "Saturday" | "Sunday"; | ||
year(opts?: Options): string; | ||
@@ -215,3 +215,3 @@ | ||
interface CharacterOptions { | ||
casing: 'upper' | 'lower'; | ||
casing: "upper" | "lower"; | ||
pool: string; | ||
@@ -223,3 +223,3 @@ alpha: boolean; | ||
type StringOptions = CharacterOptions & { length: number } ; | ||
type StringOptions = CharacterOptions & { length: number }; | ||
@@ -244,4 +244,4 @@ interface UrlOptions { | ||
type FirstNameNationalities = 'en' | 'it'; | ||
type LastNameNationalities = FirstNameNationalities | 'nl' | 'uk' | 'de' | 'jp' | 'es' | 'fr' | '*'; | ||
type FirstNameNationalities = "en" | "it"; | ||
type LastNameNationalities = FirstNameNationalities | "nl" | "uk" | "de" | "jp" | "es" | "fr" | "*"; | ||
@@ -256,3 +256,3 @@ interface FullNameOptions { | ||
interface FirstNameOptions { | ||
gender: 'male' | 'female'; | ||
gender: "male" | "female"; | ||
nationality: FirstNameNationalities; | ||
@@ -269,3 +269,3 @@ } | ||
type PrefixOptions = { gender: 'male' | 'female' | 'all' } & SuffixOptions; | ||
type PrefixOptions = { gender: "male" | "female" | "all" } & SuffixOptions; | ||
@@ -281,3 +281,3 @@ type NameOptions = FullNameOptions & FirstNameOptions & LastNameOptions & PrefixOptions; | ||
words: number; | ||
punctuation: '.' | '?' | ';' | '!' | ':' | boolean; | ||
punctuation: "." | "?" | ";" | "!" | ":" | boolean; | ||
} | ||
@@ -284,0 +284,0 @@ |
{ | ||
"name": "@types/chance", | ||
"version": "1.1.3", | ||
"version": "1.1.4", | ||
"description": "TypeScript definitions for Chance", | ||
@@ -53,4 +53,4 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/chance", | ||
"dependencies": {}, | ||
"typesPublisherContentHash": "efc971adc1c74f687202ed7ca25b33006cb661919edd880aa75e0e504c19befd", | ||
"typeScriptVersion": "3.6" | ||
"typesPublisherContentHash": "f4bd4f2ee8af2667fc65266e888014146ca721978710bfbd29c1738565997f64", | ||
"typeScriptVersion": "4.3" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
### Additional Details | ||
* Last updated: Tue, 06 Jul 2021 18:05:50 GMT | ||
* Last updated: Mon, 04 Sep 2023 15:40:43 GMT | ||
* Dependencies: none | ||
@@ -14,0 +14,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
14087