We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e9900fa commit 078b6a0Copy full SHA for 078b6a0
src/ref.ts
@@ -60,9 +60,13 @@ export const supportRef = (nodeOrComponent: any): boolean => {
60
return true;
61
};
62
63
+interface RefAttributes<T> extends React.Attributes {
64
+ ref: React.Ref<T>;
65
+}
66
+
67
export const supportNodeRef = <T = any>(
68
node: React.ReactNode,
-): node is React.ReactElement & React.RefAttributes<T> => {
69
+): node is React.ReactElement & RefAttributes<T> => {
70
if (!isValidElement(node)) {
71
return false;
72
}
0 commit comments