Allow branded attributes (ForeignKey, Searchable) to be passed to the create/update
methods by using their inferred primitive type
Ex:
If ModelA has: attr1: ForeignKey
This allows" ModelA.create({ attr1: "someVal" })
Instead of: ModelA.create({ attr1: "someVal" as ForeignKey })
Each brand needs both a plain and an optional/nullable branch — a single
conditional fails against the optional form (EX: Searchable | undefined),
the same reason ForeignKey needs the separate NullableForeignKey branch
Allow branded attributes (ForeignKey, Searchable) to be passed to the create/update methods by using their inferred primitive type Ex: If ModelA has: attr1: ForeignKey This allows" ModelA.create({ attr1: "someVal" }) Instead of: ModelA.create({ attr1: "someVal" as ForeignKey })
Each brand needs both a plain and an optional/nullable branch — a single conditional fails against the optional form (EX:
Searchable | undefined), the same reason ForeignKey needs the separate NullableForeignKey branch