Start refactoring

This commit is contained in:
schmelczerandras 2020-07-29 22:33:46 +02:00
parent 6fc53ee51e
commit 9b47d56d8f
39 changed files with 423 additions and 234 deletions

View file

@ -1,7 +1,5 @@
export class Typed {
public get type(): string {
return this.constructor.name;
}
export abstract class Typed {
public abstract get type(): string;
public toJSON() {
return { type: this.type, ...this };