UNPKG

@ipp/cli

Version:

An image build orchestrator for the modern web

27 lines (26 loc) 925 B
/** * Image Processing Pipeline - Copyright (c) Marcus Cemes * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ import { ManifestMappings, Pipeline } from "@ipp/common"; import { ExceptionFn } from "../operators/exceptions"; export interface Config { input: string | string[]; output: string; pipeline: Pipeline; concurrency: number; clean?: boolean; flat?: boolean; manifest?: ManifestMappings; /** Suppress the output of any image processing errors. */ suppressErrors?: boolean; /** * Specify a different filename to output processing errors to * (in JSON format), or a callback function that receives the * exception as its first parameter. */ errorOutput?: string | ExceptionFn; } export declare function getConfig(initial: Partial<Config>, path?: string): Promise<Config>;