UNPKG

ember-ast-helpers

Version:

Utility belt to level-up your Ember AST transforms

12 lines (11 loc) 762 B
import { AST, Syntax } from '@glimmer/syntax'; import BuildTimeComponent from '../build-time-component'; export declare type interpolatePropertiesOptions = { divisor?: string; skipIfMissing?: boolean; skipIfMissingDynamic?: boolean; callback?: (interpolations: { [key: string]: any; }) => void; }; export default function interpolateProperties(b: Syntax["builders"], interpolation: string, {divisor, skipIfMissing, skipIfMissingDynamic, callback}?: interpolatePropertiesOptions): (this: BuildTimeComponent) => string | AST.MustacheStatement | AST.TextNode | AST.PathExpression | AST.SubExpression | AST.StringLiteral | AST.BooleanLiteral | AST.NumberLiteral | AST.UndefinedLiteral | AST.NullLiteral | AST.ConcatStatement | undefined;