@medic/cht-datasource
    Preparing search index...

    Function isFormsQualifier

    • Returns true if the given qualifier is a FormsQualifier otherwise false.

      The qualifier must have a forms key holding a non-empty array of strings, none of which is empty, blank, or padded with leading/trailing whitespace. Unlike isIdsQualifier, an empty array is rejected: it can only ever match nothing, which is never what the caller meant, and silently returning an empty page would hide the mistake. A padded code is rejected for the same reason: it would otherwise pass validation but match nothing, since the value is compared verbatim rather than trimmed.

      Parameters

      • qualifier: unknown

        the qualifier to check

      Returns qualifier is Readonly<{ forms: [string, ...string[]] }>

      true if the given qualifier is a FormsQualifier, otherwise false.