Skip to content
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

Closed
wants to merge 1 commit into from

Conversation

kom-senapati
Copy link

Need to introduce externallyConnectedPins for moving forward with tscircuit/core#548

@Anshgrover23 Anshgrover23 requested a review from seveibar January 24, 2025 14:04
Copy link
Member

@imrishabh18 imrishabh18 left a 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][]
Copy link
Member

@imrishabh18 imrishabh18 Jan 24, 2025

Choose a reason for hiding this comment

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

Suggested change
externallyConnectedPins?: [string, string][]
externallyConnectedPins?: Array<Array<string | number>>

Comment on lines +56 to +58
externallyConnectedPins: z
.array(z.tuple([z.string(), z.string()]))
.optional(),
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
externallyConnectedPins: z
.array(z.tuple([z.string(), z.string()]))
.optional(),
externallyConnectedPins: z
.array(z.array(z.union([z.string(), z.number()])))
.optional(),

@kom-senapati
Copy link
Author

Ok this is done ✅

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