Resolves functions and promises to a value with TypeScript type safety
npm install resolvable-valueUse it when you want to take an argument that may be a Promise or may be a function or async function that returns a value of a given type.
``shYarn
$ yarn add resolvable-value
Usage
`typescript
import { Resolvable, resolve } from "resolvable-value"async function logResolvableValue(resolvableString: Resolvable) {
const value = await resolve(resolvableString)
console.log(value)
}
``