ICodeDetailsLoader Interface
Fluid code loader resolves a code module matching the document schema, i.e. code details, such as a package name and package version range.
Signature
export interface ICodeDetailsLoader extends Partial<IProvideFluidCodeDetailsComparer>
Extends: Partial<IProvideFluidCodeDetailsComparer
Methods
Method | Return Type | Description |
---|---|---|
load(source) | Promise<IFluidModuleWithDetails> | Load the code module (package) that is capable to interact with the document. |
Method Details
load
Load the code module (package) that is capable to interact with the document.
Signature
load(source: IFluidCodeDetails): Promise<IFluidModuleWithDetails>;
Parameters
Parameter | Type | Description |
---|---|---|
source | IFluidCodeDetails | Code proposal that articulates the current schema the document is written in. |
Returns
- Code module entry point along with the code details associated with it.
Return type: Promise<IFluidModuleWithDetails>