@xrmforge/typegen 0.10.0 → 0.10.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 CHANGED
@@ -1859,7 +1859,8 @@ function generateEntityInterface(info, options = {}) {
1859
1859
  if (jsdocParts.length > 0) {
1860
1860
  lines.push(` /** ${jsdocParts.join(" - ")} */`);
1861
1861
  }
1862
- lines.push(` ${propertyName}: ${tsType} | null;`);
1862
+ const nullable = attr.IsPrimaryId ? "" : " | null";
1863
+ lines.push(` ${propertyName}: ${tsType}${nullable};`);
1863
1864
  }
1864
1865
  if (partyListAttrs.length > 0) {
1865
1866
  const relationship = info.oneToManyRelationships.find(