Skip to main content

Interface: StoreOptions<T, StoreName>

The options for the store, this features both hooks (changes the behaviour) and handlers (similar to event listeners).

Type parameters

NameType
Textends Piece
StoreNameextends StoreRegistryKey = StoreRegistryKey

Properties

name

Readonly name: StoreName

The name for this store.

Defined in

node_modules/@sapphire/pieces/dist/esm/index.d.mts:423


paths

Optional Readonly paths: readonly string[]

The paths to load pieces from, should be absolute.

Default

[]

Defined in

node_modules/@sapphire/pieces/dist/esm/index.d.mts:428


strategy

Optional Readonly strategy: ILoaderStrategy<T>

The strategy to be used for the loader.

Default

Store.defaultStrategy

Defined in

node_modules/@sapphire/pieces/dist/esm/index.d.mts:433