Skip to content

Commit 4df5231

Browse files
authored
🤖 Merge PR DefinitelyTyped#73760 [leaflet-rotate]: Add missing type definitions in MapOptions and MarkerOptions interfaces by @Oxalin
Signed-off-by: Alexandre Demers <[email protected]>
1 parent b202e7f commit 4df5231

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

‎types/leaflet-rotate/index.d.ts‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,10 @@ declare module "leaflet" {
77
trackContainerMutation?: boolean;
88
touchRotate?: boolean | string;
99
shiftKeyRotate?: boolean | string;
10-
rotateControl?: boolean;
10+
rotateControl?: boolean | {
11+
position?: string;
12+
closeOnZeroBearing?: boolean;
13+
};
1114
}
1215

1316
interface Map {
@@ -25,6 +28,7 @@ declare module "leaflet" {
2528
interface MarkerOptions {
2629
rotation?: number;
2730
rotateWithView?: boolean;
31+
scale?: number;
2832
}
2933

3034
interface Marker {

‎types/leaflet-rotate/leaflet-rotate-tests.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,6 @@ point.rotateFrom(60, point2);
3131
const marker = new L.Marker([0, 0], {
3232
rotation: 30,
3333
rotateWithView: true,
34+
scale: 0.5
3435
});
3536
marker.setRotation(30);

‎types/leaflet-rotate/package.json‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
{
22
"private": true,
3+
"type": "module",
34
"name": "@types/leaflet-rotate",
4-
"version": "0.1.9999",
5+
"version": "0.2.9999",
56
"projects": [
6-
"https://github.com//Raruto/leaflet-rotate"
7+
"https://github.com/Raruto/leaflet-rotate"
78
],
89
"dependencies": {
910
"@types/leaflet": "^1.9"

0 commit comments

Comments
 (0)