triniwiz / nativescript-accordion

Apache License 2.0
38 stars 14 forks source link

Type 'Accordion' is not assignable to type 'AccordionItemsView #50

Closed charlie884 closed 6 years ago

charlie884 commented 6 years ago

Hi, i found a new issues when i try to build the project.

[18-10-23 11:03:23.238] (CLI) node_modules/nativescript-accordion/angular/index.d.ts(103,14): error TS2416: Property 'nativeElement' in type 'AccordionComponent' is not assignable to the same property in base type 'AccordionItemsComponent'. [18-10-23 11:03:23.238] (CLI) Type 'Accordion' is not assignable to type 'AccordionItemsView'. [18-10-23 11:03:23.238] (CLI) Types of property 'itemContentTemplateSelector' are incompatible. [18-10-23 11:03:23.238] (CLI) Type 'string | ((item: any, parentIndex: number, index: number, items: any) => string)' is not assignable to type 'string | ((item: any, index: number, items: any) => string)'. [18-10-23 11:03:23.238] (CLI) Type '(item: any, parentIndex: number, index: number, items: any) => string' is not assignable to type 'string | ((item: any, index: number, items: any) => string)'. [18-10-23 11:03:23.238] (CLI) Type '(item: any, parentIndex: number, index: number, items: any) => string' is not assignable to type '(item: any, index: number, items: any) => string'. [18-10-23 11:03:23.238] (CLI) node_modules/nativescript-accordion/angular/index.d.ts(104,15): error TS2416: Property 'accordionItemsView' in type 'AccordionComponent' is not assignable to the same property in base type 'AccordionItemsComponent'. [18-10-23 11:03:23.238] (CLI) Type 'Accordion' is not assignable to type 'AccordionItemsView'.

proweber1 commented 6 years ago

I have same problem

MilosStanic commented 6 years ago

Same or similar problem here node_modules/nativescript-accordion/angular/index.d.ts(103,14): error TS2416: Property 'nativeElement' in type 'AccordionComponent' is not assignable to the same property in base type 'AccordionItemsComponent'. Type 'Accordion' is not assignable to type 'AccordionItemsView'. Types of property 'itemContentTemplateSelector' are incompatible. Type 'string | ((item: any, parentIndex: number, index: number, items: any) => string)' is not assignable to type 'string | ((item: any, index: number, items: any) => string)'. Type '(item: any, parentIndex: number, index: number, items: any) => string' is not assignable to type 'string | ((item: any, index: number, items: any) => string)'. Type '(item: any, parentIndex: number, index: number, items: any) => string' is not assignable to type '(item: any, index: number, items: any) => string'. node_modules/nativescript-accordion/angular/index.d.ts(104,15): error TS2416: Property 'accordionItemsView' in type 'AccordionComponent' is not assignable to the same property in base ty pe 'AccordionItemsComponent'. Type 'Accordion' is not assignable to type 'AccordionItemsView'.

triniwiz commented 6 years ago

Upgrade to 6.0.0-beta.1 😄