refactor: update type exports and improve type usage in tests

This commit is contained in:
Harvey Zack committed 2025-08-03 18:57:40 +08:00
1 parent 8a87de6df3
commit d9c84d2dbc
2 files changed
+5 -1

No files matched your search

+3 -1
View File
@@ -1,6 +1,7 @@
import type { Option } from '../packages/artplayer'
import Artplayer from '../packages/artplayer'
const option: Artplayer['Option'] = {
const option: Option = {
container: '.artplayer-app',
url: './assets/sample/video.mp4',
}
@@ -8,3 +9,4 @@ const option: Artplayer['Option'] = {
option.volume = 0.5
const art = new Artplayer(option)
art.play()