@factorialco/shadowdog
Version:
<img src="https://raw.githubusercontent.com/factorialco/shadowdog/refs/heads/main/logo.png" alt="drawing" width="100"/>
26 lines (25 loc) • 730 B
TypeScript
import { CommandConfig, ConfigFile, InvalidatorConfig } from './config';
import { ShadowdogEventEmitter } from './events';
export type Task = ParallelTask | SerialTask | CommandTask | EmptyTask;
export interface CommandTask {
type: 'command';
config: CommandConfig;
files: string[];
invalidators: InvalidatorConfig;
}
export interface ParallelTask {
type: 'parallel';
tasks: Task[];
}
interface SerialTask {
type: 'serial';
tasks: Task[];
}
export interface EmptyTask {
type: 'empty';
}
interface GenerateOptions {
continueOnError: boolean;
}
export declare const generate: (config: ConfigFile, eventEmitter: ShadowdogEventEmitter, options: GenerateOptions) => Promise<unknown>;
export {};