Skip to main content
The Deno 2 Release Candidate is here
Learn more
Go to Latest
method CodeBlockWriter.prototype.hangingIndentUnlessBlock
import { CodeBlockWriter } from "https://deno.land/x/dnt@0.32.0/lib/mod.deps.ts";

Writes the text within the provided action with hanging indentation unless writing a block.

Parameters

action: () => void
  • Action to perform with hanging indentation unless a block is written.