Closed nimahkh closed 1 year ago
I was unable to reproduce the error after executing this code snippet in the playground. Everything appears to be functioning correctly, including the top-level total.
However, the underlying issue does not pertain to data typing. When I run this code, the age remains at 30, whereas it should have changed to 60. As I mentioned the top-level total property works fine.
Do you encounter a similar problem, or have I overlooked something in the configurations?
Well done Mostafa, I think it is related to another issue you already created: #25 Let's fix it there
Related issue https://github.com/nimahkh/soft_bun/issues/25
In the following example, 'user.age' will throw an error
Error: 'Argument of type '"user.age"' is not assignable to parameter of type '"user" | "products" | "total"'.'