babel-plugin-debug-macros
Version:
Debug macros and feature flag stripping
11 lines (10 loc) • 555 B
TypeScript
import type { NodePath, types as t } from '@babel/core';
export declare function name(value: t.Identifier | t.StringLiteral): string;
export type CallIdentifierExpression = t.CallExpression & {
callee: t.Identifier;
};
export declare function isCallIdentifierExpression(exp: t.CallExpression): exp is CallIdentifierExpression;
export type CallStatementPath = NodePath<t.ExpressionStatement & {
expression: CallIdentifierExpression;
}>;
export declare function isCallStatementPath(path: NodePath<t.ExpressionStatement>): path is CallStatementPath;