diff --git a/src/components/autocomplete/AutoComplete.d.ts b/src/components/autocomplete/AutoComplete.d.ts index 0f4db6dba2..fa33c9ed96 100755 --- a/src/components/autocomplete/AutoComplete.d.ts +++ b/src/components/autocomplete/AutoComplete.d.ts @@ -12,6 +12,8 @@ type AutoCompleteSelectedItemTemplateType = React.ReactNode | ((value: any) => R type AutoCompleteAppendToType = 'self' | HTMLElement | undefined | null; +type AutoCompleteSourceType = 'dropdown' | 'input'; + interface AutoCompleteChangeTargetOptions { name: string; id: string; @@ -104,4 +106,6 @@ export interface AutoCompleteProps { onHide?(): void; } -export declare class AutoComplete extends React.Component { } +export declare class AutoComplete extends React.Component { + public search(event:React.SyntheticEvent, query:string, source: AutoCompleteSourceType): void; +}