Skip to content

Commit bc53d86

Browse files
committed
fix types
1 parent d3e253d commit bc53d86

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/prompts/src/spinner.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export interface SpinnerOptions extends CommonOptions {
2424

2525
export interface SpinnerResult {
2626
start(msg?: string): void;
27-
stop(msg?: string, code?: number): void;
27+
stop(msg?: string | null | undefined, code?: number): void;
2828
message(msg?: string): void;
2929
readonly isCancelled: boolean;
3030
}
@@ -163,7 +163,7 @@ export const spinner = ({
163163
}, delay);
164164
};
165165

166-
const stop = (msg, code = 0): void => {
166+
const stop = (msg: string | null | undefined, code = 0): void => {
167167
if (!isSpinnerActive) return;
168168
isSpinnerActive = false;
169169
clearInterval(loop);

0 commit comments

Comments
 (0)