Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(compiler): For
FatalDiagnosticError
, hide the message
field w…
…ithout affecting the emit We want to hide `.message` from users, but the previous approach is not compatible with a specific [TS 3.7 flag](https://www.typescriptlang.org/docs/handbook/release-notes/typescript-3-7.html#the-usedefineforclassfields-flag-and-the-declare-property-modifier) ("using class fields to specialize properties from base classes also won’t work"). I received a request from the TS team to fix this, so they can enable that flag. Instead, we just override `message` to `never` in the .d.ts using `declare`.
- Loading branch information