This is a migrated thread and some comments may be shown as answers.

multiple typescript errors in kendo-ui.d.ts

3 Answers 621 Views
Installer and VS Extensions
This is a migrated thread and some comments may be shown as answers.
Maurice
Top achievements
Rank 1
Veteran
Maurice asked on 03 Jan 2018, 02:23 PM

After updating my project I get several errors about kendo-ui.d.ts

Typescript version 2.5

 

e.g.

SeverityCodeDescriptionProjectFileLineSuppression State
ErrorTS2430(TS) Interface 'DataSourceTransportWithFunctionOperations' incorrectly extends interface 'DataSourceTransport'.
  Types of property 'create' are incompatible.
    Type '(options: DataSourceTransportOptions) => void' has no properties in common with type 'DataSourceTransportCreate'.ExternC:\Users\Maurice.Lucas\Source\Repos\Juice\JuiceSolution\Extern\Scripts\typings\kendo-ui\kendo-ui.d.ts1196Active

SeverityCodeDescriptionProjectFileLineSuppression State
ErrorTS2559(TS) Type 'AgendaView' has no properties in common with type 'SchedulerView'.ExternC:\Users\Maurice.Lucas\Source\Repos\Juice\JuiceSolution\Extern\Scripts\typings\kendo-ui\kendo-ui.d.ts1542Active

SeverityCodeDescriptionProjectFileLineSuppression State
ErrorTS2415(TS) Class 'Alert' incorrectly extends base class 'Dialog'.
  Types of property 'options' are incompatible.
    Type 'AlertOptions' is not assignable to type 'DialogOptions'.
      Types of property 'messages' are incompatible.
        Type 'AlertMessages' has no properties in common with type 'DialogMessages'.ExternC:\Users\Maurice.Lucas\Source\Repos\Juice\JuiceSolution\Extern\Scripts\typings\kendo-ui\kendo-ui.d.ts1551Active

 

3 Answers, 1 is accepted

Sort by
0
Ianko
Telerik team
answered on 05 Jan 2018, 10:49 AM

Hello Maurice,

Make sure that you have the latest version of the Kendo UI TypeScript definitions. These errors have already been addressed and should be fixed now. 

Regards,
Ianko
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
Maurice
Top achievements
Rank 1
Veteran
answered on 05 Jan 2018, 11:17 AM

I have install version 0.2.5 of kendo-ui.TypeScript.DefinitelyTyped and version 3.1.2 of jquery.TypeScript.DefinitelyTyped (with nuget)

 

0
Ianko
Telerik team
answered on 08 Jan 2018, 05:59 AM

Hello Maurice,

This NuGet package is handled by the DefinetelyTyped project and the 0.2.5 version seems to be outdated: https://www.nuget.org/packages/kendo-ui.TypeScript.DefinitelyTyped/. The versions is from 12/8/2016. 

If you want to use the DefinetelyTyped typings, you can use npm to install them: https://github.com/DefinitelyTyped/DefinitelyTyped#npm. Example: npm install @types/kendo-ui

Whereas, if you want to have the TypeScript definitions we originally provide, you can get them by downloading the telerik.ui.for.aspnetmvc.2017.3.1026.commercial.zip package from your account and you will find them in the typescript folder. 

Regards,
Ianko
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
Installer and VS Extensions
Asked by
Maurice
Top achievements
Rank 1
Veteran
Answers by
Ianko
Telerik team
Maurice
Top achievements
Rank 1
Veteran
Share this question
or