@tscircuit/props 0.0.642 → 0.0.643
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 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/lib/components/bus.ts +3 -3
- package/package.json +1 -1
package/lib/components/bus.ts
CHANGED
|
@@ -10,12 +10,12 @@ import { z } from "zod"
|
|
|
10
10
|
export type BusName = string
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
|
-
* Declares
|
|
13
|
+
* Declares one or more connections that an autorouter should route as a group.
|
|
14
14
|
* Each connection may be a trace name or a port selector.
|
|
15
15
|
*/
|
|
16
16
|
export interface BusProps {
|
|
17
17
|
name?: string
|
|
18
|
-
/**
|
|
18
|
+
/** One or more trace names or port selectors for the connections in the bus. */
|
|
19
19
|
connections: string[]
|
|
20
20
|
/** If set, every trace in this bus is assigned to this autorouting phase. */
|
|
21
21
|
routingPhaseIndex?: number | null
|
|
@@ -35,7 +35,7 @@ export interface BusProps {
|
|
|
35
35
|
|
|
36
36
|
export const busProps = z.object({
|
|
37
37
|
name: z.string().optional(),
|
|
38
|
-
connections: z.array(z.string()).min(
|
|
38
|
+
connections: z.array(z.string()).min(1),
|
|
39
39
|
routingPhaseIndex: z.number().nullable().optional(),
|
|
40
40
|
maxLengthSkew: distance.pipe(z.number().min(0).finite()).optional(),
|
|
41
41
|
targetImpedance: resistance.pipe(z.number().positive().finite()).optional(),
|