Closed magwas closed 1 year ago
Here is a typing for parse()
declare module "espree" { import { type Program } from "estree"; interface Options { range?: boolean; loc?: boolean; comment?: boolean; tokens?: boolean; ecmaVersion?: number; allowReserved?: boolean; sourceType?: "script" | "module" | "commonjs"; ecmaFeatures?: { jsx?: boolean; globalReturn?: boolean; impliedStrict?: boolean; }; } function parse(code: string, options: Options): Program; }
Thanks. We decided not to do partial typings for this package as we try to explore doing a more full-featured type definition set.
Here is a typing for parse()