fix WebFile flow type
This commit is contained in:
parent
2d47dd1780
commit
f881f3b1c6
2 changed files with 5 additions and 5 deletions
9
flow-typed/web-file.js
vendored
9
flow-typed/web-file.js
vendored
|
@ -1,7 +1,6 @@
|
|||
declare type WebFile = {
|
||||
name: string,
|
||||
// @flow
|
||||
|
||||
declare type WebFile = File & {
|
||||
path?: string,
|
||||
title?: string,
|
||||
path: string,
|
||||
size: string,
|
||||
type: string,
|
||||
}
|
||||
|
|
|
@ -241,6 +241,7 @@ function PublishFile(props: Props) {
|
|||
}
|
||||
}
|
||||
|
||||
// Flow error [+]
|
||||
function handleFileChange(file: WebFile) {
|
||||
const { showToast } = props;
|
||||
window.URL = window.URL || window.webkitURL;
|
||||
|
|
Loading…
Reference in a new issue