ParseCloudClass: P.Cloud.beforeFind is not a function and wrong typings
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
This is your first issue on our repo :) Thank you!
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.
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!