Skip to content

describeGuard

reference
1 min readUpdated

Kind: Function

Source: atloria-monorepo/libs/parser-core/src/techdocs/control-flow-render.ts

A refusal, phrased so the condition stays verbatim and only the framing is ours.

The message is the developer's own sentence and carries more than the condition does — a reader learns more from "Project has no repository URL configured" than from !project.repoUrl — so it leads when present and the condition follows in code.

Signature

ts
function describeGuard(actorName: string, guard: GuardClause): string

Parameters

NameType
actorNamestring
guardGuardClause

Returns: string

Was this page helpful?

Download as PDF