emitter.ts 235 B

1234567891011
  1. // Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
  2. import mitt, { type Emitter } from 'mitt'
  3. type Events = {
  4. sessionInvalid: void
  5. }
  6. const emitter: Emitter<Events> = mitt<Events>()
  7. export default emitter