6 lines
204 B
JavaScript
6 lines
204 B
JavaScript
|
const getTypeParamString = (params) => `<${params.map(p => p.name).join(', ')}>`;
|
||
|
|
||
|
export default (docs) => `
|
||
|
## ${docs.name}${docs.typeParameters ? getTypeParamString(docs.typeParameters) : ''}
|
||
|
`;
|