Skip to content

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

@azlekov

Description

@azlekov

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

Metadata

Metadata

Labels

bugSomething isn't workingdependenciesPull requests that update a dependency filegood first issueGood for newcomers

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions