Jump to content

Babylon JS and Typescript


seand88
 Share

Recommended Posts

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...