Skip to content

fix(cli): preserve the Clack prompt cancellation type - #190

Merged
robinvrd merged 1 commit into
dependabot/bun/cli/cli-dependencies-98fefd6d67from
robin/pr174-prompt-result
Nov 20, 2026
Merged

robinvrd merged 1 commit into
dependabot/bun/cli/cli-dependencies-98fefd6d67from
robin/pr174-prompt-result

Conversation

@robinvrd

Copy link
Copy Markdown

This fixes the prompt typecheck failure reported on #174. resolvePromptResult now derives its input type from Clack’s text prompt. TypeScript can narrow the result to string after the existing isCancel check for text, password, and select prompts.

With Bun 1.4.4 and the dependency versions from #174, the CLI typecheck passes. Full repository verification then stops in generate:check because openapi-typescript tries to access ts.factory.createKeywordTypeNode and ts.factory is undefined with TypeScript 7.

@robinvrd
robinvrd merged commit 72703b7 into dependabot/bun/cli/cli-dependencies-98fefd6d67 Nov 20, 2026
1 check passed
@robinvrd
robinvrd deleted the robin/pr174-prompt-result branch November 20, 2026 09:55
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.

2 participants