Skip to main content
Version: v1

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​

MethodReturn TypeDescription
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​

ParameterTypeDescription
sourceIFluidCodeDetailsCode 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>