Skip to main content

Module ts

Module ts 

Source
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/@returns tags and sibling .d.ts declarations, 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.paths from the nearest tsconfig.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/.astro component. Text outside scripts becomes blank lines so reported line numbers stay right.