diff --git a/types/storybook__addon-knobs/index.d.ts b/types/storybook__addon-knobs/index.d.ts index 11fbfb9cd5..0a83194453 100644 --- a/types/storybook__addon-knobs/index.d.ts +++ b/types/storybook__addon-knobs/index.d.ts @@ -36,9 +36,9 @@ export function color(name: string, value: string): string; export function object(name: string, value: T): T; -export function select(name: string, options: { [s: string]: T }, value: string): string; -export function select(name: string, options: { [s: number]: T }, value: number): number; -type SelectValue = string | number; +export type SelectValue = string | number; +export function select(name: string, options: { [s: string]: string }, value: T): T; +export function select(name: string, options: { [s: number]: string }, value: T): T; export function select(name: string, options: T[], value: T): T; export function date(name: string, value?: Date): Date;