mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-04 06:47:03 +00:00
Merge pull request #26464 from samijaber/react-autocomplete
react-autocomplete: add Input element methods
This commit is contained in:
Vendored
+13
-1
@@ -144,4 +144,16 @@ declare namespace Autocomplete {
|
||||
debug?: boolean;
|
||||
}
|
||||
}
|
||||
declare class Autocomplete extends Component<Autocomplete.Props> {}
|
||||
declare class Autocomplete extends Component<Autocomplete.Props> {
|
||||
/**
|
||||
* 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'];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user