Something went wrong. Try again.
A music player that connects to your cloud/distributed storage. forked from tokono.ma/diffuse
Something went wrong. Try again.
1234567891011121314151617181920import type { DiffuseElement } from "~/common/element.js";import type { SignalReader } from "~/common/signal.d.ts";import type { Track } from "~/definitions/types.d.ts";
export type ScrobbleElement = DiffuseElement & ScrobbleActions & { isAuthenticated: SignalReader<boolean>; isAuthenticating: SignalReader<boolean>; handle: SignalReader<string | null>;};
export type ScrobbleActions = { nowPlaying(track: Track): Promise<unknown>;
/** * @param {Track} track * @param {number} startedAt Unix timestamp in milliseconds */ scrobble(track: Track, startedAt: number): Promise<unknown>;};