If there is a tstl error when transpiling a file, the error itself is output to the resulting lua file. For example:
// main.ts
declare const a: { [k: string]: string; };
const o = {...a};
=>
-- main.lua
error("Unsupported object literal element kind: SpreadAssignment")
If there is a tstl error when transpiling a file, the error itself is output to the resulting lua file. For example:
=>