typeioc

Home > typeioc > IInterceptor > interceptInstance

IInterceptor.interceptInstance() method

Creates intercepted instance representative

Signature:

interceptInstance<R extends Object>(subject: R, substitutes?: ISubstituteInfo | ISubstituteInfo[]): R;

Parameters

Parameter Type Description
subject R an instance of a type
substitutes ISubstituteInfo | ISubstituteInfo[] instance(s) of ISubstituteInfo interface. If substitutes are applied to the same member, they are chained

Returns:

R