From f114f1529bffd42e3b80af1c31d203953b1249e8 Mon Sep 17 00:00:00 2001 From: Adria Navarro Date: Mon, 23 Dec 2024 10:01:33 +0100 Subject: [PATCH] Intial relatedColumns utils conversion --- packages/frontend-core/src/utils/{index.js => index.ts} | 0 .../src/utils/{relatedColumns.js => relatedColumns.ts} | 6 ++++-- 2 files changed, 4 insertions(+), 2 deletions(-) rename packages/frontend-core/src/utils/{index.js => index.ts} (100%) rename packages/frontend-core/src/utils/{relatedColumns.js => relatedColumns.ts} (94%) diff --git a/packages/frontend-core/src/utils/index.js b/packages/frontend-core/src/utils/index.ts similarity index 100% rename from packages/frontend-core/src/utils/index.js rename to packages/frontend-core/src/utils/index.ts diff --git a/packages/frontend-core/src/utils/relatedColumns.js b/packages/frontend-core/src/utils/relatedColumns.ts similarity index 94% rename from packages/frontend-core/src/utils/relatedColumns.js rename to packages/frontend-core/src/utils/relatedColumns.ts index 6e7968f70c..60be13bec9 100644 --- a/packages/frontend-core/src/utils/relatedColumns.js +++ b/packages/frontend-core/src/utils/relatedColumns.ts @@ -1,4 +1,4 @@ -import { FieldType, RelationshipType } from "@budibase/types" +import { FieldType, RelationshipType, UIFieldSchema } from "@budibase/types" import { Helpers } from "@budibase/bbui" const columnTypeManyTypeOverrides = { @@ -36,7 +36,9 @@ const columnTypeManyParser = { [FieldType.ARRAY]: value => Array.from(new Set(value)), } -export function enrichSchemaWithRelColumns(schema) { +export function enrichSchemaWithRelColumns( + schema: Record +) { if (!schema) { return }