Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: TypeScript types file [#319] #321

Merged
merged 2 commits into from
Oct 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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"
}
Loading