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 | 
|---|---|
| StoreNameextendsStoreRegistryKey | StoreRegistryKey | 
Properties
name
readonlyname:string
Defined in: projects/pieces/src/lib/structures/Piece.ts:25
The module's name extracted from the path.
path
readonlypath:string
Defined in: projects/pieces/src/lib/structures/Piece.ts:20
The path the module was loaded from, relative to LoaderPieceContext.root.
root
readonlyroot:string
Defined in: projects/pieces/src/lib/structures/Piece.ts:15
The root directory the piece was loaded from.
store
readonlystore:StoreOf<StoreName>
Defined in: projects/pieces/src/lib/structures/Piece.ts:30
The store that loaded the piece.