Per API, you are sure `resolve` is a function. Remove this check and remove the second parameter as I told you, you can only pass one value to resolve.