@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 CHANGED
@@ -840,6 +840,10 @@ export interface InductorProps<
840
840
  ```ts
841
841
  export interface InterconnectProps extends CommonComponentProps {
842
842
  standard?: "TSC0001_36P_XALT_2025_11" | "0805" | "0603" | "1206";
843
+ pinLabels?: Record<
844
+ number | SchematicPinLabel,
845
+ SchematicPinLabel | SchematicPinLabel[]
846
+ >;
843
847
  /**
844
848
  * Groups of pins that are internally connected
845
849
  * e.g., [["1","2"], ["2","3"]]
package/dist/index.d.ts CHANGED
@@ -25857,6 +25857,7 @@ declare const connectorProps: z.ZodObject<{
25857
25857
 
25858
25858
  interface InterconnectProps extends CommonComponentProps {
25859
25859
  standard?: "TSC0001_36P_XALT_2025_11" | "0805" | "0603" | "1206";
25860
+ pinLabels?: Record<number | SchematicPinLabel, SchematicPinLabel | SchematicPinLabel[]>;
25860
25861
  /**
25861
25862
  * Groups of pins that are internally connected
25862
25863
  * e.g., [["1","2"], ["2","3"]]
@@ -26572,6 +26573,7 @@ declare const interconnectProps: z.ZodObject<{
26572
26573
  }>>>;
26573
26574
  } & {
26574
26575
  standard: z.ZodOptional<z.ZodEnum<["TSC0001_36P_XALT_2025_11", "0805", "0603", "1206"]>>;
26576
+ pinLabels: z.ZodOptional<z.ZodRecord<z.ZodUnion<[z.ZodNumber, z.ZodString]>, z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>>;
26575
26577
  internallyConnectedPins: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">, "many">>;
26576
26578
  }, "strip", z.ZodTypeAny, {
26577
26579
  name: string;
@@ -26775,6 +26777,7 @@ declare const interconnectProps: z.ZodObject<{
26775
26777
  doNotPlace?: boolean | undefined;
26776
26778
  obstructsWithinBounds?: boolean | undefined;
26777
26779
  showAsTranslucentModel?: boolean | undefined;
26780
+ pinLabels?: Record<string | number, string | string[]> | undefined;
26778
26781
  internallyConnectedPins?: (string | number)[][] | undefined;
26779
26782
  standard?: "0603" | "0805" | "1206" | "TSC0001_36P_XALT_2025_11" | undefined;
26780
26783
  }, {
@@ -26981,6 +26984,7 @@ declare const interconnectProps: z.ZodObject<{
26981
26984
  doNotPlace?: boolean | undefined;
26982
26985
  obstructsWithinBounds?: boolean | undefined;
26983
26986
  showAsTranslucentModel?: boolean | undefined;
26987
+ pinLabels?: Record<string | number, string | string[]> | undefined;
26984
26988
  internallyConnectedPins?: (string | number)[][] | undefined;
26985
26989
  standard?: "0603" | "0805" | "1206" | "TSC0001_36P_XALT_2025_11" | undefined;
26986
26990
  }>;
package/dist/index.js CHANGED
@@ -903,6 +903,10 @@ expectTypesMatch(true);
903
903
  import { z as z39 } from "zod";
904
904
  var interconnectProps = commonComponentProps.extend({
905
905
  standard: z39.enum(["TSC0001_36P_XALT_2025_11", "0805", "0603", "1206"]).optional(),
906
+ pinLabels: z39.record(
907
+ z39.number().or(schematicPinLabel),
908
+ schematicPinLabel.or(z39.array(schematicPinLabel))
909
+ ).optional(),
906
910
  internallyConnectedPins: z39.array(z39.array(z39.union([z39.string(), z39.number()]))).optional()
907
911
  });
908
912
  expectTypesMatch(true);