UNPKG

604 BJavaScriptView Raw
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3const abstract_1 = require("./abstract");
4class 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}
17exports.TypeParameterReflection = TypeParameterReflection;
18//# sourceMappingURL=type-parameter.js.map
\No newline at end of file