@types/faker
Advanced tools
Comparing version 3.1.36 to 3.1.37
@@ -56,8 +56,8 @@ // Type definitions for faker v3.1 | ||
date: { | ||
past(years?: number, refDate?: string|Date): Date; | ||
future(years?: number, refDate?: string|Date): Date; | ||
between(from: string|number|Date, to: string|Date): Date; | ||
past(years?: number, refDate?: string | Date): Date; | ||
future(years?: number, refDate?: string | Date): Date; | ||
between(from: string | number | Date, to: string | Date): Date; | ||
recent(days?: number): Date; | ||
month(options?: { abbr?: boolean, context?: boolean }): string; | ||
weekday(options?: { abbr?: boolean, context?: boolean }): string; | ||
month(options?: { abbr?: boolean; context?: boolean }): string; | ||
weekday(options?: { abbr?: boolean; context?: boolean }): string; | ||
}; | ||
@@ -71,3 +71,3 @@ | ||
mask(length?: number, parens?: boolean, elipsis?: boolean): string; | ||
amount(min?:number, max?: number, dec?: number, symbol?: string): string; | ||
amount(min?: number, max?: number, dec?: number, symbol?: string): string; | ||
transactionType(): string; | ||
@@ -96,3 +96,6 @@ currencyCode(): string; | ||
shuffle(): string[]; | ||
mustache(str: string, data: { [key: string]: string|((substring: string, ...args: any[]) => string) }): string; | ||
mustache( | ||
str: string, | ||
data: { [key: string]: string | ((substring: string, ...args: any[]) => string) }, | ||
): string; | ||
createCard(): Faker.Card; | ||
@@ -104,3 +107,2 @@ contextualCard(): Faker.ContextualCard; | ||
image: { | ||
@@ -138,3 +140,3 @@ image(): string; | ||
mac(): string; | ||
password(len?: number, memorable?: boolean, pattern?: string|RegExp, prefix?: string): string; | ||
password(len?: number, memorable?: boolean, pattern?: string | RegExp, prefix?: string): string; | ||
}; | ||
@@ -172,7 +174,7 @@ | ||
number(max: number): number; | ||
number(options?: { min?: number, max?: number, precision?: number }): number; | ||
number(options?: { min?: number; max?: number; precision?: number }): number; | ||
arrayElement(): string; | ||
arrayElement<T>(array: T[]): T; | ||
arrayElement<T>(array: ReadonlyArray<T>): T; | ||
objectElement(object?: { [key: string]: any }, field?: "key"): string; | ||
objectElement(object?: { [key: string]: any }, field?: 'key'): string; | ||
objectElement<T>(object?: { [key: string]: T }, field?: any): T; | ||
@@ -281,144 +283,144 @@ uuid(): string; | ||
declare module "faker" { | ||
declare module 'faker' { | ||
export = fakerStatic; | ||
} | ||
declare module "faker/locale/de" { | ||
declare module 'faker/locale/de' { | ||
export = fakerStatic; | ||
} | ||
declare module "faker/locale/de_AT" { | ||
declare module 'faker/locale/de_AT' { | ||
export = fakerStatic; | ||
} | ||
declare module "faker/locale/de_CH" { | ||
declare module 'faker/locale/de_CH' { | ||
export = fakerStatic; | ||
} | ||
declare module "faker/locale/el_GR" { | ||
declare module 'faker/locale/el_GR' { | ||
export = fakerStatic; | ||
} | ||
declare module "faker/locale/en" { | ||
declare module 'faker/locale/en' { | ||
export = fakerStatic; | ||
} | ||
declare module "faker/locale/en_AU" { | ||
declare module 'faker/locale/en_AU' { | ||
export = fakerStatic; | ||
} | ||
declare module "faker/locale/en_BORK" { | ||
declare module 'faker/locale/en_BORK' { | ||
export = fakerStatic; | ||
} | ||
declare module "faker/locale/en_CA" { | ||
declare module 'faker/locale/en_CA' { | ||
export = fakerStatic; | ||
} | ||
declare module "faker/locale/en_GB" { | ||
declare module 'faker/locale/en_GB' { | ||
export = fakerStatic; | ||
} | ||
declare module "faker/locale/en_IE" { | ||
declare module 'faker/locale/en_IE' { | ||
export = fakerStatic; | ||
} | ||
declare module "faker/locale/en_IND" { | ||
declare module 'faker/locale/en_IND' { | ||
export = fakerStatic; | ||
} | ||
declare module "faker/locale/en_US" { | ||
declare module 'faker/locale/en_US' { | ||
export = fakerStatic; | ||
} | ||
declare module "faker/locale/en_au_ocker" { | ||
declare module 'faker/locale/en_au_ocker' { | ||
export = fakerStatic; | ||
} | ||
declare module "faker/locale/es" { | ||
declare module 'faker/locale/es' { | ||
export = fakerStatic; | ||
} | ||
declare module "faker/locale/es_MX" { | ||
declare module 'faker/locale/es_MX' { | ||
export = fakerStatic; | ||
} | ||
declare module "faker/locale/fa" { | ||
declare module 'faker/locale/fa' { | ||
export = fakerStatic; | ||
} | ||
declare module "faker/locale/fr" { | ||
declare module 'faker/locale/fr' { | ||
export = fakerStatic; | ||
} | ||
declare module "faker/locale/fr_CA" { | ||
declare module 'faker/locale/fr_CA' { | ||
export = fakerStatic; | ||
} | ||
declare module "faker/locale/ge" { | ||
declare module 'faker/locale/ge' { | ||
export = fakerStatic; | ||
} | ||
declare module "faker/locale/it" { | ||
declare module 'faker/locale/it' { | ||
export = fakerStatic; | ||
} | ||
declare module "faker/locale/ja" { | ||
declare module 'faker/locale/ja' { | ||
export = fakerStatic; | ||
} | ||
declare module "faker/locale/ko" { | ||
declare module 'faker/locale/ko' { | ||
export = fakerStatic; | ||
} | ||
declare module "faker/locale/nb_NO" { | ||
declare module 'faker/locale/nb_NO' { | ||
export = fakerStatic; | ||
} | ||
declare module "faker/locale/nep" { | ||
declare module 'faker/locale/nep' { | ||
export = fakerStatic; | ||
} | ||
declare module "faker/locale/nl" { | ||
declare module 'faker/locale/nl' { | ||
export = fakerStatic; | ||
} | ||
declare module "faker/locale/pl" { | ||
declare module 'faker/locale/pl' { | ||
export = fakerStatic; | ||
} | ||
declare module "faker/locale/pt_BR" { | ||
declare module 'faker/locale/pt_BR' { | ||
export = fakerStatic; | ||
} | ||
declare module "faker/locale/ru" { | ||
declare module 'faker/locale/ru' { | ||
export = fakerStatic; | ||
} | ||
declare module "faker/locale/sk" { | ||
declare module 'faker/locale/sk' { | ||
export = fakerStatic; | ||
} | ||
declare module "faker/locale/sv" { | ||
declare module 'faker/locale/sv' { | ||
export = fakerStatic; | ||
} | ||
declare module "faker/locale/tr" { | ||
declare module 'faker/locale/tr' { | ||
export = fakerStatic; | ||
} | ||
declare module "faker/locale/uk" { | ||
declare module 'faker/locale/uk' { | ||
export = fakerStatic; | ||
} | ||
declare module "faker/locale/vi" { | ||
declare module 'faker/locale/vi' { | ||
export = fakerStatic; | ||
} | ||
declare module "faker/locale/zh_CN" { | ||
declare module 'faker/locale/zh_CN' { | ||
export = fakerStatic; | ||
} | ||
declare module "faker/locale/zh_TW" { | ||
declare module 'faker/locale/zh_TW' { | ||
export = fakerStatic; | ||
} |
{ | ||
"name": "@types/faker", | ||
"version": "3.1.36", | ||
"version": "3.1.37", | ||
"description": "TypeScript definitions for faker", | ||
@@ -27,4 +27,4 @@ "license": "MIT", | ||
"dependencies": {}, | ||
"typesPublisherContentHash": "c174e7969c2d9351741810180978964cdc54b028c1fc22101c1ae12768cd9070", | ||
"typeScriptVersion": "3.0" | ||
"typesPublisherContentHash": "471d4d03bf50ec70e029204c4479b463f422d53d2339e556dc1b6c568c7af52f", | ||
"typeScriptVersion": "3.5" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
### Additional Details | ||
* Last updated: Fri, 15 May 2020 04:09:23 GMT | ||
* Last updated: Fri, 21 May 2021 16:31:20 GMT | ||
* Dependencies: none | ||
@@ -14,0 +14,0 @@ * Global values: `fakerStatic` |
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
13619
356