Skip to content

Commit c7fad54

Browse files
committed
fix: export action from ux
1 parent bd979de commit c7fad54

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/ux/index.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,10 @@ const ACTION_TYPE =
2121
'spinner') ||
2222
'simple'
2323

24+
export const action = ACTION_TYPE === 'spinner' ? new Spinner() : new Simple()
25+
2426
export const ux = {
25-
action: ACTION_TYPE === 'spinner' ? new Spinner() : new Simple(),
27+
action,
2628
/**
2729
* Add color to text.
2830
* @param color color to use. Can be hex code (e.g. `#ff0000`), rgb (e.g. `rgb(255, 255, 255)`) or a standard ansi color (e.g. `red`)

0 commit comments

Comments
 (0)