@tscircuit/props 0.0.503 → 0.0.505

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.
@@ -297,6 +297,7 @@ export type PartsEngine = {
297
297
  fetchPartCircuitJson?: (params: {
298
298
  supplierPartNumber?: string
299
299
  manufacturerPartNumber?: string
300
+ platformFetch?: typeof fetch
300
301
  }) =>
301
302
  | Promise<AnyCircuitElement[] | undefined>
302
303
  | AnyCircuitElement[]
@@ -4,6 +4,7 @@ import { expectTypesMatch } from "lib/typecheck"
4
4
  export interface NetProps {
5
5
  name: string
6
6
  connectsTo?: string | string[]
7
+ routingPhaseIndex?: number | null
7
8
  highlightColor?: string
8
9
  isPowerNet?: boolean
9
10
  isGroundNet?: boolean
@@ -12,6 +13,7 @@ export interface NetProps {
12
13
  export const netProps = z.object({
13
14
  name: z.string(),
14
15
  connectsTo: z.string().or(z.array(z.string())).optional(),
16
+ routingPhaseIndex: z.number().nullable().optional(),
15
17
  highlightColor: z.string().optional(),
16
18
  isPowerNet: z.boolean().optional(),
17
19
  isGroundNet: z.boolean().optional(),
@@ -44,6 +44,7 @@ const baseTraceProps = z.object({
44
44
  pcbPathRelativeTo: z.string().optional(),
45
45
  pcbPath: pcbPath.optional(),
46
46
  pcbPaths: z.array(pcbPath).optional(),
47
+ routingPhaseIndex: z.number().nullable().optional(),
47
48
  pcbStraightLine: z
48
49
  .boolean()
49
50
  .optional()
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tscircuit/props",
3
- "version": "0.0.503",
3
+ "version": "0.0.505",
4
4
  "description": "Props for tscircuit builtin component types",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",