Class PresetsSection

A class that represents the user-presets section of the JSON file used as simple database.

Hierarchy

Constructors

Properties

defaultValues: Record<string, IPreset> = {}

The default values for the section.

The parent JsonFile instance.

isInitialized: boolean = false

Indicates whether the section has been initialized.

keysAreFixed: boolean

Indicates whether the keys in the section are fixed.

name: string

The name of the section.

prefixBaseString: string

The base string used as a prefix for the section.

Accessors

Methods

  • Gets the object path prefix as dot-separated keys for this section of the JSON file database.

    Parameters

    • Optional key: string

      An optional key to append to the prefix path.

    Returns string

    The object path prefix.

    Throws

    An error if the keys are fixed and the specified key does not exist in the default values.

Generated using TypeDoc