|
|
@ -19,9 +19,8 @@ export function assign(tar, src) {
|
|
|
|
// Adapted from https://github.com/then/is-promise/blob/master/index.js
|
|
|
|
// Adapted from https://github.com/then/is-promise/blob/master/index.js
|
|
|
|
// Distributed under MIT License https://github.com/then/is-promise/blob/master/LICENSE
|
|
|
|
// Distributed under MIT License https://github.com/then/is-promise/blob/master/LICENSE
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* @template T
|
|
|
|
* @param {any} value
|
|
|
|
* @param {T} value
|
|
|
|
* @returns {value is PromiseLike<any>}
|
|
|
|
* @returns {value is PromiseLike<T>}
|
|
|
|
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
export function is_promise(value) {
|
|
|
|
export function is_promise(value) {
|
|
|
|
return (
|
|
|
|
return (
|
|
|
|