UNPKG

448 BPlain TextView Raw
1import { AkteApp, type Config } from "./AkteApp";
2
3/**
4 * Creates an Akte app from given configuration.
5 *
6 * @typeParam TGlobalData - Global data type the app should be configured with
7 * (inferred by default)
8 * @param config - Configuration to create the Akte app with.
9 * @returns The created Akte app.
10 */
11export const defineAkteApp = <TGlobalData>(
12 config: Config<TGlobalData>,
13): AkteApp<TGlobalData> => {
14 return new AkteApp(config);
15};