circuit-json 0.0.157 → 0.0.158
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/dist/index.d.mts +424 -420
- package/dist/index.mjs +14 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -280,6 +280,18 @@ expectTypesMatch("extra props b");
|
|
|
280
280
|
expectTypesMatch("missing props b");
|
|
281
281
|
expectTypesMatch(true);
|
|
282
282
|
expectTypesMatch("mismatched prop types: a");
|
|
283
|
+
var expectStringUnionsMatch = (shouldBe) => {
|
|
284
|
+
};
|
|
285
|
+
expectStringUnionsMatch(true);
|
|
286
|
+
expectStringUnionsMatch(
|
|
287
|
+
'T1 has extra: "c", T2 has extra: "d"'
|
|
288
|
+
);
|
|
289
|
+
expectStringUnionsMatch('T1 has extra: "c"');
|
|
290
|
+
expectStringUnionsMatch('T2 has extra: "c"');
|
|
291
|
+
expectStringUnionsMatch(
|
|
292
|
+
'T1 has extra: "d", T2 has extra: "c"'
|
|
293
|
+
);
|
|
294
|
+
expectStringUnionsMatch(true);
|
|
283
295
|
|
|
284
296
|
// src/source/base/source_component_base.ts
|
|
285
297
|
import { z as z7 } from "zod";
|
|
@@ -1532,6 +1544,8 @@ var any_circuit_element = z75.union([
|
|
|
1532
1544
|
cad_component
|
|
1533
1545
|
]);
|
|
1534
1546
|
var any_soup_element = any_circuit_element;
|
|
1547
|
+
expectTypesMatch(true);
|
|
1548
|
+
expectStringUnionsMatch(true);
|
|
1535
1549
|
export {
|
|
1536
1550
|
all_layers,
|
|
1537
1551
|
any_circuit_element,
|