Skip to main content
Module

x/code_block_writer/mod.ts>default#setIndentationLevel

Code writer for JavaScript and TypeScript code.
Go to Latest
method default.prototype.setIndentationLevel
import { default } from "https://deno.land/x/code_block_writer@11.0.0/mod.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