vue3-video-play icon indicating copy to clipboard operation
vue3-video-play copied to clipboard

vue3+TS 引入报错 隐式拥有 "any" 类型

Open zboboan opened this issue 2 years ago • 8 comments

QQ截图20220505204445 QQ截图20220505204457

按提供的 demo 引入,直接报错,"vue3-video-play": "^1.3.1-beta.6" 是我写得不对?希望能告知原因

zboboan avatar May 05 '22 12:05 zboboan

.d.ts declare module 'vue3-video-play'

alang124 avatar May 12 '22 07:05 alang124

.d.ts declare module 'vue3-video-play'

能在明确点嘛?

zboboan avatar May 13 '22 02:05 zboboan

在src新建文件shims-vue.d.ts,添加如下内容:

declare module 'vue3-video-play';

zhangzhichaolove avatar Jun 02 '22 02:06 zhangzhichaolove

在src新建文件shims-vue.d.ts,添加如下内容:

declare module 'vue3-video-play';

zhangzhichaolove avatar Jun 02 '22 02:06 zhangzhichaolove

在src新建文件shims-vue.d.ts,添加如下内容:

declare module 'vue3-video-play';

文件名随便起?

wordscode avatar Mar 03 '24 11:03 wordscode

也许未及时查看消息,看到后会及时回复。 

zhangzhichaolove avatar Mar 03 '24 11:03 zhangzhichaolove

@wordscode in case of vue3+vite is should be env.d.ts in the root of project

a0s avatar Jun 26 '24 14:06 a0s

也许未及时查看消息,看到后会及时回复。 

zhangzhichaolove avatar Jun 26 '24 14:06 zhangzhichaolove