Core API Reference
EntityAttributesValues
The EntityAttributesValues
utility type infers the runtime value types of all attributes defined in an entity. It produces a record type where each key corresponds to an attribute name, and each value matches the validated type returned by the attribute’s validate
function.
Reference
EntityAttributesValues<TEntity>
import { type EntityAttributesValues } from "@coltorapps/builder";
import { textFieldEntity } from "./text-field-entity";
type TextFieldAttributesValues = EntityAttributesValues<typeof textFieldEntity>;