Skip to content

Commit 240d402

Browse files
committed
Fix
1 parent e749eb2 commit 240d402

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

json-parse-lazy-promise.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ export class JSONParseLazyPromise<T, TT = T> implements Promise<T> {
7777
mapFn?: ((value: T, i?: 0) => Awaitable<U>) | undefined | null,
7878
thisArg?: any
7979
): JSONParseLazyPromise<U, TT> {
80+
// @ts-ignore: types of id function (x => x) not correctly inferred...
8081
return new JSONParseLazyPromise(lock, this.#task, pipe(this.#mapFn??id, mapFn??id), thisArg);
8182
}
8283

0 commit comments

Comments
 (0)