We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 92886a2 commit 3496444Copy full SHA for 3496444
packages/prompts/src/note.ts
@@ -37,7 +37,7 @@ const wrapWithFormat = (message: string, width: number, format: FormatFn): strin
37
38
export const note = (message = '', title = '', opts?: NoteOptions) => {
39
const output: Writable = opts?.output ?? process.stdout;
40
- const format = (ln) => opts?.format?.(ln) ?? defaultNoteFormatter(ln);
+ const format = (ln: string) => opts?.format?.(ln) ?? defaultNoteFormatter(ln);
41
const wrapMsg = wrapWithFormat(message, getColumns(output) - 6, format);
42
const lines = ['', ...wrapMsg.split('\n').map(format), ''];
43
const titleLen = strip(title).length;
0 commit comments