Skip to content

Commit

Permalink
chore: correct type for useService
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewBastin committed Apr 26, 2024
1 parent f0331b5 commit a750ce2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/vue.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export const diocPlugin: Plugin = {
*
* @param service The class reference of the service to bind
*/
export function useService<T extends ServiceClassInstance<T>>(service: T): InstanceType<T> {
export function useService<T extends ServiceClassInstance<any>>(service: T): InstanceType<T> {
const container = inject(VUE_CONTAINER_KEY) as Container | undefined | null

if (!container) {
Expand Down

0 comments on commit a750ce2

Please # to comment.