declare type PromiseResult = T extends Promise ? U : T; export default PromiseResult;