Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add explicit function return type for Lambda and Step Function code #1437

Merged
merged 1 commit into from
Sep 13, 2024

Conversation

lym953
Copy link
Contributor

@lym953 lym953 commented Sep 4, 2024

What and why?

Add explicit return type for most functions in

  • src/commands/lambda
  • src/commands/stepfunctions

to make code more readable, improving developer experience.

The return type for some functions is complicated (>= 4 lines long), and I'm not adding explicit return type for them because I think it would make code verbose and less readable.

How?

N/A

Testing

No new failure in npm test

Review checklist

  • Feature or bugfix MUST have appropriate tests (unit, integration)

@lym953 lym953 requested review from a team as code owners September 4, 2024 22:12
@lym953 lym953 force-pushed the yiming.luo/step-function-refactor branch from 1502bf9 to f2c1a96 Compare September 4, 2024 22:14
@lym953 lym953 changed the title Add explicit function return type for lambda command code Add explicit function return type for Lambda and Step Function code Sep 4, 2024
@lym953 lym953 added serverless Related to [lambda, stepfunctions, cloud-run] chores Related to the CI or developer experience labels Sep 4, 2024
@datadog-datadog-prod-us1
Copy link

Datadog Report

Branch report: yiming.luo/step-function-refactor
Commit report: f2c1a96
Test service: datadog-ci-tests

✅ 0 Failed, 1592 Passed, 0 Skipped, 1m 59.29s Total duration (1m 28.39s time saved)

@lym953 lym953 merged commit 62846a2 into master Sep 13, 2024
19 of 20 checks passed
@lym953 lym953 deleted the yiming.luo/step-function-refactor branch September 13, 2024 18:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chores Related to the CI or developer experience serverless Related to [lambda, stepfunctions, cloud-run]
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants