Skip to main content
Version: 0.5.0

inject

This decorator targets a property or a parameter and provides the service associated.

import { inject } from '@cuaklabs/iocuak';

import { dummyFooServiceId } from 'some/path';

class Dummy {
@inject(dummyFooServiceId)
public foo: unknown;
}