-
Notifications
You must be signed in to change notification settings - Fork 13
fix(step-functions): props are not correctly passed to step function #444
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
Conversation
✅ Deploy Preview for effortless-malabi-1c3e77 ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
| isFunctionLike(args[0]) || isErr(args[0]) || typeof args[0] === "function" | ||
| ? {} | ||
| : (args[1] as StepFunctionProps); | ||
| : args[0]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What case is this catching? When would this be a function?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the actual change was changing the index from 1 to 0, the function check narrows the types it comes in as without using as, it will actually be expressions, but the type on it is a function.
| ); | ||
|
|
||
| test( | ||
| "props", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
better test name?
Signed-off-by: github-actions <github-actions@github.com>
Fixes #441