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

+2
View File
@@ -10,6 +10,8 @@ import type { Subtitle } from './subtitle'
import type { Template } from './template'
import type { Utils } from './utils'
export type { Config, Events, I18n, Icons, Option, Player, Setting, SettingOption, Subtitle, Template, Utils }
export default class Artplayer extends Player {
constructor(option: Option, readyCallback?: (this: Artplayer, art: Artplayer) => unknown)
+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()