refactor(ui): strong type pages ref
[e-mobility-charging-stations-simulator.git] / ui / web / src / components / buttons / ToggleButton.vue
index 8cdd1de7d4bd22e5d26968d0613288ffe8e29c99..5b4d5c007d468f5bf1aeca56a77a0f7db1c340cf 100644 (file)
@@ -21,7 +21,7 @@ const $emit = defineEmits(['clicked'])
 
 const id = props.shared === true ? `shared-toggle-button-${props.id}` : `toggle-button-${props.id}`
 
-const state = ref({
+const state = ref<{ status: boolean }>({
   status: getFromLocalStorage<boolean>(id, props.status ?? false)
 })