You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
503 B
16 lines
503 B
const STATUS_STOPPED = Symbol('status stopped')
|
|
const STATUS_STARTING = Symbol('status starting')
|
|
const STATUS_RUNNING = Symbol('status running')
|
|
const STATUS_STOPPING = Symbol('status stopping')
|
|
const STATUS_ERROR = Symbol('status error')
|
|
|
|
const isStatus = (something: any) => [
|
|
STATUS_STOPPED,
|
|
STATUS_STARTING,
|
|
STATUS_RUNNING,
|
|
STATUS_STOPPING,
|
|
STATUS_ERROR,
|
|
].includes(something)
|
|
|
|
export { STATUS_STOPPED, STATUS_STARTING, STATUS_RUNNING, STATUS_STOPPING, STATUS_ERROR, isStatus }
|