UNPKG

650 BTypeScriptView Raw
1import { Task } from "./task.resolve";
2import Immutable = require("immutable");
3import { CommandTrigger } from "./command.run";
4import Rx = require("rx");
5/**
6 * A task context is just an Immutable Map of key=>value pairs
7 * that may be used to provide addition context to the task running
8 * environment. This is especially useful in situations where you need
9 * to do something that MUST block the task running altogether. An example
10 * would be hashing files/directories to determine if a task/group of tasks should
11 * run.
12 */
13export default function getContext(tasks: Task[], trigger: CommandTrigger): Rx.Observable<Immutable.Map<string, any>>;