Page 1 of 1

TypeScript Support?

PostPosted: Sat Jan 07, 2017 11:17 pm
by sbutler
I see that TypeScript is supported for building web components. Is it on the roadmap to have TypeScript support built into Servoy for standard development of the normal business logic?

For the uninitiated, TypeScript is a superset of JavaScript that compiles to clean JavaScript. It allows for having proper variable types and many other object oriented concepts in a clean way.

Re: TypeScript Support?

PostPosted: Mon Jan 09, 2017 10:15 am
by jcompagner
its not really on a roadmap, but we did think about it.

The problem is that there are some big hurdles to go over then, the first one is completion and validation of code, we need somehow to feed into the system the full SOM model including all the constant changing dynamic parts..
second is debugging because what you are debugging is the generated js code that can be quite a bit different then the type script that you are typing, so we need to have source map support and so on in the rhino debugger.

Re: TypeScript Support?

PostPosted: Tue Jan 10, 2017 9:38 am
by david
Any plans to upgrade the Rhino version?

Re: TypeScript Support?

PostPosted: Tue Jan 10, 2017 10:12 am
by jcompagner
that is something we could do but it doesn't gain us much. its not that we then have ecma6 support.

Re: TypeScript Support?

PostPosted: Tue Jan 10, 2017 10:47 am
by david
jcompagner wrote:that is something we could do but it doesn't gain us much. its not that we then have ecma6 support.


Makes sense. Sort of figured as much.