refactor: update TypeScript definitions for Artplayer plugin; change export syntax and improve interface structure

This commit is contained in:
Harvey Zack committed 2025-08-17 18:28:43 +08:00
1 parent 50320bad5d
commit abbecff472
1 file changed
+4 -5
@@ -1,14 +1,13 @@
import type Artplayer from 'artplayer'; import type Artplayer from 'artplayer';
export = {{export}}; interface Option {
export as namespace {{export}};
type Option = {
// //
}; };
type Result = { interface Result {
name: '{{export}}'; name: '{{export}}';
}; };
declare const {{export}}: (option: Option) => (art: Artplayer) => Result; declare const {{export}}: (option: Option) => (art: Artplayer) => Result;
export default {{export}}