From 111c0b3cb4dd4c00d358a2fdcf2fe9d357af5e54 Mon Sep 17 00:00:00 2001 From: "nageuna922@gmail.com" Date: Tue, 10 Dec 2024 13:06:23 +0900 Subject: [PATCH] fix: type --- src/types/document.d.ts | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) 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