Skip to content

Commit 3496444

Browse files
committed
fix types
1 parent 92886a2 commit 3496444

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/prompts/src/note.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ const wrapWithFormat = (message: string, width: number, format: FormatFn): strin
3737

3838
export const note = (message = '', title = '', opts?: NoteOptions) => {
3939
const output: Writable = opts?.output ?? process.stdout;
40-
const format = (ln) => opts?.format?.(ln) ?? defaultNoteFormatter(ln);
40+
const format = (ln: string) => opts?.format?.(ln) ?? defaultNoteFormatter(ln);
4141
const wrapMsg = wrapWithFormat(message, getColumns(output) - 6, format);
4242
const lines = ['', ...wrapMsg.split('\n').map(format), ''];
4343
const titleLen = strip(title).length;

0 commit comments

Comments
 (0)