Skip to content

Commit

Permalink
Fix #2445: Autocomplete add search method to Typescript def. (#2452)
Browse files Browse the repository at this point in the history
  • Loading branch information
melloware authored Dec 10, 2021
1 parent da48a59 commit 5bc57d8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/components/autocomplete/AutoComplete.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -104,4 +106,6 @@ export interface AutoCompleteProps {
onHide?(): void;
}

export declare class AutoComplete extends React.Component<AutoCompleteProps, any> { }
export declare class AutoComplete extends React.Component<AutoCompleteProps, any> {
public search(event:React.SyntheticEvent, query:string, source: AutoCompleteSourceType): void;
}

0 comments on commit 5bc57d8

Please sign in to comment.