@tscircuit/props 0.0.687 → 0.0.688

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
@@ -661,6 +661,15 @@ var pinAttributeMap = z23.object({
661
661
  requiresGround: z23.boolean().optional(),
662
662
  providesVoltage: z23.union([z23.string(), z23.number()]).optional(),
663
663
  requiresVoltage: z23.union([z23.string(), z23.number()]).optional(),
664
+ requiredVoltageTolerance: z23.union([
665
+ z23.number(),
666
+ z23.string().trim().regex(
667
+ /^(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?\s*%?$/,
668
+ "Expected a tolerance fraction or percentage"
669
+ ).transform(
670
+ (value) => value.endsWith("%") ? Number(value.slice(0, -1)) / 100 : Number(value)
671
+ )
672
+ ]).pipe(z23.number().finite().min(0).max(1)).optional(),
664
673
  doNotConnect: z23.boolean().optional(),
665
674
  includeInBoardPinout: z23.boolean().optional(),
666
675
  highlightColor: z23.string().optional(),