/** * @module helpers/checker */ export function isPromise(val: any | Promise): val is Promise { return val && typeof (val as Promise).then === 'function'; }