Here's the code snippet in question:
// tslint:disable
import * as React from 'react';
import { Input, InputProps } from '../atoms/Input/Input';
import { FormControl } from '../hoc/FormControl/FormControl';
export const FormInput = FormControl<InputProps>(Input);
Despite that, Typescript refuses to compile and raises this error:
'React' is declared but its value is never read.
Removing the line results in a different error:
Exported variable 'FormInput' references 'React.ComponentClass' from an external module "/node_modules/@types/react/index" which can't be named. [ts] Exported variable 'FormInput' uses 'React.StatelessComponent' from external module "/node_modules/@types/react/index" but cannot be named.
I have set declaration
to true in tsconfig since it's necessary for this package.