Skip to content

Commit 1554ebe

Browse files
authored
Merge pull request #25 from YUUKIToriyama/add-types
add L.Control.Opacity.d.ts
2 parents e5e4c82 + 25492f3 commit 1554ebe

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

dist/L.Control.Opacity.d.ts

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
import * as Leaflet from "leaflet";
2+
3+
declare module "leaflet" {
4+
interface OpacityOptions extends Leaflet.ControlOptions {
5+
collapsed?: boolean
6+
label?: string | null
7+
}
8+
namespace Control {
9+
class Opacity extends Leaflet.Control {
10+
constructor(
11+
options?: OpacityOptions
12+
)
13+
}
14+
}
15+
namespace control {
16+
function opacity(overlays: { [key: string]: L.Layer }, options: OpacityOptions): L.Control.Opacity
17+
}
18+
}

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"version": "1.5.0",
44
"description": "Leaflet.Control.Opacity is a Leaflet plugin that makes multiple tile layers transparent. (Leaflet v1.x.x)",
55
"main": "dist/L.Control.Opacity.js",
6+
"types": "dist/L.Control.Opacity.d.ts",
67
"repository": {
78
"type": "git",
89
"url": "git+https://github.com/dayjournal/Leaflet.Control.Opacity.git"

0 commit comments

Comments
 (0)