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 357d02a commit 6490ce3Copy full SHA for 6490ce3
src/runtime/composables/useScript.ts
@@ -21,7 +21,7 @@ export type UseScriptContext<T extends Record<symbol | string, any>> =
21
*/
22
$script: Promise<T> & VueScriptInstance<T>
23
}
24
-const ValidPreloadTriggers = ['onNuxtReady', 'client'] as const
+const ValidPreloadTriggers = ['onNuxtReady', 'client']
25
26
export function useScript<T extends Record<symbol | string, any> = Record<symbol | string, any>, U = Record<symbol | string, any>>(input: UseScriptInput, options?: NuxtUseScriptOptions<T, U>): UseScriptContext<UseFunctionType<NuxtUseScriptOptions<T, U>, T>> {
27
input = typeof input === 'string' ? { src: input } : input
0 commit comments