We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ce9b42b commit 2f9ccefCopy full SHA for 2f9ccef
packages/thirdweb/src/utils/promise/resolve-promised-value.ts
@@ -10,6 +10,7 @@
10
export async function resolvePromisedValue<V>(
11
value: V,
12
): Promise<V extends () => Promise<infer R> ? R : V> {
13
+ // @ts-expect-error - this works fine, but TS doesn't like it since 5.8
14
return typeof value === "function" ? await value() : value;
15
}
16
0 commit comments