Home > typeioc > IInterceptor > interceptInstance
Creates intercepted instance representative
Signature:
interceptInstance<R extends Object>(subject: R, substitutes?: ISubstituteInfo | ISubstituteInfo[]): R;
| 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