File

libs/upp-base/src/modules/localcfg.ts

Description

Interface defining methods for storing and retrieving configuration elements.

Index

Methods

Methods

getElement
getElement(element: string)

Retrieves a configuration element.

Parameters :
Name Type Optional Description
element string No
  • The name of the element to retrieve.
Returns : literal type | null

An object containing the configuration data, or null if the element does not exist.

setElement
setElement(element: string, data: literal type)

Stores a complete configuration element.

Parameters :
Name Type Optional Description
element string No
  • The name of the element to store.
data literal type No
  • An object representing the element's configuration data.
Returns : void

results matching ""

    No results matching ""