Search
UpdateFieldAttributes
UpdateFieldAttributes
The type of the attributes parameter of Field.setAttributes:
Definition
type UpdateFieldAttributes = Omit<Extract<UpdateField, { type: T["type"]; }>, // This is NOT the same as Extract<UpdateField, T> // This is NOT the same as Extract<UpdateField, T> "id" | "type">
const fileFieldAttributes: UpdateFieldAttributes<FileField> = {
Can also use typeof:
const fileFieldAttributes: UpdateFieldAttributes<typeof fileField> = {