@tscircuit/props 0.0.432 → 0.0.433
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +4 -0
- package/dist/index.js.map +1 -1
- package/lib/components/interconnect.ts +14 -0
- package/package.json +1 -1
|
@@ -2,11 +2,19 @@ import {
|
|
|
2
2
|
type CommonComponentProps,
|
|
3
3
|
commonComponentProps,
|
|
4
4
|
} from "lib/common/layout"
|
|
5
|
+
import {
|
|
6
|
+
schematicPinLabel,
|
|
7
|
+
type SchematicPinLabel,
|
|
8
|
+
} from "lib/common/schematicPinLabel"
|
|
5
9
|
import { expectTypesMatch } from "lib/typecheck"
|
|
6
10
|
import { z } from "zod"
|
|
7
11
|
|
|
8
12
|
export interface InterconnectProps extends CommonComponentProps {
|
|
9
13
|
standard?: "TSC0001_36P_XALT_2025_11" | "0805" | "0603" | "1206"
|
|
14
|
+
pinLabels?: Record<
|
|
15
|
+
number | SchematicPinLabel,
|
|
16
|
+
SchematicPinLabel | SchematicPinLabel[]
|
|
17
|
+
>
|
|
10
18
|
/**
|
|
11
19
|
* Groups of pins that are internally connected
|
|
12
20
|
* e.g., [["1","2"], ["2","3"]]
|
|
@@ -18,6 +26,12 @@ export const interconnectProps = commonComponentProps.extend({
|
|
|
18
26
|
standard: z
|
|
19
27
|
.enum(["TSC0001_36P_XALT_2025_11", "0805", "0603", "1206"])
|
|
20
28
|
.optional(),
|
|
29
|
+
pinLabels: z
|
|
30
|
+
.record(
|
|
31
|
+
z.number().or(schematicPinLabel),
|
|
32
|
+
schematicPinLabel.or(z.array(schematicPinLabel)),
|
|
33
|
+
)
|
|
34
|
+
.optional(),
|
|
21
35
|
internallyConnectedPins: z
|
|
22
36
|
.array(z.array(z.union([z.string(), z.number()])))
|
|
23
37
|
.optional(),
|