Skip to content

Commit 6490ce3

Browse files
committed
chore: type issue
1 parent 357d02a commit 6490ce3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/runtime/composables/useScript.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export type UseScriptContext<T extends Record<symbol | string, any>> =
2121
*/
2222
$script: Promise<T> & VueScriptInstance<T>
2323
}
24-
const ValidPreloadTriggers = ['onNuxtReady', 'client'] as const
24+
const ValidPreloadTriggers = ['onNuxtReady', 'client']
2525

2626
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>> {
2727
input = typeof input === 'string' ? { src: input } : input

0 commit comments

Comments
 (0)