Skip to content

Commit 9d50c28

Browse files
author
wuls
committed
fix ts error
1 parent 2fca63d commit 9d50c28

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/qwik/src/core/shared/qrl/qrl-class.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,8 @@ export const createQRL = <TYPE>(
9393
// Note that we bind the current `this`
9494
const bound = (...args: QrlArgs<TYPE>): ValueOrPromise<QrlReturn<TYPE> | undefined> => {
9595
if (!qrl.resolved) {
96-
return retryOnPromise(() => qrl.resolve()).then((fn) => {
96+
const promise = retryOnPromise(() => qrl.resolve()) as Promise<TYPE>;
97+
return promise.then((fn) => {
9798
if (!isFunction(fn)) {
9899
throw qError(QError.qrlIsNotFunction);
99100
}

0 commit comments

Comments
 (0)