vue3-video-play
vue3-video-play copied to clipboard
vue3+TS 引入报错 隐式拥有 "any" 类型
按提供的 demo 引入,直接报错,"vue3-video-play": "^1.3.1-beta.6" 是我写得不对?希望能告知原因
.d.ts declare module 'vue3-video-play'
.d.ts declare module 'vue3-video-play'
能在明确点嘛?
在src新建文件shims-vue.d.ts
,添加如下内容:
declare module 'vue3-video-play';
在src新建文件shims-vue.d.ts
,添加如下内容:
declare module 'vue3-video-play';
在src新建文件
shims-vue.d.ts
,添加如下内容:declare module 'vue3-video-play';
文件名随便起?
也许未及时查看消息,看到后会及时回复。
@wordscode in case of vue3+vite is should be env.d.ts
in the root of project
也许未及时查看消息,看到后会及时回复。