Bỏ qua tới nội dung
TakoAPI
Quay lại kỹ năng

typescript-lsp

bởi bowen31337

Web & Frontend Development
983Lượt tải do clawskills.sh công bố
0Lượt xem
0 lượt thíchĐăng nhập để thích kỹ năng này
—Chưa có đánh giá
Đánh giá của bạn

Tóm tắt

TypeScript language server providing type checking, code intelligence, and LSP diagnostics for .ts, .tsx, .js.

Mô tả

Kỹ năng này làm gì

TypeScript/JavaScript language server providing type checking, code intelligence, and LSP diagnostics through typescript-language-server. Supports .ts, .tsx, .js, .jsx, .mts, .cts, .mjs, and .cjs files. Runs automatically in LSP-compatible editors or via the tsc command line.

Surfaces type errors and code navigation in the editor in real time, catching bugs that runtime testing or linting alone would miss.

Khi nào nên dùng

  • Catching type errors before committing code
  • Navigating a large codebase with go-to-definition
  • Renaming a variable or function across multiple files
  • Organizing imports in TypeScript or React components
  • Running continuous type checks while refactoring

Quy trình ví dụ

ĐẦU VÀO

User asks: Check my TypeScript project for type errors

AGENT
  1. 1

    Run tsc --noEmit in the project root

  2. 2

    Parse compiler output for errors and their locations

  3. 3

    Group errors by file

  4. 4

    Report each error with filename, line number, and description

ĐẦU RA

List of type errors with file paths and line numbers, or confirmation that the project is error-free

Yêu cầu

  • typescript-language-server npm package installed globally
  • typescript npm package installed globally

Cài đặt

clawhub install bowen31337/typescript-lsp

Chạy lệnh CLI, hoặc dán prompt vào Claude Code, Cursor, Codex hay coding agent bạn đang dùng.

Liên kết