We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 26b54e2 commit 4a71532Copy full SHA for 4a71532
1 file changed
lib/index.ts
@@ -380,7 +380,7 @@ function alignCenter (str: string, width: number): string {
380
}
381
382
let mixin: Mixin
383
-export function cliui (opts: Partial<UIOptions>, _mixin: Mixin) {
+export function cliui (opts: Partial<UIOptions> | undefined, _mixin: Mixin) {
384
mixin = _mixin
385
return new UI({
386
width: opts?.width || getWindowWidth(),
0 commit comments