1
0

feat: type improvements

This commit is contained in:
Dominik Pschenitschni
2022-10-17 13:14:07 +02:00
parent 1002579173
commit 599e28e5e5
43 changed files with 162 additions and 135 deletions

View File

@ -86,7 +86,7 @@ export const useBaseStore = defineStore('base', () => {
}
async function handleSetCurrentList(
{list, forceUpdate = false}: {list: IList | null, forceUpdate: boolean},
{list, forceUpdate = false}: {list: IList | null, forceUpdate?: boolean},
) {
if (list === null) {
setCurrentList({})

View File

@ -180,7 +180,7 @@ export const useListStore = defineStore('list', () => {
export function useList(listId: MaybeRef<IList['id']>) {
const listService = shallowReactive(new ListService())
const {loading: isLoading} = toRefs(listService)
const list: ListModel = reactive(new ListModel())
const list: IList = reactive(new ListModel())
const {t} = useI18n({useScope: 'global'})
watch(