@glimmer/syntax
Version:
11 lines (10 loc) • 620 B
TypeScript
import type * as ASTv1 from './nodes-v1';
export type MustacheStatementParams = Omit<ASTv1.MustacheStatement, 'type' | 'escaped'>;
export declare function buildLegacyMustache({ path, params, hash, trusting, strip, loc, }: MustacheStatementParams): ASTv1.MustacheStatement;
export type PathExpressionParams = Omit<ASTv1.MinimalPathExpression, 'type'>;
export declare function buildLegacyPath({ head, tail, loc }: PathExpressionParams): ASTv1.PathExpression;
export declare function buildLegacyLiteral<T extends ASTv1.Literal>({ type, value, loc, }: {
type: T['type'];
value: T['value'];
loc: T['loc'];
}): T;