@sibilance.is/client v0.1.0-alpha.4
@sibilance.is/client / index / SurveyCallbacks
Interface: SurveyCallbacks
Defined in: CmdPr/sibilance/client/src/types.ts:205
Callbacks for survey lifecycle events.
Register these callbacks to be notified of survey state changes, completion, errors, and other events.
Properties
| Property | Type | Description | Defined in |
|---|---|---|---|
onComplete? | (yaml) => void | Called when survey is completed | CmdPr/sibilance/client/src/types.ts:207 |
onPause? | () => void | Called when survey is paused | CmdPr/sibilance/client/src/types.ts:209 |
onEnd? | (reason?) => void | Called when survey is ended early | CmdPr/sibilance/client/src/types.ts:211 |
onInformationRecorded? | (info) => void | Called when information is recorded | CmdPr/sibilance/client/src/types.ts:213 |
onStepChange? | (stepId) => void | Called when moving to a new step (for diagram updates) | CmdPr/sibilance/client/src/types.ts:215 |
onResponseRecorded? | (stepId, response) => void | Called when a response is recorded for a step (for diagram updates) | CmdPr/sibilance/client/src/types.ts:217 |
onError? | (error) => void | Called on error | CmdPr/sibilance/client/src/types.ts:219 |
onTestEnd? | () => void | Called when test is ended (only in test mode with enableTestTools) | CmdPr/sibilance/client/src/types.ts:221 |