1 | "use strict";
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | const models_1 = require("../models");
|
4 | const utils_1 = require("../utils");
|
5 | class SerializerComponent extends utils_1.AbstractComponent {
|
6 | get priority() {
|
7 | return this.constructor['PRIORITY'];
|
8 | }
|
9 | }
|
10 | SerializerComponent.PRIORITY = 0;
|
11 | exports.SerializerComponent = SerializerComponent;
|
12 | class ReflectionSerializerComponent extends SerializerComponent {
|
13 | constructor() {
|
14 | super(...arguments);
|
15 | this.serializeGroupSymbol = models_1.Reflection;
|
16 | }
|
17 | serializeGroup(instance) {
|
18 | return instance instanceof models_1.Reflection;
|
19 | }
|
20 | }
|
21 | exports.ReflectionSerializerComponent = ReflectionSerializerComponent;
|
22 | class TypeSerializerComponent extends SerializerComponent {
|
23 | constructor() {
|
24 | super(...arguments);
|
25 | this.serializeGroupSymbol = models_1.Type;
|
26 | }
|
27 | serializeGroup(instance) {
|
28 | return instance instanceof models_1.Type;
|
29 | }
|
30 | }
|
31 | exports.TypeSerializerComponent = TypeSerializerComponent;
|
32 |
|
\ | No newline at end of file |