add return type to toggle in checkbox.vue

This commit is contained in:
Norm 2022-08-20 14:15:36 -04:00
parent 16e9cf91f7
commit f236653c26
Signed by untrusted user: norm
GPG key ID: 7123E30E441E80DE

View file

@ -37,7 +37,7 @@ const emit = defineEmits<{
let button = $ref<HTMLElement>();
const checked = toRefs(props).modelValue;
const toggle = () => {
const toggle = (): void => {
if (props.disabled) return;
emit('update:modelValue', !checked.value);