Skip to content

Commit 42a82d4

Browse files
Remove duplicate type parameters from json
1 parent 6b000db commit 42a82d4

File tree

3 files changed

+0
-31
lines changed

3 files changed

+0
-31
lines changed

bin/typedoc.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4258,12 +4258,6 @@ var td;
42584258
*/
42594259
SignatureReflection.prototype.toObject = function () {
42604260
var result = _super.prototype.toObject.call(this);
4261-
if (this.parameters && this.parameters.length) {
4262-
result.parameters = this.parameters.map(function (n) { return n.toObject(); });
4263-
}
4264-
if (this.typeParameters && this.typeParameters.length) {
4265-
result.typeParameters = this.typeParameters.map(function (n) { return n.toObject(); });
4266-
}
42674261
if (this.type) {
42684262
result.type = this.type.toObject();
42694263
}

src/td/models/reflections/SignatureReflection.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -57,14 +57,6 @@ module td
5757
toObject():any {
5858
var result = super.toObject();
5959

60-
if (this.parameters && this.parameters.length) {
61-
result.parameters = this.parameters.map((n) => n.toObject());
62-
}
63-
64-
if (this.typeParameters && this.typeParameters.length) {
65-
result.typeParameters = this.typeParameters.map((n) => n.toObject());
66-
}
67-
6860
if (this.type) {
6961
result.type = this.type.toObject();
7062
}

test/converter/generic-function/specs.json

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -69,23 +69,6 @@
6969
}
7070
}
7171
],
72-
"typeParameters": [
73-
{
74-
"id": 4,
75-
"name": "T",
76-
"kind": 131072,
77-
"kindString": "Type parameter",
78-
"flags": {},
79-
"comment": {
80-
"text": "Generic function type parameter."
81-
},
82-
"type": {
83-
"type": "reference",
84-
"name": "Object",
85-
"symbolID": 29501
86-
}
87-
}
88-
],
8972
"type": {
9073
"type": "typeParameter",
9174
"name": "T",

0 commit comments

Comments
 (0)