checkAndSetInputValue = (input, inputValue) => {
  if (['string', 'number'].includes(typeof inputValue)) {
    input.value = `${inputValue}`
  } else if (!isPromise(inputValue)) {
    warn(`Unexpected type of inputValue! Expected "string", "number" or "Promise", got "${typeof inputValue}"`)
  }
}
@param {HTMLInputElement | HTMLOutputElement | HTMLTextAreaElement} input
@param {SweetAlertOptions['inputValue']} inputValue