-
-
Notifications
You must be signed in to change notification settings - Fork 47
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
Feat: Add type support for multiline plain text inputs #122
Feat: Add type support for multiline plain text inputs #122
Conversation
src/elements/index.ts
Outdated
* @param {int} [params.minLength] Sets a minimum character count in order for the user to submit the form. | ||
* @param {int} [params.maxLength] Sets a maximum character count allowed to send the form. | ||
* | ||
* {@link https://api.slack.com/reference/block-kit/block-elements#input|View in Slack API Documentation} | ||
*/ | ||
|
||
export function TextInput(params?: TextInputParams): TextInputBuilder { | ||
return new TextInputBuilder(params); | ||
const input = new TextInputBuilder(params); | ||
return input; |
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.
Could we return this back to the return new TextInputBuilder(params)? To keep it consistent with the rest of the codebase
After that, happy to approve and merge!
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.
Sure thing! Done :)
23ab569
to
71cd188
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## main #122 +/- ##
=======================================
Coverage 99.85% 99.85%
=======================================
Files 91 92 +1
Lines 1360 1383 +23
Branches 119 121 +2
=======================================
+ Hits 1358 1381 +23
Misses 2 2 ☔ View full report in Codecov by Sentry. |
Addressing the issue #121.
Just adding type support for the multiline option on Plan Text Inputs.