Skip to content

Commit

Permalink
Admin Generator (Future): Rename combination column type string to …
Browse files Browse the repository at this point in the history
…`text` (#2556)

This is to be more consistent with column types outside of combination
columns.
  • Loading branch information
jamesricky authored Sep 24, 2024
1 parent 566d5be commit b433d53
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export const CombinationFieldsTestProductsGrid: GridConfig<GQLProduct> = {
headerName: "Title and Category",
primaryText: "title",
secondaryText: {
type: "string",
type: "text",
field: "category.title",
emptyValue: "No category set",
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ type AbstractField<FieldName extends string> = {
emptyValue?: string;
};

type StringField<FieldName extends string> = AbstractField<FieldName> & {
type: "string";
type TextField<FieldName extends string> = AbstractField<FieldName> & {
type: "text";
};

type StaticText = {
Expand Down Expand Up @@ -47,7 +47,7 @@ type NumberField<FieldName extends string> = AbstractField<FieldName> &

// type TextConfig<FieldName extends string> = Field<FieldName> | FieldGroup<FieldName>;

type Field<FieldName extends string> = StaticText | FieldName | StringField<FieldName> | NumberField<FieldName>;
type Field<FieldName extends string> = StaticText | FieldName | TextField<FieldName> | NumberField<FieldName>;

type TextConfig<FieldName extends string> = Field<FieldName>;

Expand Down

0 comments on commit b433d53

Please sign in to comment.