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 632d5cc commit 9103e8fCopy full SHA for 9103e8f
src/index.d.ts
@@ -38,7 +38,7 @@ export interface VNode<P = {}> {
38
export type Key = string | number | any;
39
40
export type RefObject<T> = { current: T };
41
-export type RefCallback<T> = (instance: T | null) => void;
+export type RefCallback<T> = (instance: T | null) => void | (() => void);
42
export type Ref<T> = RefCallback<T> | RefObject<T | null> | null;
43
44
export type ComponentChild =
0 commit comments