-
Notifications
You must be signed in to change notification settings - Fork 49
How to make typescript difinition? #16
Comments
Hi Sergiy, I dont know if it can be done easy, I dont believe the docs is good enough to auto generate it. however @ivanpopelyshev is planning porting pixi-ui to typescript. When that's done further development will be in the typescript branch. |
Yep, I have to defeat my laziness. |
@bQvle @ivanpopelyshev any updates on typescript version? |
@apptaro we are working on official support of plugins for v5, though we dont have special column yet: https://github.com/pixijs/pixi.js/projects/6 , and all v5 plugins will have typings. |
You can try this: https://github.com/englercj/tsd-jsdoc It does require the jsdoc to be as correct as possible. If you encounter any incorrect typings, please report it :) |
I figured that even though I can use tsd-jsdoc, most of the jsdoc comment is not there, so d.ts created is not usable :( |
@apptaro I also feel very necessary |
@ivanpopelyshev I would like to offer to port the repo to typescript. Would this be welcome or should it be done by a pixi core contributor? |
Go for it. Another problem is that its old v4 repo and not v5. You can port it to TS first of course, v4 typings are fine. There'll be many "any" in webgl-related places. |
@ivanpopelyshev Since you mentioned a lot of types are missing from pixi v4, what would be better? Updating to pixi v5 first then converting the repo to typescript? Or the other way around? |
Typescript conversion has been complete! |
Hi, bQvle. First of all thanks for good library. Currently i'm developing easy game with pixi-typescript and i would like to make ui with your tool. Can i generate typescript definition of your library? Thanks.
The text was updated successfully, but these errors were encountered: