Skip to content

Possible to set explicit return types on generated hooks with typescript-react-apollo? #4052

Discussion options

You must be logged in to vote

@miller-productions you can use ReturnType<useLoginMutation> to get this type, or you can set withResultType: true in order to get this generated ;)

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
1 reply
@miller-productions
Comment options

Answer selected by dotansimha
Comment options

You must be logged in to vote
4 replies
@ardatan
Comment options

@Drakota
Comment options

@dotansimha
Comment options

@miller-productions
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants