Update artplayer.d.ts

This commit is contained in:
Harvey Zack committed 2025-09-05 22:20:44 +08:00
1 parent 013fa21e7c
commit 649963f07c
1 file changed
+6 -19
+6 -19
View File
@@ -27,19 +27,6 @@ export type {
export default class Artplayer extends Player { export default class Artplayer extends Player {
constructor(option: Option, readyCallback?: (this: Artplayer, art: Artplayer) => unknown) constructor(option: Option, readyCallback?: (this: Artplayer, art: Artplayer) => unknown)
get Config(): Config
get Events(): Events
get Utils(): Utils
get Player(): Player
get Option(): Option
get Subtitle(): Subtitle
get Icons(): Icons
get Template(): Template
get I18n(): I18n
get Setting(): Setting
get SettingOption(): SettingOption
get Component(): Component
static readonly instances: Artplayer[] static readonly instances: Artplayer[]
static readonly version: string static readonly version: string
static readonly env: string static readonly env: string
@@ -204,12 +191,12 @@ export default class Artplayer extends Player {
} & Record<string, unknown> } & Record<string, unknown>
} }
declare module "artplayer/i18n/*" { declare module 'artplayer/i18n/*' {
const lang: Partial<I18n>; const lang: Partial<I18n>
export default lang; export default lang
} }
declare module "artplayer/dist/i18n/*" { declare module 'artplayer/dist/i18n/*' {
const lang: Partial<I18n>; const lang: Partial<I18n>
export default lang; export default lang
} }