4 Replies
What type exactly are you looking to get?
The return of both
statusCheckPromise
as well as commentsPromise
?In situations like that isnt just easier to infer types from the code? Or use
typeof
@Enzonaki how do you infer the types from the code?
or use type of?
type Comments = typeof comments
but that only works if you define the type inside the function. If you want it outside its best to abstract the query to its own function.