Skip to main content
Module

x/ts_morph/ts_morph.js>CodeBlockWriter#setIndentationLevel

TypeScript Compiler API wrapper for static analysis and programmatic code changes.
Very Popular
Go to Latest
method CodeBlockWriter.prototype.setIndentationLevel
Re-export
import { CodeBlockWriter } from "https://deno.land/x/ts_morph@15.1.0/ts_morph.js";

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