Skip to main content
Version: 0.3.1

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;
}