Skip to main content

indentScope

Summary

A shorthand for ensuring that increaseIndent()/decreaseIndent() occur in pairs.

Signature

indentScope(scope: () => void, indentPrefix?: string): void;

Parameters

scope

Type:() => void

indentPrefix

Type:string Optional: Yes

Returns

Type:void A shorthand for ensuring that increaseIndent()/decreaseIndent() occur in pairs.