react-styleguidist
Version:
React components style guide generator
11 lines (10 loc) • 491 B
TypeScript
import * as Rsg from '../typings';
/**
* Read, parse and validate config file or passed config.
*
* @param {object|string} [config] All config options or config file name or nothing.
* @param {function} [update] Change config object before running validation on it.
* @returns {object}
*/
declare function getConfig(config?: string | Rsg.StyleguidistConfig, update?: (conf: Rsg.StyleguidistConfig) => Rsg.StyleguidistConfig): Rsg.SanitizedStyleguidistConfig;
export default getConfig;