-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add externallyConnectedPins prop in ChipProps #149
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just making sure we are following the pattern which is being used in the codebase, cause I don't see we use tuple
.
I think we should allow number
as well to be passed in the prop pin number
cc: @seveibar
@@ -24,6 +24,7 @@ export interface ChipProps extends CommonComponentProps { | |||
schWidth?: Distance | |||
schHeight?: Distance | |||
noSchematicRepresentation?: boolean | |||
externallyConnectedPins?: [string, string][] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
externallyConnectedPins?: [string, string][] | |
externallyConnectedPins?: Array<Array<string | number>> |
externallyConnectedPins: z | ||
.array(z.tuple([z.string(), z.string()])) | ||
.optional(), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
externallyConnectedPins: z | |
.array(z.tuple([z.string(), z.string()])) | |
.optional(), | |
externallyConnectedPins: z | |
.array(z.array(z.union([z.string(), z.number()]))) | |
.optional(), |
Ok this is done ✅ |
Need to introduce
externallyConnectedPins
for moving forward with tscircuit/core#548