Skip to content

Commit

Permalink
Introduce FieldType type
Browse files Browse the repository at this point in the history
  • Loading branch information
oandregal committed Jul 3, 2024
1 parent 759d1c0 commit 5ff77a7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/dataviews/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,16 @@ export type Operator =

export type ItemRecord = Record< string, unknown >;

export type FieldType = 'text';

/**
* A dataview field for a specific property of a data type.
*/
export type Field< Item > = {
/**
* Type of the fields.
*/
type?: string; // TODO: provide a enum-like list for valid values.
type?: FieldType;

/**
* The unique identifier of the field.
Expand Down

0 comments on commit 5ff77a7

Please sign in to comment.