hermes-web/lib/audio/types.ts

17 lines
302 B
TypeScript
Raw Normal View History

2023-12-30 05:56:40 -05:00
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;
};