josharrr

Members
  • Content count

    2
  • Joined

  • Last visited

  1. josharrr

    Getting typescript setup

    @Fairydhwen Here's the d.ts I'm using: https://github.com/BabylonJS/Babylon.js/blob/master/dist/preview%20release/babylon.d.ts @Dal @JCPalmer Sure enough, when I took out the import statement I stopped getting that error. I also just had to restart Visual Studio Code for intellisense to pick up on the reference line. Thank you for the advice!
  2. I'm trying to figure out how to get typescript to recognize Babylon. My folder structure looks like this: app -assets --babylon.d.ts --babylon.js -game --game-model.ts In game-model.ts I'm using this: ///<referance path="../assets/babylon.d.ts" /> import * as BABYLON from 'BABYLON'; But when I try to build I get this error: client/dev/app/game/game-model.ts(2,26): error TS2307: Cannot find module 'BABYLON'. I know that it's finding the babylon.d.ts file because it's not giving me an error on that now. Maybe there's an easier way to do this using typings but I'm not finding babylon when I do `typings search babylonjs`. I'd appreciate any help. I'm pretty new to typescript. Used it in one other project but wasn't importing 3rd party JS. Thanks!