@tscircuit/props 0.0.561 → 0.0.562
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 +4 -0
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/lib/components/footprint.ts +2 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -725,6 +725,7 @@ export interface FiducialProps extends CommonComponentProps {
|
|
|
725
725
|
```ts
|
|
726
726
|
export interface FootprintProps {
|
|
727
727
|
children?: any;
|
|
728
|
+
name?: string;
|
|
728
729
|
/**
|
|
729
730
|
* The layer that the footprint is designed for. If you set this to "top"
|
|
730
731
|
* then it means the children were intended to represent the top layer. If
|
package/dist/index.d.ts
CHANGED
|
@@ -104337,6 +104337,7 @@ type FootprintInsertionDirection = "from_above" | "from_left" | "from_right" | "
|
|
|
104337
104337
|
declare const footprintInsertionDirection: z.ZodEnum<["from_above", "from_left", "from_right", "from_front", "from_back"]>;
|
|
104338
104338
|
interface FootprintProps {
|
|
104339
104339
|
children?: any;
|
|
104340
|
+
name?: string;
|
|
104340
104341
|
/**
|
|
104341
104342
|
* The layer that the footprint is designed for. If you set this to "top"
|
|
104342
104343
|
* then it means the children were intended to represent the top layer. If
|
|
@@ -104364,6 +104365,7 @@ interface FootprintProps {
|
|
|
104364
104365
|
}
|
|
104365
104366
|
declare const footprintProps: z.ZodObject<{
|
|
104366
104367
|
children: z.ZodOptional<z.ZodAny>;
|
|
104368
|
+
name: z.ZodOptional<z.ZodString>;
|
|
104367
104369
|
originalLayer: z.ZodOptional<z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodEnum<["top", "bottom", "inner1", "inner2", "inner3", "inner4", "inner5", "inner6"]>, z.ZodObject<{
|
|
104368
104370
|
name: z.ZodEnum<["top", "bottom", "inner1", "inner2", "inner3", "inner4", "inner5", "inner6"]>;
|
|
104369
104371
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -104377,12 +104379,14 @@ declare const footprintProps: z.ZodObject<{
|
|
|
104377
104379
|
src: z.ZodOptional<z.ZodType<FootprintProp, z.ZodTypeDef, FootprintProp>>;
|
|
104378
104380
|
insertionDirection: z.ZodOptional<z.ZodEnum<["from_above", "from_left", "from_right", "from_front", "from_back"]>>;
|
|
104379
104381
|
}, "strip", z.ZodTypeAny, {
|
|
104382
|
+
name?: string | undefined;
|
|
104380
104383
|
children?: any;
|
|
104381
104384
|
circuitJson?: any[] | undefined;
|
|
104382
104385
|
originalLayer?: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | undefined;
|
|
104383
104386
|
src?: FootprintProp | undefined;
|
|
104384
104387
|
insertionDirection?: "from_above" | "from_left" | "from_right" | "from_front" | "from_back" | undefined;
|
|
104385
104388
|
}, {
|
|
104389
|
+
name?: string | undefined;
|
|
104386
104390
|
children?: any;
|
|
104387
104391
|
circuitJson?: any[] | undefined;
|
|
104388
104392
|
originalLayer?: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | {
|
package/dist/index.js
CHANGED
|
@@ -17265,6 +17265,7 @@ var footprintInsertionDirection = z65.enum([
|
|
|
17265
17265
|
expectTypesMatch(true);
|
|
17266
17266
|
var footprintProps = z65.object({
|
|
17267
17267
|
children: z65.any().optional(),
|
|
17268
|
+
name: z65.string().optional(),
|
|
17268
17269
|
originalLayer: layer_ref5.default("top").optional(),
|
|
17269
17270
|
circuitJson: z65.array(z65.any()).optional(),
|
|
17270
17271
|
src: footprintProp.describe("Can be a footprint or kicad string").optional(),
|