export function isPromiseLike(value: any): value is PromiseLike { return value != null && typeof value.then === "function"; }