UNPKG

856 BTypeScriptView Raw
1import convict from 'convict';
2import { ValidatedJobConfig, OpConfig, APIConfig } from './interfaces';
3/**
4 * Merges the provided inputSchema with commonSchema and then validates the
5 * provided opConfig against the resulting schema.
6 */
7export declare function validateOpConfig<T>(inputSchema: convict.Schema<any>, inputConfig: any): OpConfig & T;
8/**
9 * Merges the provided inputSchema with commonSchema and then validates the
10 * provided apiConfig against the resulting schema.
11 */
12export declare function validateAPIConfig<T>(inputSchema: convict.Schema<any>, inputConfig: any): APIConfig & T;
13/**
14 * Merges the provided inputSchema with commonSchema and then validates the
15 * provided jobConfig against the resulting schema.
16 */
17export declare function validateJobConfig<T>(inputSchema: convict.Schema<any>, inputConfig: any): ValidatedJobConfig & T;