diff --git a/index.d.ts b/index.d.ts new file mode 100644 index 0000000..63e5c32 --- /dev/null +++ b/index.d.ts @@ -0,0 +1,20 @@ +declare module 'esri-leaflet-geocoder' { + export function arcgisOnlineProvider(options): any; + export var ArcgisOnlineProvider: any; + export function featureLayerProvider(options): any; + export var FeatureLayerProvider: any; + export function geocode(options): any; + export var Geocode: any; + export function geocodeService(options): any; + export var GeocodeService: any; + export function geocodeServiceProvider(options): any; + export var GeocodeServiceProvider: any; + export function geosearch(options): any; + export var Geosearch: any; + export function mapServiceProvider(options): any; + export var MapServiceProvider: any; + export function reverseGeocode(options): any; + export var ReverseGeocode: any; + export function suggest(options): any; + export var Suggest: any; +} \ No newline at end of file diff --git a/package.json b/package.json index 645f395..2c207c7 100644 --- a/package.json +++ b/package.json @@ -45,7 +45,8 @@ }, "files": [ "src/**/*.js", - "dist/**" + "dist/**", + "index.d.ts" ], "homepage": "https://github.com/Esri/esri-leaflet-geocoder", "jsnext:main": "src/EsriLeafletGeocoding.js", @@ -85,5 +86,6 @@ "xhr" ] }, - "style": "./dist/esri-leaflet-geocoder.css" + "style": "./dist/esri-leaflet-geocoder.css", + "types": "index.d.ts" }