Leverage separate setter types #1684
Unanswered
mweststrate
asked this question in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
TS 4.3 will introduce separate setter types https://devblogs.microsoft.com/typescript/announcing-typescript-4-3-beta/#separate-write-types-on-properties, which is potentially great for MST, as it will allow introducing object properties that, as read type always returns a valid model instance (as-is), but for writing also accepts snapshots.
Beta Was this translation helpful? Give feedback.
All reactions