From 112ff52ba16f89ebd5811aa272ac8075afb416cf Mon Sep 17 00:00:00 2001 From: Jeff May Date: Sun, 27 Oct 2013 22:58:37 -0400 Subject: [PATCH] Switched to generic MultiTask for structured configuration. --- gruntjs/gruntjs.d.ts | 27 ++++++++++++--------------- 1 file changed, 12 insertions(+), 15 deletions(-) diff --git a/gruntjs/gruntjs.d.ts b/gruntjs/gruntjs.d.ts index f191173e16..04b730ce78 100644 --- a/gruntjs/gruntjs.d.ts +++ b/gruntjs/gruntjs.d.ts @@ -8,18 +8,15 @@ /** * {@link http://github.com/marak/colors.js/} */ -declare module colors { - - interface String { - yellow: string; - cyan: string; - white: string; - magenta: string; - green: string; - red: string; - grey: string; - blue: string; - } +interface String { + yellow: string; + cyan: string; + white: string; + magenta: string; + green: string; + red: string; + grey: string; + blue: string; } declare module node { @@ -924,7 +921,7 @@ declare module grunt { /** * {@link http://gruntjs.com/inside-tasks#inside-multi-tasks} */ - interface IMultiTask extends ITask { + interface IMultiTask extends ITask { /** * In a multi task, this property contains the name of the target currently being iterated over. * For example, if a "sample" multi task was run as grunt sample:foo with the config data @@ -967,7 +964,7 @@ declare module grunt { * @note It is recommended that this.options this.files and this.filesSrc are used instead of this.data, * as their values are normalized. */ - data: any + data: T } /** @@ -1031,7 +1028,7 @@ declare module grunt { * The currently running task or multitask. * @see IMultiTask for when to cast */ - current: grunt.task.ITask + current: grunt.task.ITask /** * Load task-related files from the specified directory, relative to the Gruntfile.