From bf0a6da1f7b4ac524c4b5b5f571c31399d6b0791 Mon Sep 17 00:00:00 2001 From: cexbrayat Date: Thu, 2 Feb 2023 16:50:15 +0100 Subject: [PATCH] fix: TS workaround for Vue v3.2.47 A change of types in core (https://github.com/vuejs/core/pull/2818) introduced a TS compilation error when bumping to Vue v3.2.47. I couldn't figure out a proper way to fix, but using `EmitOptions` instead of `E` (which extends `EmitOptions`...) fixes the issue. It may be good enough to allow to update to the latest Vue releases, and I think it should have minimal impact on our users (or none at all). --- src/mount.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mount.ts b/src/mount.ts index a19add731..f8206294f 100644 --- a/src/mount.ts +++ b/src/mount.ts @@ -194,7 +194,7 @@ export function mount< M, Mixin, Extends, - E, + EmitsOptions, EE, PP, Props,