type Nullish = null | undefined; /** * Returns a promise which resolves to the passed value; unless the passed value is * [nullish](https://developer.mozilla.org/docs/Glossary/Nullish), in which case it returns that value directly. */ export default function resolveIf(value: T extends Promise ? never : T): Promise | Extract; export {};