NPM and typescript definitions

4 posts, 0 answers
  1. Enrico
    Enrico avatar
    54 posts
    Member since:
    Jun 2013

    Posted 21 Aug Link to this post

    Hi,

    I really would like to get d.ts from NPM as devDependencies. is there a way to do that?

  2. Petyo
    Admin
    Petyo avatar
    2439 posts

    Posted 24 Aug Link to this post

    Hello,

    We don't publish the d.ts files as a separate NPM package. A relatively recent version is available in the definitely typed registry, though. 

    Regards,
    Petyo
    Telerik by Progress
     
    Get started with Kendo UI in days. Online training courses help you quickly implement components into your apps.
     
  3. Kendo UI is VS 2017 Ready
  4. Enrico
    Enrico avatar
    54 posts
    Member since:
    Jun 2013

    Posted 24 Aug in reply to Petyo Link to this post

    Hi,

    as explained here: http://docs.telerik.com/kendo-ui/intro/installation/npm you can download kendo pro using NPM. It will be really nice if I could also receive the definition file /files with it like other packages do. Otherwise I have to download it from the telerik site and add it in the project repo manually.

  5. Petyo
    Admin
    Petyo avatar
    2439 posts

    Posted 29 Aug Link to this post

    Hi,

    this makes sense, and would be the correct thing - however, the d.ts file we distribute is an ambient (or global) one and does not work as expected with our NPM distribution, although it does work as expected after a certain configuration. You can check an example setup here. Notice the typings entry, too.

    Regards,
    Petyo
    Telerik by Progress
     
    Get started with Kendo UI in days. Online training courses help you quickly implement components into your apps.
     
Back to Top
Kendo UI is VS 2017 Ready