mirror of
https://github.com/langgenius/dify.git
synced 2026-01-13 21:57:48 +08:00
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:
parent
aa2c38074c
commit
2a261fa040
@ -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
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user