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;