serverless / serverless/examples
[QUESTION] What typing to use for http event in GCP example?
Open
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 11.5k
- Forks
- 4.4k
- Avg merge
- 2h 55m
- Merged PRs (30d)
- 3
Description
Currently, in the TS project example the code is untyped. I would like to know the correct types for the parameters.
The project can be found here.
'use strict';
exports.http = (request, response) => {
response.status(200).send("Hello World! Let's start Typescript!!");
};
exports.event = (event, callback) => {
callback();
};
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reviewing google-node-typescript-http-endpoint/src/App.ts in the linked examples project and identify the intended types for the HTTP handler parameters. Done means the example’s currently untyped parameters have explicit, appropriate TypeScript types and the example remains valid.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- google-cloud, typescript
- Domain
- cloud
- Issue type
- Documentation
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100