import { Brand, Result, ok, err } from '@shared/kernel/fp'; /** * Value object: {{pascalCase name}}. "Parse, don't validate" — a {{pascalCase name}} is a * distinct type from a raw string, mintable only via parse{{pascalCase name}}, so holding one * is proof it is well-formed. Format-only check; the backend re-validates (ADR-0001). */ export type {{pascalCase name}} = Brand; export function parse{{pascalCase name}}(raw: string): Result { const t = raw.trim(); // TODO: replace with the real format rule for {{pascalCase name}}. if (t.length === 0) { return err($localize`:@@validation.{{camelCase name}}:Voer een geldige waarde in.`); } return ok(t as {{pascalCase name}}); }