Documentation / @zerotal/core / index / app
Function: app()
Call Signature
app():
Application
Defined in: helpers/make.ts:31
Return the running Application kernel, or — when passed a token —
resolve it from the container (app(Token)).
Returns
Example
app().bind((c) => c.singleton(Clock, () => new SystemClock())); // kernel
const users = await app(UsersService); // resolve
Call Signature
app<
T>(token):Promise<T>
Defined in: helpers/make.ts:32
Return the running Application kernel, or — when passed a token —
resolve it from the container (app(Token)).
Type Parameters
T
T
Parameters
token
BindingToken<T>
Returns
Promise<T>
Example
app().bind((c) => c.singleton(Clock, () => new SystemClock())); // kernel
const users = await app(UsersService); // resolve