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 = {
|
// @flow
|
||||||
name: string,
|
|
||||||
|
declare type WebFile = File & {
|
||||||
|
path?: string,
|
||||||
title?: string,
|
title?: string,
|
||||||
path: string,
|
|
||||||
size: string,
|
|
||||||
type: string,
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -241,6 +241,7 @@ function PublishFile(props: Props) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Flow error [+]
|
||||||
function handleFileChange(file: WebFile) {
|
function handleFileChange(file: WebFile) {
|
||||||
const { showToast } = props;
|
const { showToast } = props;
|
||||||
window.URL = window.URL || window.webkitURL;
|
window.URL = window.URL || window.webkitURL;
|
||||||
|
|
Loading…
Reference in a new issue