Closed RedHeadEmile closed 9 months ago
I am using the APIC frames in my application and something seemed weird to me.
In tags.d.ts:
tags.d.ts
export interface MP3TagTagsV2Defined { v2: { APIC?: frames.MP3TagAPICFrame; COMM?: Array<frames.MP3TagLangDescFrame>; ETCO?: frames.MP3TagETCOFrame; GEOB?: Array<frames.MP3TagGEOBFrame>; IPLS?: Array<string>; MCDI?: frames.MP3TagMCDIFRame; OWNE?: frames.MP3TagOWNEFrame; PCNT?: frames.MP3TagTextFrame; POPM?: Array<frames.MP3TagPOPMFrame>; PRIV?: Array<frames.MP3TagPRIVFrame>; ...
Shouldn't the APIC variable be an array ?
APIC
Because to make it works, I have to do:
const apicFrames = mp3tag.tags.v2?.APIC as unknown as Array<frames.MP3TagAPICFrame> | undefined;
Thanks in advance
Thank you for reporting! Yes, APIC frame should be an array
Should be fixed in v3.7.2
I am using the APIC frames in my application and something seemed weird to me.
In
tags.d.ts
:Shouldn't the
APIC
variable be an array ?Because to make it works, I have to do:
Thanks in advance