Interface: PieceContext<StoreName>
Deprecated
Use LoaderPieceContext
instead.
Type parameters
Name | Type |
---|---|
StoreName | extends StoreRegistryKey = StoreRegistryKey |
Hierarchy
-
LoaderPieceContext
<StoreName
>↳
PieceContext
Properties
name
• Readonly
name: string
The module's name extracted from the path.
Inherited from
Defined in
node_modules/@sapphire/pieces/dist/esm/index.d.mts:140
path
• Readonly
path: string
The path the module was loaded from, relative to LoaderPieceContext.root.
Inherited from
Defined in
node_modules/@sapphire/pieces/dist/esm/index.d.mts:136
root
• Readonly
root: string
The root directory the piece was loaded from.
Inherited from
Defined in
node_modules/@sapphire/pieces/dist/esm/index.d.mts:132
store
• Readonly
store: StoreRegistryEntries
[StoreName
]
The store that loaded the piece.
Inherited from
Defined in
node_modules/@sapphire/pieces/dist/esm/index.d.mts:144