Node-Geocoder: Added StateCode to Entry interface (#40400)

* Added StateCode to Entry interface

* reverted no-emit flag in tsconfig
This commit is contained in:
Eric Swann
2019-11-18 12:31:08 -08:00
committed by Sheetal Nandi
parent 81821c1ff9
commit 419a2fb944
3 changed files with 6 additions and 1 deletions
+1
View File
@@ -105,6 +105,7 @@ declare namespace node_geocoder {
zipcode?: string;
provider?: string;
state?: string;
stateCode?: string;
county?: string;
district?: string;
building?: string;
@@ -29,6 +29,10 @@ geocoder.geocode(query, (err: any, entries: NodeGeocoder.Entry[]) => {
console.log(JSON.stringify(entries, null, 2));
});
geocoder.geocode('Austin, TX, USA', (err: any, entries: NodeGeocoder.Entry[]) => {
console.log(JSON.stringify(entries, null, 2));
});
geocoder.batchGeocode([ 'Kraków', 'Warszawa' ]).then((entries) => {
if (entries.length !== 2) {
return;
+1 -1
View File
@@ -20,4 +20,4 @@
"index.d.ts",
"node-geocoder-tests.ts"
]
}
}