@embroider/macros
Version:
Standardized build-time macros for ember apps.
14 lines (13 loc) • 580 B
TypeScript
import type { NodePath } from '@babel/traverse';
import type { types as t } from '@babel/core';
import type State from './state';
import type * as Babel from '@babel/core';
type CallEachExpression = NodePath<t.CallExpression> & {
get(callee: 'callee'): NodePath<t.Identifier>;
};
export type EachPath = NodePath<t.ForOfStatement> & {
get(right: 'right'): CallEachExpression;
};
export declare function isEachPath(path: NodePath<t.ForOfStatement>): path is EachPath;
export declare function insertEach(path: EachPath, state: State, context: typeof Babel): void;
export {};