Can the frameworks like ScriptSharp / TypeScript be used to write WinRT UI JavaScript. If yes, How can this consume a WinRT C++/CX component (.winmd+dll)?
2 Answers
Script# lets you author javascript, that can then be used anywhere javascript is used.
What you'll need is type declarations, so you can program against them in your c# code. So if you want to program against WinRT APIs, you'll need to define an import library (look at the script# repository in github for examples of how to author one - the repository has examples for the ones out-of-the-box ... for browser/DOM APIs and various NodeJS APIs as well as some frameworks like jQuery and Knockout).