Almost every time I want to use an enum in Typescript with MST I go down a rabbit hole reading https://www.typescriptlang.org/docs/handbook/enums.html So just for reference here are my notes from my most recent investigation:
export const DotPlotMode_CONTINUAL = "continual";
export const DotPlotMode_EACH_DOT = "each-dot";
export const DotPlotModeValues = [DotPlotMode_CONTINUAL, DotPlotMode_EACH_DOT] as const;
export type DotPlotMode = typeof DotPlotModeValues[number];
export const isDotPlotMode = (value: unknown): value is DotPlotMode => {