-
Notifications
You must be signed in to change notification settings - Fork 4
/
index.d.ts
29 lines (24 loc) · 695 Bytes
/
index.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
import * as L from 'leaflet';
import { UserOptions } from './src/types';
declare module 'leaflet' {
interface Topography {
getTopography: (
latlng: L.LatLng,
userOptions: UserOptions
) => Promise<{ elevation: number; slope: number; aspect: number }>;
tileCache: object;
}
}
declare module 'worker-loader!*' {
// You need to change `Worker`, if you specified a different value for the `workerType` option
class WebpackWorker extends Worker {
constructor();
}
// Uncomment this if you set the `esModule` option to `false`
// export = WebpackWorker;
export default WebpackWorker;
}
declare module 'file-loader?name=[name].js!*' {
const value: string;
export = value;
}