timbru31 commented on issue #39: [Plugins] Typings
URL: https://github.com/apache/cordova/issues/39#issuecomment-426370144
 
 
   > 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.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to