Files
oki-podcast-reader/src/lib/types.ts
T
2023-02-24 23:29:41 +00:00

25 lines
431 B
TypeScript

export type AudioPlayerElement = HTMLAudioElement | undefined;
export type AudioMetadata = Partial<{
title: string;
artwork: string;
}>;
export interface AudioLoadData extends AudioMetadata {
src: string;
}
export interface AudioLoadOptions {
autoplay: boolean;
start_at?: number;
}
export interface EpisodeProgress {
current_time: number;
}
export interface UserPreferences {
playback_rate: number;
volume: number;
}