[Vuejs]-How do I determine if an emit is defined?

0👍

Try this instead.

export type UsePressableEmits = {
  (e: 'press', event: Event): void
  (e: 'longpress', event: Event): void
}

Leave a comment