From bcf1928b97085296967dfd07f11011b05ec2fc75 Mon Sep 17 00:00:00 2001 From: Mustafa Kuscu Date: Fri, 5 May 2017 04:16:03 +0300 Subject: [PATCH] update leaflet fullscreen type definitons (#16106) L.Control.Fullscreen was not found. --- types/leaflet.fullscreen/index.d.ts | 25 ++++++++++++++----------- 1 file changed, 14 insertions(+), 11 deletions(-) diff --git a/types/leaflet.fullscreen/index.d.ts b/types/leaflet.fullscreen/index.d.ts index 67af1d6770..e38890b2d8 100644 --- a/types/leaflet.fullscreen/index.d.ts +++ b/types/leaflet.fullscreen/index.d.ts @@ -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; } }