Skip to content

Commit d85bdbe

Browse files
committed
fix: method types
1 parent e704123 commit d85bdbe

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/GEOComp.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@ const GEOCompWithMethodExpose = withMethodExposing(GEOComp, [
365365
params: [
366366
{
367367
name: "coords",
368-
type: "array",
368+
type: "JSONArray",
369369
},
370370
{
371371
name: "duration",
@@ -418,7 +418,7 @@ const GEOCompWithMethodExpose = withMethodExposing(GEOComp, [
418418
params: [
419419
{
420420
name: "coordinates",
421-
type: "array", // Assuming [longitude, latitude]
421+
type: "JSONArray", // Assuming [longitude, latitude]
422422
description: "Coordinates where the popup should appear",
423423
},
424424
{
@@ -440,7 +440,7 @@ const GEOCompWithMethodExpose = withMethodExposing(GEOComp, [
440440
params: [
441441
{
442442
name: "data",
443-
type: "any",
443+
type: "JSONObject",
444444
},
445445
{
446446
name: "layer",

0 commit comments

Comments
 (0)