Skip to content

FormDataEntryValue

Types

decoded

Represents a decoded version of the abstract formDataEntryValue type. A FormData entry value is either a string or a File.

type decoded = String(string) | File(WebAPI.FileAPI.file)

Values

decode

let decode: WebAPI.FetchAPI.formDataEntryValue => decoded

fromFile

let fromFile: WebAPI.FileAPI.file => WebAPI.FetchAPI.formDataEntryValue

fromString

let fromString: string => WebAPI.FetchAPI.formDataEntryValue

Parameters

string

Return type

WebAPI.FetchAPI.formDataEntryValue