MCPcopy
hub / github.com/remix-run/remix / normalizeTimestampConfig

Function normalizeTimestampConfig

packages/data-table/src/lib/table.ts:1162–1175  ·  view source on GitHub ↗
(options: TimestampOptions | undefined)

Source from the content-addressed store, hash-verified

1160}
1161
1162function 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
1177function assertKeyLengths(
1178 sourceTableName: string,

Callers 1

tableFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…