import type { TaskFunction } from "gulp"; import type { Config } from "../core/type"; export interface TaskCompiler { config: Config; debug?: boolean; compile(): Iterable; } export type TaskDef = readonly [string, TaskFunction] | readonly [string, TaskFunction, boolean]; export abstract class TaskCompilerImpl implements TaskCompiler { constructor( public config: Config, public debug?: boolean, ) {} abstract compile(): Iterable; } export type TaskCompilerType = new (config: Config, debug?: boolean) => TaskCompiler;