Monaco-typescript v4.10.0 provides TypeScript and JavaScript language support for the Monaco Editor, including syntax highlighting, IntelliSense, diagnostics, and formatting. It is maintained by Microsoft and ships with bundled TypeScript types. The package is primarily used as a bundled dependency of monaco-editor, not installed standalone. It supports single-file scenarios only and does not support cross-file features like project isolation or rename. Release cadence follows monaco-editor releases, approximately quarterly.
npm install monaco-typescriptNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to set up a Monaco editor with TypeScript language support, set compiler options, and add extra type definitions.
Use monaco-editor as the dependency; it includes monaco-typescript internally.
For cross-file support, consider using the full TypeScript language service in a custom implementation.
Use ESM imports: import * as monaco from 'monaco-editor' and then import the language contributions from 'monaco-editor/esm/vs/language/typescript/monaco.contribution'.
If you need a newer TypeScript version, consider using the official TypeScript playground or building monaco-editor from source with a custom TypeScript version.
Install monaco-editor and import from 'monaco-editor' instead of 'monaco-typescript'.
Import 'monaco-editor/esm/vs/language/typescript/monaco.contribution' before using the API.
Ensure you set compiler options via typescriptDefaults.setCompilerOptions and provide necessary type definitions via setExtraLibs.