UNPKG

@gentrace/core

Version:
7 lines (6 loc) 256 B
import { PipelineRun } from "./pipeline-run"; export interface SimpleHandler<C extends object> { getConfig(): C; setPipelineRun(pipelineRun: PipelineRun): void; } export declare function isConfig<C extends object>(f: C | SimpleHandler<C>): f is C;