Skip to content

Commit

Permalink
add types for component options
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewvasilchuk committed Nov 8, 2019
1 parent a1af091 commit cdb3fc9
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,14 @@ declare module 'vue/types/vue' {
}
}
}

declare module 'vue/types/options' {
interface ComponentOptions<V extends Vue> {
modal?: {
classes?: VNodeData['class']
label: string
attributes?: Record<string, any>
transition: string
}
}
}

0 comments on commit cdb3fc9

Please sign in to comment.