UNPKG

@kubb/core

Version:

Core functionality for Kubb's plugin-based code generation system, providing the foundation for transforming OpenAPI specifications.

10 lines (7 loc) 256 B
export function createJSDocBlockText({ comments }: { comments: Array<string> }): string { const filteredComments = comments.filter(Boolean) if (!filteredComments.length) { return '' } return `/**\n * ${filteredComments.join('\n * ')}\n */` }