API Reference

InjectionContainerconst

Global shared Inversify container used by all rs-x packages.

Overview

Dependency-injection module built on Inversify.

When to use

Load required modules before resolving services.

Quick facts
Kind
const
Package
@rs-x/core

Declaration

export const InjectionContainer = new Container();

Import

import { InjectionContainer } from '@rs-x/core';

Example

import { InjectionContainer } from '@rs-x/core';
import { RsXExpressionParserModule } from '@rs-x/expression-parser';

await InjectionContainer.load(RsXExpressionParserModule);