mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-11 22:37:31 +08:00
Leaflet: Marking the extension methods that every class should extend as non-optional.
This commit is contained in:
4
types/leaflet/index.d.ts
vendored
4
types/leaflet/index.d.ts
vendored
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user