Skip to content

TypeScript typing issue with "FunctionRequest" #7350

@nchambrier-iziwork

Description

@nchambrier-iziwork

New Issue Checklist

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 in CustomRequest which FunctionRequest inherits, but this property exists only for Job requests)
  • req.functionName is not declared, but it definitely exists

image

Fix

  • Remove jobName and jobId (and probably others?) from CustomRequest and declare it in JobRequest only
  • Add functionName: string (and probably others?) in FunctionRequest

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions