Skip to content

Commit

Permalink
feat: TypeScript types file [Esri#319]
Browse files Browse the repository at this point in the history
  • Loading branch information
nooras committed Oct 20, 2024
1 parent abb3ea3 commit 8ced6d3
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
12 changes: 12 additions & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
declare module 'esri-leaflet-geocoder' {
export function geocode(options): any;
export var Geocode: any;
export function geocodeService(options): any;
export var GeocodeService: any;
export function geosearch(options): any;
export var Geosearch: any;
export function reverseGeocode(options): any;
export var ReverseGeocode: any;
export function suggest(options): any;
export var Suggest: any;
}
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -85,5 +85,6 @@
"xhr"
]
},
"style": "./dist/esri-leaflet-geocoder.css"
"style": "./dist/esri-leaflet-geocoder.css",
"types": "index.d.ts"
}

0 comments on commit 8ced6d3

Please sign in to comment.