TypeStat will apply mutations ("fixes") to files as it finds them. These mutations are all purely additive and limited to the type system, meaning they will not change your JavaScript output.
Each classification of fix can be individually configured in your typestat.json
file.
These all default to false
but can be enabled by being set to true
.
{
"fixes": {
"importExtensions": true,
"incompleteTypes": true,
"missingProperties": true,
"noImplicitAny": true,
"noImplicitThis": true,
"noInferableTypes": true,
"strictNonNullAssertions": true
}
}
Whether to add extensions to export
and import
declarations that refer to file paths without them.
See fixImportExtensions/README.md.
Whether to augment type annotations that don't capture all values constructs can be set to.
See fixIncompleteTypes/README.md.
Whether to apply TypeScript's fixer for missing properties on classes.
See fixMissingProperties/README.md.
Whether to add type annotations to declarations that don't yet have them.
See fixNoImplicitAny/README.md.
Whether to add this
type annotations to functions that don't yet have them.
See fixNoImplicitThis/README.md.
Whether to remove type annotations that don't change the meaning of code.
See noInferableTypes/README.md.
Whether to add missing non-null assertions.