@storybook/addon-svelte-csf
Version:
Allows to write stories in Svelte syntax
17 lines (16 loc) • 638 B
TypeScript
import { type ESTreeAST } from '../../../parser/ast.js';
import type { CompiledASTNodes } from '../../../parser/extract/compiled/nodes.js';
import type { SvelteASTNodes } from '../../../parser/extract/svelte/nodes.js';
interface Params {
nodes: {
compiled: CompiledASTNodes;
svelte: SvelteASTNodes;
};
filename?: string;
}
/**
* Replaces `defineMeta({ ... })` with `defineMeta(meta)`,
* and also it returns {@link ESTreeASTAST.ObjectExpression} which was replaced with {@link ESTreeAST.Identifier}
*/
export declare function replaceDefineMetaArgument(params: Params): ESTreeAST.ObjectExpression;
export {};