diff --git a/types/leaflet-curve/index.d.ts b/types/leaflet-curve/index.d.ts index aaf9fa1c38..afd9ca48d5 100644 --- a/types/leaflet-curve/index.d.ts +++ b/types/leaflet-curve/index.d.ts @@ -1,14 +1,33 @@ // Type definitions for leaflet-curve 0.1 // Project: https://github.com/onikiienko/Leaflet.curve // Definitions by: Onikiienko +// Andrea // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -// TypeScript Version: 2.3 +// TypeScript Version: 3.0 import * as L from 'leaflet'; declare module 'leaflet' { - /** - * Drawing Bezier curves and other complex shapes. - */ - function curve(path: any[], options?: PathOptions): Path; + class Curve extends Path { + /* + * Return path + */ + getPath(): Array>; + /* + * Set path + */ + setPath(): Curve; + /* + * Get bounds + */ + getBounds(): LatLngBounds; + /* + * Get center + */ + getCenter(): LatLng; + } + /* + * Drawing Bezier curves and other complex shapes. + */ + function curve(path: any[], options?: PathOptions): Curve; }