Alias
Instead of importing from 'diabolo'
, you can import from
'diabolo/aliased'
. This version exports all the functions
and types from 'diabolo'
with shorter names.
import * as DI from 'diabolo/aliased'
Here is the table of the aliases:
Original | Alias |
---|---|
Service | Srv |
WithServices | With |
createService | srv |
lazyCreateServiceImpl | impl |
createFunction | fn |
requireService | req |
provide | prov |