1 | "use strict";
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | const abstract_1 = require("./abstract");
|
4 | class TypeParameterReflection extends abstract_1.Reflection {
|
5 | constructor(type, parent) {
|
6 | super(type.name, abstract_1.ReflectionKind.TypeParameter, parent);
|
7 | this.type = type.constraint;
|
8 | }
|
9 | toObject() {
|
10 | const result = super.toObject();
|
11 | if (this.type) {
|
12 | result.type = this.type.toObject();
|
13 | }
|
14 | return result;
|
15 | }
|
16 | }
|
17 | exports.TypeParameterReflection = TypeParameterReflection;
|
18 |
|
\ | No newline at end of file |