FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

feat(types): allow a generic in App type (#845) · vuejs/composition-api@48729d9 · GitHub

Commit 48729d9

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

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎src/apis/createApp.ts‎

Lines changed: 2 additions & 1 deletion
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)

Back | FazBrowse Home | New Git URL