mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-25 08:01:20 -08:00
refactor(vtt-thumbnail): [PKG-VTT-THUMB-04] preserve legacy types and expose async runtime entry
This commit is contained in:
1 parent
7f2906ae52
commit
db358a3ae4
33 files changed
+3864
-98
No files matched your search
+26
-7
@@ -1,10 +1,29 @@
|
||||
declare const artplayerPluginVttThumbnail: (option: { vtt?: string, style?: Partial<CSSStyleDeclaration> }) => (
|
||||
art: Artplayer,
|
||||
) => {
|
||||
name: 'artplayerPluginVttThumbnail'
|
||||
// Generated from the package public declaration by yarn build:ts. Do not edit.
|
||||
/* eslint-disable ts/no-redeclare -- Callable and public type namespace intentionally merge. */
|
||||
declare namespace artplayerPluginVttThumbnailDefinitions {
|
||||
export interface Option {
|
||||
vtt?: string
|
||||
style?: Partial<CSSStyleDeclaration>
|
||||
}
|
||||
export interface Result {
|
||||
name: 'artplayerPluginVttThumbnail'
|
||||
}
|
||||
/** Historical factory type. Actual registration is asynchronous. */
|
||||
export type Factory = (option: Option) => (art: Artplayer) => Result
|
||||
/** Accurate runtime view available without casts through the /runtime entry. */
|
||||
export interface RuntimeFactory {
|
||||
(option: Option): (art: Artplayer) => Promise<Result>
|
||||
default: RuntimeFactory
|
||||
}
|
||||
/** Preserve historical extraction and replacement-function compatibility. */
|
||||
export function artplayerPluginVttThumbnail(option: Option): (art: Artplayer) => Result
|
||||
}
|
||||
declare const artplayerPluginVttThumbnail: typeof artplayerPluginVttThumbnailDefinitions.artplayerPluginVttThumbnail
|
||||
declare namespace artplayerPluginVttThumbnail {
|
||||
export type Option = artplayerPluginVttThumbnailDefinitions.Option
|
||||
export type Result = artplayerPluginVttThumbnailDefinitions.Result
|
||||
export type Factory = artplayerPluginVttThumbnailDefinitions.Factory
|
||||
export type RuntimeFactory = artplayerPluginVttThumbnailDefinitions.RuntimeFactory
|
||||
}
|
||||
|
||||
export default artplayerPluginVttThumbnail
|
||||
|
||||
export = artplayerPluginVttThumbnail
|
||||
export as namespace artplayerPluginVttThumbnail;
|
||||
Reference in new issue
Block a user