Skip to content

Commit

Permalink
chore: type issue
Browse files Browse the repository at this point in the history
  • Loading branch information
harlan-zw committed Oct 10, 2024
1 parent 357d02a commit 6490ce3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/runtime/composables/useScript.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export type UseScriptContext<T extends Record<symbol | string, any>> =
*/
$script: Promise<T> & VueScriptInstance<T>
}
const ValidPreloadTriggers = ['onNuxtReady', 'client'] as const
const ValidPreloadTriggers = ['onNuxtReady', 'client']

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

0 comments on commit 6490ce3

Please sign in to comment.