enum Status { Stopped = 'stopped', Starting = 'starting', Running = 'running', Stopping = 'stopping', Error = 'error', } const isStatus = (something: any) => [ Status.Stopped, Status.Starting, Status.Running, Status.Stopping, Status.Error, ].includes(something) export { Status, isStatus }