Skip to content

Commit 2f9ccef

Browse files
committed
fix: ts ignore
1 parent ce9b42b commit 2f9ccef

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/thirdweb/src/utils/promise/resolve-promised-value.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
export async function resolvePromisedValue<V>(
1111
value: V,
1212
): Promise<V extends () => Promise<infer R> ? R : V> {
13+
// @ts-expect-error - this works fine, but TS doesn't like it since 5.8
1314
return typeof value === "function" ? await value() : value;
1415
}
1516

0 commit comments

Comments
 (0)