You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This isn't really a "bug". I was curious the best way to add this to a project. I'm currently getting starting with Typescript and webpack.
I have a rough prototype working where I simply added the script (box2d.umd.js) to my index.html file.
However, as there is no declaration file, it seems like it would be better off directly adding the source into my project? I notice all the exports are in the Box2D.ts file. Whereas within Typescript I think you can include a directory by using an index.ts file.
Is there a recommended way to add into a project?
The text was updated successfully, but these errors were encountered:
There are quite a few different systems for packaging TypeScript/JavaScript. I don't consider myself an expert on any single one of them, I just read the documentation until I understood well enough to get the Testbed working. I would try searching for other projects that may have examples of combining different types of libraries.
This isn't really a "bug". I was curious the best way to add this to a project. I'm currently getting starting with Typescript and webpack.
I have a rough prototype working where I simply added the script (box2d.umd.js) to my index.html file.
However, as there is no declaration file, it seems like it would be better off directly adding the source into my project? I notice all the
export
s are in the Box2D.ts file. Whereas within Typescript I think you can include a directory by using an index.ts file.Is there a recommended way to add into a project?
The text was updated successfully, but these errors were encountered: