✓ Verified 💻 Development ✓ Enhanced Data

Typescript Lsp

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

Rating
4.7 (388 reviews)
Downloads
19,356 downloads
Version
1.0.0

Overview

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

Complete Documentation

View Source →

TypeScript LSP

TypeScript/JavaScript language server integration providing comprehensive code intelligence through typescript-language-server.

Capabilities

  • Type checking: Static analysis of TypeScript and JavaScript types
  • Code intelligence: Autocomplete, go-to-definition, find references, rename symbols
  • Error detection: Real-time diagnostics for type errors, syntax issues, and semantic problems
  • Refactoring: Extract function/variable, organize imports, quick fixes
  • Supported extensions: .ts, .tsx, .js, .jsx, .mts, .cts, .mjs, .cjs

Installation

Install TypeScript language server and TypeScript compiler:

bash
npm install -g typescript-language-server typescript

Or with yarn:

bash
yarn global add typescript-language-server typescript

Verify installation:

bash
typescript-language-server --version
tsc --version

Usage

The language server runs automatically in LSP-compatible editors. For manual type checking:

bash
tsc --noEmit  # Type check without generating output files

Compile TypeScript files:

bash
tsc src/index.ts

Watch mode for continuous type checking:

bash
tsc --watch --noEmit

Configuration

Create tsconfig.json in project root:

json
{
  "compilerOptions": {
    "target": "ES2020",
    "module": "ESNext",
    "strict": true,
    "esModuleInterop": true,
    "skipLibCheck": true,
    "forceConsistentCasingInFileNames": true,
    "resolveJsonModule": true,
    "moduleResolution": "node"
  },
  "include": ["src/**/*"],
  "exclude": ["node_modules", "dist"]
}

Integration Pattern

When editing TypeScript/JavaScript code:

  • Run tsc --noEmit after significant changes
  • Address type errors before committing
  • Use tsc --watch during active development
  • Leverage quick fixes for common issues

Common Flags

  • --noEmit: Type check only, no output files
  • --strict: Enable all strict type checking options
  • --watch: Watch mode for continuous compilation
  • --project : Specify tsconfig.json location
  • --pretty: Stylize errors and messages

More Information

Installation

Terminal bash

openclaw install typescript-lsp
    
Copied!

💻Code Examples

tsc --version

tsc---version.txt
## Usage

The language server runs automatically in LSP-compatible editors. For manual type checking:

tsc --watch --noEmit

tsc---watch---noemit.txt
## Configuration

Create `tsconfig.json` in project root:
example.json
{
  "compilerOptions": {
    "target": "ES2020",
    "module": "ESNext",
    "strict": true,
    "esModuleInterop": true,
    "skipLibCheck": true,
    "forceConsistentCasingInFileNames": true,
    "resolveJsonModule": true,
    "moduleResolution": "node"
  },
  "include": ["src/**/*"],
  "exclude": ["node_modules", "dist"]
}

Tags

#web_and-frontend-development #code #script

Quick Info

Category Development
Model Claude 3.5
Complexity One-Click
Author bowen31337
Last Updated 3/10/2026
🚀
Optimized for
Claude 3.5
🧠

Ready to Install?

Get started with this skill in seconds

openclaw install typescript-lsp