Skip to content

Commit dcdcfeb

Browse files
committed
type(Map): Fix type errors.
1 parent c86d005 commit dcdcfeb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Map/index.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@ export type ControlOptions = {
1818
options?: (bmap: typeof BMap, map: BMap.Map) => void ;
1919
control?(bmap: typeof BMap, map: BMap.Map): BMap.Control;
2020
} | {
21+
name: keyof Control;
2122
options?: Control[keyof Control] ;
23+
control?(bmap: typeof BMap, map: BMap.Map): BMap.Control;
2224
}
2325

2426
export type ControlOptionsAll = keyof Control | ControlOptions;

0 commit comments

Comments
 (0)