@xynogen/pix-pretty 1.7.9 → 1.7.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/commands/pretty.ts +2 -2
package/package.json
CHANGED
package/src/commands/pretty.ts
CHANGED
|
@@ -62,7 +62,7 @@ export function registerPrettyCommand(pi: PiPrettyApi): void {
|
|
|
62
62
|
// Headless / no custom-UI host: cycle to the next mode + notify.
|
|
63
63
|
if (typeof ui.custom !== "function") {
|
|
64
64
|
const cur = ICON_MODES.indexOf(getIconMode());
|
|
65
|
-
const next = ICON_MODES[(cur + 1) % ICON_MODES.length]
|
|
65
|
+
const next = ICON_MODES[(cur + 1) % ICON_MODES.length] as IconMode;
|
|
66
66
|
applyMode(next);
|
|
67
67
|
ui.notify(`pix-pretty icons: ${next}`, "info");
|
|
68
68
|
return;
|
|
@@ -82,7 +82,7 @@ export function registerPrettyCommand(pi: PiPrettyApi): void {
|
|
|
82
82
|
|
|
83
83
|
const choose = (i: number) => {
|
|
84
84
|
selected = (i + ICON_MODES.length) % ICON_MODES.length;
|
|
85
|
-
applyMode(ICON_MODES[selected]
|
|
85
|
+
applyMode(ICON_MODES[selected] as IconMode);
|
|
86
86
|
};
|
|
87
87
|
|
|
88
88
|
return {
|