The open alternative to Salesforce, designed for AI.
TypeScript crmcrm-systemcustomergood-first-issuegraphqlhacktoberfestjavascriptmarketingmonoreponestjsopen-sourcepostgresqlreactreactjssalestypescriptweb
import { isDefined } from 'twenty-shared/utils';
export type RelationFieldChangeValue = {
id: string | null;
};
export const isRelationFieldChangeValue = (
value: unknown,
): value is RelationFieldChangeValue => {
return (
isDefined(value) &&
typeof value === 'object' &&
value !== null &&
'id' in value
);
};