@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.
Files changed (2) hide show
  1. package/dist/index.js +2 -1
  2. 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 propType = checker.getTypeOfSymbolAtLocation(prop, decl);
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);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openpkg-ts/sdk",
3
- "version": "0.47.0",
3
+ "version": "0.47.1",
4
4
  "description": "TypeScript API extraction SDK - programmatic primitives for OpenPkg specs",
5
5
  "keywords": [
6
6
  "openpkg",