Skip to content

Commit 20ab4ae

Browse files
committed
chore: broken type
1 parent 4268ef6 commit 20ab4ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/runtime/composables/useScriptTriggerConsent.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export function useScriptTriggerConsent(options?: ConsentScriptTriggerOptions):
3636
return
3737
}
3838
// else it's returning a promise to await
39-
const val = options.postConsentTrigger()
39+
const val = (options.postConsentTrigger as (() => Promise<any>))()
4040
if (val instanceof Promise) {
4141
return val.then(() => runner(resolve))
4242
}

0 commit comments

Comments
 (0)