You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
Environment
[email protected][email protected]Reproduction
https://www.typescriptlang.org/play/?#code/C4TwDgpgBAysBOBLMBRAdgVwLYGcA8AKlBAB7ARoAmOUAShAMYD28leOCiaA5gDRQBDNCAB8IqAF4oAbwBQUBVADaAaShcoAawggmAMygEAugC5Dqo8TIVqUAEZMmAGwhD5igPzmVR9wrMEFlbkVDQcSDx+UF6BPlEBQaQhtkx2AFaMwFExFvHelkk2NACC8PACIHhCotn5ebEF1qFQGFQQelwQlLWtlO2d3YpQZtUA3LIAvuOyFNhQAFoy7nqOvO52AvBQk7KyoJBQABqSS0MCHmYOzq5oUXYXCzt74NAAmidwSKiYuHiHIkA
Describe the bug
When used on records with optional types (e.g.
CompilerOptions), the StripEnums type utility drops those types and reverts to anany. This leads tocompilerOptionsbeing typed as belowAdditional context
No response
Logs