-
Notifications
You must be signed in to change notification settings - Fork 12.9k
Open
Labels
Awaiting More FeedbackThis means we'd like to hear from more people who would be helped by this featureThis means we'd like to hear from more people who would be helped by this featureSuggestionAn idea for TypeScriptAn idea for TypeScript
Description
@ahejlsberg Probably #29740 made this regression.
TypeScript Version: 3.4.0-dev.20190207
Search Terms:
Code
type DeepReadonly<T> =
T extends void ? T :
{ readonly [P in keyof T]: DeepReadonly<T[P]>; };
type m = { a: unknown }; // Also unknown[].
type i = DeepReadonly<m>;
Expected behavior:
i
is { readonly a: unknown; }
.
Actual behavior:
i
is { readonly a: {}; }
.
Playground Link:
Related Issues:
reduckted and russelldavis
Metadata
Metadata
Assignees
Labels
Awaiting More FeedbackThis means we'd like to hear from more people who would be helped by this featureThis means we'd like to hear from more people who would be helped by this featureSuggestionAn idea for TypeScriptAn idea for TypeScript