Page MenuHomec4science

processComponents.d.ts
No OneTemporary

File Metadata

Created
Thu, Mar 13, 13:21

processComponents.d.ts

import * as Rsg from '../../typings';
export interface HrefOptions {
hashPath?: string[];
useRouterLinks: boolean;
useHashId?: boolean;
}
/**
* Do things that are hard or impossible to do in a loader: we don’t have access to component name
* and props in the styleguide-loader because we’re using `require` to load the component module.
*
* @param {Array} components
* @return {Array}
*/
export default function processComponents(components: Rsg.Component[], { useRouterLinks, useHashId, hashPath }: HrefOptions): Rsg.Component[];

Event Timeline