From a750ce2db28f6015fd479613ce67ddccf2ad22c2 Mon Sep 17 00:00:00 2001 From: Andrew Bastin Date: Fri, 26 Apr 2024 17:24:42 +0530 Subject: [PATCH] chore: correct type for useService --- lib/vue.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/vue.ts b/lib/vue.ts index 6ec2c6c..1e8f1b8 100644 --- a/lib/vue.ts +++ b/lib/vue.ts @@ -20,7 +20,7 @@ export const diocPlugin: Plugin = { * * @param service The class reference of the service to bind */ -export function useService>(service: T): InstanceType { +export function useService>(service: T): InstanceType { const container = inject(VUE_CONTAINER_KEY) as Container | undefined | null if (!container) {