Remove null from custom ref type definition

This commit is contained in:
Andrew Huth
2019-04-04 15:32:03 -07:00
parent fd35129019
commit 1aff1fbb8b
+1 -1
View File
@@ -28,7 +28,7 @@ export interface ReactRefLike<T> {
readonly current: T | null;
}
export type ReactLegacyRefLike<T> = (instance: T | null) => void | ReactRefLike<T> | null;
export type ReactLegacyRefLike<T> = (instance: T | null) => void | ReactRefLike<T>;
export interface Specifier<T = any> {
max?: number;