feat: improve TS typing and refactor examples#18
Conversation
// src/types/index.ts The [Verb][Noun]Callback pattern (e.g. CheckSuccessCallback, CheckErrorCallback) is used for check callbacks, but submit uses SubmitSuccessCallback. This is fine, but worth noting as an
// Previously in the public section, now @internal It was already @Private in JSDoc, but it's still exported. If someone imports it directly (unlikely but possible), there's no deprecation warning. Consider whether to add @deprecated or
liveValidation: (path: string) => true | undefined, The liveValidation field in the return object was previously of type LiveValidationFn (a function), and LiveValidation in the state was the record. Now both are named liveValidation
return { In the return object ordering, mutations follow a logical sequence (write → remove → initialize → reset → set → validate → submit → check), but check is semantically different from
|
No description provided.