classifyVariantMemberKind
classifyVariantMemberKind(
props):VariantMemberKind
Defined in: packages/core/src/fields/variant/utils.ts:38
Classifies the runtime kind a primitive variant() member’s STORED value
takes on, from its field config — the check variant() uses to reject two
members sharing a kind, and to reject json() (whose stored shape is
unknowable ahead of time) outright.
number()’s Int64NumberField variant (isInt64NumberField) classifies as
"bigint", not "number". select()/relationship()/upload() classify as "string"
only when scalar-stored (field.schema !== undefined) — otherwise (the
array-storage default) they classify as "array", same as a bare array().
Parameters
Section titled “Parameters”The member’s resolved field definition.
Returns
Section titled “Returns”One of VARIANT_MEMBER_KINDS; "unknown" for a field whose
stored shape cannot be classified ahead of time (json(), or a nested
primitive variant(), whose own members may themselves vary in kind).