Skip to content

v17.1.4 throws errors with TypeScript 2.4.1 #502

@eliashdezr

Description

@eliashdezr

To help us process the issue more efficiently, please provide the following information:

  • Specify the version of the devextreme-angular and devextreme packages you are using.
    devexteme version: 17.1.4
    devextreme-angular version: 17.1.4

  • Specify the type of the issue (check one with "x"):
    [x ] bug Report

Just adding the dependency to an angular project created with the Angular CLI tool and using TypeScript 2.4.1

ERROR in C:/X/node_modules/devextreme-angular/core/nested-option.d.ts (20,31): Class 'BaseNestedOption' incorrectly implements interface 'ICollectionNestedOptionContainer'.
  Types of property 'setChildren' are incompatible.
    Type '<T extends ICollectionNestedOption>(propertyName: string, items: QueryList<T>) => any' is not assignable to type '<T>(propertyName: string, items: QueryList<T>) => any'.
      Types of parameters 'items' and 'items' are incompatible.
        Type 'QueryList<T>' is not assignable to type 'QueryList<ICollectionNestedOption>'.
          Type 'T' is not assignable to type 'ICollectionNestedOption'.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions