@tscircuit/props 0.0.531 → 0.0.532

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.
@@ -5,8 +5,9 @@ import { z } from "zod"
5
5
 
6
6
  export interface ViaProps extends CommonLayoutProps {
7
7
  name?: string
8
- fromLayer: LayerRefInput
9
- toLayer: LayerRefInput
8
+ fromLayer?: LayerRefInput
9
+ toLayer?: LayerRefInput
10
+ layers?: LayerRefInput[]
10
11
  holeDiameter?: number | string
11
12
  outerDiameter?: number | string
12
13
  connectsTo?: string | string[]
@@ -15,10 +16,11 @@ export interface ViaProps extends CommonLayoutProps {
15
16
 
16
17
  export const viaProps = commonLayoutProps.extend({
17
18
  name: z.string().optional(),
18
- fromLayer: layer_ref,
19
- toLayer: layer_ref,
19
+ fromLayer: layer_ref.optional(),
20
+ toLayer: layer_ref.optional(),
20
21
  holeDiameter: distance.optional(),
21
22
  outerDiameter: distance.optional(),
23
+ layers: z.array(layer_ref).optional(),
22
24
  connectsTo: z.string().or(z.array(z.string())).optional(),
23
25
  netIsAssignable: z.boolean().optional(),
24
26
  })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tscircuit/props",
3
- "version": "0.0.531",
3
+ "version": "0.0.532",
4
4
  "description": "Props for tscircuit builtin component types",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",