diff --git a/components/vc-tree-select/Context.tsx b/components/vc-tree-select/Context.tsx index 9b7b8d8e7c..95746f7922 100644 --- a/components/vc-tree-select/Context.tsx +++ b/components/vc-tree-select/Context.tsx @@ -40,7 +40,7 @@ interface ContextProps { slots: { title?: (data: InternalDataEntity) => any; titleRender?: (data: InternalDataEntity) => any; - [key: string]: (d: any) => any | undefined; + [key: string]: ((...args: any[]) => any) | undefined; }; } diff --git a/components/vc-tree/contextTypes.ts b/components/vc-tree/contextTypes.ts index b8d0c978c1..33dbc88029 100644 --- a/components/vc-tree/contextTypes.ts +++ b/components/vc-tree/contextTypes.ts @@ -81,7 +81,7 @@ export interface TreeContextProps { slots: { title?: (data: DataNode) => any; titleRender?: (data: DataNode) => any; - [key: string]: (d: any) => any | undefined; + [key: string]: ((...args: any[]) => any) | undefined; }; } const TreeContextKey: InjectionKey> = Symbol('TreeContextKey');