pacc 4.40.4 → 4.40.5
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/package.json +1 -1
- package/src/types.mjs +2 -4
package/package.json
CHANGED
package/src/types.mjs
CHANGED
|
@@ -76,9 +76,7 @@ export function addType(type) {
|
|
|
76
76
|
break;
|
|
77
77
|
|
|
78
78
|
case "string":
|
|
79
|
-
|
|
80
|
-
type.extends = raiseOnUnknownType(type.extends, type);
|
|
81
|
-
}
|
|
79
|
+
type.extends = raiseOnUnknownType(type.extends, type);
|
|
82
80
|
break;
|
|
83
81
|
}
|
|
84
82
|
|
|
@@ -105,7 +103,7 @@ export function oneOfType(definition) {
|
|
|
105
103
|
name,
|
|
106
104
|
members: list.reduce((all, type) => {
|
|
107
105
|
if (typeof type === "string") {
|
|
108
|
-
type = raiseOnUnknownType(type, definition);
|
|
106
|
+
type = raiseOnUnknownType(type, definition);
|
|
109
107
|
}
|
|
110
108
|
return all.union(type.members ?? new Set([type]));
|
|
111
109
|
}, new Set())
|