moonlink.js / Exports / MoonlinkDatabase
Class: MoonlinkDatabase
Table of contents
Constructors
Properties
Methods
Constructors
constructor
• new MoonlinkDatabase(clientId
): MoonlinkDatabase
Parameters
Name | Type |
---|---|
clientId | string |
Returns
Defined in
src/@Utils/MoonlinkDatabase.ts:10
Properties
data
• Private
data: Data
= {}
Defined in
src/@Utils/MoonlinkDatabase.ts:7
id
• Private
id: string
Defined in
src/@Utils/MoonlinkDatabase.ts:8
Methods
delete
▸ delete(key
): boolean
Parameters
Name | Type |
---|---|
key | string |
Returns
boolean
Defined in
src/@Utils/MoonlinkDatabase.ts:45
fetch
▸ fetch(): void
Returns
void
Defined in
src/@Utils/MoonlinkDatabase.ts:95
get
▸ get<T
>(key
): T
Type parameters
Name |
---|
T |
Parameters
Name | Type |
---|---|
key | string |
Returns
T
Defined in
src/@Utils/MoonlinkDatabase.ts:25
getFilePath
▸ getFilePath(): string
Returns
string
Defined in
src/@Utils/MoonlinkDatabase.ts:87
push
▸ push<T
>(key
, value
): void
Type parameters
Name |
---|
T |
Parameters
Name | Type |
---|---|
key | string |
value | T |
Returns
void
Defined in
src/@Utils/MoonlinkDatabase.ts:31
save
▸ save(): void
Returns
void
Defined in
src/@Utils/MoonlinkDatabase.ts:115
set
▸ set<T
>(key
, value
): void
Type parameters
Name |
---|
T |
Parameters
Name | Type |
---|---|
key | string |
value | T |
Returns
void
Defined in
src/@Utils/MoonlinkDatabase.ts:15
updateData
▸ updateData(data
, keys
, value
): void
Parameters
Name | Type |
---|---|
data | Data |
keys | string |
value | any |
Returns
void