mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-09 03:46:16 -08:00
22 lines
423 B
TypeScript
22 lines
423 B
TypeScript
import type Artplayer from 'artplayer';
|
|
|
|
export = artplayerPluginChapter;
|
|
export as namespace artplayerPluginChapter;
|
|
|
|
type Chapters = {
|
|
start: number;
|
|
end: number;
|
|
title: string;
|
|
}[];
|
|
|
|
type Option = {
|
|
chapters?: Chapters;
|
|
};
|
|
|
|
type Result = {
|
|
name: 'artplayerPluginChapter';
|
|
update: (option: Option) => void;
|
|
};
|
|
|
|
declare const artplayerPluginChapter: (option: Option) => (art: Artplayer) => Result;
|