@@ -37,7 +37,7 @@ type EventHandlers = Pick<
3737 "onBlur" | "onFocus" | "onChange" | "onClick" | "onKeyDown"
3838> ;
3939
40- type RequiredAutoCompleteProps = Required <
40+ export type RequiredAutoCompleteProps = Required <
4141 Pick <
4242 AutoCompleteProps ,
4343 | "data"
@@ -51,12 +51,12 @@ type RequiredAutoCompleteProps = Required<
5151 >
5252> ;
5353
54- type OptionalAutoCompleteProps = Pick <
54+ export type OptionalAutoCompleteProps = Pick <
5555 AutoCompleteProps ,
5656 "onAutoComplete" | "disableShowOnFocus"
5757> ;
5858
59- interface AutoCompleteOptions
59+ export interface AutoCompleteOptions
6060 extends EventHandlers ,
6161 OptionalAutoCompleteProps ,
6262 RequiredAutoCompleteProps ,
@@ -69,7 +69,7 @@ interface AutoCompleteOptions
6969 defaultValue ?: string ;
7070}
7171
72- interface ReturnValue {
72+ export interface AutoCompleteReturnValue {
7373 ref : ( instance : HTMLInputElement | null ) => void ;
7474 match : string ;
7575 value : string ;
@@ -128,7 +128,7 @@ export default function useAutoComplete({
128128 disableShowOnFocus : propDisableShowOnFocus ,
129129 isListAutocomplete,
130130 isInlineAutocomplete,
131- } : AutoCompleteOptions ) : ReturnValue {
131+ } : AutoCompleteOptions ) : AutoCompleteReturnValue {
132132 const inputRef = useRef < HTMLInputElement | null > ( null ) ;
133133 const ref = useCallback (
134134 ( instance : HTMLInputElement | null ) => {
0 commit comments