UNPKG

askeroo

Version:

A modern CLI prompt library with flow control, history navigation, and conditional prompts

40 lines 1.17 kB
export interface SpinnerLabel { idle?: string; running?: string; paused?: string; stopped?: string; } export interface SpinnerSymbol { idle?: string; running?: string | string[]; paused?: string; stopped?: string; } export interface SpinnerStyle { color?: string; bgColor?: string; dim?: boolean; symbol?: string | SpinnerSymbol; } export interface SpinnerOptions { label?: string | SpinnerLabel; spinnerId?: string; hideOnCompletion?: boolean; submitDelay?: number; style?: SpinnerStyle; } export type SpinnerStatus = "idle" | "running" | "paused" | "stopped"; export interface SpinnerState { status: SpinnerStatus; currentLabel?: string; currentStyle?: SpinnerStyle; gracePeriodActive?: boolean; currentSymbol?: string | SpinnerSymbol; } export interface SpinnerController { start: (label?: string, style?: SpinnerStyle) => Promise<void>; pause: (label?: string, style?: SpinnerStyle) => Promise<void>; resume: (label?: string, style?: SpinnerStyle) => Promise<void>; stop: (label?: string, style?: SpinnerStyle) => Promise<void>; } //# sourceMappingURL=types.d.ts.map