Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/dnt/lib/mod.deps.ts>CodeBlockWriter#indent

Deno to npm package build tool.
Go to Latest
method CodeBlockWriter.prototype.indent
import { CodeBlockWriter } from "https://deno.land/x/dnt@0.36.0/lib/mod.deps.ts";

Indents the code one level for the current line.

Parameters

optional
times: number

Indents a block of code.

Parameters

block: () => void
  • Block to indent.