Skip to content

Commit 817626f

Browse files
committed
fix(promp): options is optional
1 parent ad20f89 commit 817626f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/consola.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ export class Consola {
8787
return this._stderr || console._stderr; // eslint-disable-line no-console
8888
}
8989

90-
prompt<T extends PromptOptions>(message: string, opts: T) {
90+
prompt<T extends PromptOptions>(message: string, opts?: T) {
9191
if (!this.options.prompt) {
9292
throw new Error("prompt is not supported!");
9393
}

0 commit comments

Comments
 (0)