7 lines
211 B
TypeScript
7 lines
211 B
TypeScript
|
import * as React from 'react';
|
||
|
export type IRefObject<T> = React.RefObject<T> | RefObject<T> | ((ref: T | null) => void);
|
||
|
export type RefObject<T> = {
|
||
|
(component: T | null): void;
|
||
|
current: T | null;
|
||
|
};
|