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

      Parameters

      • OptionalcreatedAt: Date

        Optional Date. If not provided, uses current time.

      Returns Date & $brand<"CreatedAt">

      A branded CreatedAt value

      When the value is not a valid Date

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