mirror of
https://github.com/langgenius/dify.git
synced 2026-01-14 06:07:33 +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'
|
import ProcessDocuments from '../process-documents'
|
||||||
|
|
||||||
type StepTwoContentProps = {
|
type StepTwoContentProps = {
|
||||||
formRef: RefObject<any>
|
formRef: RefObject<{ submit: () => void } | null>
|
||||||
dataSourceNodeId: string
|
dataSourceNodeId: string
|
||||||
isRunning: boolean
|
isRunning: boolean
|
||||||
onProcess: () => void
|
onProcess: () => void
|
||||||
onPreview: () => void
|
onPreview: () => void
|
||||||
onSubmit: (data: Record<string, any>) => void
|
onSubmit: (data: Record<string, unknown>) => void
|
||||||
onBack: () => void
|
onBack: () => void
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user