@nodesecure/js-x-ray
Version:
JavaScript AST XRay analysis
20 lines • 612 B
TypeScript
import type { ESTree } from "meriyah";
import { SourceFile } from "../SourceFile.ts";
/**
* @description Search for RegExpLiteral AST Node
* @see https://github.com/estree/estree/blob/master/es5.md#regexpliteral
* @example
* /hello/
*/
declare function validateNode(node: ESTree.Node): [boolean, any?];
declare function main(node: ESTree.RegExpLiteral, options: {
sourceFile: SourceFile;
}): void;
declare const _default: {
name: string;
validateNode: typeof validateNode;
main: typeof main;
breakOnMatch: boolean;
};
export default _default;
//# sourceMappingURL=isLiteralRegex.d.ts.map