Skip to content

collapseWhitespace

reference
1 min readUpdated

Kind: Function

Source: atloria-monorepo/libs/parser-core/src/openapi/doc-annotations.ts

Collapse to a single line: for a summary, which is rendered in a list where a newline or a run of alignment spaces from a docblock would break the row.

Signature

ts
function collapseWhitespace(text: string): string

Parameters

NameType
textstring

Returns: string

Was this page helpful?

Download as PDF