import type { GlobalTypes } from "storybook/internal/csf"; type ToolbarArgType = GlobalTypes[number]; type ToolbarConfig = NonNullable; type ToolbarItem = Exclude; /** * Same as Storybook's `ToolbarArgType` but with support for generically typed value. */ export type StorybookGlobalType = Omit & { defaultValue?: TValue; toolbar: Omit & { items: (Omit & { value?: TValue })[]; }; };