Variable
LearnerProfileConst
LearnerProfile: ZodObject<
{
name: ZodString;
avatar: ZodDiscriminatedUnion<
[
ZodObject<{ kind: ZodLiteral<"initials"> }, $strip>,
ZodObject<
{
kind: ZodLiteral<"illustration">;
id: ZodEnum<
{
sun: "sun";
wave: "wave";
leaf: "leaf";
plum: "plum";
ember: "ember";
echo: "echo";
night: "night";
schwa: "schwa";
},
>;
},
$strip,
>,
],
"kind",
>;
},
$strip,
> = ...
Who is learning on this device: a name and an avatar.
The name is trimmed before its length is judged, so a name of spaces is blank rather than valid.