Add rxjs "Observable" support (#34865)

* Add sign

* Update version number

* fix: edit file header

* Add necessary imports

* Add 'private' field

* Set typescript version to 2.8

* FIx spelling errors
This commit is contained in:
Vladislav Polyakov
2019-04-30 10:07:30 -07:00
committed by Wesley Wigham
parent 8bdfc2f285
commit b36fa43748
2 changed files with 13 additions and 4 deletions
+7 -4
View File
@@ -1,11 +1,14 @@
// Type definitions for listr 0.13
// Type definitions for listr 0.14
// Project: https://github.com/samverschueren/listr#readme
// Definitions by: Dusan Radovanovic <https://github.com/durad>
// Vladislav Polyakov <https://github.com/polRk>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.8
/// <reference types="node" />
import * as stream from "stream";
import { Observable } from "rxjs";
declare namespace Listr {
interface ListrRenderer {
@@ -24,9 +27,9 @@ declare namespace Listr {
interface ListrTask {
title: string;
output?: string;
task: (ctx: any, task: ListrTaskWrapper) => void | string | Promise<any> | stream.Readable | Listr;
skip?: (ctx: any, task: ListrTaskWrapper) => boolean | Promise<boolean> | string | void;
enabled?: (ctx: any, task: ListrTaskWrapper) => boolean | Promise<boolean>;
task: (ctx: any, task: ListrTaskWrapper) => void | string | Promise<any> | stream.Readable | Listr | Observable<any>;
skip?: (ctx: any, task: ListrTaskWrapper) => boolean | Promise<boolean> | string | void | Observable<boolean>;
enabled?: (ctx: any, task: ListrTaskWrapper) => boolean | Promise<boolean> | Observable<boolean>;
}
interface ListrTaskWrapper {
+6
View File
@@ -0,0 +1,6 @@
{
"dependencies": {
"rxjs": "^6.5.1"
},
"private": true
}