fix: update type definitions for formRef and onSubmit in StepTwoContent component

- Changed formRef type to allow for null values.
- Updated onSubmit parameter type from Record<string, any> to Record<string, unknown> for better type safety.
This commit is contained in:
CodingOnStar 2026-01-12 13:50:00 +08:00
parent aa2c38074c
commit 2a261fa040

View File

@ -4,12 +4,12 @@ import { memo } from 'react'
import ProcessDocuments from '../process-documents'
type StepTwoContentProps = {
formRef: RefObject<any>
formRef: RefObject<{ submit: () => void } | null>
dataSourceNodeId: string
isRunning: boolean
onProcess: () => void
onPreview: () => void
onSubmit: (data: Record<string, any>) => void
onSubmit: (data: Record<string, unknown>) => void
onBack: () => void
}