(
exclusiveMinimum: number,
annotations?: Annotations.Filter
): SchemaAST.Filter<number>Validates that a number is greater than the specified value (exclusive).
Details
JSON Schema:
This check corresponds to the exclusiveMinimum constraint in JSON Schema.
Arbitrary:
When generating test data with fast-check, this applies an
exclusiveMinimum constraint to ensure generated numbers are greater than
the specified value.
export const const isGreaterThan: (
exclusiveMinimum: unknown,
annotations?: Annotations.Filter
) => SchemaAST.Filter<unknown>
Validates that a number is greater than the specified value (exclusive).
Details
JSON Schema:
This check corresponds to the exclusiveMinimum constraint in JSON Schema.
Arbitrary:
When generating test data with fast-check, this applies an
exclusiveMinimum constraint to ensure generated numbers are greater than
the specified value.
isGreaterThan = function makeIsGreaterThan<T>(options: {
readonly order: Order.Order<T>
readonly annotate?:
| ((
exclusiveMinimum: T
) => Annotations.Filter)
| undefined
readonly formatter?: Formatter<T> | undefined
}): (
exclusiveMinimum: T,
annotations?: Annotations.Filter
) => SchemaAST.Filter<T>
Creates a greater-than (>) check for any ordered type from an
Order.Order instance.
makeIsGreaterThan({
order: Order.Order<number>order: import OrderOrder.Number,
annotate?: | ((
exclusiveMinimum: unknown
) => Annotations.Filter)
| undefined
annotate: (exclusiveMinimum: unknownexclusiveMinimum) => ({
Annotations.Filter.meta?: Annotations.Meta | undefined(property) Annotations.Filter.meta?: {
_tag: 'isGreaterThan';
exclusiveMinimum: number;
}
Optional metadata used to identify or extend the filter with custom data.
meta: {
_tag: "isGreaterThan"_tag: "isGreaterThan",
exclusiveMinimum: numberexclusiveMinimum
}
})
})