Niche API Documentation - v0.1.0
    Preparing search index...

    Type Alias SurveyFormState

    SurveyFormState:
        | { error?: string; submitted?: Record<string, unknown> }
        | undefined

    State returned by submitSurvey.

    On validation failure, submitted carries the user's answers back so the form can repopulate them (React clears form fields after a submit).