Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
feat(types): allow a generic in App type (#845)
  • Loading branch information
posva committed Nov 3, 2021
1 parent 366a8ab commit 48729d9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/apis/createApp.ts
Expand Up @@ -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<T = any> {
config: VueConstructor['config']
use: VueConstructor['use']
mixin: VueConstructor['mixin']
Expand Down

0 comments on commit 48729d9

Please sign in to comment.