Removed declare module "ora"

This commit is contained in:
Christian Rackerseder 2016-10-27 11:21:39 +02:00
parent 14eed8a1fe
commit a27693680c

54
ora/index.d.ts vendored
View File

@ -5,32 +5,30 @@
/// <reference types="node" />
declare module "ora" {
type Color = 'black' | 'red' | 'green' | 'yellow' | 'blue' | 'magenta' | 'cyan' | 'white' | 'gray';
interface Options {
text?: string;
spinner?: string | Spinner;
color?: Color;
interval?: number;
stream?: NodeJS.WritableStream;
enabled?: boolean;
}
interface Spinner {
interval?: number;
frames: string[];
}
interface Instance {
start(): Instance;
stop(): Instance;
succeed(): Instance;
fail(): Instance;
stopAndPersist(symbol?: string): Instance;
clear(): Instance;
render(): Instance;
frame(): Instance;
text: string;
color: Color;
}
function ora(options: Options | string): Instance;
export = ora;
type Color = 'black' | 'red' | 'green' | 'yellow' | 'blue' | 'magenta' | 'cyan' | 'white' | 'gray';
interface Options {
text?: string;
spinner?: string | Spinner;
color?: Color;
interval?: number;
stream?: NodeJS.WritableStream;
enabled?: boolean;
}
interface Spinner {
interval?: number;
frames: string[];
}
interface Instance {
start(): Instance;
stop(): Instance;
succeed(): Instance;
fail(): Instance;
stopAndPersist(symbol?: string): Instance;
clear(): Instance;
render(): Instance;
frame(): Instance;
text: string;
color: Color;
}
declare function ora(options: Options | string): Instance;
export = ora;