cityssm/attendance-tracking

View on GitHub
types/globalTypes.ts

Summary

Maintainability
A
0 mins
Test Coverage
import type { CallOutList } from './recordTypes.js'

export interface Attend {
  urlPrefix: string

  setUnsavedChanges: () => void
  clearUnsavedChanges: () => void
  hasUnsavedChanges: () => boolean
  initializeMenuTabs: (
    menuTabElements: NodeListOf<HTMLAnchorElement>,
    tabContainerElements: NodeListOf<HTMLElement>
  ) => void

  togglePanelBlocks: (clickEvent: Event) => void

  callOuts?: AttendCallOuts
}

export interface AttendCallOuts {
  callOutLists: CallOutList[]
  openCallOutList: (
    listId: string,
    onUpdateCallbackFunction?: () => void
  ) => void
}