mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-29 11:11:20 -08:00
refactor: update TypeScript definitions for Artplayer plugin; change export syntax and improve interface structure
This commit is contained in:
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}}
|
||||||
Reference in new issue
Block a user