chore(lib/storage): document default options

This commit is contained in:
PalmDevs 2025-10-23 17:04:24 +07:00
parent 0f7218aa1a
commit b2a378a3b2
No known key found for this signature in database
GPG key ID: 6FAE8F8677ACA8BA

View file

@ -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
}