Skip to content

Commit

Permalink
Import type for MusicMetadtaBrowserApi
Browse files Browse the repository at this point in the history
  • Loading branch information
captbaritone committed Oct 19, 2018
1 parent 07e8338 commit 1833bac
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions js/fileUtils.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
import invariant from "invariant";
import { IAudioMetadata } from 'music-metadata-browser'; // Import music-metadata type definitions
import { IMusicMetadataBrowserApi } from "./types";
import { IAudioMetadata } from "music-metadata-browser"; // Import music-metadata type definitions

type MediaDataType = string | ArrayBuffer | Blob;

export function genMediaTags(
file: MediaDataType,
musicMetadata: MusicMetadataBrowserApi
musicMetadata: IMusicMetadataBrowserApi
): Promise<IAudioMetadata> {
invariant(
file != null,
Expand Down

0 comments on commit 1833bac

Please sign in to comment.