fix WebFile flow type

This commit is contained in:
btzr-io 2020-08-12 13:21:05 -05:00 committed by Sean Yesmunt
parent 2d47dd1780
commit f881f3b1c6
2 changed files with 5 additions and 5 deletions

View file

@ -1,7 +1,6 @@
declare type WebFile = {
name: string,
// @flow
declare type WebFile = File & {
path?: string,
title?: string,
path: string,
size: string,
type: string,
}

View file

@ -241,6 +241,7 @@ function PublishFile(props: Props) {
}
}
// Flow error [+]
function handleFileChange(file: WebFile) {
const { showToast } = props;
window.URL = window.URL || window.webkitURL;