Skip to content

Function: brandCredentialRecord()

Makaio Framework


Makaio Framework / contracts/config / brandCredentialRecord

brandCredentialRecord(creds): Record<string, string & $brand<"CredentialRef">> | undefined

Defined in: ../../../packages/contracts/src/config/credential-ref.ts:191

Brand a plain string record as a credential-ref record.

Used by storage handlers to convert persisted JSON values into the branded API type.

Record<string, string> | null | undefined

Plain string record from storage

Record<string, string & $brand<"CredentialRef">> | undefined

Branded credential-ref record, or undefined when input is nullish