We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d3e253d commit bc53d86Copy full SHA for bc53d86
packages/prompts/src/spinner.ts
@@ -24,7 +24,7 @@ export interface SpinnerOptions extends CommonOptions {
24
25
export interface SpinnerResult {
26
start(msg?: string): void;
27
- stop(msg?: string, code?: number): void;
+ stop(msg?: string | null | undefined, code?: number): void;
28
message(msg?: string): void;
29
readonly isCancelled: boolean;
30
}
@@ -163,7 +163,7 @@ export const spinner = ({
163
}, delay);
164
};
165
166
- const stop = (msg, code = 0): void => {
+ const stop = (msg: string | null | undefined, code = 0): void => {
167
if (!isSpinnerActive) return;
168
isSpinnerActive = false;
169
clearInterval(loop);
0 commit comments