Skip to content
This repository has been archived by the owner on Jan 26, 2023. It is now read-only.

Commit

Permalink
feat: extend type-declaration of vue component options
Browse files Browse the repository at this point in the history
  • Loading branch information
JohannesLamberts committed Apr 20, 2019
1 parent bf340c8 commit 8fc7fe1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@ import { ComponentOptions } from 'vue/types/options'
import { Vue } from 'vue/types/vue'
import Registry from './registry'

declare module 'vue/types/options' {
interface ComponentOptions<V extends Vue> {
injectModels?: string[]
}
}

export interface VueModelOptions extends ComponentOptions<Vue> {
modelId?: string,
}
Expand Down

0 comments on commit 8fc7fe1

Please sign in to comment.