From 8cbbc197b0415c04a8a8c989237f9a570144ad6f Mon Sep 17 00:00:00 2001 From: Demis Bellot Date: Tue, 13 Feb 2024 19:15:32 +0800 Subject: [PATCH] fix build --- MyApp.Client/src/_posts/2023-02-01_javascript.md | 12 ++++++------ MyApp.Client/src/_posts/components/HelloApi.vue | 2 +- MyApp.Client/src/meta.d.ts | 1 + 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/MyApp.Client/src/_posts/2023-02-01_javascript.md b/MyApp.Client/src/_posts/2023-02-01_javascript.md index 71ae348..80d198e 100644 --- a/MyApp.Client/src/_posts/2023-02-01_javascript.md +++ b/MyApp.Client/src/_posts/2023-02-01_javascript.md @@ -7,12 +7,12 @@ author: Brandon Foley --- diff --git a/MyApp.Client/src/_posts/components/HelloApi.vue b/MyApp.Client/src/_posts/components/HelloApi.vue index e166f34..1a34b37 100644 --- a/MyApp.Client/src/_posts/components/HelloApi.vue +++ b/MyApp.Client/src/_posts/components/HelloApi.vue @@ -19,7 +19,7 @@ let client = useClient() async function update() { let api = await client.api(new Hello({ name:name.value })) if (api.succeeded) { - result.value = api.response.result + result.value = api.response!.result } } update() diff --git a/MyApp.Client/src/meta.d.ts b/MyApp.Client/src/meta.d.ts index c9ead4f..36e6fc5 100644 --- a/MyApp.Client/src/meta.d.ts +++ b/MyApp.Client/src/meta.d.ts @@ -1,5 +1,6 @@ import { DefineComponent } from 'vue' +const component: DefineComponent<{}, {}, any> type VideoGroups = { [key:string]:Video[] } type Posts = { config: any, authors: Author[], posts: Post[], authorSlugs: {[name:string]:Author}, tagSlugs: {[name:string]:string} } type VideoComponents = { [key:string]: {[group:string]:() => Promise} }