antonioru / antonioru/beautiful-react-diagrams
Import Type definition for custom Node ?
- 主要言語
- JavaScript
- スター
- 2.7k
- フォーク
- 171
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
hey guys how i import the type for your node in custom render?
I test all what i know but am not able to find a ways !

Diagram seem not export Node type !

Actually the only hack i found and make success to get Intelisence types, is by add a default parameter
```js
const CustomNode = (props = createSchema({}).nodes[0]) => {
const { inputs } = props;
```
but am not fan with this ugly way !! , am search a way to add type in documentation

Any suggest ?, this React plugin look crazy congrat !
I'm just not a fan to code blinded. :)
maybe allow something like this for avoid ``?
```js
/** custom renderer for Diagram Node
* @param {Diagram['Node']} props - Current Node
*/
const CustomNode = (props) => { ...
```
コントリビューションガイド
評価
この issue はまだ評価されていません。