Skip to content

Instantly share code, notes, and snippets.

@nesterone
Created January 20, 2020 21:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nesterone/641cff5a931b738f170e291855ac3430 to your computer and use it in GitHub Desktop.
Save nesterone/641cff5a931b738f170e291855ac3430 to your computer and use it in GitHub Desktop.
import { NotYetImplementedError } from './NotYetImplementedError';
/**
* Interface for classes that implement Command Pattern
*
* @interface
*/
export class Command {
/**
* Executes command
* @param {Object|number|string} options - options for command to execute
* @return {Promise<*>} execution result, if any
*/
async execute(options){
throw new NotYetImplementedError();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment