UNPKG

react-styleguidist

Version:
12 lines (11 loc) 437 B
import * as Rsg from '../../typings'; /** * Return a copy of the given component with the examples array filtered * to contain only the specified index: * filterComponentExamples({ examples: [1,2,3], ...other }, 2) → { examples: [3], ...other } * * @param {object} component * @param {number} index * @returns {object} */ export default function filterComponentExamples(component: Rsg.Component, index: number): Rsg.Component;