react-styleguidist
Version:
React components style guide generator
11 lines (10 loc) • 360 B
TypeScript
import * as Rsg from '../../typings';
/**
* Recursively filters all components in all sections by component name.
*
* @param {object} sections
* @param {string} name
* @param {boolean} recursive
* @return {Array}
*/
export default function filterComponentsInSectionsByExactName(sections: Rsg.Section[], name: string, recursive: boolean): Rsg.Section[];