Interface: PieceContext<StoreName>
Defined in: projects/pieces/src/lib/structures/Piece.ts:34
Deprecated
Use LoaderPieceContext
instead.
Extends
LoaderPieceContext
<StoreName
>
Type Parameters
Type Parameter | Default type |
---|---|
StoreName extends StoreRegistryKey | StoreRegistryKey |
Properties
name
readonly
name:string
Defined in: projects/pieces/src/lib/structures/Piece.ts:25
The module's name extracted from the path.
Inherited from
path
readonly
path:string
Defined in: projects/pieces/src/lib/structures/Piece.ts:20
The path the module was loaded from, relative to LoaderPieceContext.root.
Inherited from
root
readonly
root:string
Defined in: projects/pieces/src/lib/structures/Piece.ts:15
The root directory the piece was loaded from.
Inherited from
store
readonly
store:StoreOf
<StoreName
>
Defined in: projects/pieces/src/lib/structures/Piece.ts:30
The store that loaded the piece.