types: fix errors

This commit is contained in:
chenjiahan
2020-11-21 20:56:44 +08:00
parent c57f4a80b4
commit daa55f805b
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -9,7 +9,7 @@ export function toArray<T>(item: T | T[]): T[] {
}
export function readFileContent(file: File, resultType: ResultType) {
return new Promise((resolve) => {
return new Promise<string | ArrayBuffer | null | undefined>((resolve) => {
if (resultType === 'file') {
resolve();
return;