Expand description
The TypeScript/JavaScript language plugin: discovery, parsing and the npm crate table.
Modules§
- deps
- npm packages and their Rust counterparts.
- discover
- Finds the packages and source files of a JS/TS repository.
- exports
- Exported functions of a TS/JS file, with their parameter and return types as written.
- jsdoc
- Types for untyped JavaScript: JSDoc
@param/@returnstags and sibling.d.tsdeclarations, written in the same TS dialect the TypeScript path reads. - scan
- Per-file facts from the oxc AST: imports, platform use, migration risks.
- shape
- The shape of a TS type, for generating values that fit it.
- tsconfig
compilerOptions.pathsfrom the nearesttsconfig.json: import aliases like~/utils.
Functions§
- script_
of - The code of a file as TS: the file itself, or only the
<script>blocks of a.vue/.svelte/.astrocomponent. Text outside scripts becomes blank lines so reported line numbers stay right.