diff --git a/src/types/document.d.ts b/src/types/document.d.ts index e2fabd08..9cdf6763 100644 --- a/src/types/document.d.ts +++ b/src/types/document.d.ts @@ -1,11 +1,14 @@ import { DeepRequired } from 'react-hook-form' import { components, paths } from './schema' +type DocumentDetailItem = DeepRequired +type DocumentItemInList = DeepRequired + declare global { declare namespace Document { - type DetailItem = DeepRequired - type ItemInList = DeepRequired - type List = Document.ItemInList[] + type DetailItem = DocumentDetailItem + type ItemInList = DocumentItemInList + type List = DocumentItemInList[] type Sort = 'CREATED_AT' | 'UPDATED_AT' type Status = DeepRequired