@tscircuit/props 0.0.398 → 0.0.400

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.
@@ -3,6 +3,7 @@ import { expectTypesMatch } from "lib/typecheck"
3
3
  import { z } from "zod"
4
4
 
5
5
  export interface FootprintProps {
6
+ children?: any
6
7
  /**
7
8
  * The layer that the footprint is designed for. If you set this to "top"
8
9
  * then it means the children were intended to represent the top layer. If
@@ -14,10 +15,16 @@ export interface FootprintProps {
14
15
  * "top" and this is most intuitive.
15
16
  */
16
17
  originalLayer?: LayerRef
18
+ /**
19
+ * Serialized circuit JSON describing a precompiled footprint
20
+ */
21
+ circuitJson?: any[]
17
22
  }
18
23
 
19
24
  export const footprintProps = z.object({
25
+ children: z.any().optional(),
20
26
  originalLayer: layer_ref.default("top").optional(),
27
+ circuitJson: z.array(z.any()).optional(),
21
28
  })
22
29
 
23
30
  export type FootprintPropsInput = z.input<typeof footprintProps>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tscircuit/props",
3
- "version": "0.0.398",
3
+ "version": "0.0.400",
4
4
  "description": "Props for tscircuit builtin component types",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",