Hi,

we have published new builds of TypeScript-based extensions on the private feed. KendoUI binding now has a constructor for TreeListDataSource as a static method at WebSharper.KendoUI.data1.TreeListDataSource.Create() with the proper overloads. (I haven't found yet why data is renamed to data1 by the binding generator, it is strange...)

By on 4/6/2016 5:39 AM ()

Excellent, thank you. It works wonders!

One more thing. Do you know why many types in data1 are interface types, e.g. DataSourceOptions et al.? It would hugely improve type safety if one could use proper types instead of the notoriously unsafe New function.

By on 4/6/2016 11:50 AM ()

Thanks for the report!

It is indeed a shortcoming of the WebSharper generator from TypeScript definitions, implicit constructors are not created as .NET members. We are working on it.

In TypeScript classes can work also as interfaces, so in TypeScript-generated WebSharper bindings, all class instance methods are present on nested interfaces .T. Inheritance is applied there, so you will be able to use inherited methods when the constructor will be properly usable.

By on 4/4/2016 10:54 AM ()
IntelliFactory Offices Copyright (c) 2011-2012 IntelliFactory. All rights reserved.
Home | Products | Consulting | Trainings | Blogs | Jobs | Contact Us | Terms of Use | Privacy Policy | Cookie Policy
Built with WebSharper