-
-
Notifications
You must be signed in to change notification settings - Fork 23
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
Use Draft<S> from immer in TUpdateFunction #48
Comments
Hi @blutorange ! Thanks for the kind words, I'm glad you're enjoying it :) Ah, I see. Makes sense, I'll look into putting that in now. Never made use of |
I've added it and published |
Thank you very much, that was pretty quick :) And yeah, I hadn't been using readonly either until recently -- but I found it's very useful to keep you (and your co-workers) from accidentally doing something bad : ) |
Could you also update the |
Ah yea, that is the same. Added it and released in |
This is a great small library I just found, good work : ) There's a minor issue with TypeScript that would be great if it could be changed:
This doesn't transpile as items is a readonly array.
immer
has aDraft
type for this case - would be great if it could be used in pullstate:https://github.com/lostpebble/pullstate/blob/master/src/Store.ts#L26 - https://github.com/lostpebble/pullstate/blob/master/src/Store.ts#L28
The text was updated successfully, but these errors were encountered: