@openpkg-ts/sdk 0.48.0 → 0.48.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.d.ts CHANGED
@@ -1207,6 +1207,20 @@ interface SerializerContext {
1207
1207
  * of the full member surface. Unset → expand everything (unit-test contexts).
1208
1208
  */
1209
1209
  shouldExpandExternal?: (symbol: ts.Symbol) => boolean;
1210
+ /**
1211
+ * Collision-safe type identity, keyed by DECLARATION (so an import alias and
1212
+ * the original type collapse to one id, but two genuinely different types
1213
+ * named `Logger` get distinct ids). `typeIds` caches symbol → id; `declIds`
1214
+ * maps a declaration key → id; `idOwner` maps an assigned id → the declaration
1215
+ * key that owns it. The first declaration to claim a bare name keeps it (no
1216
+ * churn for the common case); later distinct declarations with the same name
1217
+ * get a package-scoped id. Both ref emission and registration read these.
1218
+ */
1219
+ typeIds: Map<ts.Symbol, string>;
1220
+ declIds: Map<string, string>;
1221
+ idOwner: Map<string, string>;
1222
+ /** Workspace package name → dir, used to package-scope colliding type ids. */
1223
+ workspacePackages: ReadonlyMap<string, string>;
1210
1224
  }
1211
1225
  declare class TypeRegistry {
1212
1226
  private types;