mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-03-29 17:08:21 +08:00
Removed declare module "ora"
This commit is contained in:
54
ora/index.d.ts
vendored
54
ora/index.d.ts
vendored
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user