copyright copyright export class Trigger { public open : string ; public close ? : string ; public constructor ( open , close ? ) { this . open = open ; this . close = close || open ; } public isManual ( ) { return this . open === 'manual' || this . close === 'manual' ; } }