fix: type error

pull/8641/head
Simon Holthausen 1 year ago
parent a40af4dd11
commit 5a4b48bb44

@ -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 (

Loading…
Cancel
Save