Leaflet: Marking the extension methods that every class should extend as non-optional.

This commit is contained in:
Erik Krogh Kristensen
2017-04-04 11:40:46 +02:00
parent e1cb7511a1
commit 30bd01b1ff

View File

@@ -424,8 +424,8 @@ declare namespace L {
getTooltip(): Tooltip | undefined;
// Extension methods
onAdd?(map: Map): this;
onRemove?(map: Map): this;
onAdd(map: Map): this;
onRemove(map: Map): this;
getEvents?(): {[name: string]: (event: Event) => void};
getAttribution?(): string | null;
beforeAdd?(map: Map): this;