Skip to content

Commit 0178118

Browse files
committed
docs: Minor fixes
1 parent db72690 commit 0178118

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ const MyComponent = () => {
154154
const flow = {
155155
start: {
156156
message: "What is your age?",
157-
validateInput: (userInput) => {
157+
validateTextInput: (userInput) => {
158158
if (isNaN(userInput)) {
159159
return {
160160
success: false,

src/types/ValidationResult.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Defines the return result from validateInput.
2+
* Defines the return result from validateTextInput and validateFileInput.
33
*/
44
export type ValidationResult = {
55
success?: boolean;

0 commit comments

Comments
 (0)