UNPKG
@triviality/core
Version:
latest (1.2.5)
1.2.5
1.2.3
1.2.0
1.1.2
1.1.1
1.1.0
1.0.0
0.8.3
0.8.2
0.8.1
0.8.0
0.7.4
0.7.3
Purely typed service container
github.com/triviality-js/triviality
triviality-js/triviality
@triviality/core
/
example
/
featureDependency
/
HalloService.ts
12 lines
(8 loc)
•
238 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
import
{
LoggerInterface
}
from
'../features/LoggerInterface'
;
export
class
HalloService
{
constructor
(
private
logger
:
LoggerInterface
,
private
name
:
string
) { }
public
speak
(
) {
this
.
logger
.
info
(
`Hallo
${
this
.name}
`
); } }