Typings errors 1.3.0-rc1
Posted: 12 Dec 2017, 13:58
I get the following compilation errors with Typescript 2.6.2 and Primereact 1.3.0-rc1
Code: Select all
node_modules/primereact/components/datatable/DataTable.d.ts(75,31): error TS2300: Duplicate identifier 'number'.
node_modules/primereact/components/datatable/DataTable.d.ts(75,50): error TS2300: Duplicate identifier 'number'.
Code: Select all
node_modules/primereact/components/inputtext/InputText.d.ts(3,11): error TS2430: Interface 'InputTextProps' incorrectly extends interface'HTMLProps<HTMLInputElement>'.
Types of property 'onInput' are incompatible.
Type '((event: Event) => void) | undefined' is not assignable to type '((event: FormEvent<HTMLInputElement>) => void) | undefined'. Type '(event: Event) => void' is not assignable to type '((event: FormEvent<HTMLInputElement>) => void) | undefined'.
Type '(event: Event) => void' is not assignable to type '(event: FormEvent<HTMLInputElement>) => void'.
Types of parameters 'event' and 'event' are incompatible.
Type 'FormEvent<HTMLInputElement>' is not assignable to type 'Event'.
Property 'cancelBubble' is missing in type 'FormEvent<HTMLInputElement>'.
Code: Select all
InputMask
error TS2339: Property 'onChange' does not exist on type 'IntrinsicAttributes & IntrinsicClassAttributes<InputMask> & Readonly<{ children?: ReactNode; }> &...'.
Code: Select all
Messages
error TS2339: Property 'show' does not exist on type 'Messages'.