Skip to content

Instantly share code, notes, and snippets.

@nesterone
Last active January 19, 2020 14:56
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/313a0d5d42c60630b07b9cb23956d27f to your computer and use it in GitHub Desktop.
Save nesterone/313a0d5d42c60630b07b9cb23956d27f to your computer and use it in GitHub Desktop.
/**
* Represents a generic calculation.
* Allow to go beyound standard language types and operators
*/
export interface Calculation<R> {
/**
* Execute calculation within entities usually provided in constructor
* @return {R} result - calculation result
*/
calculate(): R;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment