Skip to content

Commit 3a436a6

Browse files
fix: do not pass invalid types to the description stripper
1 parent 3a1481d commit 3a436a6

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

src/dynamic-param-interfaces.ts

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,11 @@ const ignoreDescriptions = <T extends EventParameterDocumentation>(
3737
props: T[],
3838
): Pick<T, Exclude<keyof T, 'description'>>[] =>
3939
_.map(props, p => {
40-
const toReturn = {
41-
...p,
42-
};
40+
const {
41+
description,
42+
...toReturn
43+
} = p;
4344

44-
if (toReturn.type) {
45-
toReturn.type = utils.typify(toReturn.type as any);
46-
}
4745
return toReturn;
4846
}).sort((a, b) => a.name.localeCompare(b.name));
4947

0 commit comments

Comments
 (0)