mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-18 04:24:30 +08:00
This commit is contained in:
committed by
Mohamed Hegazy
parent
634718d6f2
commit
ddbf07cb69
2
types/leaflet/index.d.ts
vendored
2
types/leaflet/index.d.ts
vendored
@@ -1322,7 +1322,7 @@ export class Map extends Evented {
|
||||
flyToBounds(bounds: LatLngBoundsExpression, options?: FitBoundsOptions): this;
|
||||
|
||||
// Other methods
|
||||
addHandler(name: string, HandlerClass: () => Handler): this; // HandlerClass is actually a constructor function, is this the right way?
|
||||
addHandler(name: string, HandlerClass: typeof Handler): this; // Alternatively, HandlerClass: new(map: Map) => Handler
|
||||
remove(): this;
|
||||
createPane(name: string, container?: HTMLElement): HTMLElement;
|
||||
/**
|
||||
|
||||
@@ -368,7 +368,7 @@ map = map
|
||||
.flyToBounds(latLngBounds, fitBoundsOptions)
|
||||
.flyToBounds(latLngBoundsLiteral)
|
||||
.flyToBounds(latLngBoundsLiteral, fitBoundsOptions)
|
||||
// addHandler
|
||||
.addHandler('Hello World', L.Handler)
|
||||
.remove()
|
||||
.whenReady(() => {})
|
||||
.whenReady(() => {}, {});
|
||||
|
||||
Reference in New Issue
Block a user