Skip to content

Move resistor footprint mapping onto the footprint field#664

Merged
seveibar merged 2 commits into
tscircuit:mainfrom
techmannih2:ya
May 7, 2026
Merged

Move resistor footprint mapping onto the footprint field#664
seveibar merged 2 commits into
tscircuit:mainfrom
techmannih2:ya

Conversation

@techmannih2
Copy link
Copy Markdown
Contributor

No description provided.

.extend({
export const resistorProps: z.ZodType<ResistorProps> =
commonComponentProps.extend({
footprint: footprintProp.optional().transform(mapResistorFootprint),
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

refine only validates the value.
We needed to actually change the value from 0402 to res0402.
For rewriting the value, we should use transform??

@seveibar seveibar merged commit c3855b3 into tscircuit:main May 7, 2026
4 checks passed
@tscircuitbot
Copy link
Copy Markdown
Contributor


Thank you for your contribution! 🎉

PR Rating:
Impact: Tiny

Track your contributions and see the leaderboard at: tscircuit Contribution Tracker


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants