Fix typings for TypeScript v3.2

This commit is contained in:
Surma
2018-12-17 12:19:27 +00:00
parent be0877ecb0
commit 9746a9f5ed
3 changed files with 9 additions and 7 deletions

View File

@@ -40,7 +40,9 @@ import Checkbox from '../checkbox';
import Expander from '../expander';
import Select from '../select';
const encoderOptionsComponentMap = {
const encoderOptionsComponentMap: {
[x: string]: (new (...args: any[]) => Component<any, any>) | undefined;
} = {
[identity.type]: undefined,
[optiPNG.type]: OptiPNGEncoderOptions,
[mozJPEG.type]: MozJpegEncoderOptions,