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

Typescript definition for kendo mssing ns property

3 Answers 104 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Ken
Top achievements
Rank 1
Ken asked on 12 Apr 2013, 02:48 PM
kendo.ns should be defined as:
public ns: string;

See http://docs.kendoui.com/howto/declarative_initialization at the bottom.

Until this is fixed ns must be set thus:
(<any>kendo).ns = "kendo-";

3 Answers, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 15 Apr 2013, 08:33 AM
Hi Kenneth,

 Thank you for reporting this omission.

  We tried using public ns: string but it failed with a TypeScript error: "Property statements are only allowed within classes". It seems the required code is "declare var ns: string;"

  Find attached the updated type script definitions.

All the best,
Atanas Korchev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Ken
Top achievements
Rank 1
answered on 15 Apr 2013, 01:35 PM
Thanks for the quick turn around! I need this for kendo mobile. Can you send me the ts for that, too?


Also: Will this be in the next stable drop of kendo web/mobile?
0
Atanas Korchev
Telerik team
answered on 16 Apr 2013, 08:48 AM
Hi,

 You can rename that file to kendo.mobile.d.ts or wait for the next official release.

Regards,
Atanas Korchev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
General Discussions
Asked by
Ken
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Ken
Top achievements
Rank 1
Share this question
or