MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / asDate

Function asDate

packages/core/sdk/src/artifact.ts:194–195  ·  view source on GitHub ↗
(value: Date | number | string)

Source from the content-addressed store, hash-verified

192}
193
194const asDate = (value: Date | number | string): Date =>
195 value instanceof Date ? value : new Date(value);
196
197export const rowToArtifactSummary = (row: ArtifactSummaryRow): ArtifactSummary => ({
198 id: ArtifactId.make(row.id),

Callers 1

rowToArtifactSummaryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected