video.js
Version:
An HTML5 video player that supports HLS and DASH with a common API and skin.
21 lines • 645 B
TypeScript
/**
* Returns whether an object is `Promise`-like (i.e. has a `then` method).
*
* @param {Object} value
* An object that may or may not be `Promise`-like.
*
* @return {boolean}
* Whether or not the object is `Promise`-like.
*/
export function isPromise(value: any): boolean;
/**
* Silence a Promise-like object.
*
* This is useful for avoiding non-harmful, but potentially confusing "uncaught
* play promise" rejection error messages.
*
* @param {Object} value
* An object that may or may not be `Promise`-like.
*/
export function silencePromise(value: any): void;
//# sourceMappingURL=promise.d.ts.map