Correct ref type for airbnb-prop-types

This commit is contained in:
Andrew Huth
2019-04-05 07:05:08 -07:00
parent 1aff1fbb8b
commit b2d187ee7f
+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>;
export type ReactLegacyRefLike<T> = ((instance: T | null) => void) | ReactRefLike<T>;
export interface Specifier<T = any> {
max?: number;