createApp function
Creates an app with the built-in web layer and the given presets and plugins.
import { createApp } from '@dioramajs/diorama'Call start() to run it.
function createApp<P extends readonly PresetEntry[] = [], E extends readonly PluginEntry[] = []>(
options?: AppOptions<P, E>,
): App<ServicesOf<PresetPlugins<P[number]> | Extract<E[number], AnyPlugin>>>Parameters
| Name | Type | Description |
|---|---|---|
options? | AppOptions<P, E> |
Also exported from @dioramajs/diorama/auto, @dioramajs/diorama/core, @dioramajs/core.
Defined in packages/core/src/index.ts.