Skip to main content

Interface: ILoaderStrategy<T>

Type parameters

NameType
Textends Piece

Implemented by

Methods

filter

filter(path): FilterResult

Parameters

NameTypeDescription
pathstring

Returns

FilterResult

Defined in

projects/pieces/src/lib/strategies/ILoaderStrategy.ts:81


load

load(store, file): ILoaderResult<T>

Parameters

NameType
storeStore<T>
fileHydratedModuleData

Returns

ILoaderResult<T>

Defined in

projects/pieces/src/lib/strategies/ILoaderStrategy.ts:117


onError

onError(error, path): void

Parameters

NameTypeDescription
errorError
pathstring

Returns

void

Defined in

projects/pieces/src/lib/strategies/ILoaderStrategy.ts:149


onLoad

onLoad(store, piece): unknown

Parameters

NameTypeDescription
storeStore<T>
pieceT

Returns

unknown

Defined in

projects/pieces/src/lib/strategies/ILoaderStrategy.ts:124


onLoadAll

onLoadAll(store): unknown

Parameters

NameTypeDescription
storeStore<T>

Returns

unknown

Defined in

projects/pieces/src/lib/strategies/ILoaderStrategy.ts:130


onUnload

onUnload(store, piece): unknown

Parameters

NameTypeDescription
storeStore<T>
pieceT

Returns

unknown

Defined in

projects/pieces/src/lib/strategies/ILoaderStrategy.ts:137


onUnloadAll

onUnloadAll(store): unknown

Parameters

NameTypeDescription
storeStore<T>

Returns

unknown

Defined in

projects/pieces/src/lib/strategies/ILoaderStrategy.ts:143


preload

preload(file): PreloadResult<T>

Parameters

NameType
fileModuleData

Returns

PreloadResult<T>

Defined in

projects/pieces/src/lib/strategies/ILoaderStrategy.ts:104