fix: row admin type

This commit is contained in:
Dan Ribbens
2021-07-28 14:37:27 -04:00
parent 8f90caeb10
commit deef5202c1
2 changed files with 934 additions and 1085 deletions

View File

@@ -140,7 +140,13 @@ export type GroupField = FieldBase & {
}
}
export type RowField = FieldBase & {
export type RowAdmin = Omit<Admin, 'description'> & {
readOnly?: false;
hidden?: false;
};
export type RowField = Omit<FieldBase, 'admin'> & {
admin?: RowAdmin;
type: 'row';
fields: Field[];
}