From 6d6efa8be0241e6f5a9dae3328b9474b056c777d Mon Sep 17 00:00:00 2001 From: Stu Kabakoff Date: Tue, 8 Oct 2024 13:11:06 -0400 Subject: [PATCH] type fixes --- docs/src/app/demos/petrock/sequence.ts | 7 +++---- docs/src/components/FormContainer.tsx | 2 ++ package.json | 9 ++------- 3 files changed, 7 insertions(+), 11 deletions(-) diff --git a/docs/src/app/demos/petrock/sequence.ts b/docs/src/app/demos/petrock/sequence.ts index 9d5d787..951b254 100644 --- a/docs/src/app/demos/petrock/sequence.ts +++ b/docs/src/app/demos/petrock/sequence.ts @@ -79,10 +79,9 @@ export const pages: SequenceChild< isRequired: (data) => !!data.registration?.rockDetails?.isAccessorized, isComplete: (data) => !data.registration?.rockDetails?.isAccessorized || - (!!data.accessoryInventory && - data.accessoryInventory.accessories.every( - (accessory) => !!accessory?.type, - )), + !!data.accessoryInventory?.accessories?.every( + (accessory) => !!accessory?.type, + ), Component: AccessoryInventoryForm, }, { diff --git a/docs/src/components/FormContainer.tsx b/docs/src/components/FormContainer.tsx index 726d291..b147bfe 100644 --- a/docs/src/components/FormContainer.tsx +++ b/docs/src/components/FormContainer.tsx @@ -10,6 +10,7 @@ import type { UseFormWatch, Resolver, UseFormReturn, + DeepPartial, } from 'react-hook-form'; import { useForm } from 'react-hook-form'; import { useMultiPageHookForm } from '../../../src/hookForm'; @@ -90,6 +91,7 @@ export function FormContainer({

Full Sequence