@microsoft/type2docfx 2.3.3-dev.2177154.0 → 2.3.3-dev.2190298.0

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.
@@ -9,8 +9,6 @@ class MethodConverter extends base_1.AbstractConverter {
9
9
  return;
10
10
  }
11
11
  const models = new Array();
12
- // Get the overload index for this method name
13
- const methodOverloadIndex = context.getNextMethodOverloadIndex(node.name);
14
12
  for (let index = 0; index < node.signatures.length; index++) {
15
13
  // ignore implicit constructor
16
14
  if (node.kindString === 'Constructor' &&
@@ -18,15 +16,11 @@ class MethodConverter extends base_1.AbstractConverter {
18
16
  !node.signatures[index].parameters) {
19
17
  continue;
20
18
  }
21
- let uid = context.ParentUid + '.' + node.name;
22
- // Handle multiple overloaded methods (different method nodes with same name)
23
- if (methodOverloadIndex > 0) {
24
- uid += `_${methodOverloadIndex}`;
25
- }
26
- // Handle multiple signatures within the same method
27
- if (index > 0) {
28
- uid += `_${index}`;
29
- }
19
+ // Get the overload index for this method name (unified for static and instance)
20
+ const methodOverloadIndex = context.getNextMethodOverloadIndex(node.name);
21
+ let uid = methodOverloadIndex > 0
22
+ ? context.ParentUid + '.' + node.name + `_${methodOverloadIndex}`
23
+ : context.ParentUid + '.' + node.name;
30
24
  console.log(` - ${node.kindString}: ${uid}`);
31
25
  const model = {
32
26
  uid: uid,
@@ -1 +1 @@
1
- {"version":3,"file":"method.js","sourceRoot":"","sources":["../../src/converters/method.ts"],"names":[],"mappings":";;;AAEA,iCAA2C;AAG3C,mDAA4C;AAE5C,MAAa,eAAgB,SAAQ,wBAAiB;IAC1C,QAAQ,CAAC,IAAU,EAAE,OAAgB;QAC7C,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE;YACpB,OAAO;SACR;QAED,MAAM,MAAM,GAAG,IAAI,KAAK,EAAa,CAAC;QAEtC,8CAA8C;QAC9C,MAAM,mBAAmB,GAAG,OAAO,CAAC,0BAA0B,CAAC,IAAI,CAAC,IAA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,EAAE;oBACN,OAAO,EAAE,EAAE;iBACZ;aACF,CAAC;YAEF,IAAI,CAAC,+BAA+B,CAAC,KAAK,EAAE,IAAI,EAAE,KAAK,CAAC,CAAC;YACzD,KAAK,CAAC,IAAI,GAAG,IAAI,CAAC,8BAA8B,CAAC,KAAK,EAAE,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC,aAAa,CAAC,CAAC;YAE9F,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;SACpB;QAED,OAAO,MAAM,CAAC;IAChB,CAAC;CACF;AA/CD,0CA+CC"}
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@microsoft/type2docfx",
3
- "version": "2.3.3-dev.2177154.0",
3
+ "version": "2.3.3-dev.2190298.0",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "@microsoft/type2docfx",
9
- "version": "2.3.3-dev.2177154.0",
9
+ "version": "2.3.3-dev.2190298.0",
10
10
  "license": "Apache-2.0",
11
11
  "dependencies": {
12
12
  "commander": "^9.4.1",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@microsoft/type2docfx",
3
- "version": "2.3.3-dev.2177154.0",
3
+ "version": "2.3.3-dev.2190298.0",
4
4
  "description": "A tool to convert json format output from TypeDoc to schema driven reference model for DocFx to consume.",
5
5
  "main": "./dist/main.js",
6
6
  "bin": {