I was using ReturnType<typeof function-name> to extract the return type - very useful.
It now happens that the return type of the function is a Promise, and I want to further extract the type parameter, example:
const someFunction = (): Promise<MysteryType> => { ... some code ... }
type TheReturnType = ReturnType<typeof someFunction>
type ExtractTypeFromPromise = UNKNOWN<TheReturnType>
Is this currently possible?