type TealRecord = { $type: "fm.teal.alpha.feed.play"; trackName: string; trackMbId?: string; recordingMbId?: string; duration?: number; releaseName?: string; releaseMbId?: string; isrc?: string; originUrl?: string; musicServiceBaseDomain?: string; submissionClientAgent?: string; playedTime?: Date; artists: Artist[]; }; type Artist = { artistMbId?: string; artistName?: string; }; export function isTealRecord(record: unknown): record is TealRecord { return (record as TealRecord).$type === "fm.teal.alpha.feed.play"; }