@formspec/build 0.1.0-alpha.53 → 0.1.0-alpha.54
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/analyzer/class-analyzer.d.ts.map +1 -1
- package/dist/build-alpha.d.ts +40 -0
- package/dist/build-beta.d.ts +40 -0
- package/dist/build-internal.d.ts +40 -0
- package/dist/build.d.ts +40 -0
- package/dist/cli.cjs +14 -2
- package/dist/cli.cjs.map +1 -1
- package/dist/cli.js +14 -2
- package/dist/cli.js.map +1 -1
- package/dist/index.cjs +14 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +14 -2
- package/dist/index.js.map +1 -1
- package/dist/internals.cjs +14 -2
- package/dist/internals.cjs.map +1 -1
- package/dist/internals.js +14 -2
- package/dist/internals.js.map +1 -1
- package/package.json +5 -5
package/dist/internals.cjs
CHANGED
|
@@ -2966,10 +2966,22 @@ function resolveTypeNode(type, checker, file, typeRegistry, visiting, sourceNode
|
|
|
2966
2966
|
sourceNode
|
|
2967
2967
|
);
|
|
2968
2968
|
if (customTypeLookup !== null) {
|
|
2969
|
+
const typeId = customTypeIdFromLookup(customTypeLookup);
|
|
2970
|
+
let payload = null;
|
|
2971
|
+
if (customTypeLookup.registration.extractPayload !== void 0) {
|
|
2972
|
+
try {
|
|
2973
|
+
payload = customTypeLookup.registration.extractPayload(type, checker) ?? null;
|
|
2974
|
+
} catch (cause) {
|
|
2975
|
+
throw new Error(
|
|
2976
|
+
`extractPayload for custom type "${customTypeLookup.registration.typeName}" in extension "${customTypeLookup.extensionId}" threw`,
|
|
2977
|
+
{ cause }
|
|
2978
|
+
);
|
|
2979
|
+
}
|
|
2980
|
+
}
|
|
2969
2981
|
return {
|
|
2970
2982
|
kind: "custom",
|
|
2971
|
-
typeId
|
|
2972
|
-
payload
|
|
2983
|
+
typeId,
|
|
2984
|
+
payload
|
|
2973
2985
|
};
|
|
2974
2986
|
}
|
|
2975
2987
|
const primitiveAlias = tryResolveNamedPrimitiveAlias(
|