multiple typescript errors in kendo-ui.d.ts

4 posts, 0 answers
  1. Maurice
    Maurice avatar
    24 posts
    Member since:
    Jan 2016

    Posted 03 Jan Link to this post

    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

     

  2. Ianko
    Admin
    Ianko avatar
    1775 posts

    Posted 05 Jan Link to this post

    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.
  3. Maurice
    Maurice avatar
    24 posts
    Member since:
    Jan 2016

    Posted 05 Jan in reply to Ianko Link to this post

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

     

  4. Ianko
    Admin
    Ianko avatar
    1775 posts

    Posted 07 Jan Link to this post

    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.
Back to Top