Module

x/ts_morph/ts_morph.js>SettingsContainer

TypeScript Compiler API wrapper for static analysis and programmatic code changes.
Very Popular
Go to Latest
class SettingsContainer
Abstract
import { SettingsContainer } from "https://dotland.deno.dev/x/ts_morph@17.0.0/ts_morph.js";

Constructors

new
SettingsContainer(defaultSettings: T)

Constructor.

Type Parameters

T extends object

Properties

protected
_settings: T

Methods

get(): T

Gets a copy of the settings as an object.

onModified(action: () => void): void

Subscribe to modifications in the settings container.

reset(): void

Resets the settings to the default.

set(settings: Partial<T>): void

Sets one or all of the settings.

import SettingsContainer
import { SettingsContainer } from "https://dotland.deno.dev/x/ts_morph@17.0.0/ts_morph.js";