Skip to content

Commit 4412e5d

Browse files
committed
use Boolean()
1 parent 58922dc commit 4412e5d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/prompts/src/common.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,5 +64,5 @@ export interface CommonPromptOptions extends CommonOptions {
6464
}
6565

6666
export const clearPrompt = (opts: CommonPromptOptions) => {
67-
return opts.clearPromptOnDone && typeof opts.clearPromptOnDone === 'boolean';
67+
return Boolean(opts.clearPromptOnDone && typeof opts.clearPromptOnDone === 'boolean');
6868
}

0 commit comments

Comments
 (0)