typescript-check
TypeScript type checking via tsc --noEmit with actionable error output.
它会碰到什么
扫了多少1 个文本文件,2 KB
它会碰到什么不碰外部(只输出文字)
命中总数0 处
命中统计严重 0 · 高 0 · 中 0 · 低 0
这一栏是扫描器报的事实,不是结论。命中多不等于有毒(安全工具、规则库、示例脚本本来就会包含危险写法),命中少也不等于干净。它和你手上的凭据、文件、网络有什么关系,需要你自己看。
技能内容
TypeScript check
Read-only type validation. Follow repository instructions and package scripts; preserve project compiler settings. Do not fix code, change configuration, or install dependencies for a check-only request.
Run
- Locate
tsconfig.json, includingsrc/,app/, andpackages/. In a monorepo, use the package affected by the task or the repository's aggregate check. Ask only when the target cannot be inferred. If no config exists, report the missing configuration and stop. - Confirm TypeScript is installed locally before using npx; do not allow an implicit package download.
- Run
npx tsc --noEmit 2>&1, ornpx tsc --noEmit --project path/to/tsconfig.json 2>&1for a selected config. Capture output and exit code. Zero means pass; nonzero may mean type errors or a tool/configuration failure—report which. - Report status and error count. Group diagnostics by file and line, retaining
file:line:column,TS####, and the message. Retain complete logs; show useful failure details instead of all successful output.
Recovery and flags
- TypeScript missing: report it; suggest
npm install typescript --save-devwithin dependency setup. - npx missing: check
node --version; when Node/npm and local TypeScript exist, usenpm exec tsc -- --noEmit. Otherwise report the missing toolchain. - Multiple configs: list the checked configs and any omitted packages. A single-package pass is not a whole-repository pass.
--skipLibCheck: skips declaration-file checking; use only when configured or requested, not to hide failures.--strict: adds strict checks; enable only when requested or configured.--incremental: may write build-info cache files; enable only when permitted, not for a strictly read-only run.- Named files: passing files directly bypasses project config. Prefer
--project; do not claim equivalent coverage from a narrower check.
When running the full JavaScript/TypeScript check sequence, lint first, type-check next, then run tests with vitest-runner or the repository test command.
想直接用这个技能?
本站把开放许可(MIT / Apache 等)的技能按仓库打包整理到网盘,点一下转存到你自己的网盘,不用一个个从 GitHub 拉。许可未声明的技能只给原始仓库链接,不打包。