-
Notifications
You must be signed in to change notification settings - Fork 26
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Environment
typescript@5.9.2pkg-types@2.3.0
Reproduction
Describe the bug
When used on records with optional types (e.g. CompilerOptions), the StripEnums type utility drops those types and reverts to an any. This leads to compilerOptions being typed as below
(property) TSConfig.compilerOptions?: {
[x: string]: any;
allowImportingTsExtensions?: any;
allowJs?: any;
allowArbitraryExtensions?: any;
allowSyntheticDefaultImports?: any;
... 104 more ...;
useDefineForClassFields?: any;
} | undefined
Additional context
No response
Logs
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working