> Hm, we (could that include you?) could certainly take care of the typings for 
Cordova Core Plugins that are hosted here in the Apache repository. It makes 
more sense to keep them close to the actual code, as it help keeping them up to 
date (and e.g. can be enforced on Pull Requests).

Of course it's easier to enforce proper reviews or updates to existing typings 
when the typings are maintained here. DefinitelyTyped relies on volunteers 
(called maintainers) for each typing project, too. Only in case they do not 
review the PR for "their" package the DefinitelyTyped maintainers will do an 
express review (and if the CI passes merge the PR).  
I'm happy to help with the typings but would appreciate it, if there would be 
more than person involved with the typings - otherwise a missing review could 
block an otherwise good PR.

> What are the processes to generate them? Any automation?

There are some tools (see e.g. https://stackoverflow.com/a/12695001/1902598), 
but some manual work is required. If you develop in TypeScript and transpile to 
JavaScript you get the typings for free from TypeScript. (And personally I 
favor the manual work or just write TypeScript over JavaScript)

> What about other plugins - would our decision somehow have consequences for 
> them? There are lots more third party Cordova plugins than Core plugins.

No. Each plugin, which is a standalone npm package, needs to provide the 
typings themself or rely on e.g. DefinitelyTyped.  
If e.g. the Apache org decides to maintain them this is not required or 
enforced for other plugins.

[ Full content available at: https://github.com/apache/cordova/issues/39 ]
This message was relayed via gitbox.apache.org for [email protected]

Reply via email to