@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/index.js
CHANGED
|
@@ -4327,10 +4327,22 @@ function resolveTypeNode(type, checker, file, typeRegistry, visiting, sourceNode
|
|
|
4327
4327
|
sourceNode
|
|
4328
4328
|
);
|
|
4329
4329
|
if (customTypeLookup !== null) {
|
|
4330
|
+
const typeId = customTypeIdFromLookup(customTypeLookup);
|
|
4331
|
+
let payload = null;
|
|
4332
|
+
if (customTypeLookup.registration.extractPayload !== void 0) {
|
|
4333
|
+
try {
|
|
4334
|
+
payload = customTypeLookup.registration.extractPayload(type, checker) ?? null;
|
|
4335
|
+
} catch (cause) {
|
|
4336
|
+
throw new Error(
|
|
4337
|
+
`extractPayload for custom type "${customTypeLookup.registration.typeName}" in extension "${customTypeLookup.extensionId}" threw`,
|
|
4338
|
+
{ cause }
|
|
4339
|
+
);
|
|
4340
|
+
}
|
|
4341
|
+
}
|
|
4330
4342
|
return {
|
|
4331
4343
|
kind: "custom",
|
|
4332
|
-
typeId
|
|
4333
|
-
payload
|
|
4344
|
+
typeId,
|
|
4345
|
+
payload
|
|
4334
4346
|
};
|
|
4335
4347
|
}
|
|
4336
4348
|
const primitiveAlias = tryResolveNamedPrimitiveAlias(
|