@tscircuit/props 0.0.293 → 0.0.294
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/README.md +1 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.js +372 -371
- package/dist/index.js.map +1 -1
- package/lib/components/board.ts +3 -0
- package/package.json +1 -1
package/lib/components/board.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { distance, type Distance } from "lib/common/distance"
|
|
1
2
|
import { expectTypesMatch } from "lib/typecheck"
|
|
2
3
|
import { z } from "zod"
|
|
3
4
|
import { subcircuitGroupProps, type SubcircuitGroupProps } from "./group"
|
|
@@ -6,11 +7,13 @@ export interface BoardProps extends Omit<SubcircuitGroupProps, "subcircuit"> {
|
|
|
6
7
|
material?: "fr4" | "fr1"
|
|
7
8
|
/** Number of layers for the PCB */
|
|
8
9
|
layers?: 2 | 4
|
|
10
|
+
borderRadius?: Distance
|
|
9
11
|
}
|
|
10
12
|
|
|
11
13
|
export const boardProps = subcircuitGroupProps.extend({
|
|
12
14
|
material: z.enum(["fr4", "fr1"]).default("fr4"),
|
|
13
15
|
layers: z.union([z.literal(2), z.literal(4)]).default(2),
|
|
16
|
+
borderRadius: distance.optional(),
|
|
14
17
|
})
|
|
15
18
|
|
|
16
19
|
type InferredBoardProps = z.input<typeof boardProps>
|