Custom dataProvider create and update errors
Hi, I am getting this error in my customDataProvider, How can I solve it
Type '<TData extends BaseRecord = BaseRecord, TVariables extends ILead = ILead>({ variables }: CreateParams<TVariables>) => Promise<CreateResponse<TData>>' is not assignable to type '<TData extends BaseRecord = BaseRecord, TVariables = {}>(params: CreateParams<TVariables>) => Promise<CreateResponse<TData>>'.
Types of parameters '__0' and 'params' are incompatible.
Type 'CreateParams<TVariables>' is not assignable to type 'CreateParams<ILead>'.
Type 'TVariables' is not assignable to type 'ILead'.ts(2322)
types.d.ts(403, 53): This type parameter might need an
types.d.ts(403, 5): The expected type comes from property 'create' which is declared here on type 'CustomDataProvider'
Type '<TData extends BaseRecord = BaseRecord, TVariables extends ILead = ILead>({ variables }: CreateParams<TVariables>) => Promise<CreateResponse<TData>>' is not assignable to type '<TData extends BaseRecord = BaseRecord, TVariables = {}>(params: CreateParams<TVariables>) => Promise<CreateResponse<TData>>'.
Types of parameters '__0' and 'params' are incompatible.
Type 'CreateParams<TVariables>' is not assignable to type 'CreateParams<ILead>'.
Type 'TVariables' is not assignable to type 'ILead'.ts(2322)
types.d.ts(403, 53): This type parameter might need an
extends ILead constraint.types.d.ts(403, 5): The expected type comes from property 'create' which is declared here on type 'CustomDataProvider'
