Skip to main content

Interface: StoreOptions<T>

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

Type parameters

NameType
Textends Piece

Properties

name

โ€ข Readonly name: string

The name for this store.

Defined in

node_modules/@sapphire/pieces/dist/index.d.ts:251


paths

โ€ข Optional Readonly paths: readonly string[]

The paths to load pieces from, should be absolute.

default []

Defined in

node_modules/@sapphire/pieces/dist/index.d.ts:256


strategy

โ€ข Optional Readonly strategy: ILoaderStrategy<T>

The strategy to be used for the loader.

default Store.defaultStrategy

Defined in

node_modules/@sapphire/pieces/dist/index.d.ts:261