tscircuit / easyeda-converter

Convert easyeda JSON PCB footprints into tscircuit json
MIT License
2 stars 2 forks source link

Include duplicate pin names because `core` doesn't have good enough typing yet, remove `pinNames` #90

Closed seveibar closed 2 weeks ago

seveibar commented 2 weeks ago

pinLabels should be pin1: ["pin1", "GND"] instead of pin1: ["GND"] in generated tsx because core doesn't have a good way to infer the types yet, eventually we'll solve this properly in core.

Also: We no longer should use pinNames, remove that and just pass pinLabels as the second argument to createUseComponent in the template