From 1aff1fbb8b7d93e77d201a0b7a47b85036e25ee9 Mon Sep 17 00:00:00 2001 From: Andrew Huth Date: Thu, 4 Apr 2019 15:32:03 -0700 Subject: [PATCH] Remove null from custom ref type definition --- types/airbnb-prop-types/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/airbnb-prop-types/index.d.ts b/types/airbnb-prop-types/index.d.ts index efab471ef6..ec828bb242 100644 --- a/types/airbnb-prop-types/index.d.ts +++ b/types/airbnb-prop-types/index.d.ts @@ -28,7 +28,7 @@ export interface ReactRefLike { readonly current: T | null; } -export type ReactLegacyRefLike = (instance: T | null) => void | ReactRefLike | null; +export type ReactLegacyRefLike = (instance: T | null) => void | ReactRefLike; export interface Specifier { max?: number;