Skip to content

Commit 590d298

Browse files
committed
comments
1 parent 764fdcf commit 590d298

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/schema-typescript/src/utils.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -99,10 +99,10 @@ export const processComment = (comment: string) => {
9999
};
100100

101101
export const makeComment = (comment: string) => {
102-
return [{ type: 'CommentBlock', value: ` ${comment} ` }];
102+
return [{ type: 'CommentBlock', value: ` ${cleanComment(comment)} ` }];
103103
};
104104

105105
export const makeCommentLine = (comment: string): t.CommentLine[] => {
106106
// @ts-ignore
107-
return [{ type: 'CommentBlock', value: ` ${comment} ` }] as t.CommentLine[];
107+
return [{ type: 'CommentBlock', value: ` ${cleanComment(comment)} ` }] as t.CommentLine[];
108108
};

0 commit comments

Comments
 (0)