Skip to content

Commit

Permalink
fix: field's attr option can be any string to string record
Browse files Browse the repository at this point in the history
  • Loading branch information
Cyrille Perois committed Aug 23, 2023
1 parent 69b2dd9 commit 0faa32f
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,10 @@ type FieldOptions = {
widget: string;
highlighted?: boolean;
dependencies?: [FieldDependency, ...Array<FieldDependency>];
attr?: FieldAttr;
attr?: Record<string, string>;
filterable?: boolean;
};

type FieldAttr = {
icon?: string;
};

export type FieldDependency = {
property: string;
value: string;
Expand Down

0 comments on commit 0faa32f

Please sign in to comment.