diff --git a/components/lib/selectbutton/selectbutton.d.ts b/components/lib/selectbutton/selectbutton.d.ts index af61b90ee6..8b25e624e9 100644 --- a/components/lib/selectbutton/selectbutton.d.ts +++ b/components/lib/selectbutton/selectbutton.d.ts @@ -2,28 +2,28 @@ import * as React from 'react'; import TooltipOptions from '../tooltip/tooltipoptions'; import { SelectItemOptionsType } from '../selectitem/selectitem'; -type SelectButtonOptionDisabledType = string | ((option: any) => boolean); +type SelectButtonOptionDisabledType = string | ((option: TOption) => boolean); -interface SelectButtonChangeTargetOptions { +interface SelectButtonChangeTargetOptions { name: string; id: string; - value: any; + value: TOption; } -interface SelectButtonChangeParams { +interface SelectButtonChangeParams { originalEvent: React.SyntheticEvent; value: any; stopPropagation(): void; preventDefault(): void; - target: SelectButtonChangeTargetOptions; + target: SelectButtonChangeTargetOptions; } -export interface SelectButtonProps extends Omit, HTMLDivElement>, 'unselectable' | 'onChange' | 'ref'> { +export interface SelectButtonProps extends Omit, HTMLDivElement>, 'unselectable' | 'onChange' | 'ref'> { value?: any; - options?: SelectItemOptionsType; + options?: SelectItemOptionsType; optionLabel?: string; optionValue?: string; - optionDisabled?: SelectButtonOptionDisabledType; + optionDisabled?: SelectButtonOptionDisabledType; tabIndex?: number; multiple?: boolean; unselectable?: boolean; @@ -32,11 +32,11 @@ export interface SelectButtonProps extends Omit): void; children?: React.ReactNode; } -export declare class SelectButton extends React.Component { +export declare class SelectButton extends React.Component, any> { public getElement(): HTMLDivElement; }