@atscript/core 0.1.3 → 0.1.4
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.cjs +3 -2
- package/dist/index.mjs +3 -2
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -2763,7 +2763,7 @@ else if (isStructure(def) || isInterface(def) || isPrimitive(def)) def = def.pro
|
|
|
2763
2763
|
}
|
|
2764
2764
|
if (isRef(t.parentNode)) {
|
|
2765
2765
|
const def = this.unwindType(t.parentNode.id, t.parentNode.chain)?.def;
|
|
2766
|
-
if (isPrimitive(def) && !def.config.type) {
|
|
2766
|
+
if (isPrimitive(def) && !def.config.type && def.id !== "phantom") {
|
|
2767
2767
|
const token = t.parentNode.chain[t.parentNode.chain.length - 1] || t;
|
|
2768
2768
|
this._allMessages.push({
|
|
2769
2769
|
severity: 1,
|
|
@@ -3203,7 +3203,8 @@ const primitives = {
|
|
|
3203
3203
|
undefined: {
|
|
3204
3204
|
type: "void",
|
|
3205
3205
|
documentation: "Represents no value."
|
|
3206
|
-
}
|
|
3206
|
+
},
|
|
3207
|
+
phantom: { documentation: "Phantom type. Does not affect the data type, validation, or schema. Discoverable via runtime type traversal." }
|
|
3207
3208
|
};
|
|
3208
3209
|
|
|
3209
3210
|
//#endregion
|
package/dist/index.mjs
CHANGED
|
@@ -2739,7 +2739,7 @@ else if (isStructure(def) || isInterface(def) || isPrimitive(def)) def = def.pro
|
|
|
2739
2739
|
}
|
|
2740
2740
|
if (isRef(t.parentNode)) {
|
|
2741
2741
|
const def = this.unwindType(t.parentNode.id, t.parentNode.chain)?.def;
|
|
2742
|
-
if (isPrimitive(def) && !def.config.type) {
|
|
2742
|
+
if (isPrimitive(def) && !def.config.type && def.id !== "phantom") {
|
|
2743
2743
|
const token = t.parentNode.chain[t.parentNode.chain.length - 1] || t;
|
|
2744
2744
|
this._allMessages.push({
|
|
2745
2745
|
severity: 1,
|
|
@@ -3179,7 +3179,8 @@ const primitives = {
|
|
|
3179
3179
|
undefined: {
|
|
3180
3180
|
type: "void",
|
|
3181
3181
|
documentation: "Represents no value."
|
|
3182
|
-
}
|
|
3182
|
+
},
|
|
3183
|
+
phantom: { documentation: "Phantom type. Does not affect the data type, validation, or schema. Discoverable via runtime type traversal." }
|
|
3183
3184
|
};
|
|
3184
3185
|
|
|
3185
3186
|
//#endregion
|