mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-17 18:11:20 -08:00
refactor(core): [CORE-20] type entry and converge initialization
This commit is contained in:
1 parent
ccf77c4ed2
commit
ee895a558f
100 files changed
+33854
-839
No files matched your search
@@ -1,5 +1,7 @@
|
||||
import type { NoticeSink } from '../notice'
|
||||
|
||||
export type SourceEvent = 'video:error' | 'video:loadedmetadata' | 'video:canplay' | 'video:seeked' | 'seek'
|
||||
export type SourceListener = (event?: unknown) => void
|
||||
export type SourceListener = (event?: unknown, ...extra: unknown[]) => void
|
||||
|
||||
export interface SourceEvents {
|
||||
on: (name: SourceEvent, callback: SourceListener) => unknown
|
||||
@@ -35,7 +37,7 @@ export interface SwitchHost extends UrlTarget, SourceEvents {
|
||||
playbackRate: number
|
||||
pause: () => unknown
|
||||
play: () => unknown
|
||||
notice: { set show(value: string) }
|
||||
notice: NoticeSink
|
||||
}
|
||||
|
||||
export interface SwitchMethods {
|
||||
|
||||
Reference in new issue
Block a user