Class LocalStorage
Package: @altmp/altv-types
Syntax
Methods
|
Improve this Doc
View Source
get(string)
Declaration
public static get(key: string): any
Parameters
Type |
Name |
Description |
string |
key |
|
Returns
|
Improve this Doc
View Source
has(string)
Declaration
public static has(key: string): boolean
Parameters
Type |
Name |
Description |
string |
key |
|
Returns
|
Improve this Doc
View Source
delete(string)
Declaration
public static delete(key: string): void
Parameters
Type |
Name |
Description |
string |
key |
|
|
Improve this Doc
View Source
deleteAll()
Declaration
public static deleteAll(): void
|
Improve this Doc
View Source
clear()
Declaration
public static clear(): void
|
Improve this Doc
View Source
save()
Declaration
public static save(): void
|
Improve this Doc
View Source
set(string, any)
Declaration
public static set(key: string, value: any): void
Parameters
Type |
Name |
Description |
string |
key |
|
any |
value |
|