export const isPromise = (value: any): value is Promise => { return typeof value?.then === 'function'; };