cityssm/parking-ticket-system

View on GitHub
types/applicationTypes.ts

Summary

Maintainability
A
0 mins
Test Coverage
type MessageTypes = 'clearCache'

export interface WorkerMessage {
  messageType: MessageTypes
  timeMillis: number
  pid: number
}

export type CacheTableName = 'ParkingBylaws' | 'ParkingLocations'

export interface ClearCacheWorkerMessage extends WorkerMessage {
  messageType: 'clearCache'
  tableName: CacheTableName
}