1

I found the Typescript definition for KendoUI in version 2013.1.319.open-source. I am creating SPA with Durandal + Knockout + Typescript and want to make a treeview with KendoUI but it seems that kendo.observableHierarchy is not supported.

The typescript that comes with the version mentioned above is kendo.web.d.ts. How different it is from kendo.all.d.ts that is written on this page? http://docs.kendoui.com/howto/typescript/overview

And where can we download kendo.all.d.ts? I could not find it from their site.

4

1 回答 1

1

“kendo.all.d.ts”带有 kendo ui 完整许可证。也就是说,您可以从这里获得一份副本:http ://www.kendoui.c​​om/forums/ui/general-discussions/typescript-definition-file-problems.aspx

但是a)它不是最新的,b)将包含不属于kendo开源的事物的定义。

解决方案 自己修复缺少的定义。如果您遇到困难并想要快速入门,您可以随时执行以下操作:

(<any>kendo).observableHierarchy

打字稿不会抱怨。

于 2013-07-02T11:28:20.800 回答