Resolves true when an entity declares more than one Searchable-branded
attribute. Consumed by the @Entity decorator constraint so the invalid
declaration is a compile error at the class site; metadata validation
remains the runtime backstop.
The never guard matters: IsUnion<never> is never, and a never
condition is vacuously assignable to true — without the guard every
entity with no searchable attribute would trip the constraint.
Resolves
truewhen an entity declares more than oneSearchable-branded attribute. Consumed by the@Entitydecorator constraint so the invalid declaration is a compile error at the class site; metadata validation remains the runtime backstop.The
neverguard matters:IsUnion<never>isnever, and anevercondition is vacuously assignable totrue— without the guard every entity with no searchable attribute would trip the constraint.