Skip to content

Commit ed69aea

Browse files
authored
fix(vimeo): vimeo player to reference types (#62)
1 parent 99b2904 commit ed69aea

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

src/runtime/components/ScriptVimeoPlayer.vue

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
<script setup lang="ts">
2+
/// <reference types="vimeo__player" />
23
import { type HTMLAttributes, type ImgHTMLAttributes, computed, onBeforeUnmount, onMounted, ref, watch } from 'vue'
3-
import type Player from 'vimeo__player'
4-
import type { EventMap, VimeoVideoQuality } from 'vimeo__player'
54
import { defu } from 'defu'
65
import type { ElementScriptTrigger } from '../composables/useElementScriptTrigger'
76
import { useAsyncData, useElementScriptTrigger, useHead, useScriptVimeoPlayer } from '#imports'

src/runtime/registry/vimeo-player.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
import type ScriptVimeoPlayer from 'vimeo__player'
1+
/// <reference types="vimeo__player" />
22
import { watch } from 'vue'
33
import { useRegistryScript } from '../utils'
44
import type { RegistryScriptInput } from '#nuxt-scripts'
55
import { useHead } from '#imports'
66

77
export interface VimeoPlayerApi {
88
Vimeo: {
9-
Player: ScriptVimeoPlayer
9+
Player: VimeoPlayerApi
1010
}
1111
}
1212

0 commit comments

Comments
 (0)