TypeScriptLanguage

open class TypeScriptLanguage : TruffleLanguage<C>

TypeScript language implementation for GraalVM, meant for use via Elide.

The TypeScript language implementation uses GraalJs internally, and an embedded version of the TypeScript Compiler (known as 'tsc'). The compiler is loaded into a dedicated JavaScript context and realm, and granted I/O access in order to load scripts from disk sources.

At this time, Elide's implementation of TypeScript incurs a penalty to compile the input code (or code loaded from modules) through `tsc`; later, this restriction may be lifted. TypeScript does not support I/O isolation yet.

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
val APPLICATION_MIME_TYPE: String = "application/typescript"
Link copied to clipboard
val ID: String = "ts"
Link copied to clipboard
val IMPLEMENTATION_NAME: String = "TypeScript"
Link copied to clipboard
val MODULE_MIME_TYPE: String = "application/typescript+module"
Link copied to clipboard
val NAME: String = "TypeScript"
Link copied to clipboard
val TEXT_MIME_TYPE: String = "text/typescript"
Link copied to clipboard
val TYPESCRIPT_VERSION: String = "5.8.2"