Function parseFormFields

  • Parses HTTP form data or query parameters into a JavaScript object that conforms as closely as possible to a TypeBox schema.

    Type Parameters

    • T extends TObject<TProperties, T>

    Parameters

    • fieldData: FieldData

      The HTTP form data or query parameters.

    • schemaInfo: SchemaInfo<T>

      Information about the schema used to parse the data.

    Returns Static<T>

    The parsed data, always taking the form of an object.

Generated using TypeDoc