From b1963014c3a703be82b07628105d2c97e9944079 Mon Sep 17 00:00:00 2001 From: Michael Gale <38247482+michael-gale@users.noreply.github.com> Date: Mon, 19 Aug 2019 18:44:10 +0100 Subject: [PATCH] Added missing Chance.postcode() to @types/chance (#37560) * Added missing Chance.postcode() * Added test for chance.postcode()# --- types/chance/chance-tests.ts | 2 ++ types/chance/index.d.ts | 1 + 2 files changed, 3 insertions(+) diff --git a/types/chance/chance-tests.ts b/types/chance/chance-tests.ts index e8a5ba4cbd..a52e719fd9 100644 --- a/types/chance/chance-tests.ts +++ b/types/chance/chance-tests.ts @@ -185,3 +185,5 @@ sentence = chance.sentence({punctuation: ';'}); sentence = chance.sentence({punctuation: '!'}); sentence = chance.sentence({punctuation: ':'}); sentence = chance.sentence({words: 10, punctuation: '?'}); + +const postcode: string = chance.postcode(); diff --git a/types/chance/index.d.ts b/types/chance/index.d.ts index 1ff6af8aee..498af7505a 100644 --- a/types/chance/index.d.ts +++ b/types/chance/index.d.ts @@ -101,6 +101,7 @@ declare namespace Chance { locales(opts?: {region: true}): string[]; longitude(opts?: Options): number; phone(opts?: Options): string; + postcode(): string; postal(): string; province(opts?: Options): string; state(opts?: Options): string;