From dbe382f91eaef67ca42c3a451f40273f0d21e86f Mon Sep 17 00:00:00 2001 From: Jacob Fletcher Date: Thu, 7 Mar 2024 12:59:07 -0500 Subject: [PATCH] fix(ui): document info types --- packages/ui/src/providers/DocumentInfo/types.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/ui/src/providers/DocumentInfo/types.ts b/packages/ui/src/providers/DocumentInfo/types.ts index 1ffcdfd6a..379693d72 100644 --- a/packages/ui/src/providers/DocumentInfo/types.ts +++ b/packages/ui/src/providers/DocumentInfo/types.ts @@ -28,7 +28,7 @@ export type DocumentInfoProps = { id: null | number | string initialData?: Data initialState?: FormState - onSave?: (data: Data) => Promise + onSave?: (data: Data) => Promise | void title?: string } @@ -47,6 +47,6 @@ export type DocumentInfoContext = Omit & { getDocPreferences: () => Promise<{ [key: string]: unknown }> getVersions: () => Promise setDocFieldPreferences: (field: string, fieldPreferences: { [key: string]: unknown }) => void - setDocumentInfo?: React.Dispatch> + setDocumentInfo?: React.Dispatch>> setDocumentTitle: (title: string) => void }