Loading workspace environment...
Learn discriminated unions with practical typescript examples.
type Result = { kind: "ok"; value: string } | { kind: "error"; message: string };