mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-27 14:30:49 +08:00
Merge pull request #1135 from derekcicerone/patch-23
Fix the typing of L.Icon.Default
This commit is contained in:
19
leaflet/leaflet.d.ts
vendored
19
leaflet/leaflet.d.ts
vendored
@@ -1903,20 +1903,17 @@ declare module L {
|
||||
* Creates an icon instance with the given options.
|
||||
*/
|
||||
constructor(options: IconOptions);
|
||||
|
||||
/**
|
||||
* Default properties for newly constructed icons.
|
||||
*/
|
||||
public static Default : IconDefault;
|
||||
}
|
||||
|
||||
export class IconDefault extends Icon {
|
||||
/**
|
||||
* Creates an icon instance with default options.
|
||||
*/
|
||||
constructor();
|
||||
export module Icon {
|
||||
export class Default extends Icon {
|
||||
/**
|
||||
* Creates an icon instance with default options.
|
||||
*/
|
||||
constructor();
|
||||
|
||||
imagePath: string;
|
||||
static imagePath: string;
|
||||
}
|
||||
}
|
||||
|
||||
export interface DivIconOptions {
|
||||
|
||||
Reference in New Issue
Block a user