mirror of
https://github.com/captbaritone/webamp.git
synced 2026-07-22 17:47:16 +00:00
Expand typeing of fileUtils
This commit is contained in:
parent
91ddff85ef
commit
71aa36dacc
1 changed files with 12 additions and 3 deletions
|
|
@ -1,8 +1,17 @@
|
|||
import invariant from "invariant";
|
||||
|
||||
export interface MediaTags {}
|
||||
export interface MediaTags {
|
||||
tags: {
|
||||
artist: string;
|
||||
title: string;
|
||||
picture: {
|
||||
data: number[];
|
||||
type: string;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
type JsMediaTagsFile = string | ArrayBuffer;
|
||||
type JsMediaTagsFile = string | ArrayBuffer | Blob;
|
||||
interface JsMediaTagsHandlers {
|
||||
onSuccess: (tags: MediaTags) => void;
|
||||
onError: (error: Error) => void;
|
||||
|
|
@ -78,7 +87,7 @@ export async function genArrayBufferFromFileReference(
|
|||
}
|
||||
|
||||
interface PromptForFileReferenceOptions {
|
||||
accept?: string;
|
||||
accept?: string | null;
|
||||
directory?: boolean;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue