Class: AppSettings

repositories.AppSettings

Settings repository.

The Settings class allows you to manage the settings of the app.

Hierarchy

Implements

Table of contents

Constructors

Methods

Constructors

constructor

new AppSettings(agent)

Creates an instance of Repository.

Parameters

Name Type
agent PeerAgent

Inherited from

Repository .constructor

Methods

get

get(): Promise<iAppSettings>

Retrieves the settings of your app.

Example

Copy
Copied
const settings = await dl.settings.get()

Returns

Promise<iAppSettings>

  • A promise that resolves to the settings of the app.