Better typing #2093
MoSattler
started this conversation in
Feature Requests & Ideas
Better typing
#2093
Replies: 1 comment
-
Related to this #2094 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Payload has recently improved its typing considerably, and that made me choose payload for a bigger project I have. Really great work on that one!
I do think there is still room for improvement though.
Right now, things like the access handler are very generically typed with
CollectionConfig
. Hence no information about the actual collection is in the type. That leads to things likeaccess
not being typed correctly.I am not very familiar with the payload internals, but it should be possible to type
CollectionConfig
with generics, so thatdata
in the example above is inferred.Beta Was this translation helpful? Give feedback.
All reactions