@tscircuit/props 0.0.567 → 0.0.569
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 +12 -6
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/lib/common/symbolProp.ts +2 -1
- package/lib/components/autoroutingphase.ts +4 -2
- package/package.json +1 -1
package/lib/common/symbolProp.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import type { AnyCircuitElement } from "circuit-json"
|
|
1
2
|
import type { ReactElement } from "react"
|
|
2
3
|
import { z } from "zod"
|
|
3
4
|
|
|
4
|
-
export type SymbolProp = string | ReactElement
|
|
5
|
+
export type SymbolProp = string | ReactElement | AnyCircuitElement[]
|
|
5
6
|
|
|
6
7
|
export const symbolProp = z.custom<SymbolProp>((v) => true)
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import { expectTypesMatch } from "lib/typecheck"
|
|
2
2
|
import { z } from "zod"
|
|
3
3
|
import {
|
|
4
|
-
autorouterProp,
|
|
5
|
-
routingTolerances,
|
|
6
4
|
type AutorouterProp,
|
|
7
5
|
type RoutingTolerances,
|
|
6
|
+
autorouterProp,
|
|
7
|
+
routingTolerances,
|
|
8
8
|
} from "./group"
|
|
9
9
|
|
|
10
10
|
export interface AutoroutingPhaseProps extends RoutingTolerances {
|
|
11
11
|
key?: any
|
|
12
|
+
name?: string
|
|
12
13
|
autorouter?: AutorouterProp
|
|
13
14
|
phaseIndex?: number
|
|
14
15
|
region?: {
|
|
@@ -26,6 +27,7 @@ export interface AutoroutingPhaseProps extends RoutingTolerances {
|
|
|
26
27
|
export const autoroutingPhaseProps = z
|
|
27
28
|
.object({
|
|
28
29
|
key: z.any().optional(),
|
|
30
|
+
name: z.string().optional(),
|
|
29
31
|
autorouter: autorouterProp.optional(),
|
|
30
32
|
phaseIndex: z.number().optional(),
|
|
31
33
|
...routingTolerances.shape,
|