DefinitelyTyped/types/leaflet.fullscreen/index.d.ts
Andy 954ee278de
Update TypeScript Versions to be at least as high as dependencies' versions (#21288)
* Update `TypeScript Version`s to be at least as high as dependencies' versions

* Run through again
2017-11-08 09:12:14 -08:00

34 lines
900 B
TypeScript

// Type definitions for Leaflet.fullscreen 1.3
// Project: https://github.com/brunob/leaflet.fullscreen
// Definitions by: William Comartin <https://github.com/wcomartin>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.3
import * as L from 'leaflet';
declare module 'leaflet' {
namespace Control {
class Fullscreen extends Control {
constructor(options?: FullscreenOptions);
options: FullscreenOptions;
}
interface FullscreenOptions {
content?: string;
position?: ControlPosition;
title?: string;
titleCancel?: string;
forceSeparateButton?: boolean;
forcePseudoFullscreen?: boolean;
pseudoFullscreen?: boolean;
}
}
namespace control {
/**
* Creates a fullscreen control.
*/
function fullscreen(options?: Control.FullscreenOptions): Control.Fullscreen;
}
}