Skip to main content
Module

x/deno2node/src/deps.deno.ts>SettingsContainer

Compile your Deno project to run on Node.js.
Go to Latest
class SettingsContainer
Abstract
import { SettingsContainer } from "https://deno.land/x/deno2node@v1.7.1/src/deps.deno.ts";

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.