UNPKG

@sapphire/utilities

Version:
12 lines (10 loc) 250 B
interface Thenable { then: Function; catch: Function; } /** * Verify if an object is a promise. * @param input The promise to verify */ declare function isThenable(input: unknown): input is Thenable; export { type Thenable, isThenable };