From c46699db647c90388f1007405a02d7000ebef0c9 Mon Sep 17 00:00:00 2001 From: John Gee Date: Sun, 8 Jun 2025 12:50:23 +1200 Subject: [PATCH] chore(ts): update factory function to allow undefined for opts to match the publis interface --- lib/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/index.ts b/lib/index.ts index 0673c3a5..92c6575d 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(),