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

NPM and typescript definitions

3 Answers 111 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Enrico
Top achievements
Rank 1
Enrico asked on 21 Aug 2016, 01:13 PM

Hi,

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

3 Answers, 1 is accepted

Sort by
0
Petyo
Telerik team
answered on 24 Aug 2016, 05:44 AM
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.
 
0
Enrico
Top achievements
Rank 1
answered on 24 Aug 2016, 08:15 AM

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.

0
Petyo
Telerik team
answered on 29 Aug 2016, 06:15 AM
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.
 
Tags
General Discussions
Asked by
Enrico
Top achievements
Rank 1
Answers by
Petyo
Telerik team
Enrico
Top achievements
Rank 1
Share this question
or