circuit-json 0.0.109 → 0.0.110
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 +893 -5
- package/dist/index.d.mts +181 -60
- package/dist/index.mjs +19 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +4 -2
package/dist/index.d.mts
CHANGED
|
@@ -92,6 +92,44 @@ type Size = z.infer<typeof size>;
|
|
|
92
92
|
*/
|
|
93
93
|
declare const getZodPrefixedIdWithDefault: (prefix: string) => z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
94
94
|
|
|
95
|
+
declare const supplier_name: z.ZodEnum<["jlcpcb", "macrofab", "pcbway", "digikey", "mouser", "lcsc"]>;
|
|
96
|
+
type SupplierName = z.infer<typeof supplier_name>;
|
|
97
|
+
|
|
98
|
+
interface SourceComponentBase {
|
|
99
|
+
type: "source_component";
|
|
100
|
+
ftype?: string;
|
|
101
|
+
source_component_id: string;
|
|
102
|
+
name: string;
|
|
103
|
+
manufacturer_part_number?: string;
|
|
104
|
+
supplier_part_numbers?: Partial<Record<SupplierName, string[]>>;
|
|
105
|
+
display_value?: string;
|
|
106
|
+
}
|
|
107
|
+
declare const source_component_base: z.ZodObject<{
|
|
108
|
+
type: z.ZodLiteral<"source_component">;
|
|
109
|
+
ftype: z.ZodOptional<z.ZodString>;
|
|
110
|
+
source_component_id: z.ZodString;
|
|
111
|
+
name: z.ZodString;
|
|
112
|
+
manufacturer_part_number: z.ZodOptional<z.ZodString>;
|
|
113
|
+
supplier_part_numbers: z.ZodOptional<z.ZodRecord<z.ZodEnum<["jlcpcb", "macrofab", "pcbway", "digikey", "mouser", "lcsc"]>, z.ZodArray<z.ZodString, "many">>>;
|
|
114
|
+
display_value: z.ZodOptional<z.ZodString>;
|
|
115
|
+
}, "strip", z.ZodTypeAny, {
|
|
116
|
+
type: "source_component";
|
|
117
|
+
source_component_id: string;
|
|
118
|
+
name: string;
|
|
119
|
+
ftype?: string | undefined;
|
|
120
|
+
manufacturer_part_number?: string | undefined;
|
|
121
|
+
supplier_part_numbers?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
|
|
122
|
+
display_value?: string | undefined;
|
|
123
|
+
}, {
|
|
124
|
+
type: "source_component";
|
|
125
|
+
source_component_id: string;
|
|
126
|
+
name: string;
|
|
127
|
+
ftype?: string | undefined;
|
|
128
|
+
manufacturer_part_number?: string | undefined;
|
|
129
|
+
supplier_part_numbers?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
|
|
130
|
+
display_value?: string | undefined;
|
|
131
|
+
}>;
|
|
132
|
+
|
|
95
133
|
declare const source_simple_capacitor: z.ZodObject<z.objectUtil.extendShape<{
|
|
96
134
|
type: z.ZodLiteral<"source_component">;
|
|
97
135
|
ftype: z.ZodOptional<z.ZodString>;
|
|
@@ -122,8 +160,14 @@ declare const source_simple_capacitor: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
122
160
|
supplier_part_numbers?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
|
|
123
161
|
display_value?: string | undefined;
|
|
124
162
|
}>;
|
|
125
|
-
type SourceSimpleCapacitor = z.infer<typeof source_simple_capacitor>;
|
|
126
163
|
type SourceSimpleCapacitorInput = z.input<typeof source_simple_capacitor>;
|
|
164
|
+
/**
|
|
165
|
+
* Defines a simple capacitor component
|
|
166
|
+
*/
|
|
167
|
+
interface SourceSimpleCapacitor extends SourceComponentBase {
|
|
168
|
+
ftype: "simple_capacitor";
|
|
169
|
+
capacitance: number;
|
|
170
|
+
}
|
|
127
171
|
|
|
128
172
|
declare const source_simple_resistor: z.ZodObject<z.objectUtil.extendShape<{
|
|
129
173
|
type: z.ZodLiteral<"source_component">;
|
|
@@ -155,8 +199,14 @@ declare const source_simple_resistor: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
155
199
|
supplier_part_numbers?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
|
|
156
200
|
display_value?: string | undefined;
|
|
157
201
|
}>;
|
|
158
|
-
type SourceSimpleResistor = z.infer<typeof source_simple_resistor>;
|
|
159
202
|
type SourceSimpleResistorInput = z.input<typeof source_simple_resistor>;
|
|
203
|
+
/**
|
|
204
|
+
* Defines a simple resistor component
|
|
205
|
+
*/
|
|
206
|
+
interface SourceSimpleResistor extends SourceComponentBase {
|
|
207
|
+
ftype: "simple_resistor";
|
|
208
|
+
resistance: number;
|
|
209
|
+
}
|
|
160
210
|
|
|
161
211
|
declare const source_simple_diode: z.ZodObject<z.objectUtil.extendShape<{
|
|
162
212
|
type: z.ZodLiteral<"source_component">;
|
|
@@ -185,8 +235,13 @@ declare const source_simple_diode: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
185
235
|
supplier_part_numbers?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
|
|
186
236
|
display_value?: string | undefined;
|
|
187
237
|
}>;
|
|
188
|
-
type SourceSimpleDiode = z.infer<typeof source_simple_diode>;
|
|
189
238
|
type SourceSimpleDiodeInput = z.input<typeof source_simple_diode>;
|
|
239
|
+
/**
|
|
240
|
+
* Defines a simple diode component
|
|
241
|
+
*/
|
|
242
|
+
interface SourceSimpleDiode extends SourceComponentBase {
|
|
243
|
+
ftype: "simple_diode";
|
|
244
|
+
}
|
|
190
245
|
|
|
191
246
|
declare const source_simple_ground: z.ZodObject<z.objectUtil.extendShape<{
|
|
192
247
|
type: z.ZodLiteral<"source_component">;
|
|
@@ -215,8 +270,13 @@ declare const source_simple_ground: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
215
270
|
supplier_part_numbers?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
|
|
216
271
|
display_value?: string | undefined;
|
|
217
272
|
}>;
|
|
218
|
-
type SourceSimpleGround = z.infer<typeof source_simple_ground>;
|
|
219
273
|
type SourceSimpleGroundInput = z.input<typeof source_simple_ground>;
|
|
274
|
+
/**
|
|
275
|
+
* Defines a simple ground component
|
|
276
|
+
*/
|
|
277
|
+
interface SourceSimpleGround extends SourceComponentBase {
|
|
278
|
+
ftype: "simple_ground";
|
|
279
|
+
}
|
|
220
280
|
|
|
221
281
|
/**
|
|
222
282
|
* @deprecated Use source_simple_chip instead. This will be removed in a future version.
|
|
@@ -278,8 +338,13 @@ declare const source_simple_chip: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
278
338
|
supplier_part_numbers?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
|
|
279
339
|
display_value?: string | undefined;
|
|
280
340
|
}>;
|
|
281
|
-
type SourceSimpleChip = z.infer<typeof source_simple_chip>;
|
|
282
341
|
type SourceSimpleChipInput = z.input<typeof source_simple_chip>;
|
|
342
|
+
/**
|
|
343
|
+
* Defines a simple integrated circuit component
|
|
344
|
+
*/
|
|
345
|
+
interface SourceSimpleChip extends SourceComponentBase {
|
|
346
|
+
ftype: "simple_chip";
|
|
347
|
+
}
|
|
283
348
|
|
|
284
349
|
declare const source_led: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
285
350
|
type: z.ZodLiteral<"source_component">;
|
|
@@ -310,8 +375,13 @@ declare const source_led: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.exte
|
|
|
310
375
|
supplier_part_numbers?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
|
|
311
376
|
display_value?: string | undefined;
|
|
312
377
|
}>;
|
|
313
|
-
type SourceLed = z.infer<typeof source_led>;
|
|
314
378
|
type SourceLedInput = z.input<typeof source_led>;
|
|
379
|
+
/**
|
|
380
|
+
* Defines an LED component that extends the simple diode
|
|
381
|
+
*/
|
|
382
|
+
interface SourceLed extends SourceComponentBase {
|
|
383
|
+
ftype: "led";
|
|
384
|
+
}
|
|
315
385
|
|
|
316
386
|
declare const source_simple_power_source: z.ZodObject<z.objectUtil.extendShape<{
|
|
317
387
|
type: z.ZodLiteral<"source_component">;
|
|
@@ -343,8 +413,14 @@ declare const source_simple_power_source: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
343
413
|
supplier_part_numbers?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
|
|
344
414
|
display_value?: string | undefined;
|
|
345
415
|
}>;
|
|
346
|
-
type SourceSimplePowerSource = z.infer<typeof source_simple_power_source>;
|
|
347
416
|
type SourceSimplePowerSourceInput = z.input<typeof source_simple_power_source>;
|
|
417
|
+
/**
|
|
418
|
+
* Defines a simple power source component
|
|
419
|
+
*/
|
|
420
|
+
interface SourceSimplePowerSource extends SourceComponentBase {
|
|
421
|
+
ftype: "simple_power_source";
|
|
422
|
+
voltage: number;
|
|
423
|
+
}
|
|
348
424
|
|
|
349
425
|
declare const any_source_component: z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
|
|
350
426
|
type: z.ZodLiteral<"source_component">;
|
|
@@ -767,7 +843,18 @@ declare const source_port: z.ZodObject<{
|
|
|
767
843
|
pin_number?: number | undefined;
|
|
768
844
|
port_hints?: string[] | undefined;
|
|
769
845
|
}>;
|
|
770
|
-
type
|
|
846
|
+
type SourcePortInput = z.input<typeof source_port>;
|
|
847
|
+
/**
|
|
848
|
+
* Defines a source port that can be connected to other components
|
|
849
|
+
*/
|
|
850
|
+
interface SourcePort {
|
|
851
|
+
type: "source_port";
|
|
852
|
+
pin_number?: number;
|
|
853
|
+
port_hints?: string[];
|
|
854
|
+
name: string;
|
|
855
|
+
source_port_id: string;
|
|
856
|
+
source_component_id: string;
|
|
857
|
+
}
|
|
771
858
|
|
|
772
859
|
interface SourceTrace {
|
|
773
860
|
type: "source_trace";
|
|
@@ -796,44 +883,6 @@ declare const source_trace: z.ZodObject<{
|
|
|
796
883
|
subcircuit_connectivity_map_key?: string | undefined;
|
|
797
884
|
}>;
|
|
798
885
|
|
|
799
|
-
declare const supplier_name: z.ZodEnum<["jlcpcb", "macrofab", "pcbway", "digikey", "mouser", "lcsc"]>;
|
|
800
|
-
type SupplierName = z.infer<typeof supplier_name>;
|
|
801
|
-
|
|
802
|
-
interface SourceComponentBase {
|
|
803
|
-
type: "source_component";
|
|
804
|
-
ftype?: string;
|
|
805
|
-
source_component_id: string;
|
|
806
|
-
name: string;
|
|
807
|
-
manufacturer_part_number?: string;
|
|
808
|
-
supplier_part_numbers?: Partial<Record<SupplierName, string[]>>;
|
|
809
|
-
display_value?: string;
|
|
810
|
-
}
|
|
811
|
-
declare const source_component_base: z.ZodObject<{
|
|
812
|
-
type: z.ZodLiteral<"source_component">;
|
|
813
|
-
ftype: z.ZodOptional<z.ZodString>;
|
|
814
|
-
source_component_id: z.ZodString;
|
|
815
|
-
name: z.ZodString;
|
|
816
|
-
manufacturer_part_number: z.ZodOptional<z.ZodString>;
|
|
817
|
-
supplier_part_numbers: z.ZodOptional<z.ZodRecord<z.ZodEnum<["jlcpcb", "macrofab", "pcbway", "digikey", "mouser", "lcsc"]>, z.ZodArray<z.ZodString, "many">>>;
|
|
818
|
-
display_value: z.ZodOptional<z.ZodString>;
|
|
819
|
-
}, "strip", z.ZodTypeAny, {
|
|
820
|
-
type: "source_component";
|
|
821
|
-
source_component_id: string;
|
|
822
|
-
name: string;
|
|
823
|
-
ftype?: string | undefined;
|
|
824
|
-
manufacturer_part_number?: string | undefined;
|
|
825
|
-
supplier_part_numbers?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
|
|
826
|
-
display_value?: string | undefined;
|
|
827
|
-
}, {
|
|
828
|
-
type: "source_component";
|
|
829
|
-
source_component_id: string;
|
|
830
|
-
name: string;
|
|
831
|
-
ftype?: string | undefined;
|
|
832
|
-
manufacturer_part_number?: string | undefined;
|
|
833
|
-
supplier_part_numbers?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
|
|
834
|
-
display_value?: string | undefined;
|
|
835
|
-
}>;
|
|
836
|
-
|
|
837
886
|
declare const source_group: z.ZodObject<{
|
|
838
887
|
type: z.ZodLiteral<"source_group">;
|
|
839
888
|
source_group_id: z.ZodString;
|
|
@@ -914,8 +963,14 @@ declare const source_simple_battery: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
914
963
|
supplier_part_numbers?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
|
|
915
964
|
display_value?: string | undefined;
|
|
916
965
|
}>;
|
|
917
|
-
type SourceSimpleBattery = z.infer<typeof source_simple_battery>;
|
|
918
966
|
type SourceSimpleBatteryInput = z.input<typeof source_simple_battery>;
|
|
967
|
+
/**
|
|
968
|
+
* Defines a simple battery component
|
|
969
|
+
*/
|
|
970
|
+
interface SourceSimpleBattery extends SourceComponentBase {
|
|
971
|
+
ftype: "simple_battery";
|
|
972
|
+
capacity: number;
|
|
973
|
+
}
|
|
919
974
|
|
|
920
975
|
declare const source_simple_inductor: z.ZodObject<z.objectUtil.extendShape<{
|
|
921
976
|
type: z.ZodLiteral<"source_component">;
|
|
@@ -947,10 +1002,19 @@ declare const source_simple_inductor: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
947
1002
|
supplier_part_numbers?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
|
|
948
1003
|
display_value?: string | undefined;
|
|
949
1004
|
}>;
|
|
950
|
-
type SourceSimpleInductor = z.infer<typeof source_simple_inductor>;
|
|
951
1005
|
type SourceSimpleInductorInput = z.input<typeof source_simple_inductor>;
|
|
1006
|
+
/**
|
|
1007
|
+
* Defines a simple inductor component
|
|
1008
|
+
*/
|
|
1009
|
+
interface SourceSimpleInductor extends SourceComponentBase {
|
|
1010
|
+
ftype: "simple_inductor";
|
|
1011
|
+
inductance: number;
|
|
1012
|
+
}
|
|
952
1013
|
|
|
953
1014
|
declare const source_simple_push_button: z.ZodObject<z.objectUtil.extendShape<{
|
|
1015
|
+
/**
|
|
1016
|
+
* Defines a simple push button component
|
|
1017
|
+
*/
|
|
954
1018
|
type: z.ZodLiteral<"source_component">;
|
|
955
1019
|
ftype: z.ZodOptional<z.ZodString>;
|
|
956
1020
|
source_component_id: z.ZodString;
|
|
@@ -977,8 +1041,13 @@ declare const source_simple_push_button: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
977
1041
|
supplier_part_numbers?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
|
|
978
1042
|
display_value?: string | undefined;
|
|
979
1043
|
}>;
|
|
980
|
-
type
|
|
981
|
-
|
|
1044
|
+
type SourceSimplePushButtonInput = z.input<typeof source_simple_push_button>;
|
|
1045
|
+
/**
|
|
1046
|
+
* Defines a simple push button component
|
|
1047
|
+
*/
|
|
1048
|
+
interface SourceSimplePushButton extends SourceComponentBase {
|
|
1049
|
+
ftype: "simple_push_button";
|
|
1050
|
+
}
|
|
982
1051
|
|
|
983
1052
|
declare const source_simple_potentiometer: z.ZodObject<z.objectUtil.extendShape<{
|
|
984
1053
|
type: z.ZodLiteral<"source_component">;
|
|
@@ -1017,6 +1086,9 @@ declare const source_simple_crystal: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
1017
1086
|
type: z.ZodLiteral<"source_component">;
|
|
1018
1087
|
ftype: z.ZodOptional<z.ZodString>;
|
|
1019
1088
|
source_component_id: z.ZodString;
|
|
1089
|
+
/**
|
|
1090
|
+
* Defines a simple crystal oscillator component
|
|
1091
|
+
*/
|
|
1020
1092
|
name: z.ZodString;
|
|
1021
1093
|
manufacturer_part_number: z.ZodOptional<z.ZodString>;
|
|
1022
1094
|
supplier_part_numbers: z.ZodOptional<z.ZodRecord<z.ZodEnum<["jlcpcb", "macrofab", "pcbway", "digikey", "mouser", "lcsc"]>, z.ZodArray<z.ZodString, "many">>>;
|
|
@@ -1046,8 +1118,15 @@ declare const source_simple_crystal: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
1046
1118
|
display_value?: string | undefined;
|
|
1047
1119
|
load_capacitance?: number | undefined;
|
|
1048
1120
|
}>;
|
|
1049
|
-
type SourceSimpleCrystal = z.infer<typeof source_simple_crystal>;
|
|
1050
1121
|
type SourceSimpleCrystalInput = z.input<typeof source_simple_crystal>;
|
|
1122
|
+
/**
|
|
1123
|
+
* Defines a simple crystal oscillator component
|
|
1124
|
+
*/
|
|
1125
|
+
interface SourceSimpleCrystal extends SourceComponentBase {
|
|
1126
|
+
ftype: "simple_crystal";
|
|
1127
|
+
frequency: number;
|
|
1128
|
+
load_capacitance?: number;
|
|
1129
|
+
}
|
|
1051
1130
|
|
|
1052
1131
|
declare const source_simple_pin_header: z.ZodObject<z.objectUtil.extendShape<{
|
|
1053
1132
|
type: z.ZodLiteral<"source_component">;
|
|
@@ -1085,6 +1164,14 @@ declare const source_simple_pin_header: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
1085
1164
|
type SourceSimplePinHeader = z.infer<typeof source_simple_pin_header>;
|
|
1086
1165
|
type SourceSimplePinHeaderInput = z.input<typeof source_simple_pin_header>;
|
|
1087
1166
|
|
|
1167
|
+
interface SchematicBox {
|
|
1168
|
+
type: "schematic_box";
|
|
1169
|
+
schematic_component_id: string;
|
|
1170
|
+
width: number;
|
|
1171
|
+
height: number;
|
|
1172
|
+
x: number;
|
|
1173
|
+
y: number;
|
|
1174
|
+
}
|
|
1088
1175
|
declare const schematic_box: z.ZodObject<{
|
|
1089
1176
|
type: z.ZodLiteral<"schematic_box">;
|
|
1090
1177
|
schematic_component_id: z.ZodString;
|
|
@@ -1108,8 +1195,14 @@ declare const schematic_box: z.ZodObject<{
|
|
|
1108
1195
|
schematic_component_id: string;
|
|
1109
1196
|
}>;
|
|
1110
1197
|
type SchematicBoxInput = z.input<typeof schematic_box>;
|
|
1111
|
-
type SchematicBox = z.infer<typeof schematic_box>;
|
|
1112
1198
|
|
|
1199
|
+
interface SchematicPath {
|
|
1200
|
+
type: "schematic_path";
|
|
1201
|
+
schematic_component_id: string;
|
|
1202
|
+
fill_color?: "red" | "blue";
|
|
1203
|
+
is_filled?: boolean;
|
|
1204
|
+
points: Point[];
|
|
1205
|
+
}
|
|
1113
1206
|
declare const schematic_path: z.ZodObject<{
|
|
1114
1207
|
type: z.ZodLiteral<"schematic_path">;
|
|
1115
1208
|
schematic_component_id: z.ZodString;
|
|
@@ -1145,7 +1238,6 @@ declare const schematic_path: z.ZodObject<{
|
|
|
1145
1238
|
is_filled?: boolean | undefined;
|
|
1146
1239
|
}>;
|
|
1147
1240
|
type SchematicPathInput = z.input<typeof schematic_path>;
|
|
1148
|
-
type SchematicPath = z.infer<typeof schematic_path>;
|
|
1149
1241
|
|
|
1150
1242
|
declare const schematic_pin_styles: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1151
1243
|
left_margin: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
@@ -1625,6 +1717,19 @@ declare const schematic_component: z.ZodObject<{
|
|
|
1625
1717
|
}>;
|
|
1626
1718
|
type SchematicComponentInput = z.input<typeof schematic_component>;
|
|
1627
1719
|
|
|
1720
|
+
/**
|
|
1721
|
+
* Defines a line on the schematic, this can be used for adding arbitrary lines
|
|
1722
|
+
* to a schematic, but don't use it for drawing traces, schematic boxes or where
|
|
1723
|
+
* other schematic elements are more appropriate.
|
|
1724
|
+
*/
|
|
1725
|
+
interface SchematicLine {
|
|
1726
|
+
type: "schematic_line";
|
|
1727
|
+
schematic_component_id: string;
|
|
1728
|
+
x1: number;
|
|
1729
|
+
x2: number;
|
|
1730
|
+
y1: number;
|
|
1731
|
+
y2: number;
|
|
1732
|
+
}
|
|
1628
1733
|
declare const schematic_line: z.ZodObject<{
|
|
1629
1734
|
type: z.ZodLiteral<"schematic_line">;
|
|
1630
1735
|
schematic_component_id: z.ZodString;
|
|
@@ -1648,7 +1753,6 @@ declare const schematic_line: z.ZodObject<{
|
|
|
1648
1753
|
y2: string | number;
|
|
1649
1754
|
}>;
|
|
1650
1755
|
type SchematicLineInput = z.input<typeof schematic_line>;
|
|
1651
|
-
type SchematicLine = z.infer<typeof schematic_line>;
|
|
1652
1756
|
|
|
1653
1757
|
interface SchematicTraceEdge {
|
|
1654
1758
|
from: {
|
|
@@ -1781,6 +1885,19 @@ declare const schematic_trace: z.ZodObject<{
|
|
|
1781
1885
|
}>;
|
|
1782
1886
|
type SchematicTraceInput = z.input<typeof schematic_trace>;
|
|
1783
1887
|
|
|
1888
|
+
interface SchematicText {
|
|
1889
|
+
type: "schematic_text";
|
|
1890
|
+
schematic_component_id: string;
|
|
1891
|
+
schematic_text_id: string;
|
|
1892
|
+
text: string;
|
|
1893
|
+
position: {
|
|
1894
|
+
x: number;
|
|
1895
|
+
y: number;
|
|
1896
|
+
};
|
|
1897
|
+
rotation: number;
|
|
1898
|
+
anchor: "center" | "left" | "right" | "top" | "bottom";
|
|
1899
|
+
color: string;
|
|
1900
|
+
}
|
|
1784
1901
|
declare const schematic_text: z.ZodObject<{
|
|
1785
1902
|
type: z.ZodLiteral<"schematic_text">;
|
|
1786
1903
|
schematic_component_id: z.ZodString;
|
|
@@ -1825,7 +1942,6 @@ declare const schematic_text: z.ZodObject<{
|
|
|
1825
1942
|
color?: string | undefined;
|
|
1826
1943
|
}>;
|
|
1827
1944
|
type SchematicTextInput = z.input<typeof schematic_text>;
|
|
1828
|
-
type SchematicText = z.infer<typeof schematic_text>;
|
|
1829
1945
|
|
|
1830
1946
|
interface SchematicPort {
|
|
1831
1947
|
type: "schematic_port";
|
|
@@ -1952,9 +2068,15 @@ declare const schematic_net_label: z.ZodObject<{
|
|
|
1952
2068
|
type SchematicNetLabelInput = z.input<typeof schematic_net_label>;
|
|
1953
2069
|
type SchematicNetLabel = z.infer<typeof schematic_net_label>;
|
|
1954
2070
|
|
|
2071
|
+
interface SchematicError {
|
|
2072
|
+
type: "schematic_error";
|
|
2073
|
+
schematic_error_id: string;
|
|
2074
|
+
error_type: "schematic_port_not_found";
|
|
2075
|
+
message: string;
|
|
2076
|
+
}
|
|
1955
2077
|
declare const schematic_error: z.ZodObject<{
|
|
1956
|
-
schematic_error_id: z.ZodString;
|
|
1957
2078
|
type: z.ZodLiteral<"schematic_error">;
|
|
2079
|
+
schematic_error_id: z.ZodString;
|
|
1958
2080
|
error_type: z.ZodLiteral<"schematic_port_not_found">;
|
|
1959
2081
|
message: z.ZodString;
|
|
1960
2082
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -1969,7 +2091,6 @@ declare const schematic_error: z.ZodObject<{
|
|
|
1969
2091
|
error_type: "schematic_port_not_found";
|
|
1970
2092
|
}>;
|
|
1971
2093
|
type SchematicErrorInput = z.input<typeof schematic_error>;
|
|
1972
|
-
type SchematicError = z.infer<typeof schematic_error>;
|
|
1973
2094
|
|
|
1974
2095
|
declare const schematic_debug_object_base: z.ZodObject<{
|
|
1975
2096
|
type: z.ZodLiteral<"schematic_debug_object">;
|
|
@@ -7246,8 +7367,8 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
|
|
|
7246
7367
|
fill_color?: "red" | "blue" | undefined;
|
|
7247
7368
|
is_filled?: boolean | undefined;
|
|
7248
7369
|
}>, z.ZodObject<{
|
|
7249
|
-
schematic_error_id: z.ZodString;
|
|
7250
7370
|
type: z.ZodLiteral<"schematic_error">;
|
|
7371
|
+
schematic_error_id: z.ZodString;
|
|
7251
7372
|
error_type: z.ZodLiteral<"schematic_port_not_found">;
|
|
7252
7373
|
message: z.ZodString;
|
|
7253
7374
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -10222,8 +10343,8 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
|
|
|
10222
10343
|
fill_color?: "red" | "blue" | undefined;
|
|
10223
10344
|
is_filled?: boolean | undefined;
|
|
10224
10345
|
}>, z.ZodObject<{
|
|
10225
|
-
schematic_error_id: z.ZodString;
|
|
10226
10346
|
type: z.ZodLiteral<"schematic_error">;
|
|
10347
|
+
schematic_error_id: z.ZodString;
|
|
10227
10348
|
error_type: z.ZodLiteral<"schematic_port_not_found">;
|
|
10228
10349
|
message: z.ZodString;
|
|
10229
10350
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -10576,4 +10697,4 @@ type AnySoupElement = AnyCircuitElement;
|
|
|
10576
10697
|
*/
|
|
10577
10698
|
type AnySoupElementInput = AnyCircuitElementInput;
|
|
10578
10699
|
|
|
10579
|
-
export { type AnyCircuitElement, type AnyCircuitElementInput, type AnySoupElement, type AnySoupElementInput, type AnySourceComponent, type CadComponent, type CadComponentInput, type Distance, type InputPoint, type InputPosition, type InputRotation, type LayerRef, type LayerRefInput, type Length, type PCBBoard, type PCBComponent, type PCBFabricationNotePath, type PCBFabricationNoteText, type PCBHole, type PCBHoleInput, type PCBKeepout, type PCBKeepoutInput, type PCBMissingFootprintError, type PCBPlacementError, type PCBPlatedHole, type PCBPlatedHoleInput, type PCBPort, type PCBPortInput, type PCBPortNotMatchedError, type PCBSMTPad, type PCBSMTPadInput, type PCBSilkscreenLine, type PCBSilkscreenText, type PCBSolderPasteInput, type PCBText, type PCBTrace, type PCBTraceError, type PCBTraceHint, type PCBTraceInput, type PCBVia, type PcbBoard, type PcbBoardInput, type PcbCircuitElement, type PcbComponent, type PcbComponentInput, type PcbFabricationNotePath, type PcbFabricationNotePathInput, type PcbFabricationNoteText, type PcbFabricationNoteTextInput, type PcbHole, type PcbHoleCircleOrSquare, type PcbHoleCircleOrSquareInput, type PcbHoleOval, type PcbHoleOvalInput, type PcbMissingFootprintError, type PcbMissingFootprintErrorInput, type PcbPlacementError, type PcbPlacementErrorInput, type PcbPlatedHole, type PcbPlatedHoleCircle, type PcbPlatedHoleInput, type PcbPlatedHoleOval, type PcbPort, type PcbPortInput, type PcbPortNotMatchedError, type PcbPortNotMatchedErrorInput, type PcbRouteHint, type PcbRouteHintInput, type PcbRouteHints, type PcbRouteHintsInput, type PcbSilkscreenCircle, type PcbSilkscreenCircleInput, type PcbSilkscreenLine, type PcbSilkscreenLineInput, type PcbSilkscreenOval, type PcbSilkscreenOvalDeprecated, type PcbSilkscreenOvalInput, type PcbSilkscreenPath, type PcbSilkscreenPathDeprecated, type PcbSilkscreenPathInput, type PcbSilkscreenRect, type PcbSilkscreenRectInput, type PcbSilkscreenRectOld, type PcbSilkscreenText, type PcbSilkscreenTextInput, type PcbSmtPad, type PcbSmtPadCircle, type PcbSmtPadRect, type PcbSmtPadRotatedRect, type PcbSolderPaste, type PcbSolderPasteCircle, type PcbSolderPasteRect, type PcbText, type PcbTextInput, type PcbTrace, type PcbTraceError, type PcbTraceErrorInput, type PcbTraceHint, type PcbTraceHintInput, type PcbTraceInput, type PcbTraceRoutePoint, type PcbTraceRoutePointVia, type PcbTraceRoutePointWire, type PcbVia, type PcbViaInput, type Point, type Point3, type Position, type Rotation, type RouteHintPoint, type RouteHintPointInput, type SchematicBox, type SchematicBoxInput, type SchematicComponent, type SchematicComponentInput, type SchematicDebugLine, type SchematicDebugObject, type SchematicDebugObjectInput, type SchematicDebugPoint, type SchematicDebugRect, type SchematicError, type SchematicErrorInput, type SchematicLine, type SchematicLineInput, type SchematicNetLabel, type SchematicNetLabelInput, type SchematicPath, type SchematicPathInput, type SchematicPort, type SchematicPortArrangement, type SchematicPortArrangementBySides, type SchematicPortArrangementBySize, type SchematicPortInput, type SchematicText, type SchematicTextInput, type SchematicTrace, type SchematicTraceEdge, type SchematicTraceInput, type SchematicVoltageProbe, type SchematicVoltageProbeInput, type Size, type SourceComponentBase, type SourceGroup, type SourceGroupInput, type SourceLed, type SourceLedInput, type SourceNet, type SourceNetInput, type SourcePort, type SourceSimpleBattery, type SourceSimpleBatteryInput, type SourceSimpleBugInput, type SourceSimpleCapacitor, type SourceSimpleCapacitorInput, type SourceSimpleChip, type SourceSimpleChipInput, type SourceSimpleCrystal, type SourceSimpleCrystalInput, type SourceSimpleDiode, type SourceSimpleDiodeInput, type SourceSimpleGround, type SourceSimpleGroundInput, type SourceSimpleInductor, type SourceSimpleInductorInput, type SourceSimplePinHeader, type SourceSimplePinHeaderInput, type SourceSimplePotentiometer, type SourceSimplePotentiometerInput, type SourceSimplePowerSource, type SourceSimplePowerSourceInput, type
|
|
10700
|
+
export { type AnyCircuitElement, type AnyCircuitElementInput, type AnySoupElement, type AnySoupElementInput, type AnySourceComponent, type CadComponent, type CadComponentInput, type Distance, type InputPoint, type InputPosition, type InputRotation, type LayerRef, type LayerRefInput, type Length, type PCBBoard, type PCBComponent, type PCBFabricationNotePath, type PCBFabricationNoteText, type PCBHole, type PCBHoleInput, type PCBKeepout, type PCBKeepoutInput, type PCBMissingFootprintError, type PCBPlacementError, type PCBPlatedHole, type PCBPlatedHoleInput, type PCBPort, type PCBPortInput, type PCBPortNotMatchedError, type PCBSMTPad, type PCBSMTPadInput, type PCBSilkscreenLine, type PCBSilkscreenText, type PCBSolderPasteInput, type PCBText, type PCBTrace, type PCBTraceError, type PCBTraceHint, type PCBTraceInput, type PCBVia, type PcbBoard, type PcbBoardInput, type PcbCircuitElement, type PcbComponent, type PcbComponentInput, type PcbFabricationNotePath, type PcbFabricationNotePathInput, type PcbFabricationNoteText, type PcbFabricationNoteTextInput, type PcbHole, type PcbHoleCircleOrSquare, type PcbHoleCircleOrSquareInput, type PcbHoleOval, type PcbHoleOvalInput, type PcbMissingFootprintError, type PcbMissingFootprintErrorInput, type PcbPlacementError, type PcbPlacementErrorInput, type PcbPlatedHole, type PcbPlatedHoleCircle, type PcbPlatedHoleInput, type PcbPlatedHoleOval, type PcbPort, type PcbPortInput, type PcbPortNotMatchedError, type PcbPortNotMatchedErrorInput, type PcbRouteHint, type PcbRouteHintInput, type PcbRouteHints, type PcbRouteHintsInput, type PcbSilkscreenCircle, type PcbSilkscreenCircleInput, type PcbSilkscreenLine, type PcbSilkscreenLineInput, type PcbSilkscreenOval, type PcbSilkscreenOvalDeprecated, type PcbSilkscreenOvalInput, type PcbSilkscreenPath, type PcbSilkscreenPathDeprecated, type PcbSilkscreenPathInput, type PcbSilkscreenRect, type PcbSilkscreenRectInput, type PcbSilkscreenRectOld, type PcbSilkscreenText, type PcbSilkscreenTextInput, type PcbSmtPad, type PcbSmtPadCircle, type PcbSmtPadRect, type PcbSmtPadRotatedRect, type PcbSolderPaste, type PcbSolderPasteCircle, type PcbSolderPasteRect, type PcbText, type PcbTextInput, type PcbTrace, type PcbTraceError, type PcbTraceErrorInput, type PcbTraceHint, type PcbTraceHintInput, type PcbTraceInput, type PcbTraceRoutePoint, type PcbTraceRoutePointVia, type PcbTraceRoutePointWire, type PcbVia, type PcbViaInput, type Point, type Point3, type Position, type Rotation, type RouteHintPoint, type RouteHintPointInput, type SchematicBox, type SchematicBoxInput, type SchematicComponent, type SchematicComponentInput, type SchematicDebugLine, type SchematicDebugObject, type SchematicDebugObjectInput, type SchematicDebugPoint, type SchematicDebugRect, type SchematicError, type SchematicErrorInput, type SchematicLine, type SchematicLineInput, type SchematicNetLabel, type SchematicNetLabelInput, type SchematicPath, type SchematicPathInput, type SchematicPort, type SchematicPortArrangement, type SchematicPortArrangementBySides, type SchematicPortArrangementBySize, type SchematicPortInput, type SchematicText, type SchematicTextInput, type SchematicTrace, type SchematicTraceEdge, type SchematicTraceInput, type SchematicVoltageProbe, type SchematicVoltageProbeInput, type Size, type SourceComponentBase, type SourceGroup, type SourceGroupInput, type SourceLed, type SourceLedInput, type SourceNet, type SourceNetInput, type SourcePort, type SourcePortInput, type SourceSimpleBattery, type SourceSimpleBatteryInput, type SourceSimpleBugInput, type SourceSimpleCapacitor, type SourceSimpleCapacitorInput, type SourceSimpleChip, type SourceSimpleChipInput, type SourceSimpleCrystal, type SourceSimpleCrystalInput, type SourceSimpleDiode, type SourceSimpleDiodeInput, type SourceSimpleGround, type SourceSimpleGroundInput, type SourceSimpleInductor, type SourceSimpleInductorInput, type SourceSimplePinHeader, type SourceSimplePinHeaderInput, type SourceSimplePotentiometer, type SourceSimplePotentiometerInput, type SourceSimplePowerSource, type SourceSimplePowerSourceInput, type SourceSimplePushButton, type SourceSimplePushButtonInput, type SourceSimpleResistor, type SourceSimpleResistorInput, type SourceTrace, type SupplierName, type VisibleLayer, type VisibleLayerRef, all_layers, any_circuit_element, any_soup_element, any_source_component, battery_capacity, cad_component, capacitance, current, distance, frequency, getZodPrefixedIdWithDefault, inductance, layer_ref, layer_string, length, pcb_board, pcb_component, pcb_fabrication_note_path, pcb_fabrication_note_text, pcb_hole, pcb_hole_circle_or_square_shape, pcb_hole_oval_shape, pcb_keepout, pcb_missing_footprint_error, pcb_placement_error, pcb_plated_hole, pcb_port, pcb_port_not_matched_error, pcb_route_hint, pcb_route_hints, pcb_silkscreen_circle, pcb_silkscreen_line, pcb_silkscreen_oval, pcb_silkscreen_path, pcb_silkscreen_rect, pcb_silkscreen_text, pcb_smtpad, pcb_solder_paste, pcb_text, pcb_trace, pcb_trace_error, pcb_trace_hint, pcb_trace_route_point, pcb_trace_route_point_via, pcb_trace_route_point_wire, pcb_via, point, point3, port_arrangement, position, position3, resistance, rotation, route_hint_point, schematic_box, schematic_component, schematic_component_port_arrangement_by_sides, schematic_component_port_arrangement_by_size, schematic_debug_line, schematic_debug_object, schematic_debug_object_base, schematic_debug_point, schematic_debug_rect, schematic_error, schematic_line, schematic_net_label, schematic_path, schematic_pin_styles, schematic_port, schematic_text, schematic_trace, schematic_voltage_probe, size, source_component_base, source_group, source_led, source_net, source_port, source_simple_battery, source_simple_bug, source_simple_capacitor, source_simple_chip, source_simple_crystal, source_simple_diode, source_simple_ground, source_simple_inductor, source_simple_pin_header, source_simple_potentiometer, source_simple_power_source, source_simple_push_button, source_simple_resistor, source_trace, supplier_name, time, visible_layer, voltage };
|
package/dist/index.mjs
CHANGED
|
@@ -274,6 +274,7 @@ var expectTypesMatch = (shouldBe) => {
|
|
|
274
274
|
expectTypesMatch("extra props b");
|
|
275
275
|
expectTypesMatch("missing props b");
|
|
276
276
|
expectTypesMatch(true);
|
|
277
|
+
expectTypesMatch("mismatched prop types: a");
|
|
277
278
|
|
|
278
279
|
// src/source/base/source_component_base.ts
|
|
279
280
|
import { z as z7 } from "zod";
|
|
@@ -293,6 +294,7 @@ var source_simple_capacitor = source_component_base.extend({
|
|
|
293
294
|
ftype: z8.literal("simple_capacitor"),
|
|
294
295
|
capacitance
|
|
295
296
|
});
|
|
297
|
+
expectTypesMatch(true);
|
|
296
298
|
|
|
297
299
|
// src/source/source_simple_resistor.ts
|
|
298
300
|
import { z as z9 } from "zod";
|
|
@@ -300,18 +302,21 @@ var source_simple_resistor = source_component_base.extend({
|
|
|
300
302
|
ftype: z9.literal("simple_resistor"),
|
|
301
303
|
resistance
|
|
302
304
|
});
|
|
305
|
+
expectTypesMatch(true);
|
|
303
306
|
|
|
304
307
|
// src/source/source_simple_diode.ts
|
|
305
308
|
import { z as z10 } from "zod";
|
|
306
309
|
var source_simple_diode = source_component_base.extend({
|
|
307
310
|
ftype: z10.literal("simple_diode")
|
|
308
311
|
});
|
|
312
|
+
expectTypesMatch(true);
|
|
309
313
|
|
|
310
314
|
// src/source/source_simple_ground.ts
|
|
311
315
|
import { z as z11 } from "zod";
|
|
312
316
|
var source_simple_ground = source_component_base.extend({
|
|
313
317
|
ftype: z11.literal("simple_ground")
|
|
314
318
|
});
|
|
319
|
+
expectTypesMatch(true);
|
|
315
320
|
|
|
316
321
|
// src/source/source_simple_bug.ts
|
|
317
322
|
import { z as z12 } from "zod";
|
|
@@ -324,12 +329,14 @@ import { z as z13 } from "zod";
|
|
|
324
329
|
var source_simple_chip = source_component_base.extend({
|
|
325
330
|
ftype: z13.literal("simple_chip")
|
|
326
331
|
});
|
|
332
|
+
expectTypesMatch(true);
|
|
327
333
|
|
|
328
334
|
// src/source/source_led.ts
|
|
329
335
|
import { z as z14 } from "zod";
|
|
330
336
|
var source_led = source_simple_diode.extend({
|
|
331
337
|
ftype: z14.literal("led")
|
|
332
338
|
});
|
|
339
|
+
expectTypesMatch(true);
|
|
333
340
|
|
|
334
341
|
// src/source/source_simple_power_source.ts
|
|
335
342
|
import { z as z15 } from "zod";
|
|
@@ -337,6 +344,7 @@ var source_simple_power_source = source_component_base.extend({
|
|
|
337
344
|
ftype: z15.literal("simple_power_source"),
|
|
338
345
|
voltage
|
|
339
346
|
});
|
|
347
|
+
expectTypesMatch(true);
|
|
340
348
|
|
|
341
349
|
// src/source/any_source_component.ts
|
|
342
350
|
import { z as z22 } from "zod";
|
|
@@ -347,6 +355,7 @@ var source_simple_battery = source_component_base.extend({
|
|
|
347
355
|
ftype: z16.literal("simple_battery"),
|
|
348
356
|
capacity: battery_capacity
|
|
349
357
|
});
|
|
358
|
+
expectTypesMatch(true);
|
|
350
359
|
|
|
351
360
|
// src/source/source_simple_inductor.ts
|
|
352
361
|
import { z as z17 } from "zod";
|
|
@@ -354,12 +363,14 @@ var source_simple_inductor = source_component_base.extend({
|
|
|
354
363
|
ftype: z17.literal("simple_inductor"),
|
|
355
364
|
inductance
|
|
356
365
|
});
|
|
366
|
+
expectTypesMatch(true);
|
|
357
367
|
|
|
358
368
|
// src/source/source_simple_push_button.ts
|
|
359
369
|
import { z as z18 } from "zod";
|
|
360
370
|
var source_simple_push_button = source_component_base.extend({
|
|
361
371
|
ftype: z18.literal("simple_push_button")
|
|
362
372
|
});
|
|
373
|
+
expectTypesMatch(true);
|
|
363
374
|
|
|
364
375
|
// src/source/source_simple_potentiometer.ts
|
|
365
376
|
import { z as z19 } from "zod";
|
|
@@ -375,6 +386,7 @@ var source_simple_crystal = source_component_base.extend({
|
|
|
375
386
|
frequency: z20.number().describe("Frequency in Hz"),
|
|
376
387
|
load_capacitance: z20.number().optional().describe("Load capacitance in pF")
|
|
377
388
|
});
|
|
389
|
+
expectTypesMatch(true);
|
|
378
390
|
|
|
379
391
|
// src/source/source_simple_pin_header.ts
|
|
380
392
|
import { z as z21 } from "zod";
|
|
@@ -412,6 +424,7 @@ var source_port = z23.object({
|
|
|
412
424
|
source_port_id: z23.string(),
|
|
413
425
|
source_component_id: z23.string()
|
|
414
426
|
});
|
|
427
|
+
expectTypesMatch(true);
|
|
415
428
|
|
|
416
429
|
// src/source/source_trace.ts
|
|
417
430
|
import { z as z24 } from "zod";
|
|
@@ -456,6 +469,7 @@ var schematic_box = z27.object({
|
|
|
456
469
|
x: distance,
|
|
457
470
|
y: distance
|
|
458
471
|
}).describe("Draws a box on the schematic");
|
|
472
|
+
expectTypesMatch(true);
|
|
459
473
|
|
|
460
474
|
// src/schematic/schematic_path.ts
|
|
461
475
|
import { z as z28 } from "zod";
|
|
@@ -466,6 +480,7 @@ var schematic_path = z28.object({
|
|
|
466
480
|
is_filled: z28.boolean().optional(),
|
|
467
481
|
points: z28.array(point)
|
|
468
482
|
});
|
|
483
|
+
expectTypesMatch(true);
|
|
469
484
|
|
|
470
485
|
// src/schematic/schematic_component.ts
|
|
471
486
|
import { z as z29 } from "zod";
|
|
@@ -534,6 +549,7 @@ var schematic_line = z30.object({
|
|
|
534
549
|
y1: distance,
|
|
535
550
|
y2: distance
|
|
536
551
|
});
|
|
552
|
+
expectTypesMatch(true);
|
|
537
553
|
|
|
538
554
|
// src/schematic/schematic_trace.ts
|
|
539
555
|
import { z as z31 } from "zod";
|
|
@@ -580,6 +596,7 @@ var schematic_text = z32.object({
|
|
|
580
596
|
anchor: z32.enum(["center", "left", "right", "top", "bottom"]).default("center"),
|
|
581
597
|
color: z32.string().default("#000000")
|
|
582
598
|
});
|
|
599
|
+
expectTypesMatch(true);
|
|
583
600
|
|
|
584
601
|
// src/schematic/schematic_port.ts
|
|
585
602
|
import { z as z33 } from "zod";
|
|
@@ -613,12 +630,13 @@ var schematic_net_label = z34.object({
|
|
|
613
630
|
// src/schematic/schematic_error.ts
|
|
614
631
|
import { z as z35 } from "zod";
|
|
615
632
|
var schematic_error = z35.object({
|
|
616
|
-
schematic_error_id: z35.string(),
|
|
617
633
|
type: z35.literal("schematic_error"),
|
|
634
|
+
schematic_error_id: z35.string(),
|
|
618
635
|
// eventually each error type should be broken out into a dir of files
|
|
619
636
|
error_type: z35.literal("schematic_port_not_found"),
|
|
620
637
|
message: z35.string()
|
|
621
638
|
}).describe("Defines a schematic error on the schematic");
|
|
639
|
+
expectTypesMatch(true);
|
|
622
640
|
|
|
623
641
|
// src/schematic/schematic_debug_object.ts
|
|
624
642
|
import { z as z36 } from "zod";
|