After TypeStat has applied all the fixes it can to files, there may still be some general cleanups that need to be applied.
Most commonly, any remaining TypeScript type errors may need to be suppressed with // @ts-expect-error
.
Each classification of cleanups can be individually configured in your typestat.json
file.
These all default to false
but can be enabled by being set to true
.
{
"cleanups": {
"suppressTypeErrors": true
}
}
Whether to add a // @ts-expect-error
comment directive before each remaining type error.