Skip to content

Commit

Permalink
fixed frontend type
Browse files Browse the repository at this point in the history
  • Loading branch information
HolbyFPV committed Oct 30, 2024
1 parent 670307a commit f590450
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions packages/client-api/src/providers/media/media-provider-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,18 @@ import type { Provider } from '../create-base-provider';

export interface MediaProviderConfig {
type: 'media';
/**
* How often this provider refreshes in milliseconds.
*/
refreshInterval?: number;
}

export interface MediaOutput {
title: string;
subTitle: string;
trackNumber: number;
artist: string;
albumTitle: string;
album: string;
album_artist: string;
track_number: number;
start_time: number;
end_time: number;
duration: number;
isPlaying: boolean;
isSpotify: boolean;
}

export type MediaProvider = Provider<MediaProviderConfig, MediaOutput>;

0 comments on commit f590450

Please sign in to comment.