pub fn parse(
paths: &[impl AsRef<Path>],
lib_name: Option<&str>,
) -> Result<(Module, GlobalContext)>Expand description
Parse .d.ts files and return the module + global context.
Diagnostics are collected on GlobalContext.diagnostics — callers should
inspect or display them as needed (e.g., ctx.diagnostics.emit()).
External type mappings can be configured on the returned GlobalContext
before passing it to codegen::generate.