From b13060dc4a6b26360e68234f952235707249faed Mon Sep 17 00:00:00 2001 From: Borewit Date: Sun, 21 Oct 2018 14:17:38 +0200 Subject: [PATCH] Fix typo's in message & promise resolving type declaration --- js/fileUtils.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/fileUtils.ts b/js/fileUtils.ts index 3d03d966..d8caceff 100644 --- a/js/fileUtils.ts +++ b/js/fileUtils.ts @@ -54,7 +54,7 @@ export async function genArrayBufferFromFileReference( ): Promise { 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 { - return new Promise((resolve: (fileList: FileList) => void) => { + return new Promise(resolve => { // Does this represent a memory leak somehow? // Can this fail? Do we ever reject? const fileInput = document.createElement("input");