Type constants

This commit is contained in:
Adria Navarro 2025-01-13 13:34:09 +01:00
parent 1fb530dd8e
commit d9eb7eaa55
3 changed files with 2 additions and 1 deletions

View File

@ -4,6 +4,7 @@ import {
INTERNAL_TABLE_SOURCE_ID,
AutoFieldSubType,
Hosting,
FieldSubType,
} from "@budibase/types"
import { Constants } from "@budibase/frontend-core"
@ -209,7 +210,7 @@ export const Roles = {
BUILDER: "BUILDER",
}
export function isAutoColumnUserRelationship(subtype) {
export function isAutoColumnUserRelationship(subtype: FieldSubType) {
return (
subtype === AUTO_COLUMN_SUB_TYPES.CREATED_BY ||
subtype === AUTO_COLUMN_SUB_TYPES.UPDATED_BY