ts-reset icon indicating copy to clipboard operation
ts-reset copied to clipboard

Improve Promise types reset for `reason` field of PromiseRejectedResult

Open svr93 opened this issue 1 year ago • 0 comments

ES2020' Promise.allSettled uses some additional types where reason field is untyped and can be changed to unknown:

interface PromiseRejectedResult {
    status: "rejected";
    reason: any;
}

svr93 avatar Sep 05 '24 17:09 svr93