Added missing Chance.postcode() to @types/chance (#37560)

* Added missing Chance.postcode()

* Added test for chance.postcode()#
This commit is contained in:
Michael Gale
2019-08-19 10:44:10 -07:00
committed by Sheetal Nandi
parent c376b9fcd1
commit b1963014c3
2 changed files with 3 additions and 0 deletions
+2
View File
@@ -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();
+1
View File
@@ -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;