@tscircuit/props 0.0.664 → 0.0.665

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 CHANGED
@@ -360,6 +360,13 @@ export interface AutoroutingPhaseProps extends RoutingTolerances, FanoutProps {
360
360
  key?: any;
361
361
  name?: string;
362
362
  autorouter?: AutorouterProp;
363
+ /**
364
+ * Custom async routing function accepting simple route JSON and returning the
365
+ * routing result, using the same contract as autorouter.algorithmFn. Parsing
366
+ * preserves the function unchanged. Omitted by default; no aliases or prop
367
+ * conflicts are introduced, and existing phases require no migration.
368
+ */
369
+ algorithmFn?: AutorouterConfig["algorithmFn"];
363
370
  preflightRoutingCheckPolicy?: PreflightRoutingCheckPolicy;
364
371
  phaseIndex?: number;
365
372
  /**
package/dist/index.d.ts CHANGED
@@ -156169,6 +156169,13 @@ interface AutoroutingPhaseProps extends RoutingTolerances, FanoutProps {
156169
156169
  key?: any;
156170
156170
  name?: string;
156171
156171
  autorouter?: AutorouterProp;
156172
+ /**
156173
+ * Custom async routing function accepting simple route JSON and returning the
156174
+ * routing result, using the same contract as autorouter.algorithmFn. Parsing
156175
+ * preserves the function unchanged. Omitted by default; no aliases or prop
156176
+ * conflicts are introduced, and existing phases require no migration.
156177
+ */
156178
+ algorithmFn?: AutorouterConfig["algorithmFn"];
156172
156179
  preflightRoutingCheckPolicy?: PreflightRoutingCheckPolicy;
156173
156180
  phaseIndex?: number;
156174
156181
  /**
@@ -156265,6 +156272,7 @@ declare const autoroutingPhaseProps: z.ZodEffects<z.ZodObject<{
156265
156272
  key: z.ZodOptional<z.ZodAny>;
156266
156273
  name: z.ZodOptional<z.ZodString>;
156267
156274
  autorouter: z.ZodOptional<z.ZodType<AutorouterProp, z.ZodTypeDef, AutorouterProp>>;
156275
+ algorithmFn: z.ZodOptional<z.ZodType<(simpleRouteJson: any) => Promise<any>, z.ZodTypeDef, (simpleRouteJson: any) => Promise<any>>>;
156268
156276
  preflightRoutingCheckPolicy: z.ZodOptional<z.ZodEnum<["none", "basic", "conservative"]>>;
156269
156277
  phaseIndex: z.ZodOptional<z.ZodNumber>;
156270
156278
  pcbTracePaths: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -156430,6 +156438,7 @@ declare const autoroutingPhaseProps: z.ZodEffects<z.ZodObject<{
156430
156438
  minBoardEdgeClearance?: number | undefined;
156431
156439
  minViaHoleDiameter?: number | undefined;
156432
156440
  minViaPadDiameter?: number | undefined;
156441
+ algorithmFn?: ((simpleRouteJson: any) => Promise<any>) | undefined;
156433
156442
  autorouter?: AutorouterProp | undefined;
156434
156443
  preflightRoutingCheckPolicy?: "none" | "basic" | "conservative" | undefined;
156435
156444
  connection?: string | undefined;
@@ -156484,6 +156493,7 @@ declare const autoroutingPhaseProps: z.ZodEffects<z.ZodObject<{
156484
156493
  minBoardEdgeClearance?: string | number | undefined;
156485
156494
  minViaHoleDiameter?: string | number | undefined;
156486
156495
  minViaPadDiameter?: string | number | undefined;
156496
+ algorithmFn?: ((simpleRouteJson: any) => Promise<any>) | undefined;
156487
156497
  autorouter?: AutorouterProp | undefined;
156488
156498
  preflightRoutingCheckPolicy?: "none" | "basic" | "conservative" | undefined;
156489
156499
  connection?: string | undefined;
@@ -156548,6 +156558,7 @@ declare const autoroutingPhaseProps: z.ZodEffects<z.ZodObject<{
156548
156558
  minBoardEdgeClearance?: number | undefined;
156549
156559
  minViaHoleDiameter?: number | undefined;
156550
156560
  minViaPadDiameter?: number | undefined;
156561
+ algorithmFn?: ((simpleRouteJson: any) => Promise<any>) | undefined;
156551
156562
  autorouter?: AutorouterProp | undefined;
156552
156563
  preflightRoutingCheckPolicy?: "none" | "basic" | "conservative" | undefined;
156553
156564
  connection?: string | undefined;
@@ -156602,6 +156613,7 @@ declare const autoroutingPhaseProps: z.ZodEffects<z.ZodObject<{
156602
156613
  minBoardEdgeClearance?: string | number | undefined;
156603
156614
  minViaHoleDiameter?: string | number | undefined;
156604
156615
  minViaPadDiameter?: string | number | undefined;
156616
+ algorithmFn?: ((simpleRouteJson: any) => Promise<any>) | undefined;
156605
156617
  autorouter?: AutorouterProp | undefined;
156606
156618
  preflightRoutingCheckPolicy?: "none" | "basic" | "conservative" | undefined;
156607
156619
  connection?: string | undefined;
package/dist/index.js CHANGED
@@ -18150,6 +18150,7 @@ var autoroutingPhaseProps = z93.object({
18150
18150
  key: z93.any().optional(),
18151
18151
  name: z93.string().optional(),
18152
18152
  autorouter: autorouterProp.optional(),
18153
+ algorithmFn: autorouterConfig.shape.algorithmFn,
18153
18154
  preflightRoutingCheckPolicy: preflightRoutingCheckPolicy.optional(),
18154
18155
  phaseIndex: z93.number().optional(),
18155
18156
  pcbTracePaths: z93.array(fanoutTracePath).optional(),