react-styleguidist
Version:
React components style guide generator
7 lines (6 loc) • 326 B
TypeScript
import { Parser, Node as AcornNode, Options } from 'acorn';
export declare const ACORN_OPTIONS: Options;
/**
* Parse source code with Acorn and return AST, returns undefined in case of errors
*/
export default function getAst(code: string, plugins?: ((BaseParser: typeof Parser) => typeof Parser)[]): AcornNode | undefined;