serverless / serverless/examples

[QUESTION] What typing to use for http event in GCP example?

Open
#656 0 comments 0 reactions 0 assignees View on GitHub

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.