Interface: LoaderPieceContext<StoreName>
Defined in: projects/pieces/src/lib/structures/Piece.ts:11
The context for the piece, contains extra information from the store, the piece's path, and the store that loaded it.
Extended by
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.
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.
root
readonly
root:string
Defined in: projects/pieces/src/lib/structures/Piece.ts:15
The root directory the piece was loaded from.
store
readonly
store:StoreOf
<StoreName
>
Defined in: projects/pieces/src/lib/structures/Piece.ts:30
The store that loaded the piece.