@types/chance
Advanced tools
Comparing version 1.0.4 to 1.0.5
@@ -34,3 +34,3 @@ // Type definitions for Chance 1.0 | ||
bool(opts?: {likelihood: number}): boolean; | ||
character(opts?: Options): string; | ||
character(opts?: AtLeastOneKey<CharacterOptions>): string; | ||
floating(opts?: Options): number; | ||
@@ -201,7 +201,12 @@ integer(opts?: AtLeastOneKey<IntegerOptions>): number; | ||
interface StringOptions { | ||
length: number; | ||
interface CharacterOptions { | ||
casing: 'upper' | 'lower'; | ||
pool: string; | ||
alpha: boolean; | ||
numeric: boolean; | ||
symbols: string; | ||
} | ||
type StringOptions = CharacterOptions & { length: number } ; | ||
interface UrlOptions { | ||
@@ -208,0 +213,0 @@ protocol: string; |
{ | ||
"name": "@types/chance", | ||
"version": "1.0.4", | ||
"version": "1.0.5", | ||
"description": "TypeScript definitions for Chance", | ||
@@ -37,4 +37,4 @@ "license": "MIT", | ||
"dependencies": {}, | ||
"typesPublisherContentHash": "e39fc9c07abf98c7789a1b87313316f909011f2bda94b91f6da2f68f09336337", | ||
"typesPublisherContentHash": "ccf60f27320d4291c63909f02e7a3e10fc55c991c289254cfd76b5235ba82078", | ||
"typeScriptVersion": "2.3" | ||
} |
@@ -5,3 +5,3 @@ # Installation | ||
# Summary | ||
This package contains type definitions for Chance ( http://chancejs.com ). | ||
This package contains type definitions for Chance (http://chancejs.com). | ||
@@ -12,3 +12,3 @@ # Details | ||
Additional Details | ||
* Last updated: Tue, 14 May 2019 18:19:42 GMT | ||
* Last updated: Mon, 01 Jul 2019 17:57:08 GMT | ||
* Dependencies: none | ||
@@ -18,2 +18,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>. | ||
These definitions were written by Chris Bowdon <https://github.com/cbowdon>, Brice BERNARD <https://github.com/brikou>, Carlos Sanchez <https://github.com/cafesanu>, and Colby M. White <https://github.com/colbywhite>. |
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
12692
290