Simplify types
This commit is contained in:
parent
6eddb4834b
commit
ba8b1a29fd
1 changed files with 52 additions and 76 deletions
|
|
@ -1,7 +1,3 @@
|
|||
import { Id } from '../transport/identity';
|
||||
import { Typed } from '../transport/typed';
|
||||
|
||||
export abstract class Command {
|
||||
public get type(): string {
|
||||
return (this as any).constructor.type;
|
||||
}
|
||||
}
|
||||
export abstract class Command extends Typed { }
|
||||
|
|
|
|||
Loading…
Reference in a new issue