Class: AppSettings
repositories.AppSettings
Settings repository.
The Settings class allows you to manage the settings of the app.
Hierarchy
-
Repository
↳
AppSettings
Implements
-
IBundle
<iAppSettings
>
Table of contents
Constructors
Methods
Constructors
constructor
• new AppSettings(agent
)
Creates an instance of Repository.
Parameters
Name | Type |
---|---|
agent |
PeerAgent |
Inherited from
Methods
get
▸ get(): Promise
<iAppSettings
>
Retrieves the settings of your app.
Example
const settings = await dl.settings.get()
Returns
Promise
<iAppSettings
>
- A promise that resolves to the settings of the app.