Skip to content

Is v27.0.0 specHelper.runAction<T>() generic type variable possible optional? #2003

Answered by evantahler
WaBLin123 asked this question in General
Discussion options

You must be logged in to vote

I think you might be asking about overloading the type of the return type of specHelper.runAction<>(). In typescript, you can always re-assign a type.

Here's the response of a well-typed action, SessionCreate:

I can re-assign the response to, say a boolean if I wanted, but providing <any> to the runAction type:

Replies: 2 comments 4 replies

Comment options

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

@WaBLin123
Comment options

@evantahler
Comment options

@WaBLin123
Comment options

Answer selected by WaBLin123
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants