import type { JSONSupport, JSONSupportMixinProperties } from "../../core/JSONSupport.js";

/** The coded value in a domain. */
export interface CodedValueProperties extends JSONSupportMixinProperties, Partial<Pick<CodedValue, "code" | "name">> {}

export default abstract class CodedValue extends JSONSupport {
  /** The value of the code. */
  accessor code: string | number;
  /** The name of the coded value. */
  accessor name: string;
}