group function
Entries of a package whose map loads on first need: one entry per name, each sharing the loader, with `extra` fields that must be known before the map, such as `intro`.
import { group } from '@dioramajs/diorama/effects'.
function group(
load: () => Promise<EffectEntries>,
names: readonly string[],
extra?: { [name: string]: EntryMeta },
): { [name: string]: EffectGroupEntry }Parameters
| Name | Type | Description |
|---|---|---|
load | () => Promise<EffectEntries> | |
names | readonly string[] | |
extra? | { [name: string]: EntryMeta } | Default |
Also exported from @dioramajs/effects.
Defined in packages/effects/src/registry.ts.