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 4417874 commit 9c0a58bCopy full SHA for 9c0a58b
src/schema-parser/schema-formatters.ts
@@ -111,15 +111,13 @@ export class SchemaFormatters {
111
112
if (inline) {
113
return (
114
- lodash
115
- // @ts-expect-error TS(2339) FIXME: Property '_' does not exist on type 'LoDashStatic'... Remove this comment to see the full error message
116
- ._(description)
117
- .replace(/\//g, "") // Remove all forward slashes
118
- .split(/\n/g)
119
- .map((part) => part.trim())
120
- .compact()
121
- .join(" ")
122
- .valueOf()
+ lodash.chain(
+ description.replace(/\//g, "")
+ .split(/\n/g)
+ .map((part) => part.trim())
+ )
+ .compact()
+ .value()
123
);
124
}
125
0 commit comments