@storybook/addon-svelte-csf
Version:
Allows to write stories in Svelte syntax
20 lines (19 loc) • 702 B
TypeScript
import type { SvelteAST } from '../../../ast.js';
import type { SvelteASTNodes } from '../../../extract/svelte/nodes.js';
type StoryIdentifiers = {
exportName: string;
name: string | undefined;
};
interface GetIdentifiersParams {
nameNode?: SvelteAST.Attribute | undefined;
exportNameNode?: SvelteAST.Attribute | undefined;
filename?: string;
component: SvelteAST.Component;
}
export declare function getStoryIdentifiers(options: GetIdentifiersParams): StoryIdentifiers;
interface GetStoriesIdentifiersParams {
nodes: SvelteASTNodes;
filename?: string;
}
export declare function getStoriesIdentifiers(params: GetStoriesIdentifiersParams): StoryIdentifiers[];
export {};