UNPKG

354 BTypeScriptView Raw
1import { ConfigSchemaOptions } from '../schemas/config';
2/**
3 * Validates and normalizes config.
4 *
5 * @param {object} config
6 * @param {object} schema
7 * @param {string} rootDir
8 * @return {object}
9 */
10export default function sanitizeConfig<T extends Record<string, any>>(config: T, schema: Record<keyof T, ConfigSchemaOptions<T>>, rootDir: string): T;