##// END OF EJS Templates
Added tag v1.4.0-rc2 for changeset 93d9db76884e
Added tag v1.4.0-rc2 for changeset 93d9db76884e

File last commit:

r136:17c7de5d346c ioc ts support
r141:64dfb0328301 default
Show More
config.ts
14 lines | 372 B | video/mp2t | TypeScriptLexer
import { Services } from "./services";
import { fluent } from "../di/traits";
import { Box } from "./Box";
export default fluent<Services>().register({
host: it => it.value("example.com"),
foo: it => import("./Foo").then(({ Foo }) => it
.factory(() => new Foo())
),
box: it => it
.factory($dependency => new Box($dependency("foo")))
});