UNPKG

986 BTypeScriptView Raw
1import { Component, AsyncComponent } from 'vue';
2import { Args as DefaultArgs, Annotations, BaseMeta, BaseStory } from '@storybook/addons';
3import { StoryFnVueReturnType } from './types';
4export type { Args, ArgTypes, Parameters, StoryContext } from '@storybook/addons';
5declare type VueComponent = Component<any, any, any, any> | AsyncComponent<any, any, any, any>;
6declare type VueReturnType = StoryFnVueReturnType;
7/**
8 * Metadata to configure the stories for a component.
9 *
10 * @see [Default export](https://storybook.js.org/docs/formats/component-story-format/#default-export)
11 */
12export declare type Meta<Args = DefaultArgs> = BaseMeta<VueComponent> & Annotations<Args, VueReturnType>;
13/**
14 * Story function that represents a component example.
15 *
16 * @see [Named Story exports](https://storybook.js.org/docs/formats/component-story-format/#named-story-exports)
17 */
18export declare type Story<Args = DefaultArgs> = BaseStory<Args, VueReturnType> & Annotations<Args, VueReturnType>;