Skip to content

Commit

Permalink
Add loadMusicMetadata() typing for CommonJS (hack)
Browse files Browse the repository at this point in the history
  • Loading branch information
Borewit committed Aug 30, 2024
1 parent c9802c4 commit 6cfd1c7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -783,7 +783,7 @@ const { loadMusicMetadata } = require('music-metadata');
```

> [!NOTE]
> The `loadMusicMetadata` function is experimental and is not currently covered by any TypeScript typings.
> The `loadMusicMetadata` function is experimental.
## Frequently Asked Questions

Expand Down
2 changes: 2 additions & 0 deletions lib/core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,3 +122,5 @@ export async function scanAppendingHeaders(randomReader: IRandomReader, options:

options.apeHeader = await APEv2Parser.findApeFooterOffset(randomReader, apeOffset);
}

export declare function loadMusicMetadata(): Promise<typeof import('music-metadata')>;

0 comments on commit 6cfd1c7

Please sign in to comment.