forked from external-repos/squoosh
Edge file constructor fix (#180)
* Hacking around lack of `new File` in Edge. * Less hacky solution - preserves types
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import { h, Component } from 'preact';
|
||||
|
||||
import * as style from './style.scss';
|
||||
import { bind } from '../../lib/util';
|
||||
import { bind, Fileish } from '../../lib/util';
|
||||
import { cleanSet, cleanMerge } from '../../lib/clean-modify';
|
||||
import OptiPNGEncoderOptions from '../../codecs/optipng/options';
|
||||
import MozJpegEncoderOptions from '../../codecs/mozjpeg/options';
|
||||
@@ -65,7 +65,7 @@ interface Props {
|
||||
sourceAspect: number;
|
||||
imageIndex: number;
|
||||
sourceImageFile?: File;
|
||||
imageFile?: File;
|
||||
imageFile?: Fileish;
|
||||
downloadUrl?: string;
|
||||
encoderState: EncoderState;
|
||||
preprocessorState: PreprocessorState;
|
||||
|
||||
Reference in New Issue
Block a user