Skip to content

Commit

Permalink
feat(types): allow a generic in App type (#845)
Browse files Browse the repository at this point in the history
  • Loading branch information
posva authored 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
Original file line number Diff line number Diff line change
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.