config.ts
14 lines
| 373 B
| video/mp2t
|
TypeScriptLexer
|
|
r134 | import { Services } from "./services"; | ||
|
|
r135 | import { fluent } from "../di/traits"; | ||
|
|
r136 | import { Box } from "./Box"; | ||
|
|
r135 | |||
|
|
r142 | export default fluent<Services>().configure({ | ||
|
|
r135 | host: it => it.value("example.com"), | ||
|
|
r110 | |||
|
|
r136 | foo: it => import("./Foo").then(({ Foo }) => it | ||
| .factory(() => new Foo()) | ||||
| ), | ||||
| box: it => it | ||||
| .factory($dependency => new Box($dependency("foo"))) | ||||
|
|
r135 | }); | ||
