Represents a serialized output from a form.

This interface is used to structure the data obtained from a form when it is serialized. Serialization is the process of converting the state of an object into a format that can be stored or transmitted and reconstructed later.

Example

// Example output of a serialized form:
// [
// { form: 'myForm', name: 'username', value: 'john_doe' },
// { form: 'myForm', name: 'password', value: 'secret_password' }
// ]

Hierarchy

  • SerializedForm

Properties

Properties

form: string

The ID of the form that the input belongs to. This property is used to associate the input with its parent form.

name: string

The name attribute of the input element. This property is used to identify the input in the serialized data.

value?: string

The current value of the input element. This property is used to store the input's data. It is optional because some input types (like submit or reset) don't have a value.