Skip to content

Commit c46699d

Browse files
committed
chore(ts): update factory function to allow undefined for opts to match the publis interface
1 parent af3145d commit c46699d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@ function alignCenter (str: string, width: number): string {
380380
}
381381

382382
let mixin: Mixin
383-
export function cliui (opts: Partial<UIOptions>, _mixin: Mixin) {
383+
export function cliui (opts: Partial<UIOptions> | undefined, _mixin: Mixin) {
384384
mixin = _mixin
385385
return new UI({
386386
width: opts?.width || getWindowWidth(),

0 commit comments

Comments
 (0)