dhaga.docs
API referenceFunctions

normalizeContactMethod()

function normalizeContactMethod(raw): object;

Defined in: schemas/contact-fields.ts:78

Coerce a legacy string or a partial object into a full ContactMethod.

Parameters

raw

unknown

Returns

object

value

value: string;

label

label: string | null;

note

note: string | null;

On this page