From 74a1e8e12f81a1b5cef89d3dccd93f2aad50b160 Mon Sep 17 00:00:00 2001 From: Lawrence Ephrim Date: Thu, 2 May 2024 06:28:49 +0000 Subject: [PATCH] fix(forms): allow nullable `next_input` value --- src/types/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/types/index.ts b/src/types/index.ts index 5d7a349..2723a4c 100644 --- a/src/types/index.ts +++ b/src/types/index.ts @@ -16,7 +16,7 @@ export type FormInput = { validate: Validation; display: string | ((req: Request) => Promise | string); handler?: (req: Request) => Promise; - next_input?: string | ((req: Request) => Promise | string); + next_input?: string | ((req: Request) => Promise | string | undefined); end?: boolean | ((req: Request) => boolean); next_menu?: NextMenu; };