How do you type a promise within a promise? For in...
# javascript
r
How do you type a promise within a promise? For instance, kotlin suggests
Promise<Promise<String>>
but using
then
on such a promise gets the resolved value of the inner promise (String) rather than
Promise<String>
. Currently I use Promise<Any> which sucks because I need to retype to String within the next then body. Any suggestions?