File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -184,6 +184,7 @@ const height = computed(() => {
184
184
})
185
185
186
186
onMounted (() => {
187
+ // @ts-ignore failing for end users
187
188
onLoaded (async ({ Vimeo }) => {
188
189
const vimeoOptions = props .vimeoOptions || {}
189
190
if (! vimeoOptions .id && props .id ) {
Original file line number Diff line number Diff line change 1
1
import { watch } from 'vue'
2
2
import type Vimeo from '@vimeo/player'
3
+ import type { UseScriptContext } from '@unhead/vue'
3
4
import { useRegistryScript } from '../utils'
4
5
import type { RegistryScriptInput } from '#nuxt-scripts'
5
6
import { useHead } from '#imports'
@@ -18,7 +19,7 @@ declare global {
18
19
interface Window extends VimeoPlayerApi { }
19
20
}
20
21
21
- export function useScriptVimeoPlayer < T extends VimeoPlayerApi > ( _options ?: VimeoPlayerInput ) {
22
+ export function useScriptVimeoPlayer < T extends VimeoPlayerApi > ( _options ?: VimeoPlayerInput ) : UseScriptContext < T > {
22
23
const instance = useRegistryScript < T > ( 'vimeoPlayer' , ( ) => ( {
23
24
scriptInput : {
24
25
src : 'https://player.vimeo.com/api/player.js' ,
You can’t perform that action at this time.
0 commit comments