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 | Default type |
---|---|
T extends Piece | - |
StoreName extends StoreRegistryKey | StoreRegistryKey |
Properties
name
readonly
name:StoreName
The name for this store.
Defined in
projects/pieces/src/lib/structures/Store.ts:20
paths?
readonly
optional
paths: readonlystring
[]
The paths to load pieces from, should be absolute.
Default
[]
Defined in
projects/pieces/src/lib/structures/Store.ts:26
strategy?
readonly
optional
strategy:ILoaderStrategy
<T
>
The strategy to be used for the loader.
Default
Store.defaultStrategy