opensource icon indicating copy to clipboard operation
opensource copied to clipboard

ParseCloudClass: P.Cloud.beforeFind is not a function and wrong typings

Open azlekov opened this issue 6 years ago • 3 comments

Hello, I have installed and configure the ParseCloudClass but it looks like because of the Parse import and not using it as a global library failed to register the class.

Removing the import fix the problem for me but now I'm using mine version of the ParseCloudClass. Also the signatures of the triggers mismatch and leads to other compile issues.

I'm using it with Typescript and saw that your typing and trigger definitions are not right:

processBeforeDelete?: (
    req: Parse.Cloud.BeforeSaveRequest, // should be Parse.Cloud.BeforeDeleteRequest
  ) => Promise<Parse.Object>;

  afterDelete?: (
    req: Parse.Cloud.AfterSaveRequest, // should be Parse.Cloud.AfterDeleteRequest
  ) => Promise<Parse.Object>;

etc.

Great job with the library! I will be more than happy to see the other libraries from the issues list.

Asen

azlekov avatar Apr 16 '20 07:04 azlekov

This is your first issue on our repo :) Thank you!

github-actions[bot] avatar Apr 16 '20 07:04 github-actions[bot]

Hello,

Thank you for your comment :)) I will update the dependencies for the typings to match. However, I encourage you to open a PR if you are able to do it.

jcguarinpenaranda avatar Apr 17 '20 16:04 jcguarinpenaranda

Could you please tell me more about the error that you are getting? Maybe share a bit of the console output or an example of how you are using the library :) thank you!

jcguarinpenaranda avatar Apr 17 '20 16:04 jcguarinpenaranda