diff --git a/types/react-autocomplete/index.d.ts b/types/react-autocomplete/index.d.ts index c1e3aefa0f..58339d3b31 100644 --- a/types/react-autocomplete/index.d.ts +++ b/types/react-autocomplete/index.d.ts @@ -144,4 +144,16 @@ declare namespace Autocomplete { debug?: boolean; } } -declare class Autocomplete extends Component {} +declare class Autocomplete extends Component { + /** + * Autocomplete exposes a subset of `HTMLInputElement` properties to the parent component. + * They can be accessed through Autocomplete's `ref` prop. + */ + blur: HTMLInputElement['blur']; + checkValidity: HTMLInputElement['checkValidity']; + click: HTMLInputElement['click']; + focus: HTMLInputElement['focus']; + select: HTMLInputElement['select']; + setCustomValidity: HTMLInputElement['setCustomValidity']; + setSelectionRange: HTMLInputElement['setSelectionRange']; +}