From 5ff77a74f29b11045562c025970a874cedb5ed64 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Maneiro?= <583546+oandregal@users.noreply.github.com> Date: Wed, 3 Jul 2024 08:23:12 +0200 Subject: [PATCH] Introduce FieldType type --- packages/dataviews/src/types.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/dataviews/src/types.ts b/packages/dataviews/src/types.ts index 50eaf9a64cfeb5..9e140f686d65f8 100644 --- a/packages/dataviews/src/types.ts +++ b/packages/dataviews/src/types.ts @@ -44,6 +44,8 @@ export type Operator = export type ItemRecord = Record< string, unknown >; +export type FieldType = 'text'; + /** * A dataview field for a specific property of a data type. */ @@ -51,7 +53,7 @@ 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.