mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-22 11:57:33 +08:00
Replaced Text with string
This commit is contained in:
5
ora/index.d.ts
vendored
5
ora/index.d.ts
vendored
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user