Page 1 of 1

Typings errors 1.3.0-rc1

Posted: 12 Dec 2017, 13:58
by james7272
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'.

Re: Typings errors 1.3.0-rc1

Posted: 20 Dec 2017, 14:02
by merve7
For 1. please see questions in link(https://stackoverflow.com/questions/313 ... or-message)
For 2. and 3. we will fix for next release.
For 4. we didn't see 'show' in Messages component

Re: Typings errors 1.3.0-rc1

Posted: 20 Dec 2017, 14:50
by james7272
Thanks.