UNPKG

@ipp/cli

Version:

An image build orchestrator for the modern web

24 lines (23 loc) 781 B
"use strict"; /** * 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. */ Object.defineProperty(exports, "__esModule", { value: true }); exports.isSavedResult = exports.isCompletedTask = exports.isTaskSource = void 0; function isTaskSource(x) { return (typeof x === "object" && typeof x.root === "string" && typeof x.file === "string"); } exports.isTaskSource = isTaskSource; function isCompletedTask(x) { return isTaskSource(x) && typeof x.result === "object"; } exports.isCompletedTask = isCompletedTask; function isSavedResult(x) { return typeof x.savedResult === "object"; } exports.isSavedResult = isSavedResult;