typeioc

Home > typeioc > IInterceptor > interceptPrototype

IInterceptor.interceptPrototype() method

Creates intercepted prototype representative

Signature:

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

Parameters

Parameter Type Description
subject R function/class prototype (prototypical/constructible function)
substitutes ISubstituteInfo | ISubstituteInfo[] instance(s) of ISubstituteInfo interface. If substitutes are applied to the same member, they are chained

Returns:

R