Archived
Private
Public Access
1
0
This repository has been archived on 2026-02-04. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
ProjectBackup/node/TestCli/node_modules/nanospinner/index.d.ts
2022-09-04 12:45:01 +02:00

21 lines
559 B
TypeScript

interface Options {
stream?: NodeJS.WriteStream
frames?: string[]
interval?: number
text?: string
color?: string
}
interface Spinner {
success(opts?: { text?: string; mark?: string }): Spinner
error(opts?: { text?: string; mark?: string }): Spinner
stop(opts?: { text?: string; mark?: string; color?: string }): Spinner
start(opts?: { text?: string; color?: string }): Spinner
update(opts?: Options): Spinner
reset(): Spinner
clear(): Spinner
spin(): Spinner
}
export function createSpinner(text?: string, opts?: Options): Spinner