mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-04 14:57:10 +00:00
Node-Geocoder: Added StateCode to Entry interface (#40400)
* Added StateCode to Entry interface * reverted no-emit flag in tsconfig
This commit is contained in:
committed by
Sheetal Nandi
parent
81821c1ff9
commit
419a2fb944
Vendored
+1
@@ -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;
|
||||
|
||||
@@ -20,4 +20,4 @@
|
||||
"index.d.ts",
|
||||
"node-geocoder-tests.ts"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user