(options: TimestampOptions | undefined)
| 1160 | } |
| 1161 | |
| 1162 | function normalizeTimestampConfig(options: TimestampOptions | undefined): TimestampConfig | null { |
| 1163 | if (!options) { |
| 1164 | return null |
| 1165 | } |
| 1166 | |
| 1167 | if (options === true) { |
| 1168 | return { ...defaultTimestampConfig } |
| 1169 | } |
| 1170 | |
| 1171 | return { |
| 1172 | createdAt: options.createdAt ?? defaultTimestampConfig.createdAt, |
| 1173 | updatedAt: options.updatedAt ?? defaultTimestampConfig.updatedAt, |
| 1174 | } |
| 1175 | } |
| 1176 | |
| 1177 | function assertKeyLengths( |
| 1178 | sourceTableName: string, |
no outgoing calls
no test coverage detected
searching dependent graphs…