mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-26 17:01:20 -08:00
refactor: update export syntax to default for multiple plugins and adjust package.json formatting
This commit is contained in:
1 parent
f3c0a9a77d
commit
9d966bf696
22 files changed
+102
-116
No files matched your search
@@ -1,6 +1,3 @@
|
||||
export = ArtplayerPluginIframe
|
||||
export as namespace ArtplayerPluginIframe;
|
||||
|
||||
interface Message {
|
||||
type: string
|
||||
data: any
|
||||
@@ -15,7 +12,7 @@ declare class ArtplayerPluginIframe {
|
||||
static onMessage(event: MessageEvent & { data: Message }): void
|
||||
static inject(): void
|
||||
|
||||
readonly promises: Record<number, { resove: Function, reject: Function }>
|
||||
readonly promises: Record<number, { resove: (...args: any[]) => any, reject: (...args: any[]) => any }>
|
||||
readonly injected: boolean
|
||||
readonly destroyed: boolean
|
||||
readonly $iframe: HTMLIFrameElement
|
||||
@@ -28,3 +25,5 @@ declare class ArtplayerPluginIframe {
|
||||
message(callback: (...args: any[]) => any): void
|
||||
destroy(): void
|
||||
}
|
||||
|
||||
export default ArtplayerPluginIframe
|
||||
Reference in new issue
Block a user