IFluidCodeResolver Interface
Fluid code resolvers take a Fluid code details, and resolve the full Fluid package including absolute urls for the browser file entries. The Fluid code resolver is coupled to a specific cdn and knows how to resolve the code detail for loading from that cdn. This include resolving to the most recent version of package that supports the provided code details.
Signature
export interface IFluidCodeResolver
Methods
Method | Return Type | Description |
---|---|---|
resolveCodeDetails(details) | Promise<IResolvedFluidCodeDetails> | Resolves a Fluid code details into a form that can be loaded |
Method Details
resolveCodeDetails
Resolves a Fluid code details into a form that can be loaded
Signature
resolveCodeDetails(details: IFluidCodeDetails): Promise<IResolvedFluidCodeDetails>;
Parameters
Parameter | Type | Description |
---|---|---|
details | IFluidCodeDetails | The Fluid code details to resolve |
Returns
- A IResolvedFluidCodeDetails where the resolvedPackage's Fluid file entries are absolute urls, and an optional resolvedPackageCacheId if the loaded package should be cached.
Return type: Promise<IResolvedFluidCodeDetails>