From f70c679f72fec6f8f048c03bb89a9a89288387fa Mon Sep 17 00:00:00 2001 From: Andrew Huth Date: Mon, 8 Apr 2019 14:12:54 -0700 Subject: [PATCH] Add type parameter for ref objects All HTML elements are descendants of HTMLElement, but they also may have additional methods. For this to work right, we need the option to specify what exactly the element is expected to be. --- 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 065e42881d..da3e3b9eb2 100644 --- a/types/airbnb-prop-types/index.d.ts +++ b/types/airbnb-prop-types/index.d.ts @@ -162,7 +162,7 @@ export function range(min?: number, max?: number): PropTypes.R export function range(min?: number, max?: number): PropTypes.Requireable; -export function ref(): PropTypes.Requireable>; +export function ref(): PropTypes.Requireable>; export function requiredBy

( requiredByPropName: string,