dbots
Version:
Discord bot list poster and stats retriever
7 lines (6 loc) • 434 B
TypeScript
import { eventHandler } from './Constants';
/** A generic string callback */
export type stringCallback = (...args: any[]) => string;
/** Data that can be resolved to give a string. This can either be a Function or a Promise. */
export type PromiseResolvable<T> = stringCallback | eventHandler | Promise<T>;
export declare function ensurePromise<T>(func: ((...args: any[]) => T) | Promise<T>, ...args: any[]): Promise<T> | undefined;