Skip to Content
Author's profile photo Lars Hvam

Typescript definitions for HANA XS engine

Hi All,

I’ve written a typescript definitions file for use with SAP HANA XS engine.

This allows you to create your XS applications in typescript, fire up your favorite typescript editor, along with the definitions file:

/wp-content/uploads/2015/04/ts_695582.png

This shows Atom with its typescript plugin, it provides syntax highlighting and typeahead features.

Saving the file will compile the typescript to javascript:

/wp-content/uploads/2015/04/compiled_695583.png

The compiled javascript can be uploaded to the HANA server and run there.

Future Work:

  1. Improving definitions file
  2. Working with typescript in library files(xsjslib) is a mess, the typescript files can be compiled into one javascript file using compiler flag –out

https://github.com/larshp/xsjs.d.ts

Assigned Tags

      2 Comments
      You must be Logged on to comment or reply to a post.
      Author's profile photo Former Member
      Former Member

      Great work. Did you get a chance to do the latest xsa in SPS 11/12?

      Author's profile photo Lars Hvam
      Lars Hvam
      Blog Post Author

      nope, but pull requests are welcome on github :o)