function _transformTypedCallbackFunction (typedFunction, numberOfArrays) {
    const signatures = Object.fromEntries(
      Object.entries(typedFunction.signatures)
        .map(([signature, callbackFunction]) => {
          const numberOfCallbackInputs = signature.split(',').length
          if (typed.isTypedFunction(callbackFunction)) {
            return [signature, _transformTypedCallbackFunction(callbackFunction, numberOfArrays)]
          } else {
            return [signature, _transformCallbackFunction(callbackFunction, numberOfCallbackInputs, numberOfArrays)]
          }
        })
    )

    if (typeof typedFunction.name === 'string') {
      return typed(typedFunction.name, signatures)
    } else {
      return typed(signatures)
    }
  }
Transforms the given typed callback function based on the number of arrays.

@param {Function} typedFunction - The typed callback function to transform.
@param {number} numberOfArrays - The number of arrays to pass to the callback function.
@returns {*} - The transformed callback function.