TS tanspiling fails when using InputText for "onInput" and "onKeyPress".
It should be corrected to:
Code: Select all
import React = require('react');
interface InputTextProps extends React.HTMLProps<HTMLInputElement> {
[key: string]: any;
onInput?(event: React.FormEvent<HTMLInputElement>): void;
onKeyPress?(event: React.FormEvent<HTMLInputElement>): void;
keyfilter?: any;
validateOnly?: boolean;
}
export class InputText extends React.Component<InputTextProps, any> {}