move types to types file

This commit is contained in:
Ollie Taylor
2023-02-24 22:59:12 +00:00
parent b6874a6e0b
commit c025b3e1a8
9 changed files with 36 additions and 35 deletions
+24
View File
@@ -0,0 +1,24 @@
export type AudioPlayerElement = HTMLAudioElement | undefined;
export interface AudioMetadata {
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;
}