iya-sts
    Preparing search index...
    refusal: (
        code: any,
        field: any,
        detail: any,
    ) => { code: any; detail: any; field: any; ok: boolean } = refusal

    Type Declaration

      • (
            code: any,
            field: any,
            detail: any,
        ): { code: any; detail: any; field: any; ok: boolean }
      • Builds a refusal: the object every check in this module returns instead of throwing.

        Parameters

        • code: any

          a short code for the caller to switch on, such as missing or repeated

        • field: any

          the parameter the refusal is about

        • detail: any

          a sentence for a human

        Returns { code: any; detail: any; field: any; ok: boolean }

        { ok: false, code, field, detail }