osman-turan / ammo.js-typings Goto Github PK
View Code? Open in Web Editor NEWTypeScript type definitions auto-generated by parsing official WebIDL bindings for Ammo.js
License: MIT License
TypeScript type definitions auto-generated by parsing official WebIDL bindings for Ammo.js
License: MIT License
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!
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.