UNPKG

@iexec/iapp

Version:

A CLI to guide you through the process of building an iExec iApp

19 lines (18 loc) 557 B
import { type Ora } from 'ora'; import prompts from 'prompts'; export type Spinner = Ora & { /** * stop the spinner and clear the text */ reset: () => void; log: (msg: string) => void; /** * create new line without disrupting the spinner */ newLine: () => void; /** * prompt using `prompts` without disrupting the spinner */ prompt: <T extends string>(questions: prompts.PromptObject<T> | prompts.PromptObject<T>[]) => Promise<prompts.Answers<T>>; }; export declare const getSpinner: () => Spinner;