teableio/teable

View on GitHub
apps/nestjs-backend/src/utils/is-user-or-link.ts

Summary

Maintainability
A
0 mins
Test Coverage
import { FieldType } from '@teable/core';

export const isUserOrLink = (type: FieldType) => {
  return [FieldType.Link, FieldType.User, FieldType.CreatedBy, FieldType.LastModifiedBy].includes(
    type
  );
};