davinci
davinci copied to clipboard
eslint error: dispatch(checkNameUniqueAction(pathname, data, resolve, reject))
hi, I have an eslint error and need help. code: dispatch(checkNameUniqueAction(pathname, data, resolve, reject)), Error message: Argument of type '{ type: string; payload: { pathname: any; data: any; resolve: any; reject: any; }; }' is not assignable to parameter of type 'Action'. Type '{ type: string; payload: { pathname: any; data: any; resolve: any; reject: any; }; }' is not assignable to type '{ type: "LOAD_DATASOURCES_INFO_FAILURE"; payload: { err: any; }; }'. Types of property 'type' are incompatible. Type 'string' is not assignable to type '"LOAD_DATASOURCES_INFO_FAILURE"'.
Please post your code to help troubleshooting.
Please post your code to help troubleshooting. ok. Here is a screenshot of the eslint error and the git branch code
![]()
git: https://github.com/loqinyahuive/davinci