From 00142494a4e9eeeb95cae58aea8b16efd99d66be Mon Sep 17 00:00:00 2001 From: Tobias de Bruijn Date: Sun, 27 Oct 2024 10:30:37 +0100 Subject: [PATCH] Update vue-tsc --- .../.vite/deps_temp_35da5312/package.json | 3 + frontend/package.json | 2 +- frontend/src/scripts/core/fetch1.ts | 3 +- frontend/src/scripts/digidecs.ts | 2 +- frontend/src/views/HomeView.vue | 6 +- frontend/yarn.lock | 131 +++++++++++------- 6 files changed, 89 insertions(+), 58 deletions(-) create mode 100644 frontend/.vite/deps_temp_35da5312/package.json diff --git a/frontend/.vite/deps_temp_35da5312/package.json b/frontend/.vite/deps_temp_35da5312/package.json new file mode 100644 index 0000000..3dbc1ca --- /dev/null +++ b/frontend/.vite/deps_temp_35da5312/package.json @@ -0,0 +1,3 @@ +{ + "type": "module" +} diff --git a/frontend/package.json b/frontend/package.json index 080caf9..7b25be0 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -35,6 +35,6 @@ "unplugin-fonts": "^1.0.3", "vite": "^4.2.0", "vite-plugin-vuetify": "^1.0.0", - "vue-tsc": "^1.2.0" + "vue-tsc": "^2.1.8" } } diff --git a/frontend/src/scripts/core/fetch1.ts b/frontend/src/scripts/core/fetch1.ts index b5debc3..42633a2 100644 --- a/frontend/src/scripts/core/fetch1.ts +++ b/frontend/src/scripts/core/fetch1.ts @@ -31,6 +31,7 @@ export async function fetch1(input: RequestInfo | URL, init?: RequestInit): Prom return Result.ok(r); } catch (error: unknown) { - return Result.err(ApiError.request(-1, error.toString())) + const error1 = error as Error; + return Result.err(ApiError.request(-1, error1.toString())) } } \ No newline at end of file diff --git a/frontend/src/scripts/digidecs.ts b/frontend/src/scripts/digidecs.ts index 4a9c0df..89c8dd3 100644 --- a/frontend/src/scripts/digidecs.ts +++ b/frontend/src/scripts/digidecs.ts @@ -20,7 +20,7 @@ export class Digidecs { value: number, what: string, commission: string, - notes: string, + notes: string | null, attachments: File[], ): Promise> { const r = await fetch1(`${server}/api/digidecs/start`, { diff --git a/frontend/src/views/HomeView.vue b/frontend/src/views/HomeView.vue index a40dcee..0de56c6 100644 --- a/frontend/src/views/HomeView.vue +++ b/frontend/src/views/HomeView.vue @@ -6,7 +6,7 @@ icon="mdi-alert-outline" title="Error" type="error" - @close="error = null" + @close="error = undefined" />