mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-08 10:56:15 -08:00
refactor: update type exports and improve type usage in tests
This commit is contained in:
1 parent
8a87de6df3
commit
d9c84d2dbc
2 files changed
+5
-1
No files matched your search
+3
-1
@@ -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()
|
||||
Reference in new issue
Block a user