Start refactoring
This commit is contained in:
parent
6fc53ee51e
commit
9b47d56d8f
39 changed files with 423 additions and 234 deletions
|
|
@ -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 };
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue