TypeScript Tools CLI Server

0.3.1 · abandoned · verified Tue Apr 21

typescript-tools provides a command-line server, `tss`, which exposes an API to the TypeScript Language Services. Its primary purpose was to enable editor plugins (e.g., for Vim, Emacs, Sublime Text) to integrate early TypeScript features such as type information lookup, symbol definition navigation, and code completion. The package was designed for TypeScript Language Services v0.9, which is severely outdated as TypeScript is now in its 5.x major release series. Development of `typescript-tools` appears to have ceased around 2014-2015, making it an abandoned project. It is not compatible with modern TypeScript versions and lacks active maintenance or a defined release cadence.

Common errors

Warnings

Install

Imports

Quickstart

Demonstrates global installation and basic command-line interaction with the `tss` server to query TypeScript language services, reflecting its intended early-era usage.

npm install -g typescript-tools

# Example TypeScript file (e.g., tests/test.ts):
# declare const x: { a: number; b: number; };
# const y = x.a;

# Start the server and query for type information via standard input
# Note: Output and paths will vary significantly due to the package's age 
# and incompatibility with modern TypeScript. 
# This command block simulates input for the tss server.

# The 'tss' executable might require its full path on some systems.
# Example session (pipe commands to tss):
tss tests/test.ts <<EOF
type 4 2 tests/test.ts
definition 4 2 tests/test.ts
completions true 4 4 tests/test.ts
quit
EOF

view raw JSON →