Rubicon
Tool for merging typescript interfaces and generate PropTypes used for BEM projects.
Install
npm i -D rubicon
Commands
merge
rubicon merge --module=library-name
Options
- target: Target for merging (default:
library
) - tech: Technology extension (default:
d.ts
) - output: Output path for declare file (default:
/index.d.ts
) - module: Module name for declare
Example
We have some interface placed on our file system:
// common.blocks/a/a.d.ts // common.blocks/a/_mod/a_mod.d.ts // common.blocks/b/b.d.ts
After merging:
declare