Skip to main content

Module: @ima/core

Enumerations

Classes

Interfaces

References

Route

Renames and re-exports StaticRoute

Type Aliases

ObjectParameters

Ƭ ObjectParameters: Object

Index signature

[key: string]: boolean | number | string | Date

Defined in

packages/core/src/CommonTypes.ts:13


PageData

Ƭ PageData: { status: number } & UnknownParameters

Defined in

packages/core/src/page/PageTypes.ts:35


RouteOptions

Ƭ RouteOptions: Object

Type declaration

NameType
autoScroll?boolean
documentView?unknown
extensions?IExtension[]
headers?UnknownParameters
httpStatus?number
managedRootView?unknown
middlewares?Promise<RouterMiddleware>[] | RouterMiddleware[] | MiddleWareFunction[]
onlyUpdate?boolean | (controller: IController, view: unknown) => boolean
viewAdapter?unknown

Defined in

packages/core/src/router/Router.ts:10


StringParameters

Ƭ StringParameters: Object

Index signature

[key: string]: string

Defined in

packages/core/src/CommonTypes.ts:1


UnknownParameters

Ƭ UnknownParameters: Object

Index signature

[key: string]: unknown

Defined in

packages/core/src/CommonTypes.ts:5


UnknownPromiseParameters

Ƭ UnknownPromiseParameters: Object

Index signature

[key: string]: unknown | Promise<unknown>

Defined in

packages/core/src/CommonTypes.ts:9

Variables

ns

ns: Namespace

Defined in

packages/core/src/Namespace.ts:128


pluginLoader

pluginLoader: PluginLoader

Defined in

packages/core/src/pluginLoader.ts:89

Functions

bootClientApp

bootClientApp(app, bootConfig): Object

Parameters

NameType
appObject
app.bootstrapBootstrap
app.ocObjectContainer
bootConfigConfig

Returns

Object

NameType
bootstrapBootstrap
ocObjectContainer

Defined in

packages/core/src/index.ts:187


createImaApp

createImaApp(): Object

Returns

Object

NameType
bootstrapBootstrap
ocObjectContainer

Defined in

packages/core/src/index.ts:116


getClientBootConfig

getClientBootConfig(initialAppConfigFunctions): Config

Parameters

NameType
initialAppConfigFunctionsAppConfigFunctions

Returns

Config

Defined in

packages/core/src/index.ts:124


getInitialImaConfigFunctions

getInitialImaConfigFunctions(): Object

Returns

Object

NameType
initBindIma(ns: any, oc: any, config: any) => void
initServicesIma(ns: any, oc: any, config: any) => void

Defined in

packages/core/src/index.ts:96


getInitialPluginConfig

getInitialPluginConfig(): Object

Returns

Object

NameType
plugins{ module: Module ; name: string }[]

Defined in

packages/core/src/index.ts:104


getNamespace

getNamespace(): Namespace

Returns

Namespace

Defined in

packages/core/src/index.ts:100


onLoad

onLoad(): Promise<unknown>

Returns

Promise<unknown>

Defined in

packages/core/src/index.ts:234


reviveClientApp

reviveClientApp(initialAppConfigFunctions): Promise<UnknownParameters & { app: { bootstrap: Bootstrap ; oc: ObjectContainer } ; bootConfig: Config }>

Parameters

NameType
initialAppConfigFunctionsAppConfigFunctions

Returns

Promise<UnknownParameters & { app: { bootstrap: Bootstrap ; oc: ObjectContainer } ; bootConfig: Config }>

Defined in

packages/core/src/index.ts:219


routeClientApp

routeClientApp(app): Promise<void | UnknownParameters>

Parameters

NameType
appObject
app.bootstrapBootstrap
app.ocObjectContainer

Returns

Promise<void | UnknownParameters>

Defined in

packages/core/src/index.ts:202