pull/11519/head
Rich Harris 2 years ago
parent 992bb83b6f
commit dc66e62d52

@ -47,7 +47,6 @@ export function run_all(arr) {
/**
* TODO replace with Promise.withResolvers once supported widely enough
* @template T
* @returns {PromiseWithResolvers<T>}
*/
export function deferred() {
/** @type {(value: T) => void} */

@ -177,7 +177,7 @@ export class Spring {
/** @type {import('../internal/client/types').Task | null} */
#task = null;
/** @type {PromiseWithResolvers<any> | null} */
/** @type {ReturnType<typeof deferred> | null} */
#deferred = null;
/**

Loading…
Cancel
Save