Replies: 1 comment 6 replies
-
I think that's not a good idea, because maybe you want to pass an property to the save function which is not belonging to the model, but you want to react on it with a hook. If i type check the save function then this is no longer possible. |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I think it would be great to use as example
instead of
So my IDE could autocomplete all the object attributes I'm writing down to as example save one or multiple objects in the database.
At the moment I do
useRepo(Bla, store).save([{...}, {...}, {...}] as Bla[])
to have auto completion and errors if I miss a non optional field.Beta Was this translation helpful? Give feedback.
All reactions