Interface: LoaderPieceContext<StoreName>
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 | Value |
---|---|
StoreName extends StoreRegistryKey | StoreRegistryKey |
Properties
name
readonly
name:string
The module's name extracted from the path.
Source
projects/pieces/src/lib/structures/Piece.ts:25
path
readonly
path:string
The path the module was loaded from, relative to LoaderPieceContext.root.
Source
projects/pieces/src/lib/structures/Piece.ts:20
root
readonly
root:string
The root directory the piece was loaded from.
Source
projects/pieces/src/lib/structures/Piece.ts:15
store
readonly
store:StoreOf
<StoreName
>
The store that loaded the piece.