Skip to content

Commit

Permalink
fix type
Browse files Browse the repository at this point in the history
  • Loading branch information
maximilianMairinger committed Apr 12, 2024
1 parent 8983d6d commit cb43e33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/src/moreProms.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export function latestLatent<Args extends unknown[], Ret>(cb: (...args: Args) =>
function request(...args: Args) {
prom.cancel()
const r = cb(...args)
prom = r instanceof CancelAblePromise ? r as CancelAblePromise<Ret> : new CancelAblePromise<Ret>((res, rej) => { r.then(res, rej) }, () => {})
prom = r instanceof CancelAblePromise ? r as CancelAblePromise<Ret> : new CancelAblePromise<Ret>((res, rej) => { (r as Promise<any>).then(res, rej) }, () => {})
lastPromHasUpdated(futures, prom)
// console.log("callingVesselProm", callingPromUID)
return callingPromUID === undefined ? prom : uidToProm.get(callingPromUID)
Expand Down

0 comments on commit cb43e33

Please sign in to comment.