← Back to community index
# contributor·Active

! Rushabh | Linux Shill - hey @Seve @shibo padD...

hey mention mention padDiameter is option in the props but no default is set in core so zod screams when running without a pad Diameter, should we make the padDiameter prop required in props? or add a default diameter in core? if yes, what?

Started by ! Rushabh | Linux ShillJun 17, 20267 messages

Discussion

Last active 26 days ago · plain text
! Rushabh | Linux Shilloriginal post
hey <@757706909351411845> <@778624824875941908> padDiameter is option in the props but no default is set in core so zod screams when running without a pad Diameter, should we make the padDiameter prop required in props? or add a default diameter in core? if yes, what?
! Rushabh | Linux Shill
<@809856037376491570>
! Rushabh | Linux Shill
<@778624824875941908>
Rishabh
I think padDiameter shouldn’t be optional. Otherwise what are you rendering?
! Rushabh | Linux Shill
https://github.com/tscircuit/props/pull/696
Seve
That error sucks and should be improved
Seve
Even for this type of failure

Want to add to the conversation?

Reply in Discord so your notes stay connected to the source.
Continue in Discord ↗