Skip to content

Commit 48729d9

Browse files
authored
feat(types): allow a generic in App type (#845)
1 parent 366a8ab commit 48729d9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/apis/createApp.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ import { VueConstructor } from 'vue/types/umd'
33
import { getVueConstructor } from '../runtimeContext'
44
import { warn } from '../utils'
55

6-
export interface App {
6+
// Has a generic to match Vue 3 API and be type compatible
7+
export interface App<T = any> {
78
config: VueConstructor['config']
89
use: VueConstructor['use']
910
mixin: VueConstructor['mixin']

0 commit comments

Comments
 (0)