Skip to main content

Function: buildApplication()

buildApplication(root, config)

buildApplication<CONTEXT>(root, config): Application<CONTEXT>

Builds an application from a top-level route map and configuration.

Type Parameters

CONTEXT extends CommandContext

Parameters

root: RouteMap<CONTEXT>

config: PartialApplicationConfiguration

Returns

Application<CONTEXT>

Defined in

packages/core/src/application/builder.ts:15

buildApplication(command, appConfig)

buildApplication<CONTEXT>(command, appConfig): Application<CONTEXT>

Builds an application with a single, top-level command and configuration.

Type Parameters

CONTEXT extends CommandContext

Parameters

command: Command<CONTEXT>

appConfig: PartialApplicationConfiguration

Returns

Application<CONTEXT>

Defined in

packages/core/src/application/builder.ts:22