plopjs / plop

Consistency Made Simple
http://plopjs.com
MIT License
7.12k stars 277 forks source link

fix(node-plop): Correct types #367

Open xeho91 opened 1 year ago

xeho91 commented 1 year ago

Hi, I love using your package to improve my workflows. Thanks for it!

While coding something new, I found a few typing issues, so I thought of immediately fixing them.


According to the code from these lines:

both action types - "append" and "modify" - accept pattern property in options (cfg) optionally.


Another one is the incorrectly inherited property path inside AddManyActionConfig from AddActionCOnfig. I've confirmed there, that it is actually not being used at all.

Source: https://github.com/plopjs/plop/blob/973c1ce566db6fc754af55672b47ae4ed80ae4d0/packages/node-plop/src/actions/addMany.js#L15