Create a ranked tester that will associate a number with a given tester, if the latter returns true.

  • Parameters

    • rank: number

      the rank to be returned in case the tester returns true

    • tester: Tester

      a tester

    Returns (
        uischema: UISchemaElement,
        schema: JsonSchema,
        context: TesterContext,
    ) => number