Type alias: RemoteChunkResolver

Ƭ RemoteChunkResolver: (chunkId: string, parentChunkId?: string) => Promise<RemoteChunkLocation>

Type declaration

▸ (chunkId, parentChunkId?): Promise<RemoteChunkLocation>

Defines a function to resolve remote chunk used in ChunkManagerConfig. It's an async function which should return an object with defining how ChunkManager should fetch a remote chunk. All fields describing the chunk are listed in RemoteChunkLocation.

Parameters
Name Type
chunkId string
parentChunkId? string
Returns

Promise<RemoteChunkLocation>

Defined in

types.ts:88