Skip to content

chore(prompts): destruct limitOption param for better code readability#457

Open
Simek wants to merge 1 commit intobombshell-dev:mainfrom
Simek:prompts-destruct-limitOptions-param
Open

chore(prompts): destruct limitOption param for better code readability#457
Simek wants to merge 1 commit intobombshell-dev:mainfrom
Simek:prompts-destruct-limitOptions-param

Conversation

@Simek
Copy link
Contributor

@Simek Simek commented Feb 4, 2026

Why

While going through the codebase I have spotted that limitOption param are partially destructed, and partially used directly by key reference. It seems to me that it makes code a bit harder to read, and understand default values at a glance.

How

Destruct limitOption param fully in the function definition for better code readability, apply small tweaks to type definition (combining [] with Array<> for the same type looked really odd).

@changeset-bot
Copy link

changeset-bot bot commented Feb 4, 2026

🦋 Changeset detected

Latest commit: 0f1e525

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@clack/prompts Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

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.

1 participant