From 95f59959eb3db2549f9495b1e85d5027e03c5f2d Mon Sep 17 00:00:00 2001 From: Alexey Date: Tue, 14 Feb 2017 01:37:12 +0300 Subject: [PATCH] Added TextFieldProps as a parent interface for AutoCompleteProps. AutoComplete component passes all the unknown properties to the underlying TextField component (see https://github.com/callemall/material-ui/blob/master/src/AutoComplete/AutoComplete.js#L507). The case I stumbled upon is using "disabled" property for AutoComplete. Although it is legit, existing typing does not allow to do that. --- material-ui/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/material-ui/index.d.ts b/material-ui/index.d.ts index c399116482..41e4c55cc1 100644 --- a/material-ui/index.d.ts +++ b/material-ui/index.d.ts @@ -533,7 +533,7 @@ declare namespace __MaterialUI { type cornersAndCenter = 'bottom-center' | 'bottom-left' | 'bottom-right' | 'top-center' | 'top-left' | 'top-right'; } - interface AutoCompleteProps { + interface AutoCompleteProps extends TextFieldProps { anchorOrigin?: propTypes.origin; animated?: boolean; animation?: React.ComponentClass;