-
-
Notifications
You must be signed in to change notification settings - Fork 146
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
O.Compact broken in 6.13 #132
Comments
Looking into this |
This is happening because the new So if you enable lodash-merging style, you can do pretty amazing things! type t0 = Merge<{
a: number[]
b: {a: 1}[]
c: {a: [0]}
}, {
a: string[]
b: {b: 2}[]
c: {a: [0, 1, 2]}
}, 'deep', 0>
// {
// a: (string | number)[];
// b: {
// a: 1;
// b: 2;
// }[];
// c: {
// a: [0, 1, 2];
// };
// } Actually, I plan to make the lodash-merging style the default soon. |
@millsp How do we enable "Lodash-merging style"? I've never used Lodash before. 😅 |
You just have to pass the |
Waiting for this to merge DefinitelyTyped/DefinitelyTyped#46213 |
The only thing to know when using lodash merging style is that when one of your fields is |
Fixed! |
🐞 Bug Report
The 0.13 is breaking a lot of things in my libraries with ts-toolbelt as depedency.
Right now my solution is to hard-code the version to v0.12 in all my libraries & tools that use ts-toolbelt.
The text was updated successfully, but these errors were encountered: