diff --git a/web/app/components/datasets/common/economical-retrieval-method-config/index.spec.tsx b/web/app/components/datasets/common/economical-retrieval-method-config/index.spec.tsx
index 6aafc4ba95..cd6b050336 100644
--- a/web/app/components/datasets/common/economical-retrieval-method-config/index.spec.tsx
+++ b/web/app/components/datasets/common/economical-retrieval-method-config/index.spec.tsx
@@ -4,7 +4,13 @@ import EconomicalRetrievalMethodConfig from './index'
// Mock dependencies
vi.mock('../../settings/option-card', () => ({
- default: ({ children, title, description, disabled, id }: any) => (
+ default: ({ children, title, description, disabled, id }: {
+ children?: React.ReactNode
+ title?: string
+ description?: React.ReactNode
+ disabled?: boolean
+ id?: string
+ }) => (
{description}
{children}
@@ -13,7 +19,11 @@ vi.mock('../../settings/option-card', () => ({
}))
vi.mock('../retrieval-param-config', () => ({
- default: ({ value, onChange, type }: any) => (
+ default: ({ value, onChange, type }: {
+ value: Record
+ onChange: (value: Record) => void
+ type?: string
+ }) => (