diff --git a/src/components/use-control.ts b/src/components/use-control.ts index 104af51c..d4c8a51e 100644 --- a/src/components/use-control.ts +++ b/src/components/use-control.ts @@ -7,8 +7,8 @@ type ControlOptions = { position?: ControlPosition; }; -export default function useControl( - onCreate: (context: MapContextValue) => IControl, +export default function useControl( + onCreate: (context: MapContextValue) => T, onRemove?: ((context: MapContextValue) => void) | ControlOptions, opts?: ControlOptions ) {