Skip to content

Commit

Permalink
fix(types): emit corresponding button value type
Browse files Browse the repository at this point in the history
  • Loading branch information
lemredd committed Dec 20, 2022
1 parent 2b87496 commit a5c91c2
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/components/CalculatorContainer/CorrectionButton.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ interface Props {
const props = defineProps<Props>()
interface CustomEvents {
(event: "appendToScreen", valueToAppend: string): void
(event: "appendToScreen", valueToAppend: Corrections): void
}
const emit = defineEmits<CustomEvents>()
Expand Down
2 changes: 1 addition & 1 deletion src/components/CalculatorContainer/EvaluationButton.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ interface Props {
const props = defineProps<Props>()
interface CustomEvents {
(event: "appendToScreen", valueToAppend: string): void
(event: "appendToScreen", valueToAppend: Evaluations): void
}
const emit = defineEmits<CustomEvents>()
Expand Down
2 changes: 1 addition & 1 deletion src/components/CalculatorContainer/MemoryButton.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ interface Props {
const props = defineProps<Props>()
interface CustomEvents {
(event: "appendToScreen", valueToAppend: string): void
(event: "appendToScreen", valueToAppend: MemoryOperations): void
}
const emit = defineEmits<CustomEvents>()
Expand Down
2 changes: 1 addition & 1 deletion src/components/CalculatorContainer/OperationalButton.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ interface Props {
const props = defineProps<Props>()
interface CustomEvents {
(event: "appendToScreen", valueToAppend: string): void
(event: "appendToScreen", valueToAppend: Operations): void
}
const emit = defineEmits<CustomEvents>()
Expand Down

0 comments on commit a5c91c2

Please sign in to comment.