typescript-go
typescript-go copied to clipboard
config: target:"es6" prevents stdlib from loading
declarationEmitObjectAssignedDefaultExport
might be related to #312
// @filename: first.ts
export const Key = Symbol()
/** @deprecated */
export type QW = number
with tsconfig.json
{
"compilerOptions": {
"target": "es6"
},
"files": ["first.ts"]
}
Gives
error TS2318: Cannot find global type 'Array'.
error TS2318: Cannot find global type 'Boolean'.
error TS2318: Cannot find global type 'Function'.
error TS2318: Cannot find global type 'IArguments'.
error TS2318: Cannot find global type 'Number'.
error TS2318: Cannot find global type 'Object'.
error TS2318: Cannot find global type 'RegExp'.
error TS2318: Cannot find global type 'String'.
from Corsa but no errors in Strada.
Adding lib: ["es6"] to tsconfig stops the errors.
This is fixed!