Gutenberg: TypeScript support

Created on 14 Dec 2018  路  6Comments  路  Source: WordPress/gutenberg

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

[Priority] Low

Most helpful comment

Note that WordPress NPM packages will now ship with first-party TypeScript types as of the changes in #18942.

All 6 comments

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?

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.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

moorscode picture moorscode  路  3Comments

davidsword picture davidsword  路  3Comments

nylen picture nylen  路  3Comments

jasmussen picture jasmussen  路  3Comments

franz-josef-kaiser picture franz-josef-kaiser  路  3Comments