Initial commit

This commit is contained in:
jiapengyu
2026-07-27 13:37:48 +08:00
commit ecba71e2a5
39123 changed files with 5989154 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
import { type CodegenResult, type CompoundExpressionNode, type InterpolationNode, type SimpleExpressionNode, type TextNode } from '@vue/compiler-core';
import type { Expression } from '@babel/types';
import { type GeneratorOptions } from '@babel/generator';
import type { CodegenOptions, CodegenRootNode } from './options';
export declare function generate(ast: CodegenRootNode, options: CodegenOptions): Omit<CodegenResult, 'ast'>;
type CodegenNode = SimpleExpressionNode | CompoundExpressionNode | InterpolationNode | TextNode;
interface GenNodeContext {
code: string;
helper(key: symbol): string;
push(code: string, node?: CodegenNode): void;
}
export declare function genBabelExpr(expr: Expression, opts?: GeneratorOptions): string;
export declare function genExpr(node: CodegenNode | symbol | string, context?: GenNodeContext): string;
export {};