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