From 58f2b5640e89b9352dd300cd7e73a2e61f18440e Mon Sep 17 00:00:00 2001 From: Mike Pearson Date: Sat, 18 Feb 2023 03:15:27 -0700 Subject: [PATCH] Added type for Debug props --- index.d.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/index.d.ts b/index.d.ts index 3ae039cf..9d0efde4 100644 --- a/index.d.ts +++ b/index.d.ts @@ -513,7 +513,11 @@ declare namespace utils { } export function SchemaFields(): JSX.Element; -export function Debug(): JSX.Element; + +type DebugProps = { + [FormStateKey in keyof FormState]?: boolean; +}; +export function Debug(props: DebugProps): JSX.Element; // export class Elon { // static inspect([any]): any;