Skip to content

Commit

Permalink
use Vue 3.3+ syntax for defineEmits
Browse files Browse the repository at this point in the history
  • Loading branch information
overheadhunter committed May 17, 2024
1 parent 2bfddf9 commit 5b613cd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions frontend/src/components/RegenerateSetupCodeDialog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,8 @@ const props = defineProps<{
}>();
const emit = defineEmits<{
(e: 'update:setupCode', setupCode: string): void
(e: 'close'): void
close: [],
'update:setupCode': [setupCode: string],
}>();
defineExpose({
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/ResetUserAccountDialog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ const processing = ref(false);
const open = ref(false);
defineEmits<{
(e: 'close'): void
close: []
}>();
defineExpose({
Expand Down

0 comments on commit 5b613cd

Please sign in to comment.