@nodesecure/js-x-ray
Version:
JavaScript AST XRay analysis
16 lines • 687 B
TypeScript
import type { ESTree } from "meriyah";
export type Literal<T> = ESTree.Literal & {
value: T;
};
export type RegExpLiteral<T> = ESTree.RegExpLiteral & {
value: T;
};
export declare function isNode(value: unknown): value is ESTree.Node;
export declare function isLiteral(node: unknown): node is Literal<string>;
export declare function isTemplateLiteral(node: unknown): node is ESTree.TemplateLiteral;
export declare function isCallExpression(node: unknown): node is ESTree.CallExpression;
export interface DefaultOptions {
externalIdentifierLookup?(name: string): string | null;
}
export declare function noop(_name: string): string | null;
//# sourceMappingURL=types.d.ts.map