mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
Leaflet: Changed the extension methods back to methods.
This commit is contained in:
parent
c001392291
commit
a3ecd4e75f
18
types/leaflet/index.d.ts
vendored
18
types/leaflet/index.d.ts
vendored
@ -424,11 +424,11 @@ declare namespace L {
|
||||
getTooltip(): Tooltip | undefined;
|
||||
|
||||
// Extension methods
|
||||
onAdd?: (map: Map) => this;
|
||||
onRemove?: (map: Map) => this;
|
||||
getEvents?: () => {[name: string]: (event: Event) => void};
|
||||
getAttribution?: () => string | null;
|
||||
beforeAdd?: (map: Map) => this;
|
||||
onAdd?(map: Map) : this;
|
||||
onRemove?(map: Map) : this;
|
||||
getEvents?() : {[name: string]: (event: Event) => void};
|
||||
getAttribution?() : string | null;
|
||||
beforeAdd?(map: Map) : this;
|
||||
}
|
||||
|
||||
interface GridLayerOptions {
|
||||
@ -992,8 +992,8 @@ declare namespace L {
|
||||
remove(): this;
|
||||
|
||||
// Extension methods
|
||||
onAdd?: (map: Map) => HTMLElement;
|
||||
onRemove?: (map: Map) => void;
|
||||
onAdd?(map: Map) : HTMLElement;
|
||||
onRemove?(map: Map) : void;
|
||||
|
||||
options: ControlOptions;
|
||||
}
|
||||
@ -1175,8 +1175,8 @@ declare namespace L {
|
||||
enabled(): boolean;
|
||||
|
||||
// Extension methods
|
||||
addHooks?: () => void;
|
||||
removeHooks?: () => void;
|
||||
addHooks?() : void;
|
||||
removeHooks?() : void;
|
||||
}
|
||||
|
||||
interface Event {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user