-
Notifications
You must be signed in to change notification settings - Fork 1
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
argBodyにundefinedを含む場合はinvalidにする。テストコードの追加 #85
base: master
Are you sure you want to change the base?
Conversation
throw new Error( | ||
"引数が正しく渡されていません。もう一度helpを見てください。" | ||
); | ||
} | ||
|
||
const args = body.text?.split(" "); |
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.
nullは考慮しなくてもOKですか?
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.
https://github.com/ShuzoN/zut/blob/master/src/Types/lambda.ts#L2
stringってnull許容でしたっけ?(覚えてない)
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.
このtypesが正しければ大丈夫です!
emptyの場合はundefinedではなくnullをセットするライブラリが多いので、lambdaはどうなのかなと思ったところでした。
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.
あーたしかに。types/aws-lambdaみときます
ref: #84
テストコード足したいのとsplitする前にそもそもundefinedだったら落とすようにする。