mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-08 19:06:15 -08:00
9 lines
408 B
TypeScript
9 lines
408 B
TypeScript
import type Definition from 'artplayer-tool-thumbnail'
|
|
import Implementation from '../../packages/artplayer-tool-thumbnail/src'
|
|
|
|
const constructor: typeof Definition = Implementation
|
|
const RuntimeConstructor: typeof Implementation = constructor
|
|
const value: Definition = new RuntimeConstructor({ fileInput: document.createElement('input') })
|
|
value.on('custom', (count: number) => count.toFixed())
|
|
void value
|