From 48729d9ecd00c6da3c0a49bcd063fcbc9379327f Mon Sep 17 00:00:00 2001 From: Eduardo San Martin Morote Date: Wed, 3 Nov 2021 18:09:21 +0100 Subject: [PATCH] feat(types): allow a generic in App type (#845) --- src/apis/createApp.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/apis/createApp.ts b/src/apis/createApp.ts index 6f1b2d60..ff69cf4f 100644 --- a/src/apis/createApp.ts +++ b/src/apis/createApp.ts @@ -3,7 +3,8 @@ import { VueConstructor } from 'vue/types/umd' import { getVueConstructor } from '../runtimeContext' import { warn } from '../utils' -export interface App { +// Has a generic to match Vue 3 API and be type compatible +export interface App { config: VueConstructor['config'] use: VueConstructor['use'] mixin: VueConstructor['mixin']