s-private API Documentation - v3.8.1
    Preparing search index...
    • Creates a validated UpdatedAt timestamp.

      Parameters

      • OptionalupdatedAt: Date

        Optional Date. If not provided, uses current time.

      Returns Date & $brand<"UpdatedAt">

      A branded UpdatedAt value

      When the value is not a valid Date

      const now = makeUpdatedAt(); // Current time
      const specific = makeUpdatedAt(new Date("2024-01-01"));