UNPKG

@storybook/web-components-vite

Version:

Storybook for Web Components and Vite: Develop, document, and test UI components in isolation

27 lines (23 loc) 999 B
import { StorybookConfig as StorybookConfig$1, CompatibleString } from 'storybook/internal/types'; import { StorybookConfigVite, BuilderOptions } from '@storybook/builder-vite'; type FrameworkName = CompatibleString<'@storybook/web-components-vite'>; type BuilderName = CompatibleString<'@storybook/builder-vite'>; type FrameworkOptions = { builder?: BuilderOptions; }; type StorybookConfigFramework = { framework: FrameworkName | { name: FrameworkName; options: FrameworkOptions; }; core?: StorybookConfig$1['core'] & { builder?: BuilderName | { name: BuilderName; options: BuilderOptions; }; }; }; /** The interface for Storybook configuration in `main.ts` files. */ type StorybookConfig = Omit<StorybookConfig$1, keyof StorybookConfigVite | keyof StorybookConfigFramework> & StorybookConfigVite & StorybookConfigFramework; declare function defineMain(config: StorybookConfig): StorybookConfig; export { defineMain };