seand88 Posted November 14, 2016 Share Posted November 14, 2016 I create a babylonjs starter for typescript here. https://github.com/seand88/babylonjs-typescript-starter built using gulp. The only issue I am having is when trying to get the definitions to work. I thought with typescript 2.0 you could simply do npm install --save @typings/babylonjs but it seems that points to an old version I am new to getting typescript working, so if anyone knows how to get that to work would really appreciate it. Currently with the starter I made You will get errors like src\client\game.ts(32,22): error TS2304: Cannot find name 'BABYLON'. Thanks for any help, and hopefully others can use this to get started in the future as well. Quote Link to comment Share on other sites More sharing options...
Wingnut Posted November 16, 2016 Share Posted November 16, 2016 Hi @seand88! Hey, thanks for the contribution! Very good. Sorry that it is taking so long to get replies. I have no experience with Typescript, but perhaps other forum topics will help. http://www.html5gamedevs.com/search/?&q=typescript definitions&type=forums_topic&nodes=16,28,29,30,31 The 3rd return ("Getting typescript setup") looks somewhat promising... but surely Typescript v2.0 has some differences. All in all, my comment will bump this topic to the top of the forum list... and perhaps smarter people than I... will comment soon. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.