Last active
January 19, 2020 14:56
-
-
Save nesterone/313a0d5d42c60630b07b9cb23956d27f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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