Skip to content

parseWithTsMorph

ts
export declare function parseWithTsMorph(sourceText: string, fileName?: string, options?: ParseOptions): ParsedItem[];

Parses TypeScript source code using the ts-morph library. This function is the core of Parsee's parsing capabilities, allowing you to convert TypeScript code into a structured format that can be analyzed or transformed.

References