Skip to content

Commit

Permalink
Merge pull request #321 from nooras/feat-typescript-types
Browse files Browse the repository at this point in the history
feat: TypeScript types file [#319]
  • Loading branch information
hhkaos authored Oct 24, 2024
2 parents abb3ea3 + 020ed98 commit 0665d23
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 2 deletions.
20 changes: 20 additions & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
@@ -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;
}
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -85,5 +86,6 @@
"xhr"
]
},
"style": "./dist/esri-leaflet-geocoder.css"
"style": "./dist/esri-leaflet-geocoder.css",
"types": "index.d.ts"
}

0 comments on commit 0665d23

Please sign in to comment.