definePreset function
Groups plugins and other presets under one name for `createApp({ presets })`.
import { definePreset } from '@dioramajs/diorama/core'function definePreset<E extends readonly PluginEntry[] = [], PS extends readonly PresetEntry[] = []>(
definition: PresetDefinition<E, PS>,
): Preset<Extract<E[number], AnyPlugin> | PresetPlugins<PS[number]>>Parameters
| Name | Type | Description |
|---|---|---|
definition | PresetDefinition<E, PS> |
Also exported from @dioramajs/core.
Defined in packages/core/src/kernel/plugin.ts.