config.ts
27 lines
| 364 B
| video/mp2t
|
TypeScriptLexer
|
|
r110 | import { Foo } from "./Foo"; | ||
| import { Bar } from "./Bar"; | ||||
| import { Box } from "./Box"; | ||||
|
|
r118 | import { Builder } from "../di/Annotations"; | ||
|
|
r111 | |||
|
|
r116 | interface Services { | ||
|
|
r110 | foo: Foo; | ||
| bar: Bar; | ||||
|
|
r116 | box: Box<Foo>; | ||
| host: string; | ||||
|
|
r110 | |||
|
|
r116 | } | ||
|
|
r110 | |||
|
|
r118 | const services = { | ||
| build: <T>() => { | ||||
| return new Builder<T, Services>(); | ||||
| } | ||||
| }; | ||||
|
|
r116 | |||
|
|
r118 | namespace services { | ||
|
|
r110 | |||
|
|
r116 | } | ||
|
|
r111 | |||
|
|
r118 | export = services; | ||
