@rawcmd/core
Version:
Rawcmd core package.
22 lines (21 loc) • 596 B
TypeScript
import { StreamletBase, WriterResolver } from '../types';
export interface SpinwriterConfig {
chars?: string[];
resolver?: WriterResolver;
speed?: number;
streamlet?: StreamletBase;
}
export declare class Spinwriter {
readonly __config: SpinwriterConfig;
protected _message: string;
protected _timer: any;
constructor(config?: SpinwriterConfig);
isStarted(): boolean;
getChar(): string;
getSize(): [number, number];
start(): this;
stop(): this;
write(message: string): boolean;
protected _tick(): void;
protected _render(): void;
}