# Effect

interface in `@dioramajs/diorama`

```ts
import type { Effect } from '@dioramajs/diorama'
```

Frozen callable, like a plugin. Calling it returns a configured use.

```ts
Effect(params?: Partial<ParamsOf<P>>): EffectUse<P>
```

| Parameter | Type | Description |
| --- | --- | --- |
| `params?` | `Partial<ParamsOf<P>>` |  |

## Members

| Name | Type | Description |
| --- | --- | --- |
| `defaults` | `Readonly<ParamsOf<P>>` | Param defaults as values. |
| `name` | `string` | The token in `data-dio`. |

Also exported from `@dioramajs/diorama/auto`, `@dioramajs/diorama/effects`, `@dioramajs/effects`.

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