react-styleguidist
Version:
React components style guide generator
10 lines (9 loc) • 303 B
TypeScript
import { Node, Options } from 'acorn';
export interface Program extends Node {
body: Node[];
}
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): Program | undefined;