mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-04 23:07:06 +00:00
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:
committed by
Wesley Wigham
parent
8bdfc2f285
commit
b36fa43748
Vendored
+7
-4
@@ -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 {
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"dependencies": {
|
||||
"rxjs": "^6.5.1"
|
||||
},
|
||||
"private": true
|
||||
}
|
||||
Reference in New Issue
Block a user