Skip to content

Commit 4a732d0

Browse files
authored
fix: cast this.get_options to support @types/[email protected] (#1186)
1 parent 32e94db commit 4a732d0

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

python/jupyter_leaflet/src/layers/Circle.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,10 @@ export class LeafletCircleView extends LeafletCircleMarkerView {
2222
obj: Circle;
2323

2424
create_obj() {
25-
this.obj = L.circle(this.model.get('location'), this.get_options());
25+
this.obj = L.circle(
26+
this.model.get('location'),
27+
this.get_options() as L.CircleOptions
28+
);
2629
}
2730

2831
model_events() {

python/jupyter_leaflet/src/layers/CircleMarker.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,10 @@ export class LeafletCircleMarkerView extends LeafletPathView {
2222
obj: CircleMarker;
2323

2424
create_obj() {
25-
this.obj = L.circleMarker(this.model.get('location'), this.get_options());
25+
this.obj = L.circleMarker(
26+
this.model.get('location'),
27+
this.get_options() as L.CircleMarkerOptions
28+
);
2629
}
2730

2831
model_events() {

0 commit comments

Comments
 (0)