Skip to content

Commit

Permalink
fix: Map 子组件函数签名 (#350)
Browse files Browse the repository at this point in the history
修复使用 map 子组件时类型提示错误
  • Loading branch information
HoshinoSuzumi committed Apr 5, 2024
1 parent 3e1fb25 commit b16c7bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/map/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export interface MapProps extends AMap.MapEvents, AMap.MapOptions {
className?: React.HTMLAttributes<HTMLDivElement>['className'];
style?: React.HTMLAttributes<HTMLDivElement>['style'];
container?: HTMLDivElement | null;
children?: JSX.Element & RenderProps['children'];
children?: JSX.Element | RenderProps['children'];
}

export const Provider: FC<PropsWithChildren<RenderProps>> = (props) => {
Expand Down

0 comments on commit b16c7bc

Please sign in to comment.