@tscircuit/props 0.0.261 → 0.0.262

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/dist/index.js CHANGED
@@ -102,6 +102,15 @@ var supplierProps = z6.object({
102
102
  supplierPartNumbers: z6.record(supplier_name, z6.array(z6.string())).optional()
103
103
  });
104
104
  expectTypesMatch(true);
105
+ var pinAttributeMap = z6.object({
106
+ providesPower: z6.boolean().optional(),
107
+ requiresPower: z6.boolean().optional(),
108
+ providesGround: z6.boolean().optional(),
109
+ requiresGround: z6.boolean().optional(),
110
+ providesVoltage: z6.union([z6.string(), z6.number()]).optional(),
111
+ requiresVoltage: z6.union([z6.string(), z6.number()]).optional()
112
+ });
113
+ expectTypesMatch(true);
105
114
  var commonComponentProps = commonLayoutProps.merge(supplierProps).extend({
106
115
  key: z6.any().optional(),
107
116
  name: z6.string(),
@@ -109,7 +118,7 @@ var commonComponentProps = commonLayoutProps.merge(supplierProps).extend({
109
118
  children: z6.any().optional(),
110
119
  symbolName: z6.string().optional(),
111
120
  doNotPlace: z6.boolean().optional(),
112
- pinAttributes: z6.record(z6.string(), z6.record(z6.string(), z6.any())).optional()
121
+ pinAttributes: z6.record(z6.string(), pinAttributeMap).optional()
113
122
  });
114
123
  expectTypesMatch(true);
115
124
  var componentProps = commonComponentProps;
@@ -1636,6 +1645,7 @@ export {
1636
1645
  pcbXDistConstraintProps,
1637
1646
  pcbYDistConstraintProps,
1638
1647
  pillSmtPadProps,
1648
+ pinAttributeMap,
1639
1649
  pinCompatibleVariant,
1640
1650
  pinHeaderProps,
1641
1651
  pinLabelsProp,