mirror of
https://github.com/captbaritone/webamp
synced 2024-11-23 08:39:15 +00:00
Fix typo's in message & promise resolving type declaration
This commit is contained in:
parent
7074630713
commit
b13060dc4a
@ -54,7 +54,7 @@ export async function genArrayBufferFromFileReference(
|
||||
): Promise<any> {
|
||||
invariant(
|
||||
fileReference != null,
|
||||
"Attempted to get an ArrayBuffer without assing a fileReference"
|
||||
"Attempt to get an ArrayBuffer without assigning a fileReference"
|
||||
);
|
||||
return new Promise((resolve, reject) => {
|
||||
const reader = new FileReader();
|
||||
@ -77,7 +77,7 @@ export async function promptForFileReferences(
|
||||
directory: false
|
||||
}
|
||||
): Promise<FileList> {
|
||||
return new Promise((resolve: (fileList: FileList) => void) => {
|
||||
return new Promise<FileList>(resolve => {
|
||||
// Does this represent a memory leak somehow?
|
||||
// Can this fail? Do we ever reject?
|
||||
const fileInput = document.createElement("input");
|
||||
|
Loading…
Reference in New Issue
Block a user