export function isPromise(value: any | Promise): value is Promise { return value && typeof (value).subscribe !== 'function' && typeof (value as any).then === 'function'; }