Results 1 to 2 of 2

Thread: [Answers] TypeScript

  1. #1
    Lianja MVP
    Join Date
    Dec 2012
    Location
    Croatia, Zagreb
    Posts
    1,135

    [Answers] TypeScript

    Lianja 3.1 bundles the TypeScript language compiler which is used to dynamically transpile TypeScript (.ts) files into JavaScript (.js) files so it can be used in Desktop, Web and Mobile Apps in the same way as you would use JavaScript.

    You can create custom sections and gadgets in TypeScript as well as write custom libraries and your delegates in TypeScript.
    There is a new folder in the "library" workspace called "modules". You can create nodejs-style modules in Lianja and load them dynamically in your TypeScript or JavaScript code using the require() module loader.

    TypeScript Types
    enable JavaScript developers to use the Lianja development tools with static checking at compile time when developing JavaScript applications.
    Types are optional, and type inference allows a few type annotations to make a big difference to the static verification of your code.

    Types let you define interfaces between software components and gain insights into the behavior of existing JavaScript libraries.
    With tight integration into Lianja (dynamically transpiled), TypeScript is a powerful language for enterprise application development.



    TypeScript declarations file so that all of the built-in functions, classes, methods, and properties are all properly type-checked when the TypeScript .ts source file is compiled into JavaScript.
    There have been a few changes made to the UI to simplify working with TypeScript (and other languages which will be supported soon).
    Here are a few screen shots to give you an idea of how well TypeScript is integrated into Lianja.





    Why use TypeScript rather than JavaScript in Lianja 3.1 onwards...
    Watch this MSDN video and you will see why.
    https://mva.microsoft.com/en-US/trai...JrC_2206218965

    I'm loving TypeScript as it provides ES2015 within Lianja!



    ​All topics in [Answers] alphabetically:http://www.lianja.com/community/showthread.php?2717-Answers












  2. #2
    Lianja MVP
    Join Date
    Dec 2012
    Location
    Croatia, Zagreb
    Posts
    1,135
    if you are doing JavaScript programming, you will do yourself a favor by moving to Typescript. All your JavaScript will still run, but you will gain modern programming features that will help your development.
    The best part is that Lianja handles your Typescript compilation behind the scene, so there's no drag on your development.
    And to top it off, there is a very good book (from what reviewers write about it) available for free on Github: https://github.com/basarat/typescript-book
    What turned out to suit me best, however, was the TypeScript Handbook (click on Handbook to see and reach the Chapters), which has all the examples I need and moves right along.



    You can write in typescript using plain JavaScript. It is automatically compiled for you by Lianja.



    We include TypeScript definition files for "Lianja" and the "Lianja Framework".
    It is a very nice language indeed for building enterprise business apps..
    There is a good handbook at:
    https://www.typescriptlang.org/docs/...sic-types.html
    The benefits of TypeScript are that it is a modern OO scripting language with a high degree is compatibility with ES6 (EcmaScript 2015) but it can be transpiled (as Lianja does for you) into ES5 which is compatible with all current browsers.
    Lianja transpiles TypeScript files into JavaScript behind the scenes and in fact will soon be handling jsx files (in the form of TypeScript .tsx files) . This will provide you with the ability to write custom WebViews using React and React-Native.




    All topics in [Answers] alphabetically: https://www.lianja.com/community/sho...ll=1#post13748

    These answers are also systematized on the site "Lianja developer": https://lianjadeveloper.wordpress.co...ry/typescript/

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Journey into the Cloud
Join us