# group

function in `@dioramajs/diorama/effects`

```ts
import { group } from '@dioramajs/diorama/effects'
```

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`.

```ts
function group(
  load: () => Promise<EffectEntries>,
  names: readonly string[],
  extra?: { [name: string]: EntryMeta },
): { [name: string]: EffectGroupEntry }
```

| Parameter | Type | Description |
| --- | --- | --- |
| `load` | `() => Promise<EffectEntries>` |  |
| `names` | `readonly string[]` |  |
| `extra?` | `{ [name: string]: EntryMeta }` |  |

Also exported from `@dioramajs/effects`.

Defined in [packages/effects/src/registry.ts](https://github.com/MasterKurosava/diorama/blob/main/packages/effects/src/registry.ts#L44).
