refactor(aio): simplify preview server build events
This commit is contained in:

committed by
Matias Niemelä

parent
ee5cd52d5f
commit
b8806a656f
@ -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) {}
|
||||
}
|
||||
|
Reference in New Issue
Block a user