Skip to content

Commit 9c0a58b

Browse files
authored
Update schema-formatters.ts
Syntax error
1 parent 4417874 commit 9c0a58b

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

src/schema-parser/schema-formatters.ts

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -111,15 +111,13 @@ export class SchemaFormatters {
111111

112112
if (inline) {
113113
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()
114+
lodash.chain(
115+
description.replace(/\//g, "")
116+
.split(/\n/g)
117+
.map((part) => part.trim())
118+
)
119+
.compact()
120+
.value()
123121
);
124122
}
125123

0 commit comments

Comments
 (0)