@types/undertaker
Advanced tools
Comparing version 1.2.1 to 1.2.2
// Type definitions for undertaker 1.2 | ||
// Project: https://github.com/gulpjs/undertaker | ||
// Definitions by: Qubo <https://github.com/tkqubo>, Giedrius Grabauskas <https://github.com/GiedriusGrabauskas> | ||
// Definitions by: Qubo <https://github.com/tkqubo> | ||
// Giedrius Grabauskas <https://github.com/GiedriusGrabauskas> | ||
// Evan Yamanishi <https://github.com/sh0ji> | ||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
@@ -12,13 +14,25 @@ | ||
interface TaskFunctionParams { | ||
name?: string; | ||
readonly name?: string; | ||
displayName?: string; | ||
description?: string; | ||
flags?: TaskFlags; | ||
} | ||
interface TaskFunction extends TaskFunctionParams { | ||
interface TaskFlags { | ||
[arg: string]: string; | ||
} | ||
interface TaskFunctionBase { | ||
(done: (error?: any) => void): void | Duplex | NodeJS.Process | Promise<never> | any; | ||
} | ||
interface TaskFunction extends TaskFunctionBase, TaskFunctionParams {} | ||
type Task = string | TaskFunction; | ||
interface TaskFunctionWrapped extends TaskFunctionBase { | ||
displayName: string; | ||
unwrap(): TaskFunction; | ||
} | ||
interface TreeOptions { | ||
@@ -49,6 +63,6 @@ /** | ||
/** | ||
* Returns the registered function. | ||
* Returns the wrapped registered function. | ||
* @param taskName - Task name. | ||
*/ | ||
task(taskName: string): Undertaker.TaskFunction; | ||
task(taskName: string): Undertaker.TaskFunctionWrapped; | ||
@@ -55,0 +69,0 @@ /** |
{ | ||
"name": "@types/undertaker", | ||
"version": "1.2.1", | ||
"version": "1.2.2", | ||
"description": "TypeScript definitions for undertaker", | ||
@@ -16,2 +16,7 @@ "license": "MIT", | ||
"githubUsername": "GiedriusGrabauskas" | ||
}, | ||
{ | ||
"name": "Evan Yamanishi", | ||
"url": "https://github.com/sh0ji", | ||
"githubUsername": "sh0ji" | ||
} | ||
@@ -23,3 +28,4 @@ ], | ||
"type": "git", | ||
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git" | ||
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git", | ||
"directory": "types/undertaker" | ||
}, | ||
@@ -30,4 +36,4 @@ "scripts": {}, | ||
}, | ||
"typesPublisherContentHash": "56c70ef7631e04ee031b0b2b1239948914002569079fc2ad2794d138d72cf617", | ||
"typesPublisherContentHash": "5af79536b653085787d70b0b367bbdc6a125a267c9a572203dc8865c4d7506c4", | ||
"typeScriptVersion": "2.0" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
Additional Details | ||
* Last updated: Thu, 14 Feb 2019 00:21:07 GMT | ||
* Last updated: Mon, 08 Apr 2019 01:15:14 GMT | ||
* Dependencies: @types/undertaker-registry | ||
@@ -17,2 +17,2 @@ * Global values: none | ||
# Credits | ||
These definitions were written by Qubo <https://github.com/tkqubo>, Giedrius Grabauskas <https://github.com/GiedriusGrabauskas>. | ||
These definitions were written by Qubo <https://github.com/tkqubo>, Giedrius Grabauskas <https://github.com/GiedriusGrabauskas>, Evan Yamanishi <https://github.com/sh0ji>. |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
8009
128