dynamodb-toolbox
dynamodb-toolbox copied to clipboard
Update method types overlay 2
Thanks for the quick release of the previous fix! However, the update method types overlay is still not working for me, I found another possible issue:
The return type of update method contains FirstDefined<[O.Pick<Item, ResponseAttributes>, EntityItemOverlay, MethodItemOverlay]>
and the response type I get for Attributes is {} | undefined
.
I think it should be FirstDefined<[O.Pick<EntityItemOverlay, ResponseAttributes>, EntityItemOverlay, MethodItemOverlay]>
.
What's more, the response I get is FirstDefined<[O.Pick<EntityItemOverlay, ResponseAttributes>, EntityItemOverlay, MethodItemOverlay]> | {} | undefined
. I think there is something more to resolve in order to get rid of that {}
Hey, can you send your entity config + an example of specific response you would want to see based on that config?
Thanks!