@tscircuit/props 0.0.580 → 0.0.581

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.
@@ -0,0 +1,15 @@
1
+ import { expectTypesMatch } from "lib/typecheck"
2
+ import { z } from "zod"
3
+
4
+ export interface AssemblyDeviceProps {
5
+ /** Product-level assembly identity. */
6
+ name?: string
7
+ }
8
+
9
+ export const assemblyDeviceProps = z.object({
10
+ name: z.string().optional(),
11
+ })
12
+
13
+ export type AssemblyDevicePropsInput = z.input<typeof assemblyDeviceProps>
14
+
15
+ expectTypesMatch<AssemblyDeviceProps, AssemblyDevicePropsInput>(true)
@@ -0,0 +1,7 @@
1
+ import { assemblyDeviceProps } from "./device"
2
+
3
+ export * from "./device"
4
+
5
+ export const assemblyProps = {
6
+ device: assemblyDeviceProps,
7
+ } as const
package/lib/index.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  export * from "./common/direction"
2
2
  export * from "./common/commonShape"
3
+ export * from "./assembly"
3
4
  export * from "./enclosure"
4
5
  export * from "./common/portHints"
5
6
  export * from "./common/layout"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tscircuit/props",
3
- "version": "0.0.580",
3
+ "version": "0.0.581",
4
4
  "description": "Props for tscircuit builtin component types",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",