From 5646b263ebd2eb245f459b81e3b67ae1b47cdd52 Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Tue, 20 Aug 2024 13:23:36 +0100 Subject: [PATCH] fix: augment `vue` rather than `@vue/runtime-core` --- ui/src/main.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/src/main.ts b/ui/src/main.ts index 1d0027d1..bd0492bc 100644 --- a/ui/src/main.ts +++ b/ui/src/main.ts @@ -40,7 +40,7 @@ library.add( //move to ./types? //tell typescript about some global properties we are adding -declare module '@vue/runtime-core' { +declare module 'vue' { export interface ComponentCustomProperties { $validate: (data: object, rule: object) => boolean $store: typeof store