hermes-web/lib/audio/types.ts
2023-12-30 10:56:40 +00:00

17 lines
302 B
TypeScript

export type AudioState = {
duration: number;
playing: boolean;
volume: number;
};
export type Track = {
url: string;
title: string;
};
export type State = AudioState & {
tracks: Track[];
currentTrack: Track | null;
currentTrackIndex: number | null;
};