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

Feat: Add type support for multiline plain text inputs #122

Merged
merged 3 commits into from
Dec 22, 2023

Conversation

carlovsk
Copy link
Contributor

Addressing the issue #121.

Just adding type support for the multiline option on Plan Text Inputs.

* @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;
Copy link
Owner

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!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure thing! Done :)

@carlovsk carlovsk force-pushed the feat/multiline-text-input branch from 23ab569 to 71cd188 Compare December 22, 2023 03:32
@carlovsk carlovsk requested a review from raycharius December 22, 2023 03:33
@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (6f5ccd5) 99.85% compared to head (71cd188) 99.85%.
Report is 11 commits behind head on main.

❗ 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.
📢 Have feedback on the report? Share it here.

@raycharius raycharius merged commit 1b198f9 into raycharius:main Dec 22, 2023
9 of 10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants