diff --git a/types.d.ts b/types.d.ts index 9586edb7..3f9ff170 100644 --- a/types.d.ts +++ b/types.d.ts @@ -11,7 +11,7 @@ export interface IState { export interface IMethods { removeItem: () => void; dropDown: () => void; - addItem: () => void; + addItem: (item: IItemRenderer['item']) => void; setSearch: () => void; getInputSize: () => void; toggleSelectAll: () => void; @@ -43,8 +43,8 @@ export interface IKeyDown { setState?: () => void; } -export interface IItemRenderer { - item?: number; +export interface IItemRenderer { + item?: T; itemIndex?: number; props?: ISelectProps; state?: IState;