UNPKG

715 BTypeScriptView Raw
1import type { Ora, Options, Spinner, Color } from 'ora';
2export type Loader = Ora;
3declare class OraNoop implements Loader {
4 spinner: Spinner;
5 indent: number;
6 isSpinning: boolean;
7 text: string;
8 prefixText: string;
9 color: Color;
10 succeed(_text?: string | undefined): this;
11 fail(_text?: string): this;
12 start(_text?: string): this;
13 stop(): this;
14 warn(_text?: string): this;
15 info(_text?: string): this;
16 stopAndPersist(): this;
17 clear(): this;
18 render(): this;
19 frame(): string;
20}
21export declare function getLoader(options?: string | Options | undefined): Loader;
22export declare const NoopLoader: typeof OraNoop;
23export {};
24//# sourceMappingURL=loader.d.ts.map
\No newline at end of file