From 6490ce30f58ba32f66d06ba8b6702e6330b38e87 Mon Sep 17 00:00:00 2001 From: harlan Date: Thu, 10 Oct 2024 15:17:04 +1100 Subject: [PATCH] chore: type issue --- src/runtime/composables/useScript.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/runtime/composables/useScript.ts b/src/runtime/composables/useScript.ts index 5a4362d9..aaa96d51 100644 --- a/src/runtime/composables/useScript.ts +++ b/src/runtime/composables/useScript.ts @@ -21,7 +21,7 @@ export type UseScriptContext> = */ $script: Promise & VueScriptInstance } -const ValidPreloadTriggers = ['onNuxtReady', 'client'] as const +const ValidPreloadTriggers = ['onNuxtReady', 'client'] export function useScript = Record, U = Record>(input: UseScriptInput, options?: NuxtUseScriptOptions): UseScriptContext, T>> { input = typeof input === 'string' ? { src: input } : input