This is an old package that translates TL to Typescript / Flow, now deprecated.
$ npx tl-transform schema.tl > a.js
# or
$ npx tl-transform schema.tl > a.ts
import fs from 'fs'
import { transform } from 'tl-transform'
// function transform: (src: string, cfg?: Config) => string
const source = fs.readFileSync('schema.tl').toString()
const output = transform(source)
console.log(output)
See also config.js.
See l82.js.