Hermes PostgreSQL
    Preparing search index...

    Type Alias NowFunction

    NowFunction: () => Date

    Function type that returns the current date/time.

    Used internally for timestamping operations. Can be overridden for testing.

    Type Declaration

      • (): Date
      • Returns Date

        Current date/time

    const outbox = createOutboxConsumer({
    // ...
    now: () => new Date('2024-01-01T00:00:00Z') // For testing
    })