We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Currently, nested structs can be created with normal objects, e.g.
const example = MyStruct({ name: 1, address: { street: "xy" } })
But when assigning a new object to a property, an error occurs:
example.address = {street: "z"}; // Error: address must be of type <MyAddress>
It should be possible to assign objects without explicitly converting them to the matching type beforehand.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Currently, nested structs can be created with normal objects, e.g.
But when assigning a new object to a property, an error occurs:
It should be possible to assign objects without explicitly converting them to the matching type beforehand.
The text was updated successfully, but these errors were encountered: