Caelus3,462 checksGitHubv0.25.0MIT
API Reference / loadPacks · function

Function: loadPacks()

function loadPacks(
   base, 
   manifest, 
   entries, 
   fetchPack, 
options?): Promise<EngineData>;

Fetch the given packs, verify them, and return engine data with them placed over base. See fetchPacks for what is checked and selectPacks for choosing the entries.

Parameters

ParameterTypeDescription
baseEngineDataThe data to build on, usually embeddedData.
manifestPackManifestThe site's pack manifest.
entriesreadonly PackManifestEntry[]The packs to load, from selectPacks or chosen by hand.
fetchPackPackFetchReturns the bytes of a manifest file.
optionsLoadPacksOptions-

Returns

Promise<EngineData>

Start building

Quickstart →