Files
DefinitelyTyped/leaflet.fullscreen/leaflet.fullscreen.d.ts
Alejandro Sánchez 1adaa22d7a [WIP] Add type definitions for Leaflet 1.0 (#11165)
* Rename leaflet.d.ts to leaflet-0.7.d.ts

* Defined several important interfaces and the skeleton of some others

* Started adding tests

* Added more interfaces, factory methods and tests

* Implemented other interfaces and nested namespaces

* Added more types
2016-09-19 16:07:25 +09:00

33 lines
798 B
TypeScript

// Type definitions for Leaflet.fullscreen v1.3.0
// Project: https://github.com/brunob/leaflet.fullscreen
// Definitions by: William Comartin <https://github.com/wcomartin>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference path="../leaflet/leaflet-0.7.d.ts" />
declare namespace L {
namespace Control {
export interface Fullscreen extends L.Control {}
export interface FullscreenOptions {
content?: string,
position?: string,
title?: string,
titleCancel?: string,
forceSeparateButton?: boolean,
forcePseudoFullscreen?: boolean
}
}
namespace control {
/**
* Creates a fullscreen control.
*/
export function fullscreen(options?: Control.FullscreenOptions): L.Control.Fullscreen;
}
}