mirror of
https://github.com/Sea-Haven-Industries/shoc-frontend-new.git
synced 2026-10-07 16:19:01 +00:00
fix(work-orders): type comp-doc seed status for tsc
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
db2ca4d933
commit
36d8e54d6d
2 changed files with 5 additions and 4 deletions
|
|
@ -1,13 +1,14 @@
|
|||
import { useEffect, useRef, type Dispatch, type SetStateAction } from "react";
|
||||
import type { CompDocData, DocState } from "@/domain/work-orders/types/completion-doc";
|
||||
import type { CompletionDocStatus } from "@/domain/work-orders/types/work-order-table-row";
|
||||
import { docStateOf } from "@/domain/work-orders/utils/completion-doc-state";
|
||||
|
||||
type UseCompDocDialogSeedArgs = {
|
||||
open: boolean;
|
||||
infoId: string | number;
|
||||
infoDocStatus?: string | null;
|
||||
infoDocStatus: CompletionDocStatus;
|
||||
infoCompletedDate?: string | null;
|
||||
completionDocStatus?: string | null;
|
||||
completionDocStatus?: CompletionDocStatus | null;
|
||||
data?: CompDocData;
|
||||
setNotes: Dispatch<SetStateAction<string>>;
|
||||
setDocState: Dispatch<SetStateAction<DocState>>;
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
import { toast } from "react-toastify";
|
||||
import type { CompDocSaveStatus, DocState } from "@/domain/work-orders/types/completion-doc";
|
||||
import type { CompDocData, CompDocSaveStatus, DocState } from "@/domain/work-orders/types/completion-doc";
|
||||
|
||||
type PersistFn = (data: Record<string, never>, status: CompDocSaveStatus) => void | Promise<void>;
|
||||
type PersistFn = (data: Partial<CompDocData>, status: CompDocSaveStatus) => void | Promise<void>;
|
||||
|
||||
type UseCompDocNotRequiredActionsArgs = {
|
||||
docState: DocState;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue