@openpkg-ts/sdk 0.47.0 → 0.47.1
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.js +2 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -4246,7 +4246,8 @@ function serializeResolvedMembers(type, node, ctx) {
|
|
|
4246
4246
|
const armDocs = buildConditionalArmDocs(node.type, checker);
|
|
4247
4247
|
for (const prop of type.getProperties()) {
|
|
4248
4248
|
const decl = prop.getDeclarations()?.[0] ?? node;
|
|
4249
|
-
const
|
|
4249
|
+
const rawPropType = checker.getTypeOfSymbolAtLocation(prop, decl);
|
|
4250
|
+
const propType = prop.flags & ts10.SymbolFlags.Optional ? stripUndefinedFromType(rawPropType, checker) : rawPropType;
|
|
4250
4251
|
registerReferencedTypes(propType, ctx);
|
|
4251
4252
|
const callSigs = propType.getCallSignatures();
|
|
4252
4253
|
const isMethodDecl = ts10.isMethodSignature(decl) || ts10.isMethodDeclaration(decl) || ts10.isFunctionDeclaration(decl);
|