Skip to content

Commit

Permalink
fix(defineComponent): 修复类型定义
Browse files Browse the repository at this point in the history
  • Loading branch information
fjc0k committed Jul 25, 2020
1 parent 2dd4963 commit 472aecd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/react/defineComponent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export function defineComponent<
TRef extends any = any
>(
options: DefineComponentOptions<TProps, true, TRef>,
): React.ForwardRefExoticComponent<TProps>
): React.ForwardRefExoticComponent<TProps & { ref?: React.Ref<TRef> }>

/**
* 定义组件。
Expand Down

0 comments on commit 472aecd

Please sign in to comment.