typeioc

Home > typeioc > IRegisterWithAs > lazy

IRegisterWithAs.lazy() method

Specifies lazy registration. Resolution of services is differed until results are needed by other services/computations

Signature:

lazy(): RegisterWithLazy<T>;

Returns:

RegisterWithLazy<T>