Closed nchambrier-iziwork closed 3 years ago
Thanks for reporting.
Are you using DefinitelyTyped type definitions?
Looks like we haven't installed anything specific about Parse & Typing. Should I explicitely install @.***/parse-server" or similar?
Le ven. 16 avr. 2021 à 15:07, Manuel @.***> a écrit :
Thanks for reporting.
Are you using DefinitelyTyped type definitions?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/parse-community/parse-server/issues/7350#issuecomment-821161339, or unsubscribe https://github.com/notifications/unsubscribe-auth/ATCWJMQW4UCZNE3KIJKERKDTJAZCTANCNFSM43BIEGAQ .
-- Nicolas Chambrier - RecOps
Depends on your setup. Parse TS definitions are currently manually maintained in DefinitelyTyped.
That would be
npm install --save-dev @types/parse
That also means, that any incorrect definition would have to be corrected in the repo there
As this is an issue with the DefinitelyTyped definitions, I’m going to close this one out.
@TomWFox I'm confused why this is an issue with the DefinitelyTyped definitions, The type defs over there correspond to parse, not parse-server. parse-server has no type definitions at all.
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 inCustomRequest
whichFunctionRequest
inherits, but this property exists only for Job requests)req.functionName
is not declared, but it definitely existsFix
jobName
andjobId
(and probably others?) fromCustomRequest
and declare it inJobRequest
onlyfunctionName: string
(and probably others?) inFunctionRequest