Skip to main content

Interface: PieceContext<StoreName>

Deprecated

Use LoaderPieceContext instead.

Type parameters

NameType
StoreNameextends StoreRegistryKey = StoreRegistryKey

Hierarchy

Properties

name

Readonly name: string

The module's name extracted from the path.

Inherited from

LoaderPieceContext.name

Defined in

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


path

Readonly path: string

The path the module was loaded from, relative to LoaderPieceContext.root.

Inherited from

LoaderPieceContext.path

Defined in

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


root

Readonly root: string

The root directory the piece was loaded from.

Inherited from

LoaderPieceContext.root

Defined in

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


store

Readonly store: StoreRegistryEntries[StoreName]

The store that loaded the piece.

Inherited from

LoaderPieceContext.store

Defined in

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