Skip to content

codingame_tools.language.languages.typescript

typescript

CgTypeScriptLanguage: CgLanguage for CodinGame's "TypeScript"--extension only; local execution and contribution-create stub generation aren't implemented yet.

CgTypeScriptLanguage

CgTypeScriptLanguage()

Bases: CgLanguage

Source code in codingame_tools/language/languages/typescript.py
14
15
def __init__(self) -> None:
    super().__init__("TypeScript")

toolchain_fragment property

toolchain_fragment

Node comes from the shared node20 subsystem; the compiler itself is installed here, because only TypeScript needs it.

An exception to the usual shape -- most language fragments emit no Dockerfile lines at all -- and a reasonable one: tsc is a package on top of a runtime rather than a runtime, so a typescript subsystem would have exactly one consumer forever.

Installed into the Node prefix, so it stays inside node20's tree and no global PATH entry is created. CodinGame runs TypeScript 5.6.2 on Node 20.9.0.