Skip to content

Commit

Permalink
fix: fix
Browse files Browse the repository at this point in the history
  • Loading branch information
li-jia-nan committed Apr 30, 2024
1 parent d3aaae0 commit 271df21
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ref.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,9 @@ export function supportRef(nodeOrComponent: any): boolean {
return true;
}

export function supportNodeRef(
export function supportNodeRef<T = any>(
node: React.ReactNode,
): node is React.ReactElement & React.RefAttributes<any> {
): node is React.ReactElement & React.RefAttributes<T> {
if (!isValidElement(node)) {
return false;
}
Expand Down

0 comments on commit 271df21

Please sign in to comment.