UNPKG

491 BTypeScriptView Raw
1import * as Rsg from '../typings';
2/**
3 * Read, parse and validate config file or passed config.
4 *
5 * @param {object|string} [config] All config options or config file name or nothing.
6 * @param {function} [update] Change config object before running validation on it.
7 * @returns {object}
8 */
9declare function getConfig(config?: string | Rsg.StyleguidistConfig, update?: (conf: Rsg.StyleguidistConfig) => Rsg.StyleguidistConfig): Rsg.SanitizedStyleguidistConfig;
10export default getConfig;