Skip to content

Commit

Permalink
fix(VImg): missing emit typings (#15917)
Browse files Browse the repository at this point in the history
  • Loading branch information
jacekkarczmarczyk committed Oct 18, 2022
1 parent 4d365e4 commit cf2234e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/vuetify/src/components/VImg/VImg.tsx
Expand Up @@ -70,7 +70,11 @@ export const VImg = defineComponent({
...makeTransitionProps(),
},

emits: ['loadstart', 'load', 'error'],
emits: {
loadstart: (event: string | undefined) => true,
load: (event: string | undefined) => true,
error: (event: string | undefined) => true,
},

setup (props, { emit, slots }) {
const currentSrc = ref('') // Set from srcset
Expand Down

0 comments on commit cf2234e

Please sign in to comment.