mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
* Added type definitions for leaflet-responsive-popup * Added function responsivePopup and capitalized class name to ResponsivePopup. Extended tests to initialize a class and to invoke a function. Strictness turned on (tsconfig).
20 lines
642 B
TypeScript
20 lines
642 B
TypeScript
// Type definitions for leaflet-responsive-popup 0.6
|
|
// Project: https://github.com/yafred/leaflet-responsive-popup
|
|
// Definitions by: Stan Kurek <https://github.com/stankurek>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
// TypeScript Version: 2.3
|
|
|
|
import * as L from 'leaflet';
|
|
|
|
declare module 'leaflet' {
|
|
interface ResponsivePopupOptions extends PopupOptions {
|
|
hasTip?: boolean;
|
|
}
|
|
|
|
class ResponsivePopup extends Popup {
|
|
constructor(options?: ResponsivePopupOptions, source?: Layer);
|
|
}
|
|
|
|
function responsivePopup(options?: ResponsivePopupOptions, source?: Layer): ResponsivePopup;
|
|
}
|