Skip to content

formatDebugGuideReference

Formats the sentence that points at the debug guide the host supplied (see Library.debugGuideUrl).

Import:

import { formatDebugGuideReference } from '@mnaoumov/typescript-lib/debug';

Signature:

function formatDebugGuideReference(suffix: string): string

Parameters:

Parameter Type Description
suffix string The text appended to the guide URL, inside the sentence (e.g. ' how to disable them').

Returns: string — The sentence, with a leading space, or an empty string when the host supplied no guide.