GithubHelp home page GithubHelp logo

osman-turan / ammo.js-typings Goto Github PK

View Code? Open in Web Editor NEW
14.0 4.0 5.0 66 KB

TypeScript type definitions auto-generated by parsing official WebIDL bindings for Ammo.js

License: MIT License

TypeScript 100.00%
bullet-physics ammojs typescript typescript-definitions typings physics physics-engine physics-simulation

ammo.js-typings's People

Contributors

osman-turan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

ammo.js-typings's Issues

Updating typings

Hi,

thank you for your very helpful repository! Could you please rerun the generation of the typings from the idl file using the latest ammo.js version? There are some new exposed function that I would like to use. That would be great!

WebIDLParseError, unrecognised tokens

I'm trying to run the type generation from a fresh clone and with a brand new ammo.idl file last updated in commit 1a601e4. This is the output:

PS D:\Coding\JavaScript\ammo.js-typings> npm install
added 141 packages from 133 contributors and audited 141 packages in 3.155s
found 33 vulnerabilities (14 moderate, 14 high, 5 critical)
  run `npm audit fix` to fix them, or `npm audit` for details
PS D:\Coding\JavaScript\ammo.js-typings> npm run build

> @types/[email protected] build D:\Coding\JavaScript\ammo.js-typings
> ts-node build.ts


D:\Coding\JavaScript\ammo.js-typings\node_modules\webidl2\dist\webpack:\WebIDL2\lib\tokeniser.js:228
    throw new WebIDLParseError(syntaxError(this.source, this.position, this.current, message));
          ^
WebIDLParseError: Syntax error at line 49, since `interface btVector4`:
btVector4 implements btVector3;
^ Unrecognised tokens
    at tokeniser_Tokeniser.error (D:\Coding\JavaScript\ammo.js-typings\node_modules\webidl2\dist\webpack:\WebIDL2\lib\tokeniser.js:228:11)
    at error (D:\Coding\JavaScript\ammo.js-typings\node_modules\webidl2\dist\webpack:\WebIDL2\lib\webidl2.js:25:15)
    at parseByTokens (D:\Coding\JavaScript\ammo.js-typings\node_modules\webidl2\dist\webpack:\WebIDL2\lib\webidl2.js:90:43)
    at Module.j (D:\Coding\JavaScript\ammo.js-typings\node_modules\webidl2\dist\webpack:\WebIDL2\lib\webidl2.js:105:10)
    at AmmoJsTypeDefinitionsGenerator.generate (D:\Coding\JavaScript\ammo.js-typings\build.ts:219:31)
    at Object.<anonymous> (D:\Coding\JavaScript\ammo.js-typings\build.ts:246:26)
    at Module._compile (node:internal/modules/cjs/loader:1254:14)
    at Module.m._compile (D:\Coding\JavaScript\ammo.js-typings\node_modules\ts-node\src\index.ts:814:23)
    at Module._extensions..js (node:internal/modules/cjs/loader:1308:10)
    at Object.require.extensions.<computed> [as .ts] (D:\Coding\JavaScript\ammo.js-typings\node_modules\ts-node\src\index.ts:817:12)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @types/[email protected] build: `ts-node build.ts`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @types/[email protected] build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\Daniel\AppData\Roaming\npm-cache\_logs\2023-07-25T09_02_57_922Z-debug.log
PS D:\Coding\JavaScript\ammo.js-typings> node --version
v18.16.0
PS D:\Coding\JavaScript\ammo.js-typings> npm --version
6.14.5

I'm on Windows 11, running the commands inside Powershell.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.