Type Alias: SectionEditMode
SectionEditMode =
"add"|"replace"|"upsert"
How a SectionEdit reconciles with the section already in the document:
"add" requires the section be absent (else CcdaEditError
SECTION_ALREADY_PRESENT), "replace" requires it be present (else
SECTION_ABSENT), and "upsert" (the default) replaces it when present and
adds it when absent.
Example
import type { SectionEditMode } from "@cosyte/ccda";
const mode: SectionEditMode = "add";