Documentation
    Preparing search index...

    Function validateCvmOptions

    • Validate CvmRequestOptions / CvmRegistryCallOptions and return the NAP-CVM error text, or null when acceptable.

      Parameters

      • value: unknown

        The options field.

      • maxTimeoutMs: number

        Shell policy ceiling for timeoutMs.

      Returns string | null

      invalid request, invalid timeout, timeout out of policy, or null.

      validateCvmOptions({ timeoutMs: 0 }, 300_000) === 'invalid timeout';