mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
update leaflet fullscreen type definitons (#16106)
L.Control.Fullscreen was not found.
This commit is contained in:
parent
f3b9cb6f51
commit
bcf1928b97
25
types/leaflet.fullscreen/index.d.ts
vendored
25
types/leaflet.fullscreen/index.d.ts
vendored
@ -9,24 +9,27 @@ declare namespace L {
|
||||
|
||||
namespace Control {
|
||||
|
||||
export interface Fullscreen extends L.Control {}
|
||||
|
||||
export class Fullscreen extends L.Control {
|
||||
constructor(options?: Control.FullscreenOptions);
|
||||
options: FullscreenOptions;
|
||||
}
|
||||
export interface FullscreenOptions {
|
||||
content?: string,
|
||||
position?: string,
|
||||
title?: string,
|
||||
titleCancel?: string,
|
||||
forceSeparateButton?: boolean,
|
||||
forcePseudoFullscreen?: boolean
|
||||
position?: L.ControlPosition,
|
||||
title?: string,
|
||||
titleCancel?: string,
|
||||
forceSeparateButton?: boolean,
|
||||
forcePseudoFullscreen?: boolean,
|
||||
pseudoFullscreen?:boolean
|
||||
}
|
||||
}
|
||||
|
||||
namespace control {
|
||||
|
||||
/**
|
||||
* Creates a fullscreen control.
|
||||
*/
|
||||
export function fullscreen(options?: Control.FullscreenOptions): L.Control.Fullscreen;
|
||||
/**
|
||||
* Creates a fullscreen control.
|
||||
*/
|
||||
export function fullscreen(options?: Control.FullscreenOptions): L.Control.Fullscreen;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user