Typings errors 1.3.0-rc1

UI Components for React
Post Reply
james7272
Posts: 5
Joined: 02 Nov 2017, 19:52

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'.

merve7
Posts: 167
Joined: 12 Sep 2017, 10:44

20 Dec 2017, 14:02

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

james7272
Posts: 5
Joined: 02 Nov 2017, 19:52

20 Dec 2017, 14:50

Thanks.

Post Reply
  • Information
  • Who is online

    Users browsing this forum: No registered users and 1 guest