import { FragmentOf } from 'gql.tada'
import { ActionLog } from '../fragments'

declare global {
  interface WindowEventMap {
    actionLogEvent: CustomEvent<ActionLogPayload>
    killWs: CustomEvent<never>
  }
}

export type ActionLogPayload = {
  actionLog: FragmentOf<typeof ActionLog>
}

export {} //keep that for TS compiler.
