TypeStat
TypeStat copied to clipboard
🐛 Bug: incompleteTypes does not add correct type for Set
Bug Report Checklist
- [X] I have tried restarting my IDE and the issue persists.
- [X] I have pulled the latest
mainbranch of the repository. - [X] I have searched for related issues and found none that matched my issue.
Expected
Should set the type to Set<ts.Type>
const assignedTypes = new ReadonlySet<ts.Type>();
const remainingMissingTypes: Set<ts.Type> = new Set(assignedTypes);
Actual
It sets the type to Set<any>
const assignedTypes = new ReadonlySet<ts.Type>();
const remainingMissingTypes: Set<any> = new Set(assignedTypes);
Additional Info
typestat.json
{
"fixes": {
"incompleteTypes": true,
},
"include": [
"src/**/*.{ts,tsx}"
],
"projectPath": "./tsconfig.json"
}
tsconfig.json
{
"compilerOptions": {
"declaration": true,
"declarationMap": true,
"esModuleInterop": true,
"module": "NodeNext",
"moduleResolution": "NodeNext",
"noEmit": true,
"outDir": "lib",
"resolveJsonModule": true,
"skipLibCheck": true,
"sourceMap": true,
"strict": true,
"target": "ES2022"
},
"include": ["src", "test/*.ts"]
}