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
In 6.13.36 this type worked right using any as Key param, now it doesn't
Reproduce the bug
typeTest=O.Optional<{test: {subtest: string}},any,'deep'>;consttest: Test=null;// test has this type// const test: {// [x: string]: OptionalDeep<any>;// }
Hey @tonivj5, thanks for reporting this, I know. The reason that this was working before is a bug that I corrected. This now behaves like any other mapped type should. Sorry about this! And yes, you should always use A.Key:
馃悶 Bug Report
Describe the bug
In
6.13.36
this type worked right usingany
asKey
param, now it doesn'tReproduce the bug
Expected behavior
Expected type (as in
6.13.36
):Possible Solution
Using
A.Key
asKey
param works 馃憤Screenshots
Additional context
I'm using latest typescript version (
3.9.7
).This worked before, but maybe this is the expected behavior 馃槄
The text was updated successfully, but these errors were encountered: