interface broken in primereact\components\inputtext\InputText.d.ts
Posted: 23 Aug 2018, 13:21
Hi,
TS tanspiling fails when using InputText for "onInput" and "onKeyPress".
It should be corrected to:
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> {}