fix missing TypeScript code
This commit is contained in:
parent
3a77b5b1a9
commit
96e47e8f79
4 changed files with 191 additions and 1 deletions
19
static/js/services/build/build.service.ts
Normal file
19
static/js/services/build/build.service.ts
Normal file
|
@ -0,0 +1,19 @@
|
|||
/**
|
||||
* Service which provides helper methods for reasoning about builds.
|
||||
*/
|
||||
export abstract class BuildService {
|
||||
|
||||
/**
|
||||
* Determine if the given build is active.
|
||||
* @param build The build object.
|
||||
* @return isActive If the given build is active.
|
||||
*/
|
||||
public abstract isActive(build: {phase: string}): boolean;
|
||||
|
||||
/**
|
||||
* Generate a message based on a given phase.
|
||||
* @param phase The phase type.
|
||||
* @return buildMessage The message associated with the given phase.
|
||||
*/
|
||||
public abstract getBuildMessage(phase: string): string;
|
||||
}
|
Reference in a new issue