import { AsyncCommand } from './types' ; export class AnyPromiseCommand extends AsyncCommand { public name : string ; public description : string ; public promise : Promise < any > ; constructor ( name , description , promise ) { super ( ) ; this . name = name ; this . description = description ; this . promise = promise ; } run ( ) { return this . promise ; } }