src/expectations/isGreaterThan.ts

import { Answerable, Expectation } from '@serenity-js/core';

export function isGreaterThan(expected: Answerable<number>): Expectation<number> {
    return Expectation.thatActualShould<number, number>('have value greater than', expected)
        .soThat((actualValue, expectedValue) => actualValue > expectedValue);
}