Jump to content

Typescript Declaration Files?


AlexB
 Share

Recommended Posts

Hi, running into a problem while getting started with the library. I'm working on a TypeScript project, and the library doesn't ship with the d.ts files. It does provide a gulp task to build the declaration file, but it seems to be broken:

 

https://github.com/BabylonJS/Babylon.js/issues/221

 

So my question is: does anyone have a working TypeScript declaration file they can post? Or failing that, help with creating one from the source?

 

I have the latest tsc (1.0.1.0) and gulp installed.

 

Thanks!

Link to comment
Share on other sites

I found the answer to this, should it affect anyone else.


The path name is too long in most user's folder structure, eg. C:/users/me/documents/work/babylon


I cloned the repo into C:/b/ and ran the build tool:


gulp typescript


This successfully created the babylon.d.ts file in the Gulp folder.

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...