Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

created types for three-nebula ✨ #247

Open
moonraker22 opened this issue Jun 19, 2023 · 2 comments
Open

created types for three-nebula ✨ #247

moonraker22 opened this issue Jun 19, 2023 · 2 comments

Comments

@moonraker22
Copy link

Hello I usually use typescript and was tired of creating a worthless declaration file for the library so I created types for the entire library. I created a package on npm here: three-nebula-types, and also submitted a PR to definitelyTyped here: Definitely Typed However that PR will probably take a while. So if anyone is looking for types just npm install three-nebula-types and copy to node_modules/@types folder or add "typeRoots" to your .tsconfig. The repo is here: https://github.com/moonraker22/three-nebula-types 🌝

@moonraker22
Copy link
Author

For anyone interested Definitely Typed merged my PR for the types I created so now you can install the typescript types with

npm i @types/three-nebula

here's the npm page https://www.npmjs.com/package/@types/three-nebula

@vladkrutenyuk
Copy link

vladkrutenyuk commented Sep 1, 2023

Yo, a lot of properties are just object :( even argument of setPosition method is object too but its just {x:number,y:number,x:number}
Also most of examples (from official webpage) have typescript errors. So its not possible to use without //@ts-ignore everytime

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants