alm
Version:
The best IDE for TypeScript
28 lines (27 loc) • 944 B
TypeScript
// Compiled using typings@0.6.1
// Source: https://raw.githubusercontent.com/DefinitelyTyped/DefinitelyTyped/a660bd5f6d3b81188e9a332d5ee01d622509e49c/ora/ora.d.ts
// Type definitions for ora
// Project: https://github.com/sindresorhus/ora
// Definitions by: Basarat Ali Syed <https://github.com/basarat/>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
declare module 'ora' {
type Color = 'black' | 'red' | 'green' | 'yellow' | 'blue' | 'magenta' | 'cyan' | 'white' | 'gray';
type Text = string;
interface Options {
text?: Text;
spinner?: string | { interval?: number; frames: string[]; }
color?: Color;
stream?: any;
}
interface Instance {
start(): void;
stop(): void;
clear(): void;
frame(): void;
render(): void;
text: Text;
color: Color;
}
function ora(options: Options | Text): Instance;
export = ora;
}