GetModulesFromFolderOptions
@quik/core / GetModulesFromFolderOptions
Type Alias: GetModulesFromFolderOptions<T>
GetModulesFromFolderOptions<
T> =object
Defined in: utils/FileSystem.ts:107
Options for loading modules from a folder.
Type Parameters
T
T
The type of class instances expected from each module.
Properties
basePath?
optionalbasePath?:string
Defined in: utils/FileSystem.ts:109
The root path against which module paths are resolved. Defaults to process.cwd().
folder
folder:
string
Defined in: utils/FileSystem.ts:108
The path to the folder containing the modules to load.
loader?
optionalloader?:string
Defined in: utils/FileSystem.ts:110
An optional identifier used in logging to describe what is being loaded.
register?
optionalregister?: (...contents) =>void
Defined in: utils/FileSystem.ts:111
A callback that receives the loaded module constructors.
Parameters
contents
...Constructor<T>[]
Returns
void