Created
October 28, 2020 13:04
-
-
Save jakerobers/c4445abe018c7af1c9d8c7eb3d1070bc 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
interface Validator { | |
isValid: () => bool, | |
getErrorMessage: () => string | |
} | |
interface Quantity { | |
isValid: () => bool, | |
getRaw: () => string, | |
getValue: () => number, | |
} | |
interface Product { | |
id: number, | |
getQuantity: Quantity, | |
setQuantity: (string) => void, | |
getPrice: () => number, | |
getTotal: () => number, | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment