Is your feature request related to a problem? Please describe.
I write all my code in TypeScript and I have a problem with missing typing for Gutenberg and wp API. I have to define all typing by myself.
Describe the solution you'd like
It would be great to add typing to the DefinitelyTyped project (https://github.com/DefinitelyTyped/DefinitelyTyped)
Describe alternatives you've considered
At the moment I'm creating typings by hand :(
See https://github.com/DefinitelyTyped/DefinitelyTyped/issues/31388
To be completely honest, this is very low priority for us. I understand the frustractions, but such definitions requires a good amount of time to maintain and that's not something that has an impact on our roadmap.
@mejta could you share your actual types?
@chapterjason It's very rough and definitely not complete, just for my project:
https://github.com/mejta/DefinitelyTyped/tree/master/types/wordpress__blocks
https://github.com/mejta/DefinitelyTyped/tree/master/types/wordpress__components
https://github.com/mejta/DefinitelyTyped/tree/master/types/wordpress__data
https://github.com/mejta/DefinitelyTyped/tree/master/types/wordpress__editor
I also stopped creating new types as it is too time-consuming :(
@chapterjason See also: https://github.com/WordPress/gutenberg/pull/14308#issuecomment-481466355
and
https://github.com/dsifford/academic-bloggers-toolkit/tree/master/types
This was discussed several times. I'm going to close this in favor of #15027 (See the related discussions)
Note that WordPress NPM packages will now ship with first-party TypeScript types as of the changes in #18942.
Most helpful comment
Note that WordPress NPM packages will now ship with first-party TypeScript types as of the changes in #18942.