diff --git a/lib/index.ts b/lib/index.ts index 0673c3a..92c6575 100644 --- a/lib/index.ts +++ b/lib/index.ts @@ -380,7 +380,7 @@ function alignCenter (str: string, width: number): string { } let mixin: Mixin -export function cliui (opts: Partial, _mixin: Mixin) { +export function cliui (opts: Partial | undefined, _mixin: Mixin) { mixin = _mixin return new UI({ width: opts?.width || getWindowWidth(),