-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Closed
Description
New Issue Checklist
- I am not disclosing a vulnerability.
- I am not just asking a question.
- I have searched through existing issues.
- Related to Improve Typescript support #7334 and other typescript issues but more specific
- I can reproduce the issue with the latest version of Parse Server.
Issue Description
When I received a Cloud Function request, it's supposed to by typed as Parse.Cloud.FunctionRequest<T>
, but this type is incorrect:
req.jobName
is supposed to exist (declared inCustomRequest
whichFunctionRequest
inherits, but this property exists only for Job requests)req.functionName
is not declared, but it definitely exists
Fix
- Remove
jobName
andjobId
(and probably others?) fromCustomRequest
and declare it inJobRequest
only - Add
functionName: string
(and probably others?) inFunctionRequest
Metadata
Metadata
Assignees
Labels
No labels