• Converts the input data to a FormData object and returns it.

    Parameters

    • Optional data: null | {
          [key: string]: Parameters<typeof addValueToFD>[2];
      }

      The data to be converted to FormData

    Returns FormData

    The FormData object containing the converted data

    Example

    convertToFD({ string: 'value', array: ['value1', 'value2'], file: file });
    

Generated using TypeDoc