Skip to content

Commit

Permalink
fix pinLabels def
Browse files Browse the repository at this point in the history
  • Loading branch information
seveibar committed Oct 16, 2024
1 parent 1481ed9 commit fb68fa1
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions lib/components/chip.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import { expectTypesMatch } from "lib/typecheck"

export interface ChipProps extends CommonComponentProps {
manufacturerPartNumber?: string
pinLabels?: Record<number | string, string>
pinLabels?: Record<number | string, string | string[]>
schPortArrangement?: SchematicPortArrangement
schPinStyle?: SchematicPinStyle
schPinSpacing?: Distance
Expand All @@ -27,12 +27,9 @@ export interface ChipProps extends CommonComponentProps {

export const chipProps = commonComponentProps.extend({
manufacturerPartNumber: z.string().optional(),
pinLabels: z.record(
z.number().or(z.string()),
z.string().or(
z.array(z.string())
)
).optional(),
pinLabels: z
.record(z.number().or(z.string()), z.string().or(z.array(z.string())))
.optional(),
schPortArrangement: schematicPortArrangement.optional(),
schPinStyle: schematicPinStyle.optional(),
schPinSpacing: distance.optional(),
Expand Down

0 comments on commit fb68fa1

Please sign in to comment.