FormSetupCallback - Andrei15193/react-model-view-viewmodel GitHub Wiki

API / FormSetupCallback<TSection, TValidationError> alias

Represents a callback used to configure an individual form section within a collection.

type FormSetupCallback<TSection extends Form<TValidationError>, TValidationError = string>
  = (section: TSection) => void;

Source reference: src/forms/IConfigurableFormCollection.ts:9.

Generic Parameters

  • TSection - The form section type to configure.

    Type constraints: Form<TValidationError>.

  • TValidationError - The concrete type for representing validation errors (strings, enums, numbers etc.).

    Default value: string.

⚠️ **GitHub.com Fallback** ⚠️