From 9d5c32da08a971dcb42bafb5a981213fe8f3d960 Mon Sep 17 00:00:00 2001 From: Eduardo San Martin Morote Date: Wed, 3 Nov 2021 15:48:25 +0100 Subject: [PATCH] feat(types): allow a generic in App type This way, `App` type is compatible with Vue 3 while being backwards. --- 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']