({
diffObject,
objectId,
attribute,
}: {
diffObject: DiffObject;
objectId: string;
attribute?: string;
})
| 30 | import type { DatabaseType } from '../../database-type'; |
| 31 | |
| 32 | export function getDiffMapKey({ |
| 33 | diffObject, |
| 34 | objectId, |
| 35 | attribute, |
| 36 | }: { |
| 37 | diffObject: DiffObject; |
| 38 | objectId: string; |
| 39 | attribute?: string; |
| 40 | }): string { |
| 41 | return attribute |
| 42 | ? `${diffObject}-${attribute}-${objectId}` |
| 43 | : `${diffObject}-${objectId}`; |
| 44 | } |
| 45 | |
| 46 | const isOneOfDefined = ( |
| 47 | ...values: (string | number | boolean | undefined | null)[] |
no outgoing calls
no test coverage detected