Skip to content

How to type the return value of SvelteKit endpoints? #2737

Answered by ignatiusmb
geoffrich asked this question in Q&A
Discussion options

You must be logged in to vote

You will need to trick TS with a wrapper, please see #1997 (comment) for more details

Replies: 3 comments 3 replies

Comment options

You must be logged in to vote
1 reply
@geoffrich
Comment options

geoffrich Nov 4, 2021
Collaborator Author

Comment options

You must be logged in to vote
1 reply
@geoffrich
Comment options

geoffrich Nov 5, 2021
Collaborator Author

Comment options

You must be logged in to vote
1 reply
@geoffrich
Comment options

geoffrich Nov 5, 2021
Collaborator Author

Answer selected by geoffrich
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
3 participants