Skip to content

TraitValuesOf

TraitValuesOf<T> = Partial<T>

The traits the user answered, as getUserDetails reports them.

Every key is optional: a trait is required when written, and a user may have registered before the trait existed.

A disabled list item can still come back. A stored value naming an item your organization has since disabled is returned, while the generated union lists enabled items only, so a switch on the value needs a default arm. Match values against client.id.traits(); render a value that matches no item as unset, never with a made-up label.

T extends TraitValues = TraitValues