mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-28 10:31:20 -08:00
refactor(core): CORE-18 type builtins and own prompt lifetimes
This commit is contained in:
1 parent
a842058136
commit
98a1800032
55 files changed
+26511
-650
No files matched your search
@@ -0,0 +1,15 @@
|
||||
import type { LockHost } from '../../packages/artplayer/src/plugins/lock'
|
||||
import type { MiniProgressHost } from '../../packages/artplayer/src/plugins/miniProgressBar'
|
||||
import lock from '../../packages/artplayer/src/plugins/lock'
|
||||
import miniProgressBar from '../../packages/artplayer/src/plugins/miniProgressBar'
|
||||
|
||||
declare const host: LockHost & MiniProgressHost
|
||||
const plugin = lock(host)
|
||||
plugin.state = true
|
||||
const state: boolean = plugin.state
|
||||
const mini: { name: string } = miniProgressBar(host)
|
||||
// @ts-expect-error Lock state takes a boolean.
|
||||
plugin.state = 'locked'
|
||||
// @ts-expect-error The miniature progress plugin has no public state accessor.
|
||||
miniProgressBar(host).state = true
|
||||
export { mini, state }
|
||||
Reference in new issue
Block a user