Skip to content

Commit

Permalink
fix(promp): options is optional
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Apr 11, 2023
1 parent ad20f89 commit 817626f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/consola.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ export class Consola {
return this._stderr || console._stderr; // eslint-disable-line no-console
}

prompt<T extends PromptOptions>(message: string, opts: T) {
prompt<T extends PromptOptions>(message: string, opts?: T) {
if (!this.options.prompt) {
throw new Error("prompt is not supported!");
}
Expand Down

0 comments on commit 817626f

Please sign in to comment.