We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 943f709 commit bf25f3fCopy full SHA for bf25f3f
packages/openapi-generator/src/jsdoc.ts
@@ -1,15 +1,17 @@
1
import type { Block } from 'comment-parser';
2
3
+type Tags = Record<Exclude<string, 'example'>, string> & { example?: any };
4
+
5
export type JSDoc = {
6
summary?: string;
7
description?: string;
- tags?: Record<string, string> & { example?: unknown };
8
+ tags?: Tags;
9
};
10
11
export function parseCommentBlock(comment: Block): JSDoc {
12
let summary: string = '';
13
let description: string = '';
- let tags: Record<string, string> & { example?: any } = {};
14
+ let tags: Tags = {};
15
let writingExample = false;
16
17
for (const line of comment.source) {
0 commit comments