Skip to main content

Interface: PieceContext<StoreName>

Defined in: projects/pieces/src/lib/structures/Piece.ts:34

Deprecated​

Use LoaderPieceContext instead.

Extends​

Type Parameters​

Type ParameterDefault type
StoreName extends StoreRegistryKeyStoreRegistryKey

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​

LoaderPieceContext.name


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​

LoaderPieceContext.path


root​

readonly root: string

Defined in: projects/pieces/src/lib/structures/Piece.ts:15

The root directory the piece was loaded from.

Inherited from​

LoaderPieceContext.root


store​

readonly store: StoreOf<StoreName>

Defined in: projects/pieces/src/lib/structures/Piece.ts:30

The store that loaded the piece.

Inherited from​

LoaderPieceContext.store