chore(lib/storage): document default options
This commit is contained in:
parent
0f7218aa1a
commit
b2a378a3b2
1 changed files with 6 additions and 0 deletions
|
|
@ -130,14 +130,20 @@ export function getStorage<T extends AnyObject = AnyObject>(
|
|||
export interface StorageOptions<T extends AnyObject = AnyObject> {
|
||||
/**
|
||||
* The directory of the storage file.
|
||||
*
|
||||
* @default 'documents'
|
||||
*/
|
||||
directory?: StorageDirectory
|
||||
/**
|
||||
* The default value to use for the storage. This will also be used for cache.
|
||||
*
|
||||
* @default {}
|
||||
*/
|
||||
default?: T
|
||||
/**
|
||||
* Automatically load the storage after creating the instance.
|
||||
*
|
||||
* @default false
|
||||
*/
|
||||
load?: boolean
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue