Skip to content

Commit 5cde147

Browse files
authored
Merge pull request #184 from pbricout/fix-some-types
Fix TXXX and PRIV frame types from tuple to array
2 parents 3d7b702 + 01ae651 commit 5cde147

2 files changed

Lines changed: 24 additions & 12 deletions

File tree

CHANGELOG.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,17 @@
11
# Changelog
22

3+
## [0.2.9]
4+
5+
### Fixed
6+
7+
- Fix TXXX and PRIV tags from tuple to array in type file (by @pbricout)
8+
9+
## [0.2.8]
10+
11+
### Fixed
12+
13+
- Make GEOB tag optional in type file (by @Nytrm)
14+
315
## [0.2.7] - 2025-02-04
416

517
### Added

index.d.ts

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -343,10 +343,10 @@ declare module "node-id3" {
343343
timeStamp: number
344344
}>
345345
}>,
346-
userDefinedText?: [{
346+
userDefinedText?: {
347347
description: string,
348348
value: string
349-
}]
349+
}[]
350350
/**
351351
* `APIC` (attached picture) tag frames
352352
*
@@ -379,10 +379,10 @@ declare module "node-id3" {
379379
rating: number,
380380
counter: number,
381381
},
382-
private?: [{
382+
private?: {
383383
ownerIdentifier: string,
384384
data: string
385-
}],
385+
}[],
386386
/**
387387
* This frame's purpose is to be able to identify the audio file in a
388388
* database that may contain more information relevant to the content.
@@ -530,14 +530,14 @@ declare module "node-id3" {
530530
}
531531
}>,
532532
/**
533-
* In this frame any type of file can be encapsulated. After the
534-
* header, 'Frame size' and 'Encoding' follows 'MIME type' represented
535-
* as as a terminated string encoded with ISO-8859-1. The filename is
536-
* case sensitive and is encoded as 'Encoding'. Then follows a content
537-
* description as terminated string, encoded as 'Encoding'. The last
538-
* thing in the frame is the actual object. The first two strings may
539-
* be omitted, leaving only their terminations. There may be more than
540-
* one "GEOB" frame in each tag, but only one with the same content
533+
* In this frame any type of file can be encapsulated. After the
534+
* header, 'Frame size' and 'Encoding' follows 'MIME type' represented
535+
* as as a terminated string encoded with ISO-8859-1. The filename is
536+
* case sensitive and is encoded as 'Encoding'. Then follows a content
537+
* description as terminated string, encoded as 'Encoding'. The last
538+
* thing in the frame is the actual object. The first two strings may
539+
* be omitted, leaving only their terminations. There may be more than
540+
* one "GEOB" frame in each tag, but only one with the same content
541541
* descriptor.
542542
*/
543543
generalObject?: Array<{

0 commit comments

Comments
 (0)