@tscircuit/props 0.0.398 → 0.0.400
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 +5 -0
- package/dist/index.d.ts +11 -0
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/lib/components/footprint.ts +7 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -581,6 +581,7 @@ export interface FabricationNoteTextProps extends PcbLayoutProps {
|
|
|
581
581
|
|
|
582
582
|
```ts
|
|
583
583
|
export interface FootprintProps {
|
|
584
|
+
children?: any;
|
|
584
585
|
/**
|
|
585
586
|
* The layer that the footprint is designed for. If you set this to "top"
|
|
586
587
|
* then it means the children were intended to represent the top layer. If
|
|
@@ -592,6 +593,10 @@ export interface FootprintProps {
|
|
|
592
593
|
* "top" and this is most intuitive.
|
|
593
594
|
*/
|
|
594
595
|
originalLayer?: LayerRef;
|
|
596
|
+
/**
|
|
597
|
+
* Serialized circuit JSON describing a precompiled footprint
|
|
598
|
+
*/
|
|
599
|
+
circuitJson?: any[];
|
|
595
600
|
}
|
|
596
601
|
```
|
|
597
602
|
|
package/dist/index.d.ts
CHANGED
|
@@ -36328,6 +36328,7 @@ declare const traceProps: z.ZodUnion<[z.ZodObject<{
|
|
|
36328
36328
|
type TraceProps = z.input<typeof traceProps>;
|
|
36329
36329
|
|
|
36330
36330
|
interface FootprintProps {
|
|
36331
|
+
children?: any;
|
|
36331
36332
|
/**
|
|
36332
36333
|
* The layer that the footprint is designed for. If you set this to "top"
|
|
36333
36334
|
* then it means the children were intended to represent the top layer. If
|
|
@@ -36339,8 +36340,13 @@ interface FootprintProps {
|
|
|
36339
36340
|
* "top" and this is most intuitive.
|
|
36340
36341
|
*/
|
|
36341
36342
|
originalLayer?: LayerRef;
|
|
36343
|
+
/**
|
|
36344
|
+
* Serialized circuit JSON describing a precompiled footprint
|
|
36345
|
+
*/
|
|
36346
|
+
circuitJson?: any[];
|
|
36342
36347
|
}
|
|
36343
36348
|
declare const footprintProps: z.ZodObject<{
|
|
36349
|
+
children: z.ZodOptional<z.ZodAny>;
|
|
36344
36350
|
originalLayer: z.ZodOptional<z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodEnum<["top", "bottom", "inner1", "inner2", "inner3", "inner4", "inner5", "inner6"]>, z.ZodObject<{
|
|
36345
36351
|
name: z.ZodEnum<["top", "bottom", "inner1", "inner2", "inner3", "inner4", "inner5", "inner6"]>;
|
|
36346
36352
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -36350,9 +36356,14 @@ declare const footprintProps: z.ZodObject<{
|
|
|
36350
36356
|
}>]>, "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6", "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | {
|
|
36351
36357
|
name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
36352
36358
|
}>>>;
|
|
36359
|
+
circuitJson: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
|
|
36353
36360
|
}, "strip", z.ZodTypeAny, {
|
|
36361
|
+
children?: any;
|
|
36362
|
+
circuitJson?: any[] | undefined;
|
|
36354
36363
|
originalLayer?: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | undefined;
|
|
36355
36364
|
}, {
|
|
36365
|
+
children?: any;
|
|
36366
|
+
circuitJson?: any[] | undefined;
|
|
36356
36367
|
originalLayer?: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | {
|
|
36357
36368
|
name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
36358
36369
|
} | undefined;
|
package/dist/index.js
CHANGED
|
@@ -1253,7 +1253,9 @@ var traceProps = z51.union([
|
|
|
1253
1253
|
import { layer_ref as layer_ref4 } from "circuit-json";
|
|
1254
1254
|
import { z as z52 } from "zod";
|
|
1255
1255
|
var footprintProps = z52.object({
|
|
1256
|
-
|
|
1256
|
+
children: z52.any().optional(),
|
|
1257
|
+
originalLayer: layer_ref4.default("top").optional(),
|
|
1258
|
+
circuitJson: z52.array(z52.any()).optional()
|
|
1257
1259
|
});
|
|
1258
1260
|
expectTypesMatch(true);
|
|
1259
1261
|
|