Skip to main content

Class: LoaderStrategy<T>

Type parameters

NameType
Textends Piece

Implements

Constructors

constructor

new LoaderStrategy<T>()

Type parameters

NameType
Textends Piece<PieceOptions, T>

Defined in

projects/pieces/src/lib/strategies/LoaderStrategy.ts:21

Properties

clientUsesESModules

clientUsesESModules: boolean

Defined in

projects/pieces/src/lib/strategies/LoaderStrategy.ts:17


filterDtsFiles

Private Readonly filterDtsFiles: boolean = false

Defined in

projects/pieces/src/lib/strategies/LoaderStrategy.ts:19


supportedExtensions

supportedExtensions: string[]

Defined in

projects/pieces/src/lib/strategies/LoaderStrategy.ts:18

Methods

filter

filter(path): FilterResult

Parameters

NameType
pathstring

Returns

FilterResult

Implementation of

ILoaderStrategy.filter

Defined in

projects/pieces/src/lib/strategies/LoaderStrategy.ts:36


load

load(store, file): ILoaderResult<T>

Parameters

NameType
storeStore<T>
fileModuleData

Returns

ILoaderResult<T>

Implementation of

ILoaderStrategy.load

Defined in

projects/pieces/src/lib/strategies/LoaderStrategy.ts:67


onError

onError(error, path): void

Parameters

NameType
errorError
pathstring

Returns

void

Implementation of

ILoaderStrategy.onError

Defined in

projects/pieces/src/lib/strategies/LoaderStrategy.ts:106


onLoad

onLoad(): unknown

Returns

unknown

Implementation of

ILoaderStrategy.onLoad

Defined in

projects/pieces/src/lib/strategies/LoaderStrategy.ts:90


onLoadAll

onLoadAll(): unknown

Returns

unknown

Implementation of

ILoaderStrategy.onLoadAll

Defined in

projects/pieces/src/lib/strategies/LoaderStrategy.ts:94


onUnload

onUnload(): unknown

Returns

unknown

Implementation of

ILoaderStrategy.onUnload

Defined in

projects/pieces/src/lib/strategies/LoaderStrategy.ts:98


onUnloadAll

onUnloadAll(): unknown

Returns

unknown

Implementation of

ILoaderStrategy.onUnloadAll

Defined in

projects/pieces/src/lib/strategies/LoaderStrategy.ts:102


preload

preload(file): AsyncPreloadResult<T>

Parameters

NameType
fileModuleData

Returns

AsyncPreloadResult<T>

Implementation of

ILoaderStrategy.preload

Defined in

projects/pieces/src/lib/strategies/LoaderStrategy.ts:51