a library to speed up the development of Fivem scripts and frameworks
fivem-ts - Documentation v0.7.5 • Docs
fivem-ts - Documentation v0.7.5 / Server / container
const
container:DIContainer
The default instance of the DIContainer that can be used directly.
This instance is used to register and resolve dependencies globally.
container.registerSingleton(MyService);
const myService = container.resolve(MyService);