Replaced Text with string

This commit is contained in:
Christian Rackerseder
2016-10-26 07:34:34 +02:00
parent f572efa559
commit 14eed8a1fe

5
ora/index.d.ts vendored
View File

@@ -7,9 +7,8 @@
declare module "ora" {
type Color = 'black' | 'red' | 'green' | 'yellow' | 'blue' | 'magenta' | 'cyan' | 'white' | 'gray';
type Text = string;
interface Options {
text?: Text;
text?: string;
spinner?: string | Spinner;
color?: Color;
interval?: number;
@@ -32,6 +31,6 @@ declare module "ora" {
text: string;
color: Color;
}
function ora(options: Options | Text): Instance;
function ora(options: Options | string): Instance;
export = ora;
}