refactor(aio): simplify preview server build events

This commit is contained in:
Georgios Kalpakas
2017-06-17 21:24:16 +03:00
committed by Matias Niemelä
parent ee5cd52d5f
commit b8806a656f
2 changed files with 3 additions and 46 deletions

View File

@ -1,15 +1,8 @@
// Classes
export class BuildEvent {
// Constructor
constructor(public type: string, public pr: number, public sha: string) {}
}
export class CreatedBuildEvent extends BuildEvent {
export class CreatedBuildEvent {
// Properties - Public, Static
public static type = 'build.created';
// Constructor
constructor(pr: number, sha: string) {
super(CreatedBuildEvent.type, pr, sha);
}
constructor(public pr: number, public sha: string) {}
}