Files
oki-podcast-reader/src/lib/types.ts
T

25 lines
431 B
TypeScript
Raw Normal View History

2023-02-24 22:59:12 +00:00
export type AudioPlayerElement = HTMLAudioElement | undefined;
2023-02-24 23:29:41 +00:00
export type AudioMetadata = Partial<{
2023-02-24 22:59:12 +00:00
title: string;
artwork: string;
2023-02-24 23:29:41 +00:00
}>;
2023-02-24 22:59:12 +00:00
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;
}