Interface: StoreOptions<T, StoreName>
The options for the store, this features both hooks (changes the behaviour) and handlers (similar to event listeners).
Type parameters
| Type parameter | Value |
|---|---|
T extends Piece | - |
StoreName extends StoreRegistryKey | StoreRegistryKey |
Properties
name
readonlyname:StoreName
The name for this store.
Source
projects/pieces/src/lib/structures/Store.ts:20
paths?
optionalreadonlypaths: readonlystring[]
The paths to load pieces from, should be absolute.
Default
[]
Source
projects/pieces/src/lib/structures/Store.ts:26
strategy?
optionalreadonlystrategy:ILoaderStrategy<T>
The strategy to be used for the loader.
Default
Store.defaultStrategy