Options
All
  • Public
  • Public/Protected
  • All
Menu

Module satisfyRule/inequality

This module reexports functions, schemas and types relating to the Inequality type.

Only two types of inequality strings are allowed:

  1. "at least" inequalities (e.g. ">=32"); and
  2. "at most" inequalities (e.g. "<=16").

The inequality string should start with either "<=" or ">=", followed by a positive integer.

Index

References

Inequality

Re-exports Inequality

InequalitySign

Re-exports InequalitySign

inequalitySatisfier

Re-exports inequalitySatisfier

inequalitySchema

Re-exports inequalitySchema

inequalityTypeSchema

Re-exports inequalityTypeSchema

Functions

Const parseInequality

  • Parses an inequality into its sign and number.

    Parameters

    • inequality: string

      The specified inequality.

    Returns [InequalitySign, number]

    A pair with the first element as the sign of the inequality and the second element as the number of the inequality.

Generated using TypeDoc