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

Sets the current indentation level.

Parameters

indentationLevel: number
  • Indentation level to be at.

Sets the current indentation using the provided indentation text.

Parameters

whitespaceText: string
  • Gets the indentation level from the indentation text.

Parameters

countOrText: string | number